/* Chat Live profile redesign — phase 3
   Layout and forms retain their existing IDs, event listeners and validation. */
body:has(.cl-profile-page){
 --navy:#11121a;
 --panel:#1d1e2b;
 --panel-2:#292838;
 --line:#3d394f;
 --text:#f1eefb;
 --muted:#aaa7be;
 --accent:#8e80fb;
 background:#0e0f16!important;
 color:#f0edfa!important;
}
body:has(.cl-profile-page) .ambient{
 background:radial-gradient(ellipse at 85% 5%,rgba(116,88,219,.15),transparent 43%),radial-gradient(ellipse at 7% 85%,rgba(45,120,155,.09),transparent 40%)!important;
 opacity:.9;
}
body:has(.cl-profile-page)>.top{
 background:rgba(19,20,29,.96)!important;
 border-bottom:1px solid #343243!important;
 box-shadow:0 8px 26px rgba(0,0,0,.09);
 backdrop-filter:blur(12px);
}
body:has(.cl-profile-page)>.top nav a{
 color:#c0bdd3!important;
 border-radius:9px;
 transition:color .14s,background .14s;
}
body:has(.cl-profile-page)>.top nav a:hover{
 color:#fff!important;background:#28273a!important;
}
body:has(.cl-profile-page)>.top :is(select,.small-cta){
 background:#292737!important;border:1px solid #575070!important;
 color:#f1eeff!important;border-radius:11px!important;
}
body:has(.cl-profile-page)>.top .small-cta{
 background:linear-gradient(110deg,#6153d0,#8676f6)!important;
 border-color:#9384fd!important;
}
body:has(.cl-profile-page)>.content.cl-profile-page{
 max-width:1210px!important;
 width:min(1210px,calc(100% - 32px))!important;
 min-width:0!important;
 margin-inline:auto!important;
 padding:clamp(22px,3vw,43px) 0 70px!important;
}
.cl-profile-page .cl-profile-header{
 display:flex!important;align-items:center!important;
 gap:19px!important;
 padding:clamp(23px,3vw,37px)!important;
 border-radius:22px!important;
 background:linear-gradient(118deg,#28233c,#1b2030)!important;
 border:1px solid #49405e!important;
 box-shadow:0 16px 45px rgba(5,6,17,.23)!important;
 margin-bottom:25px!important;
}
.cl-profile-page .cl-profile-header>.avatar{
 width:78px!important;height:78px!important;
 min-width:78px!important;min-height:78px!important;
 border:1px solid #8879ec!important;
 border-radius:22px!important;
 background:linear-gradient(135deg,#6453c9,#3a4a92)!important;
 color:#fff!important;
 box-shadow:0 10px 30px rgba(78,63,185,.2)!important;
}
.cl-profile-page .cl-profile-heading{min-width:0!important}
.cl-profile-page .cl-profile-heading .eyebrow{
 color:#ae9ffd!important;
 font-size:11px!important;font-weight:800!important;letter-spacing:.07em!important;
}
.cl-profile-page .cl-profile-heading h1{
 font-size:clamp(24px,2.7vw,35px)!important;
 color:#f8f6ff!important;
 overflow-wrap:anywhere!important;
 margin:2px 0 5px!important;
}
.cl-profile-page .cl-profile-email{
 display:block;
 color:#b5b2c7!important;
 font-size:12px!important;
 overflow-wrap:anywhere;
}
.cl-profile-page .cl-profile-verified{
 display:inline-flex;align-items:center;gap:5px;
 border:1px solid #555076!important;
 border-radius:999px!important;
 padding:5px 11px!important;
 margin-top:10px!important;
 background:#332e4e!important;
 color:#d6cffd!important;
 font-size:11px!important;
}
.cl-profile-page .cl-profile-grid{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:22px!important;
 align-items:start!important;
}
.cl-profile-page :is(.pane,.cl-progress-panel){
 min-width:0!important;max-width:100%!important;
 border:1px solid #454156!important;
 border-radius:19px!important;
 background:linear-gradient(153deg,#222333,#1b1d2a)!important;
 box-shadow:0 12px 38px rgba(0,0,0,.15)!important;
 padding:clamp(18px,2vw,27px)!important;
 color:#eae8f8!important;
}
.cl-profile-page .pane :is(h2,h3),.cl-profile-page .cl-progress-panel :is(h2,h3){
 color:#f5f2ff!important;
 font-weight:800!important;
}
.cl-profile-page .cl-profile-subtitle,.cl-profile-page .hint{
 color:#b6b4ca!important;
 font-size:13px!important;
 line-height:1.8!important;
}
.cl-profile-page .field{min-width:0!important}
.cl-profile-page .field label{
 color:#d1cce6!important;
 font-size:12px!important;
 font-weight:750!important;
}
.cl-profile-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
 background:#171823!important;
 border:1px solid #524b67!important;
 border-radius:11px!important;
 color:#f8f6ff!important;
 min-height:42px;
 max-width:100%!important;
 min-width:0!important;
 box-shadow:none!important;
}
.cl-profile-page textarea{line-height:1.75!important;min-height:90px}
.cl-profile-page :is(input,textarea,select):focus-visible{
 border-color:#9789ff!important;
 outline:2px solid rgba(148,133,254,.27)!important;
 outline-offset:1px;
}
.cl-profile-page :is(.button,button[type=submit]){
 background:linear-gradient(104deg,#6456d8,#8475f8)!important;
 border:1px solid #9a8dff!important;
 border-radius:11px!important;
 color:#fff!important;
 font-weight:800!important;
 min-height:43px!important;
 box-shadow:0 5px 17px rgba(87,67,205,.18)!important;
}
.cl-profile-page :is(.button.secondary,.cl-logout-button){
 background:#29283a!important;
 border:1px solid #554e69!important;
 color:#ded9f3!important;
 box-shadow:none!important;
}
.cl-profile-page :is(.button,button):hover{
 border-color:#b5aaff!important;
 filter:brightness(1.08);
}
.cl-profile-page :is(.button,button,a):focus-visible{
 outline:2px solid #aa9dff!important;
 outline-offset:3px!important;
}
.cl-profile-page .cl-profile-links{
 display:flex;flex-wrap:wrap;gap:9px;
 margin-top:17px;
}
.cl-profile-page .cl-profile-links a{
 display:inline-flex;justify-content:center;align-items:center;gap:7px;
 padding:9px 13px!important;
 background:#292838!important;
 border:1px solid #575170!important;
 border-radius:11px!important;
 font-size:12px!important;font-weight:750!important;
 color:#e7e1fa!important;
 min-width:0!important;
}
.cl-profile-page .cl-current-password-details,
.cl-profile-page .cl-profile-recovery{
 background:#262536!important;
 border:1px solid #48435b!important;
 border-radius:14px!important;
 padding:15px!important;
 margin-top:14px!important;
 min-width:0!important;
}
.cl-profile-page .cl-current-password-details>summary{
 color:#ece6ff!important;
 font-weight:750!important;
 cursor:pointer;
}
.cl-profile-page .cl-profile-session{
 border-top:1px solid #464058!important;
 margin-top:20px!important;
 padding-top:16px!important;
}
.cl-profile-page #cl-profile-customization{min-width:0!important}
.cl-profile-page #cl-profile-customization :is(.cl-avatar-picker,.cl-paid-preview,.cl-progress-panel){
 min-width:0!important;max-width:100%!important;
}
body:has(.cl-profile-page)>footer{
 background:#10111a!important;
 border-top:1px solid #373246!important;
 color:#aca8c0!important;
}
body:has(.cl-profile-page)>footer a{
 color:#bcb7d0!important;
}
body:has(.cl-profile-page)>footer a:hover{color:#a79cff!important}
@media(max-width:900px){
 .cl-profile-page .cl-profile-grid{
  grid-template-columns:1fr!important;
  gap:15px!important;
 }
}
@media(max-width:780px){
 body:has(.cl-profile-page)>.content.cl-profile-page{
  width:calc(100% - 22px)!important;
  padding:17px 0 36px!important;
 }
 .cl-profile-page .cl-profile-header{
  gap:12px!important;padding:20px 15px!important;border-radius:17px!important;
  align-items:flex-start!important;
 }
 .cl-profile-page .cl-profile-header>.avatar{
  width:59px!important;height:59px!important;min-width:59px!important;min-height:59px!important;
  border-radius:16px!important;
 }
 .cl-profile-page .cl-profile-heading h1{font-size:22px!important}
 .cl-profile-page :is(.pane,.cl-progress-panel){padding:17px!important}
 .cl-profile-page .cl-profile-links a{
  flex:1 1 calc(50% - 8px)!important;
  overflow-wrap:anywhere;white-space:normal!important;
 }
}
@media(max-width:390px){
 .cl-profile-page .cl-profile-header{flex-wrap:wrap!important}
 .cl-profile-page .cl-profile-links a{flex-basis:100%!important}
}
@media(prefers-reduced-motion:reduce){
 .cl-profile-page *{transition:none!important;animation-duration:.001ms!important}
}
