:root{--bg:#07090f;--panel:#101521;--panel2:#151b28;--text:#f7f9fc;--muted:#8f99ab;--line:#222b3a;--accent:#ff3b30;--accent2:#ff6b35;--ok:#29d391;--shadow:0 25px 70px rgba(0,0,0,.42)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 30% 10%,#141929 0,#07090f 40%,#05070b 100%);color:var(--text);min-height:100vh}button,input,select{font:inherit}.ambient{position:fixed;border-radius:50%;filter:blur(100px);opacity:.23;pointer-events:none}.ambient-1{width:340px;height:340px;background:#ff3b30;right:-120px;top:-100px}.ambient-2{width:420px;height:420px;background:#5f38ff;left:-180px;bottom:-190px}.glass{background:linear-gradient(145deg,rgba(21,27,40,.9),rgba(11,15,24,.82));border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.auth-page{display:grid;place-items:center;padding:32px}.auth-shell{width:min(1120px,100%);display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:stretch}.brand-panel{padding:68px 28px 68px 16px;display:flex;flex-direction:column;justify-content:center}.brand-icon{display:block;object-fit:contain;filter:drop-shadow(0 14px 28px rgba(255,59,48,.2))}.hero-icon{width:82px;height:82px}.small-icon{width:44px;height:44px}.eyebrow{font-size:12px;letter-spacing:.18em;color:#ff796f;font-weight:800;margin:22px 0 10px}.brand-panel h1{font-size:clamp(44px,7vw,86px);line-height:.94;letter-spacing:-.06em;margin:0;max-width:740px}.brand-panel h1 span{display:block;color:#ff5147}.hero-copy{font-size:18px;color:var(--muted);line-height:1.75;max-width:620px;margin:28px 0}.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:620px}.feature-row div{padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}.feature-row b,.feature-row span{display:block}.feature-row span{font-size:12px;color:var(--muted);margin-top:4px}.auth-card{border-radius:28px;padding:42px;display:flex;flex-direction:column;justify-content:center}.auth-card h2,.onboarding-card h1{font-size:32px;margin:0 0 10px}.muted{color:var(--muted)}.google-btn,.primary-btn,.secondary-btn,.ghost-btn{border:0;border-radius:14px;padding:14px 18px;font-weight:800;cursor:pointer;transition:.2s}.google-btn{margin-top:26px;background:white;color:#111;width:100%;display:flex;gap:12px;justify-content:center;align-items:center}.google-btn:hover,.primary-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}.google-g{font-weight:900;color:#4285f4}.notice{margin:18px 0;display:flex;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#0b1019}.notice>span{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#20293a;color:#bbc5d6;font-weight:800}.notice p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.auth-card footer,.onboarding-card footer{margin-top:26px;color:#697386;font-size:12px;text-align:center}.mobile-logo,.brand-inline{display:flex;align-items:center;gap:12px;font-weight:800}.mobile-logo{display:none}.card-top{display:flex;align-items:center;justify-content:flex-end;gap:16px}.lang-switch{display:inline-flex;align-items:center;gap:2px;border:1px solid #283244;background:#0a0f17;border-radius:999px;padding:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)}.lang-switch>span{width:1px;height:14px;background:#253044}.lang-btn{border:0;background:transparent;color:#788397;font-size:11px;font-weight:900;letter-spacing:.06em;padding:7px 9px;border-radius:999px;cursor:pointer;transition:.2s}.lang-btn.active{background:linear-gradient(135deg,#ff3b30,#ff6b35);color:#fff;box-shadow:0 5px 16px rgba(255,59,48,.25)}.status-text{min-height:18px;font-size:13px;color:#ff8a82}.center-page{display:grid;place-items:center;padding:32px}.onboarding-card{width:min(720px,100%);padding:40px;border-radius:28px}.onboarding-card .card-top{justify-content:space-between}.profile-form{display:grid;gap:18px;margin-top:28px}.profile-form label{display:grid;gap:8px;color:#dfe5ef;font-size:13px;font-weight:700}.profile-form input,.profile-form select{width:100%;padding:14px 15px;border-radius:13px;border:1px solid var(--line);background:#0b1019;color:var(--text);outline:none}.profile-form input:focus,.profile-form select:focus{border-color:#ff665d;box-shadow:0 0 0 3px rgba(255,59,48,.08)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkbox{grid-template-columns:20px 1fr!important;align-items:flex-start;color:var(--muted)!important;font-weight:500!important;line-height:1.5}.checkbox input{width:auto;margin-top:3px}.primary-btn{background:linear-gradient(135deg,var(--accent),var(--accent2));color:white}.secondary-btn{background:#1a2230;color:#e8edf6;border:1px solid #293346}.ghost-btn{background:transparent;color:#aab4c4;border:1px solid #2a3445}.dashboard-page{background:#070a10}.dashboard-grid{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:26px 20px;border-right:1px solid #18202d;background:#080c13;display:flex;flex-direction:column}.sidebar nav{display:grid;gap:8px;margin-top:42px}.sidebar nav a{text-decoration:none;color:#8d98aa;padding:13px 14px;border-radius:12px;font-size:14px;font-weight:700}.sidebar nav a.active,.sidebar nav a:hover{background:#171e2a;color:#fff}.sidebar-bottom{margin-top:auto;display:grid;gap:14px;color:#677284;font-size:11px}.sidebar-bottom .lang-switch{width:max-content}.dashboard-main{padding:34px 38px 60px;max-width:1500px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.topbar .eyebrow{margin:0 0 8px}.topbar h1{margin:0;font-size:28px}.topbar h1>span:last-child{color:#ff655b}.user-chip{display:flex;gap:10px;align-items:center;padding:8px 12px;background:#0d131d;border:1px solid #1f2938;border-radius:15px}.avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#ff3b30,#7e3cff);display:grid;place-items:center;font-weight:900}.user-chip b,.user-chip span{display:block}.user-chip span{font-size:11px;color:var(--muted);margin-top:2px}.hero-card{padding:30px;border-radius:24px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.hero-card:after{content:"";position:absolute;width:260px;height:260px;right:-80px;top:-100px;background:#ff3b30;filter:blur(100px);opacity:.2}.hero-card h2{font-size:34px;margin:15px 0 8px}.hero-card p{color:var(--muted);max-width:620px}.online-pill{display:inline-block;padding:8px 10px;border-radius:999px;background:rgba(41,211,145,.1);color:#67efb6;font-size:11px;font-weight:800;border:1px solid rgba(41,211,145,.2)}.hero-actions{display:flex;gap:10px;margin-top:22px}.speed-orb{z-index:2;width:150px;height:150px;border-radius:50%;display:grid;place-items:center;align-content:center;border:16px solid rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px #2e3849;text-align:center}.speed-orb strong{font-size:34px}.speed-orb span{font-size:10px;color:var(--muted);margin-top:4px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:14px 0 34px}.stat-card{border-radius:18px;padding:20px;box-shadow:none}.stat-card span,.stat-card b,.stat-card small{display:block}.stat-card span{font-size:12px;color:var(--muted)}.stat-card b{font-size:18px;margin:10px 0 4px}.stat-card small{color:#657084}.section-block{margin-top:34px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.section-heading .eyebrow{margin:0 0 6px}.section-heading h2{margin:0;font-size:24px}.section-heading .muted{font-size:12px}.server-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.server-card{padding:20px;border:1px solid #1d2735;border-radius:18px;background:linear-gradient(145deg,#0d131d,#0a0f17)}.server-head{display:flex;justify-content:space-between;align-items:flex-start}.server-card h3{margin:0 0 4px}.server-card p{font-size:12px;color:var(--muted);margin:0}.ping{font-weight:900;color:#69e4af}.server-card button{width:100%;margin-top:20px}.server-meta{display:flex;justify-content:space-between;font-size:11px;color:#758094;margin-top:16px}.account-panel{padding:24px;border-radius:22px}.account-panel h2{margin:0}.account-panel .eyebrow{margin:0 0 7px}.account-details{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}.account-details div{padding:14px;border:1px solid var(--line);border-radius:14px;background:#0a0f17}.account-details span,.account-details b{display:block}.account-details span{font-size:11px;color:var(--muted);margin-bottom:6px}.account-details b{font-size:13px}.connected{border-color:rgba(41,211,145,.4)!important;box-shadow:0 0 0 1px rgba(41,211,145,.08) inset}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.brand-panel{display:none}.auth-card{min-height:70vh}.mobile-logo{display:flex}.card-top{justify-content:space-between}.dashboard-grid{grid-template-columns:1fr}.sidebar{height:auto;position:static;flex-direction:row;align-items:center;justify-content:space-between;padding:16px}.sidebar nav{margin:0;display:flex}.sidebar-bottom{margin:0;display:flex;align-items:center}.sidebar-bottom small{display:none}.dashboard-main{padding:24px 18px 50px}.server-grid,.stats-grid{grid-template-columns:1fr 1fr}.account-details{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.auth-page,.center-page{padding:16px}.auth-card,.onboarding-card{padding:26px 20px;border-radius:22px}.two-col,.server-grid,.stats-grid,.account-details{grid-template-columns:1fr}.sidebar nav{display:none}.sidebar .brand-inline span{font-size:12px}.sidebar-bottom .ghost-btn{display:none}.topbar{align-items:flex-start}.user-chip>div:last-child{display:none}.hero-card{align-items:flex-start}.speed-orb{display:none}.hero-card h2{font-size:28px}.section-heading{display:block}.section-heading .muted{display:block;margin-top:8px}.hero-actions{flex-direction:column}.mobile-logo strong{font-size:13px}}
/* Compact professional signup */
.signup-page{padding:18px;min-height:100vh}
.compact-signup{width:min(760px,100%);padding:26px 28px 20px;border-radius:24px}
.signup-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.07)}
.signup-icon{width:48px;height:48px}
.signup-brand-copy{display:grid;gap:3px}
.signup-brand-copy strong{font-size:14px;letter-spacing:.02em}
.signup-brand-copy span{font-size:9px;letter-spacing:.17em;color:#778196;font-weight:800}
.signup-intro{padding:22px 0 4px}
.signup-intro h1{font-size:28px!important;letter-spacing:-.035em;margin:0 0 7px!important}
.signup-intro p{font-size:13px;line-height:1.55;margin:0}
.compact-form{gap:14px;margin-top:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px}
.compact-form label{gap:7px;font-size:12px}
.compact-form input,.compact-form select{padding:12px 13px;border-radius:11px;min-height:44px}
.compact-terms{margin-top:1px;padding:11px 12px;border:1px solid #202a39;border-radius:12px;background:rgba(8,12,19,.58);font-size:11px!important;line-height:1.4!important}
.compact-terms input{margin-top:2px}
.signup-actions{display:grid;grid-template-columns:minmax(190px,260px) 1fr;align-items:center;gap:14px}
.signup-submit{padding:13px 18px;border-radius:12px}
.signup-actions .status-text{margin:0;min-height:0}
.compact-footer{margin-top:16px!important;padding-top:14px;border-top:1px solid rgba(255,255,255,.06);font-size:10px!important}

/* Clean mobile auth layout: native document scrolling, no scroll lock */
@media(max-width:620px){
  html{
    width:100%;
    height:auto!important;
    min-height:100%;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
    scroll-behavior:auto!important;
  }

  body.auth-page,
  body.signup-page{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:calc(100svh + 120px)!important;
    max-height:none!important;
    margin:0!important;
    padding:8svh 8px 120px!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }

  body.auth-page .ambient,
  body.signup-page .ambient{
    position:fixed;
    pointer-events:none;
  }

  body.auth-page .auth-shell{
    width:min(calc(100vw - 16px),430px)!important;
    max-width:430px!important;
    display:block!important;
    margin:0 auto!important;
    overflow:visible!important;
  }

  body.auth-page .brand-panel{
    display:none!important;
  }

  body.auth-page .auth-card{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:20px 18px!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }

  body.auth-page .mobile-logo{
    display:flex!important;
  }

  body.auth-page .small-icon{
    width:34px!important;
    height:34px!important;
  }

  body.auth-page .mobile-logo strong{
    font-size:11px!important;
  }

  body.auth-page .card-top{
    margin:0 0 10px!important;
  }

  body.auth-page .eyebrow{
    margin:12px 0 7px!important;
    font-size:10px!important;
  }

  body.auth-page .auth-card h2{
    margin:0 0 8px!important;
    font-size:27px!important;
    line-height:1.08!important;
  }

  body.auth-page .auth-card>.muted{
    margin:0!important;
    font-size:12px!important;
    line-height:1.45!important;
  }

  body.auth-page .google-btn{
    margin-top:18px!important;
    min-height:44px!important;
    padding:11px 14px!important;
  }

  body.auth-page .notice{
    margin:12px 0 8px!important;
    padding:10px!important;
  }

  body.auth-page .notice p{
    font-size:10.5px!important;
    line-height:1.35!important;
  }

  body.auth-page #authMessage{
    min-height:12px!important;
    margin:0!important;
    font-size:9px!important;
  }

  body.auth-page .auth-card footer{
    margin-top:10px!important;
    font-size:9px!important;
  }

  body.signup-page .compact-signup{
    position:static!important;
    width:min(calc(100vw - 16px),430px)!important;
    max-width:430px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 auto!important;
    padding:11px 12px 10px!important;
    border-radius:17px!important;
    overflow:hidden!important;
  }

  body.signup-page .signup-header{
    min-height:38px!important;
    padding:0 0 8px!important;
    gap:8px!important;
  }

  body.signup-page .signup-icon{
    width:32px!important;
    height:32px!important;
  }

  body.signup-page .signup-brand-copy strong{
    font-size:10.5px!important;
    white-space:nowrap!important;
  }

  body.signup-page .signup-brand-copy span{
    display:none!important;
  }

  body.signup-page .signup-intro{
    padding:9px 0 0!important;
  }

  body.signup-page .signup-intro h1{
    font-size:19px!important;
    line-height:1.08!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  body.signup-page .signup-intro p{
    display:none!important;
  }

  body.signup-page .compact-form{
    gap:7px!important;
    margin-top:9px!important;
  }

  body.signup-page .form-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:7px!important;
  }

  body.signup-page .form-grid>label{
    min-width:0!important;
  }

  body.signup-page .compact-form label{
    gap:4px!important;
    font-size:9px!important;
  }

  body.signup-page .form-grid>label>span{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.signup-page .compact-form input,
  body.signup-page .compact-form select{
    width:100%!important;
    height:38px!important;
    min-height:38px!important;
    padding:7px 9px!important;
    border-radius:9px!important;
    font-size:16px!important;
  }

  body.signup-page .compact-terms{
    margin:0!important;
    padding:7px 8px!important;
    grid-template-columns:16px 1fr!important;
    gap:7px!important;
    font-size:9px!important;
    line-height:1.2!important;
  }

  body.signup-page .compact-terms input{
    width:14px!important;
    height:14px!important;
    margin:0!important;
  }

  body.signup-page .signup-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:3px!important;
  }

  body.signup-page .signup-submit{
    width:100%!important;
    min-height:38px!important;
    padding:9px 14px!important;
    border-radius:10px!important;
    font-size:12px!important;
  }

  body.signup-page .signup-actions .status-text{
    min-height:10px!important;
    margin:0!important;
    font-size:9px!important;
    line-height:1.2!important;
  }

  body.signup-page .compact-footer{
    display:none!important;
  }

  body.auth-page button,
  body.signup-page button,
  body.signup-page input,
  body.signup-page select{
    touch-action:manipulation!important;
  }
}

@media(max-height:680px) and (max-width:620px){
  body.auth-page,
  body.signup-page{
    padding-top:5svh!important;
  }

  body.auth-page .auth-card{
    padding:16px!important;
  }

  body.auth-page .auth-card h2{
    font-size:23px!important;
  }
}


/* Google OAuth */
.oauth-area{margin-top:26px;display:grid;gap:10px}
.oauth-google-btn{
  margin-top:0;
  min-height:60px;
  padding:9px 12px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#f7f8fb 100%);
  color:#111827;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 24px;
  align-items:center;
  gap:12px;
  text-align:left;
  box-shadow:0 12px 32px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.9);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.oauth-google-btn:hover{
  transform:translateY(-2px);
  filter:none;
  border-color:rgba(66,133,244,.35);
  background:#fff;
  box-shadow:0 16px 38px rgba(0,0,0,.28),0 0 0 3px rgba(66,133,244,.08);
}
.oauth-google-btn:active{
  transform:translateY(0) scale(.995);
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}
.oauth-google-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(66,133,244,.18),0 14px 34px rgba(0,0,0,.25);
}
.google-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 3px 10px rgba(15,23,42,.08);
}
.google-icon svg{width:23px;height:23px;display:block}
.google-copy{min-width:0;display:grid;gap:3px}
.google-copy strong{
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#111827;
  letter-spacing:-.01em;
}
.google-copy small{
  font-size:10px;
  line-height:1.2;
  font-weight:600;
  color:#7b8495;
}
.oauth-arrow{
  width:24px;
  height:24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#6b7280;
  background:#f0f2f5;
  font-size:22px;
  line-height:1;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.oauth-google-btn:hover .oauth-arrow{
  transform:translateX(2px);
  background:#e8f0fe;
  color:#4285f4;
}
.oauth-trust{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:24px;
  color:#798496;
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.01em;
}
.oauth-trust-icon{
  width:16px;
  height:16px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(41,211,145,.11);
  border:1px solid rgba(41,211,145,.22);
  color:#67efb6;
  font-size:9px;
}
.auth-card #authMessage:empty{display:none}
.auth-card #authMessage:not(:empty){
  min-height:0;
  margin:2px 0 0;
  padding:9px 10px;
  border:1px solid rgba(255,138,130,.16);
  border-radius:10px;
  background:rgba(255,59,48,.055);
  color:#ffaaa4;
  font-size:10px;
  line-height:1.4;
}

@media(max-width:620px){
  .oauth-area{margin-top:16px!important;gap:8px}
  .oauth-google-btn{
    min-height:56px!important;
    grid-template-columns:38px minmax(0,1fr) 22px!important;
    gap:10px!important;
    padding:8px 10px!important;
    border-radius:14px!important;
  }
  .google-icon{width:38px;height:38px;border-radius:10px}
  .google-icon svg{width:21px;height:21px}
  .google-copy strong{font-size:13px}
  .google-copy small{font-size:9px}
  .oauth-trust{font-size:8.5px}
}


/* Native Google Identity Services button */
.google-native-button{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
}
.google-native-button>div{
  width:100%!important;
  max-width:100%!important;
}
.google-native-button iframe{
  max-width:100%!important;
}
@media(max-width:620px){
  .google-native-button{
    min-height:44px!important;
    border-radius:12px!important;
  }
}


/* FINAL mobile visual centering — keep native document scroll */
@media(max-width:620px){
  body.auth-page,
  body.signup-page{
    min-height:calc(100svh + 120px)!important;
    padding:50svh 8px 120px!important;
    justify-content:flex-start!important;
  }

  body.auth-page .auth-shell,
  body.signup-page .compact-signup{
    margin-top:0!important;
    margin-bottom:0!important;
    transform:translateY(-50%)!important;
    transform-origin:center center!important;
  }
}

/* On very short screens, prioritize access to the full form */
@media(max-width:620px) and (max-height:680px){
  body.auth-page,
  body.signup-page{
    padding-top:18px!important;
  }

  body.auth-page .auth-shell,
  body.signup-page .compact-signup{
    transform:none!important;
  }
}


/* Profile save feedback + Google avatar */
.signup-submit:disabled{
  cursor:wait;
  opacity:.72;
  transform:none!important;
  filter:saturate(.85);
}
.signup-submit.is-loading{
  position:relative;
}
.avatar.has-photo{
  padding:0;
  overflow:hidden;
  background:#0d131d;
}
.avatar.has-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.empty-server-card{
  grid-column:1/-1;
  min-height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.connect-btn:disabled{
  cursor:not-allowed;
  opacity:.45;
  filter:saturate(.5);
}


/* =========================================================
   UNIFIED RESPONSIVE DESIGN
   Mobile keeps the same visual system as desktop.
   Only layout/scale adapt to smaller screens.
   ========================================================= */

@media(max-width:900px){
  .auth-page{
    padding:24px 18px 48px!important;
    display:block!important;
    min-height:100svh!important;
  }

  .auth-shell{
    width:min(760px,100%)!important;
    margin:0 auto!important;
    grid-template-columns:1fr!important;
    gap:18px!important;
  }

  .brand-panel{
    display:flex!important;
    padding:28px 24px!important;
    border:1px solid rgba(255,255,255,.07)!important;
    border-radius:26px!important;
    background:linear-gradient(145deg,rgba(21,27,40,.56),rgba(11,15,24,.42))!important;
    box-shadow:0 20px 50px rgba(0,0,0,.24)!important;
  }

  .brand-panel h1{
    font-size:clamp(38px,8vw,58px)!important;
  }

  .hero-copy{
    font-size:15px!important;
    line-height:1.6!important;
    margin:18px 0!important;
  }

  .feature-row{
    max-width:none!important;
  }

  .auth-card{
    min-height:0!important;
    padding:34px 30px!important;
  }

  .mobile-logo{
    display:none!important;
  }

  .card-top{
    justify-content:flex-end!important;
  }

  .dashboard-grid{
    grid-template-columns:1fr!important;
  }

  .sidebar{
    position:sticky!important;
    top:0!important;
    z-index:30!important;
    height:auto!important;
    padding:14px 18px!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:14px!important;
    border-right:0!important;
    border-bottom:1px solid #18202d!important;
    background:rgba(8,12,19,.94)!important;
    backdrop-filter:blur(18px)!important;
  }

  .sidebar nav{
    margin:0!important;
    display:flex!important;
    flex:1 1 auto!important;
    gap:6px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
  }

  .sidebar nav::-webkit-scrollbar{display:none!important}

  .sidebar nav a{
    white-space:nowrap!important;
    padding:10px 12px!important;
  }

  .sidebar-bottom{
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }

  .sidebar-bottom small{
    display:none!important;
  }

  .dashboard-main{
    padding:24px 20px 52px!important;
  }

  .server-grid,
  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .account-details{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:620px){
  html{
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
  }

  body.auth-page,
  body.signup-page{
    position:static!important;
    width:100%!important;
    height:auto!important;
    min-height:100svh!important;
    max-height:none!important;
    margin:0!important;
    padding:18px 14px 48px!important;
    overflow:visible!important;
    display:block!important;
    touch-action:pan-y!important;
  }

  /* Login: same desktop identity, simply scaled */
  body.auth-page .auth-shell{
    width:100%!important;
    max-width:430px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    transform:none!important;
  }

  body.auth-page .brand-panel{
    display:flex!important;
    padding:22px 18px!important;
    border-radius:22px!important;
  }

  body.auth-page .hero-icon{
    width:56px!important;
    height:56px!important;
  }

  body.auth-page .brand-panel .eyebrow{
    margin:14px 0 8px!important;
    font-size:10px!important;
  }

  body.auth-page .brand-panel h1{
    font-size:38px!important;
    line-height:.96!important;
  }

  body.auth-page .hero-copy{
    display:block!important;
    margin:14px 0!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  body.auth-page .feature-row{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }

  body.auth-page .feature-row div{
    padding:10px 8px!important;
    border-radius:12px!important;
  }

  body.auth-page .feature-row b{
    font-size:11px!important;
  }

  body.auth-page .feature-row span{
    font-size:8px!important;
    line-height:1.25!important;
  }

  body.auth-page .auth-card{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:26px 22px!important;
    border-radius:24px!important;
    transform:none!important;
  }

  body.auth-page .auth-card .eyebrow{
    margin:18px 0 8px!important;
    font-size:10px!important;
  }

  body.auth-page .auth-card h2{
    margin:0 0 10px!important;
    font-size:28px!important;
    line-height:1.08!important;
  }

  body.auth-page .auth-card>.muted{
    font-size:12px!important;
    line-height:1.55!important;
  }

  body.auth-page .notice{
    margin:16px 0!important;
    padding:13px!important;
  }

  body.auth-page .notice p{
    font-size:11px!important;
    line-height:1.5!important;
  }

  body.auth-page .auth-card footer{
    margin-top:18px!important;
    font-size:10px!important;
  }

  body.auth-page .oauth-area{
    margin-top:22px!important;
  }

  /* Profile: same card/form language as desktop */
  body.signup-page .compact-signup{
    position:static!important;
    width:100%!important;
    max-width:430px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 auto!important;
    padding:24px 20px 20px!important;
    border-radius:24px!important;
    transform:none!important;
    overflow:hidden!important;
  }

  body.signup-page .signup-header{
    min-height:auto!important;
    padding:0 0 16px!important;
    gap:12px!important;
  }

  body.signup-page .signup-icon{
    width:42px!important;
    height:42px!important;
  }

  body.signup-page .signup-brand-copy strong{
    font-size:12px!important;
  }

  body.signup-page .signup-brand-copy span{
    display:block!important;
    font-size:8px!important;
  }

  body.signup-page .signup-intro{
    padding:18px 0 2px!important;
  }

  body.signup-page .signup-intro h1{
    margin:0 0 8px!important;
    font-size:27px!important;
    line-height:1.08!important;
    white-space:normal!important;
  }

  body.signup-page .signup-intro p{
    display:block!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.5!important;
  }

  body.signup-page .compact-form{
    gap:13px!important;
    margin-top:18px!important;
  }

  body.signup-page .form-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  body.signup-page .compact-form label{
    gap:7px!important;
    font-size:12px!important;
  }

  body.signup-page .form-grid>label>span{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  body.signup-page .compact-form input,
  body.signup-page .compact-form select{
    height:auto!important;
    min-height:46px!important;
    padding:12px 13px!important;
    border-radius:12px!important;
    font-size:16px!important;
  }

  body.signup-page .compact-terms{
    padding:11px 12px!important;
    grid-template-columns:18px 1fr!important;
    gap:9px!important;
    font-size:11px!important;
    line-height:1.4!important;
  }

  body.signup-page .compact-terms input{
    width:16px!important;
    height:16px!important;
  }

  body.signup-page .signup-actions{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  body.signup-page .signup-submit{
    min-height:46px!important;
    padding:12px 16px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }

  body.signup-page .signup-actions .status-text{
    min-height:14px!important;
    font-size:10px!important;
  }

  body.signup-page .compact-footer{
    display:block!important;
    margin-top:18px!important;
    padding-top:14px!important;
    font-size:10px!important;
  }

  /* Dashboard: same cards/navigation, compact—not a separate mobile UI */
  .dashboard-page{
    overflow-x:hidden!important;
  }

  .sidebar{
    padding:12px 12px!important;
    gap:10px!important;
  }

  .sidebar .brand-inline{
    flex:0 0 auto!important;
  }

  .sidebar .brand-inline span{
    display:none!important;
  }

  .sidebar .small-icon{
    width:36px!important;
    height:36px!important;
  }

  .sidebar nav{
    display:flex!important;
    min-width:0!important;
  }

  .sidebar nav a{
    font-size:11px!important;
    padding:9px 10px!important;
  }

  .sidebar-bottom{
    display:flex!important;
    flex:0 0 auto!important;
  }

  .sidebar-bottom .lang-switch{
    display:none!important;
  }

  .sidebar-bottom .ghost-btn{
    display:inline-flex!important;
    padding:9px 10px!important;
    font-size:10px!important;
  }

  .dashboard-main{
    padding:18px 14px 42px!important;
  }

  .topbar{
    align-items:center!important;
    gap:12px!important;
    margin-bottom:18px!important;
  }

  .topbar .eyebrow{
    font-size:9px!important;
  }

  .topbar h1{
    font-size:21px!important;
    line-height:1.1!important;
  }

  .user-chip{
    padding:6px 8px!important;
    border-radius:13px!important;
  }

  .user-chip>div:last-child{
    display:block!important;
    max-width:110px!important;
  }

  .user-chip b{
    max-width:110px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
  }

  .user-chip span{
    display:none!important;
  }

  .avatar{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
  }

  .hero-card{
    padding:22px!important;
    border-radius:22px!important;
    align-items:center!important;
    gap:14px!important;
  }

  .hero-card h2{
    font-size:28px!important;
    line-height:1.05!important;
  }

  .hero-card p{
    font-size:12px!important;
    line-height:1.55!important;
  }

  .hero-actions{
    flex-direction:row!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }

  .hero-actions button{
    flex:1 1 145px!important;
  }

  .speed-orb{
    display:grid!important;
    flex:0 0 92px!important;
    width:92px!important;
    height:92px!important;
    border-width:10px!important;
  }

  .speed-orb strong{
    font-size:24px!important;
  }

  .speed-orb span{
    font-size:7px!important;
  }

  .stats-grid,
  .server-grid,
  .account-details{
    grid-template-columns:1fr!important;
  }

  .stat-card,
  .server-card{
    border-radius:18px!important;
  }

  .section-heading{
    display:flex!important;
    align-items:flex-end!important;
    gap:12px!important;
  }

  .section-heading .muted{
    display:block!important;
    margin:0!important;
    max-width:52%!important;
    text-align:right!important;
    font-size:9px!important;
    line-height:1.35!important;
  }

  .account-panel{
    padding:20px!important;
  }
}

@media(max-width:380px){
  body.auth-page .brand-panel h1{
    font-size:34px!important;
  }

  body.auth-page .feature-row{
    grid-template-columns:1fr!important;
  }

  body.auth-page .feature-row div{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }

  .hero-card{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .speed-orb{
    justify-self:end!important;
  }

  .section-heading{
    display:block!important;
  }

  .section-heading .muted{
    max-width:none!important;
    margin-top:8px!important;
    text-align:left!important;
  }
}


/* Keep language switch visible and consistent on mobile dashboard */
@media(max-width:620px){
  .sidebar-bottom .lang-switch{
    display:inline-flex!important;
    flex:0 0 auto!important;
    transform:scale(.92);
    transform-origin:center;
  }

  .sidebar-bottom{
    gap:6px!important;
  }

  .sidebar-bottom .ghost-btn{
    display:inline-flex!important;
  }
}

@media(max-width:430px){
  .sidebar{
    flex-wrap:wrap!important;
  }

  .sidebar nav{
    order:3!important;
    flex:1 0 100%!important;
    width:100%!important;
  }

  .sidebar-bottom{
    margin-left:auto!important;
  }
}


/* Live backend node status */
.node-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
}
.node-state:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#6f7888;
  box-shadow:0 0 0 3px rgba(111,120,136,.08);
}
.node-state.is-online{
  color:#67efb6;
}
.node-state.is-online:before{
  background:#29d391;
  box-shadow:0 0 0 3px rgba(41,211,145,.12),0 0 12px rgba(41,211,145,.35);
}
.node-state.is-offline{
  color:#ff8a82;
}
.node-state.is-offline:before{
  background:#ff5b52;
  box-shadow:0 0 0 3px rgba(255,91,82,.12);
}


/* Verification history + live timestamp */
.section-side-note{
  display:grid;
  justify-items:end;
  gap:5px;
  text-align:right;
}
.history-list{
  border-radius:20px;
  overflow:hidden;
  box-shadow:none;
}
.history-item{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:15px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.history-item:last-child{border-bottom:0}
.history-status{
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(111,120,136,.08);
}
.history-status span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6f7888;
}
.history-status.is-ready span{
  background:#29d391;
  box-shadow:0 0 12px rgba(41,211,145,.45);
}
.history-status.is-failed span{
  background:#ff5b52;
  box-shadow:0 0 12px rgba(255,91,82,.3);
}
.history-copy strong,.history-copy small,
.history-meta b,.history-meta span{
  display:block;
}
.history-copy strong{font-size:13px}
.history-copy small{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}
.history-meta{
  text-align:right;
}
.history-meta b{font-size:11px}
.history-meta span{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}
.history-empty{
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
@media(max-width:620px){
  .section-side-note{
    justify-items:end!important;
    max-width:52%!important;
  }
  .section-side-note .muted{
    max-width:none!important;
    text-align:right!important;
  }
  .history-item{
    grid-template-columns:22px minmax(0,1fr) auto;
    gap:9px;
    padding:13px 12px;
  }
  .history-meta span{font-size:8px}
}


/* Editable account profile */
.account-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.account-edit-btn{
  flex:0 0 auto;
}
.profile-editor[hidden]{display:none!important}
.profile-editor{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.07);
}
.profile-editor-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.profile-editor-form label{
  display:grid;
  gap:7px;
  color:#dfe5ef;
  font-size:12px;
  font-weight:700;
}
.profile-editor-form input,
.profile-editor-form select{
  width:100%;
  min-height:44px;
  padding:12px 13px;
  border-radius:11px;
  border:1px solid var(--line);
  background:#0b1019;
  color:var(--text);
  outline:none;
}
.profile-editor-form input:focus,
.profile-editor-form select:focus{
  border-color:#ff665d;
  box-shadow:0 0 0 3px rgba(255,59,48,.08);
}
.profile-editor-actions{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.profile-editor-actions .status-text{
  margin:0;
  min-height:0;
}
@media(max-width:620px){
  .account-panel-head{
    align-items:flex-start;
  }
  .account-edit-btn{
    padding:10px 12px!important;
    font-size:10px!important;
  }
  .profile-editor-form{
    grid-template-columns:1fr;
  }
  .profile-editor-actions{
    grid-column:1;
  }
  .profile-editor-actions button{
    flex:1 1 120px;
  }
  .profile-editor-actions .status-text{
    flex:1 0 100%;
  }
}


/* Multi-page dashboard */
.dashboard-brand-link{
  color:inherit;
  text-decoration:none;
}
.link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.quick-page-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}
.quick-page-card{
  display:grid;
  gap:8px;
  padding:22px;
  border-radius:20px;
  color:var(--text);
  text-decoration:none;
  box-shadow:none;
  transition:transform .18s ease,border-color .18s ease;
}
.quick-page-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,107,53,.28);
}
.quick-page-card>span{
  color:#ff796f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}
.quick-page-card strong{
  font-size:18px;
}
.quick-page-card small{
  color:var(--muted);
  line-height:1.45;
}
.page-section-first{
  margin-top:0;
}
.page-toolbar{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin:0 0 16px;
}
@media(max-width:900px){
  .quick-page-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  .page-toolbar{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .quick-page-card{
    padding:18px;
  }
}


/* FINAL universal mobile dashboard header — identical on every page */
@media(max-width:620px){
  .dashboard-page .sidebar{
    position:sticky!important;
    top:0!important;
    z-index:50!important;
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    grid-template-areas:
      "brand spacer actions"
      "nav nav nav"!important;
    align-items:center!important;
    justify-content:initial!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:12px 14px 14px!important;
    column-gap:10px!important;
    row-gap:12px!important;
    flex-direction:initial!important;
    flex-wrap:initial!important;
    border-right:0!important;
    border-bottom:1px solid #18202d!important;
    background:rgba(8,12,19,.97)!important;
    backdrop-filter:blur(18px)!important;
  }

  .dashboard-page .sidebar>.dashboard-brand-link,
  .dashboard-page .sidebar>.brand-inline{
    grid-area:brand!important;
    min-width:0!important;
    margin:0!important;
  }

  .dashboard-page .sidebar .small-icon{
    width:36px!important;
    height:36px!important;
  }

  .dashboard-page .sidebar>.brand-inline span,
  .dashboard-page .sidebar>.dashboard-brand-link span{
    display:none!important;
  }

  .dashboard-page .sidebar nav{
    grid-area:nav!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:5px!important;
    overflow:visible!important;
    order:initial!important;
    flex:none!important;
  }

  .dashboard-page .sidebar nav a{
    min-width:0!important;
    padding:9px 3px!important;
    border-radius:12px!important;
    text-align:center!important;
    font-size:10px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .dashboard-page .sidebar-bottom{
    grid-area:actions!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    gap:6px!important;
    order:initial!important;
    flex:none!important;
  }

  .dashboard-page .sidebar-bottom .lang-switch{
    display:inline-flex!important;
    transform:none!important;
    padding:3px!important;
  }

  .dashboard-page .sidebar-bottom .lang-btn{
    padding:6px 8px!important;
    font-size:10px!important;
  }

  .dashboard-page .sidebar-bottom .ghost-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:9px 10px!important;
    font-size:9px!important;
    white-space:nowrap!important;
  }

  .dashboard-page .sidebar-bottom small{
    display:none!important;
  }

  .dashboard-page .dashboard-main{
    padding:18px 14px 42px!important;
  }

  .dashboard-page .topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 18px!important;
    min-height:0!important;
  }

  .dashboard-page .topbar>div:first-child{
    display:block!important;
  }

  .dashboard-page .topbar .eyebrow{
    margin:0 0 7px!important;
    font-size:9px!important;
  }

  .dashboard-page .topbar h1{
    margin:0!important;
    font-size:21px!important;
    line-height:1.1!important;
  }

  .dashboard-page .user-chip{
    flex:0 0 auto!important;
  }
}

@media(max-width:390px){
  .dashboard-page .sidebar{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .dashboard-page .sidebar nav a{
    font-size:9px!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }

  .dashboard-page .sidebar-bottom .lang-btn{
    padding:6px!important;
  }

  .dashboard-page .sidebar-bottom .ghost-btn{
    padding:8px!important;
    font-size:8px!important;
  }
}


/* Quick navigation cards */
.tools-quick-grid{
  gap:16px;
  margin-top:30px;
}
.tools-quick-card{
  position:relative;
  min-height:190px;
  padding:22px;
  overflow:hidden;
  isolation:isolate;
  border-color:rgba(255,255,255,.075);
  background:
    linear-gradient(145deg,rgba(18,24,36,.96),rgba(8,12,19,.93));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 18px 44px rgba(0,0,0,.16);
}
.tools-quick-card:before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  top:-80px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,91,72,.16),rgba(255,91,72,0) 68%);
  pointer-events:none;
  z-index:-1;
}
.tools-quick-card:after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid transparent;
  pointer-events:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.tools-quick-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,99,80,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 24px 60px rgba(0,0,0,.24);
}
.tools-quick-card:hover:after{
  border-color:rgba(255,99,80,.13);
  box-shadow:inset 0 0 28px rgba(255,85,65,.035);
}
.quick-card-top{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 34px;
  align-items:center;
  gap:12px;
}
.quick-card-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:#ff7267;
  background:linear-gradient(145deg,rgba(255,91,72,.11),rgba(255,91,72,.035));
  border:1px solid rgba(255,106,86,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.quick-card-icon svg{
  width:21px;
  height:21px;
  fill:currentColor;
}
.quick-card-kicker{
  color:#ff796f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}
.quick-card-arrow{
  width:34px;
  height:34px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:#aab4c4;
  background:#101722;
  border:1px solid #222d3d;
  font-size:17px;
  transition:.2s ease;
}
.tools-quick-card:hover .quick-card-arrow{
  color:#fff;
  background:linear-gradient(135deg,#ff4438,#ff6b35);
  border-color:transparent;
  transform:translate(2px,-2px);
}
.quick-card-body{
  display:grid;
  gap:7px;
  margin-top:22px;
}
.quick-card-body strong{
  font-size:21px;
  letter-spacing:-.02em;
}
.quick-card-body small{
  max-width:92%;
  min-height:38px;
  color:#818ca0;
  font-size:11px;
  line-height:1.55;
}
.quick-card-footer{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#7f8999;
  font-size:9px;
  font-weight:700;
}
.quick-status-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#6e7787;
  box-shadow:0 0 0 3px rgba(110,119,135,.07);
}
.quick-status-dot.is-live{
  background:#29d391;
  box-shadow:0 0 0 3px rgba(41,211,145,.08),0 0 12px rgba(41,211,145,.25);
}
@media(max-width:900px){
  .tools-quick-grid{
    grid-template-columns:1fr!important;
  }
  .tools-quick-card{
    min-height:165px;
  }
}
@media(max-width:620px){
  .tools-quick-grid{
    gap:12px;
    margin-top:20px;
  }
  .tools-quick-card{
    min-height:0;
    padding:18px;
    border-radius:18px;
  }
  .quick-card-top{
    grid-template-columns:40px minmax(0,1fr) 32px;
    gap:10px;
  }
  .quick-card-icon{
    width:40px;
    height:40px;
    border-radius:12px;
  }
  .quick-card-body{
    margin-top:16px;
  }
  .quick-card-body strong{
    font-size:18px;
  }
  .quick-card-body small{
    min-height:0;
  }
  .quick-card-footer{
    margin-top:15px;
  }
}


/* Signup back button */
.signup-back-row{
  display:flex;
  align-items:center;
  margin-top:14px;
}
.signup-back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:8px 12px;
  border:1px solid #273244;
  border-radius:11px;
  background:#0b1019;
  color:#aeb8c8;
  font-weight:800;
  font-size:11px;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease;
}
.signup-back-btn:hover{
  transform:translateX(-2px);
  color:#fff;
  border-color:rgba(255,101,91,.38);
  background:#111824;
}
.signup-back-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(255,59,48,.12);
}
.signup-back-icon{
  font-size:16px;
  line-height:1;
}
@media(max-width:620px){
  body.signup-page .signup-back-row{
    margin-top:11px!important;
  }
  body.signup-page .signup-back-btn{
    min-height:38px!important;
    padding:8px 11px!important;
    border-radius:10px!important;
    font-size:10px!important;
  }
}


/* Sensitivity training presets */
.sensitivity-panel{
  margin-top:28px;
  padding:24px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 90% 0%,rgba(255,76,60,.11),transparent 32%),
    linear-gradient(145deg,rgba(17,23,34,.97),rgba(8,12,19,.95));
}
.sensitivity-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.sensitivity-head h2{
  margin:4px 0 7px;
  font-size:24px;
}
.sensitivity-copy{
  margin:0;
  max-width:680px;
  line-height:1.55;
}
.training-badge{
  flex:0 0 auto;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid rgba(255,105,90,.18);
  background:rgba(255,78,62,.08);
  color:#ff796f;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.sensitivity-presets{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:20px;
}
.sens-preset-btn{
  min-height:40px;
  padding:10px 14px;
  border:1px solid #263043;
  border-radius:12px;
  background:#0b111b;
  color:#aeb7c8;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.sens-preset-btn:hover{
  color:#fff;
  border-color:rgba(255,103,87,.35);
}
.sens-preset-btn.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#ff4438,#ff6b35);
  box-shadow:0 8px 24px rgba(255,69,52,.18);
}
.sensitivity-values{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.sensitivity-values>div{
  display:grid;
  gap:7px;
  padding:16px 14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:15px;
  background:rgba(6,10,16,.52);
}
.sensitivity-values span{
  color:#7f899b;
  font-size:9px;
  font-weight:700;
}
.sensitivity-values b{
  font-size:22px;
  letter-spacing:-.02em;
}
.sensitivity-note{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.055);
  color:#7f8999;
  font-size:10px;
  line-height:1.5;
}
@media(max-width:900px){
  .sensitivity-values{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:620px){
  .sensitivity-panel{
    margin-top:20px;
    padding:18px;
    border-radius:18px;
  }
  .sensitivity-head h2{
    font-size:20px;
  }
  .training-badge{
    padding:7px 9px;
    font-size:8px;
  }
  .sensitivity-presets{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-top:16px;
  }
  .sens-preset-btn{
    min-width:0;
    padding:9px 5px;
    font-size:9px;
  }
  .sensitivity-values{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
  }
  .sensitivity-values>div{
    padding:13px 12px;
  }
  .sensitivity-values b{
    font-size:19px;
  }
}


/* Mobile dashboard viewport + content polish */
html,
body.dashboard-page{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.dashboard-grid,
.dashboard-main,
.topbar,
.stats-grid,
.section-block,
.section-heading,
.history-list,
.history-item,
.account-panel,
.account-panel-head,
.account-details,
.profile-editor,
.profile-editor-form{
  min-width:0;
}

.dashboard-main > *{
  max-width:100%;
}

.user-chip,
.user-chip > div,
.history-copy,
.history-meta,
.account-panel-head > div{
  min-width:0;
}

@media(max-width:620px){
  .dashboard-page .dashboard-grid{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  .dashboard-page .dashboard-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .dashboard-page .topbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    gap:10px!important;
  }

  .dashboard-page .topbar > div:first-child{
    min-width:0!important;
  }

  .dashboard-page .topbar h1{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  .dashboard-page .user-chip{
    width:auto!important;
    max-width:145px!important;
    min-width:0!important;
    overflow:hidden!important;
    padding:7px 9px!important;
    gap:8px!important;
  }

  .dashboard-page .user-chip > div:last-child{
    min-width:0!important;
    max-width:90px!important;
    overflow:hidden!important;
  }

  .dashboard-page .user-chip b{
    display:block!important;
    max-width:90px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .dashboard-page .user-chip span{
    display:none!important;
  }

  .dashboard-page .stats-grid{
    width:100%!important;
    min-width:0!important;
  }

  .dashboard-page .stat-card{
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  .dashboard-page .stat-card b,
  .dashboard-page .stat-card small{
    overflow-wrap:anywhere!important;
  }

  body[data-page="history"] .section-block,
  body[data-page="account"] .section-block{
    width:100%!important;
    min-width:0!important;
  }

  body[data-page="history"] .history-list{
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    border-radius:18px!important;
  }

  body[data-page="history"] .history-item{
    width:100%!important;
    min-width:0!important;
    grid-template-columns:22px minmax(0,1fr) minmax(72px,92px)!important;
    gap:10px!important;
    padding:14px 14px!important;
  }

  body[data-page="history"] .history-copy{
    min-width:0!important;
  }

  body[data-page="history"] .history-copy strong,
  body[data-page="history"] .history-copy small{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  body[data-page="history"] .history-meta{
    width:100%!important;
    min-width:0!important;
    max-width:92px!important;
    overflow:hidden!important;
    text-align:right!important;
  }

  body[data-page="history"] .history-meta b{
    font-size:10px!important;
  }

  body[data-page="history"] .history-meta span{
    display:block!important;
    width:100%!important;
    font-size:8px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  body[data-page="account"] .account-panel{
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    padding:18px!important;
    border-radius:18px!important;
  }

  body[data-page="account"] .account-panel-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    width:100%!important;
    gap:10px!important;
  }

  body[data-page="account"] .account-panel-head h2{
    font-size:22px!important;
    line-height:1.1!important;
  }

  body[data-page="account"] .account-edit-btn{
    max-width:130px!important;
    min-width:0!important;
    padding:10px 12px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }

  body[data-page="account"] .account-details{
    width:100%!important;
    min-width:0!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  body[data-page="account"] .account-details > div{
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  body[data-page="account"] .account-details b{
    overflow-wrap:anywhere!important;
  }

  body[data-page="account"] .profile-editor,
  body[data-page="account"] .profile-editor-form,
  body[data-page="account"] .profile-editor-form label,
  body[data-page="account"] .profile-editor-form input,
  body[data-page="account"] .profile-editor-form select{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
}

@media(max-width:420px){
  .dashboard-page .topbar{
    grid-template-columns:minmax(0,1fr) 42px!important;
  }

  .dashboard-page .user-chip{
    width:42px!important;
    height:42px!important;
    max-width:42px!important;
    padding:3px!important;
    border-radius:13px!important;
    justify-content:center!important;
  }

  .dashboard-page .user-chip > div:last-child{
    display:none!important;
  }

  .dashboard-page .avatar{
    width:34px!important;
    height:34px!important;
  }

  body[data-page="history"] .history-item{
    grid-template-columns:22px minmax(0,1fr)!important;
    grid-template-areas:
      "status copy"
      ". meta"!important;
    align-items:center!important;
  }

  body[data-page="history"] .history-status{
    grid-area:status!important;
  }

  body[data-page="history"] .history-copy{
    grid-area:copy!important;
  }

  body[data-page="history"] .history-meta{
    grid-area:meta!important;
    max-width:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    text-align:left!important;
    padding-top:3px!important;
  }

  body[data-page="history"] .history-meta span{
    width:auto!important;
    text-align:right!important;
  }

  body[data-page="account"] .account-panel-head{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }

  body[data-page="account"] .account-edit-btn{
    width:100%!important;
    max-width:none!important;
  }
}


/* Aim & Network Boost tools */
.tools-panel{
  position:relative;
  overflow:hidden;
  margin-top:28px;
  padding:26px;
  border-radius:24px;
  border:1px solid rgba(255,181,71,.14);
  background:
    radial-gradient(circle at 100% 0%,rgba(255,173,66,.12),transparent 34%),
    radial-gradient(circle at 0% 100%,rgba(255,73,57,.08),transparent 36%),
    linear-gradient(145deg,rgba(18,22,32,.98),rgba(8,12,19,.97));
}
.tools-panel:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 0 44%,rgba(255,255,255,.02) 49%,transparent 54%);
}
.tools-panel-head{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.tools-title-row{
  display:flex;
  align-items:center;
  gap:9px;
}
.tools-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:8px;
  color:#ffd06a;
  background:rgba(255,196,75,.08);
  border:1px solid rgba(255,196,75,.14);
  box-shadow:0 0 22px rgba(255,166,54,.08);
}
.tools-panel h2{
  margin:7px 0 8px;
  font-size:27px;
  letter-spacing:-.03em;
}
.tools-copy{
  max-width:720px;
  margin:0;
  line-height:1.55;
}
.tools-badge{
  padding:9px 12px;
  border-radius:999px;
  color:#15100a;
  background:linear-gradient(135deg,#ffd56a,#ff9c43);
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  box-shadow:0 8px 26px rgba(255,163,62,.18);
}
.tools-feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin-top:22px;
}
.tools-feature{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:82px;
  padding:15px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(6,10,16,.46);
}
.tools-feature-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#ffb758;
  background:rgba(255,174,70,.07);
  border:1px solid rgba(255,174,70,.11);
  font-size:18px;
}
.tools-feature b,
.tools-feature small{
  display:block;
}
.tools-feature b{
  font-size:12px;
}
.tools-feature small{
  margin-top:4px;
  color:#808a9b;
  font-size:9px;
  line-height:1.45;
}
.feature-state{
  padding:6px 8px;
  border-radius:999px;
  color:#7f8998;
  background:#0e141e;
  border:1px solid #202a39;
  font-size:8px;
  font-weight:800;
  white-space:nowrap;
}
.feature-state.is-ready{
  color:#63e8b0;
  border-color:rgba(41,211,145,.13);
  background:rgba(41,211,145,.055);
}
.tools-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.tools-primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:11px 16px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,#ffb247,#ff6b35);
  color:#15100a;
  font:inherit;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(255,125,45,.16);
}
.tools-message{
  min-height:18px;
  margin:14px 0 0;
  color:#818b9c;
  font-size:9px;
  line-height:1.5;
}
@media(max-width:760px){
  .tools-feature-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  .tools-panel{
    margin-top:20px;
    padding:18px;
    border-radius:19px;
  }
  .tools-panel h2{
    font-size:21px;
  }
  .tools-badge{
    padding:7px 9px;
    font-size:8px;
  }
  .tools-feature{
    grid-template-columns:38px minmax(0,1fr) auto;
    gap:9px;
    min-height:72px;
    padding:12px;
  }
  .tools-feature-icon{
    width:38px;
    height:38px;
    border-radius:11px;
  }
  .feature-state{
    font-size:7px;
    padding:5px 6px;
  }
  .tools-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .tools-actions button{
    width:100%;
  }
}


/* Backend diagnostics */
.diagnostics-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin-top:16px;
}
.diagnostics-grid[hidden],
.diagnostics-scope[hidden]{
  display:none!important;
}
.diagnostics-grid>div{
  display:grid;
  gap:6px;
  padding:13px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(6,10,16,.5);
}
.diagnostics-grid span{
  color:#7f8999;
  font-size:8px;
  font-weight:700;
}
.diagnostics-grid b{
  font-size:17px;
}
.diagnostics-scope{
  margin-top:10px;
  color:#8791a1;
}
@media(max-width:760px){
  .diagnostics-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .diagnostics-grid>div:last-child{
    grid-column:1/-1;
  }
}


/* tools diagnostics history */
.diagnostics-history-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:16px;
}
.diagnostics-history-summary>div{
  display:grid;
  gap:5px;
  padding:12px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(6,10,16,.42);
}
.diagnostics-history-summary span{
  color:#7f8999;
  font-size:8px;
}
.diagnostics-history-summary b{
  font-size:15px;
}
.diagnostics-history-block{
  margin-top:14px;
  overflow:hidden;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(6,10,16,.34);
}
.diagnostics-history-head{
  padding:11px 13px;
  border-bottom:1px solid rgba(255,255,255,.05);
  color:#9ca6b7;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.diagnostics-history-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border-bottom:1px solid rgba(255,255,255,.045);
}
.diagnostics-history-item:last-child{border-bottom:0}
.diagnostics-history-item strong,
.diagnostics-history-item small{
  display:block;
}
.diagnostics-history-item strong{font-size:11px}
.diagnostics-history-item small{
  margin-top:3px;
  color:#768194;
  font-size:8px;
}
.diagnostics-history-metrics{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  color:#8792a3;
  font-size:8px;
  white-space:nowrap;
}
.diagnostics-history-metrics b{
  color:#ffbd63;
  font-size:10px;
}
.diagnostics-history-empty{
  padding:18px 13px;
  color:#788395;
  font-size:9px;
  text-align:center;
}
@media(max-width:620px){
  .diagnostics-history-summary{
    grid-template-columns:1fr;
  }
  .diagnostics-history-item{
    align-items:flex-start;
    flex-direction:column;
  }
  .diagnostics-history-metrics{
    width:100%;
    justify-content:space-between;
    white-space:normal;
  }
}


/* Mobile readability upgrade */
@media(max-width:620px){
  .dashboard-page .sidebar{
    padding:14px 16px 15px!important;
    row-gap:14px!important;
  }

  .dashboard-page .sidebar .small-icon{
    width:42px!important;
    height:42px!important;
  }

  .dashboard-page .sidebar nav{
    gap:6px!important;
  }

  .dashboard-page .sidebar nav a{
    height:50px!important;
    padding:0 4px!important;
    border-radius:15px!important;
    font-size:clamp(10.5px,2.85vw,12px)!important;
    font-weight:750!important;
    line-height:1.05!important;
    letter-spacing:-.01em!important;
  }

  .dashboard-page .sidebar-bottom{
    gap:7px!important;
  }

  .dashboard-page .sidebar-bottom .lang-switch{
    padding:4px!important;
  }

  .dashboard-page .sidebar-bottom .lang-btn{
    min-width:38px!important;
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:12px!important;
    font-weight:800!important;
  }

  .dashboard-page .sidebar-bottom .ghost-btn{
    min-height:42px!important;
    padding:10px 13px!important;
    border-radius:14px!important;
    font-size:11px!important;
    font-weight:750!important;
  }

  .dashboard-page .user-chip{
    min-height:52px!important;
    padding:8px 11px!important;
    gap:9px!important;
  }

  .dashboard-page .user-chip b{
    font-size:12.5px!important;
  }

  .dashboard-page .avatar{
    width:38px!important;
    height:38px!important;
  }
}

@media(max-width:390px){
  .dashboard-page .sidebar{
    padding-left:11px!important;
    padding-right:11px!important;
  }

  .dashboard-page .sidebar nav a{
    font-size:10.5px!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }

  .dashboard-page .sidebar-bottom .lang-btn{
    min-width:34px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }

  .dashboard-page .sidebar-bottom .ghost-btn{
    padding-left:10px!important;
    padding-right:10px!important;
    font-size:10px!important;
  }
}


/* Smart route advisor */
.route-advisor-card{
  margin-top:18px;
  padding:17px;
  border-radius:17px;
  border:1px solid rgba(255,183,88,.16);
  background:
    radial-gradient(circle at 100% 0%,rgba(255,180,76,.10),transparent 36%),
    rgba(7,11,18,.56);
}
.route-advisor-card[hidden]{display:none!important}
.route-advisor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.route-advisor-head strong,
.route-advisor-head small{
  display:block;
}
.route-advisor-kicker{
  display:block;
  margin-bottom:6px;
  color:#ffbd63;
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
}
.route-advisor-head strong{
  font-size:17px;
}
.route-advisor-head small{
  margin-top:3px;
  color:#788395;
  font-size:9px;
}
.route-advisor-score{
  flex:0 0 auto;
  min-width:64px;
  padding:10px 12px;
  border-radius:13px;
  text-align:center;
  color:#17110a;
  background:linear-gradient(135deg,#ffd56a,#ff9b43);
  font-size:14px;
  font-weight:900;
  box-shadow:0 10px 28px rgba(255,160,60,.14);
}
.route-advisor-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}
.route-advisor-metrics>div{
  display:grid;
  gap:5px;
  padding:11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(4,8,14,.44);
}
.route-advisor-metrics span{
  color:#788395;
  font-size:8px;
}
.route-advisor-metrics b{
  font-size:13px;
}
.route-advisor-note{
  margin:12px 0 0;
  color:#717d8f;
  font-size:8px;
  line-height:1.45;
}
@media(max-width:620px){
  .route-advisor-card{
    padding:14px;
  }
  .route-advisor-metrics{
    grid-template-columns:1fr;
  }
}


/* Owner admin center link */
.admin-center-link{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding:14px 15px;
  border:1px solid rgba(255,183,88,.14);
  border-radius:15px;
  color:var(--text);
  text-decoration:none;
  background:
    radial-gradient(circle at 0 0,rgba(255,185,81,.08),transparent 38%),
    rgba(8,12,18,.62);
}
.admin-center-link[hidden]{display:none!important}
.admin-center-link:hover{
  border-color:rgba(255,183,88,.28);
}
.admin-center-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#ffbd63;
  border:1px solid rgba(255,183,88,.14);
  background:rgba(255,183,88,.06);
}
.admin-center-link b,
.admin-center-link small{display:block}
.admin-center-link b{font-size:12px}
.admin-center-link small{
  margin-top:4px;
  color:#7e899a;
  font-size:9px;
}


/* Admin Center */
.admin-page,
.maintenance-page{
  min-height:100vh;
  background:#070a10;
  color:var(--text);
}
.admin-shell{
  width:min(1180px,calc(100% - 28px));
  margin:0 auto;
  padding:22px 0 48px;
}
.admin-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.admin-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.owner-badge{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,183,88,.08);
  border:1px solid rgba(255,183,88,.16);
  color:#ffbd63;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.admin-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:26px;
  border-radius:24px;
}
.admin-hero h1{margin:4px 0 8px;font-size:30px}
.admin-hero p{margin:0;color:#7f8999}
.admin-live-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:13px;
  background:#0d141d;
  border:1px solid #202a38;
  font-size:10px;
}
.admin-live-pill span{
  width:8px;height:8px;border-radius:50%;background:#29d391;
  box-shadow:0 0 13px rgba(41,211,145,.4);
}
.admin-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.admin-stat{
  padding:18px;
  border-radius:18px;
}
.admin-stat span,.admin-stat b,.admin-stat small{display:block}
.admin-stat span{color:#858fa0;font-size:9px}
.admin-stat b{margin:8px 0 5px;font-size:27px}
.admin-stat small{color:#657083;font-size:8px}
.admin-grid-two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
.admin-panel{
  margin-top:14px;
  padding:20px;
  border-radius:20px;
}
.admin-grid-two .admin-panel{margin-top:0}
.admin-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.admin-panel-head h2{margin:4px 0 0;font-size:20px}
.admin-muted{color:#7b8697;font-size:10px;line-height:1.55}
.admin-field{display:grid;gap:7px;margin-top:16px}
.admin-field span{font-size:10px;font-weight:700}
.admin-field textarea{
  width:100%;
  resize:vertical;
  padding:13px;
  border:1px solid #263043;
  border-radius:13px;
  background:#0a0f17;
  color:#fff;
  font:inherit;
  outline:none;
}
.admin-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:13px;
}
.maintenance-state{
  padding:7px 9px;
  border-radius:999px;
  background:rgba(41,211,145,.07);
  color:#63e8b0;
  font-size:8px;
  font-weight:900;
}
.maintenance-state.is-on{
  background:rgba(255,88,70,.08);
  color:#ff7a70;
}
.admin-switch{position:relative;width:50px;height:28px}
.admin-switch input{display:none}
.admin-switch span{
  position:absolute;inset:0;border-radius:999px;background:#19212e;border:1px solid #293445;cursor:pointer;
}
.admin-switch span:after{
  content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#778295;transition:.2s ease;
}
.admin-switch input:checked+span{background:rgba(255,82,65,.16);border-color:rgba(255,94,77,.35)}
.admin-switch input:checked+span:after{transform:translateX(22px);background:#ff6b5f}
.admin-quick-actions{display:grid;gap:9px;margin-top:15px}
.admin-security-note{
  display:grid;gap:4px;margin-top:16px;padding:13px;border-radius:13px;background:#0a1018;border:1px solid #1e2836;
}
.admin-security-note b{font-size:10px;color:#ffbd63}
.admin-security-note span{font-size:9px;color:#778293;line-height:1.5}
.admin-table-wrap{overflow-x:auto;margin-top:14px}
.admin-table{width:100%;border-collapse:collapse;min-width:700px}
.admin-table th,.admin-table td{
  padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.055);text-align:left;font-size:10px;
}
.admin-table th{color:#768193;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
.admin-table td b,.admin-table td small{display:block}
.admin-table td small{margin-top:3px;color:#6e798b;font-size:8px}
.admin-user-state{color:#7b8697;font-size:8px;font-weight:800}
.admin-user-state.is-active{color:#5fe5ad}
.admin-feed{display:grid;margin-top:12px}
.admin-feed-item{
  display:grid;grid-template-columns:10px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.05);
}
.admin-feed-item:last-child{border-bottom:0}
.admin-feed-dot{width:8px;height:8px;margin-top:3px;border-radius:50%;background:#29d391}
.admin-feed-dot.audit{background:#ffb758}
.admin-feed-item b,.admin-feed-item small{display:block}
.admin-feed-item b{font-size:10px}
.admin-feed-item small{margin-top:4px;color:#748092;font-size:8px}
.admin-feed-empty{padding:16px 0;color:#748092;font-size:9px}
.maintenance-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.maintenance-card{
  width:min(540px,100%);
  padding:38px 28px;
  border-radius:26px;
  text-align:center;
}
.maintenance-logo{width:76px;height:76px}
.maintenance-badge{
  display:inline-block;
  margin-top:18px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,183,88,.08);
  border:1px solid rgba(255,183,88,.15);
  color:#ffbd63;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}
.maintenance-card h1{margin:14px 0 10px;font-size:29px}
.maintenance-card p{margin:0 auto;max-width:420px;color:#8490a2;line-height:1.6;font-size:12px}
.maintenance-card small{display:block;margin-top:20px;color:#5f6a7c;font-size:8px}
.maintenance-owner-link{display:inline-block;margin-top:15px;color:#778293;font-size:8px;text-decoration:none}
.maintenance-loader{display:flex;justify-content:center;gap:7px;margin-top:22px}
.maintenance-loader span{width:7px;height:7px;border-radius:50%;background:#ff6b5f;animation:maintenancePulse 1s infinite alternate}
.maintenance-loader span:nth-child(2){animation-delay:.2s}
.maintenance-loader span:nth-child(3){animation-delay:.4s}
@keyframes maintenancePulse{to{opacity:.25;transform:translateY(-4px)}}
@media(max-width:760px){
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-grid-two{grid-template-columns:1fr}
  .admin-hero{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
  .admin-shell{width:min(100% - 20px,1180px);padding-top:12px}
  .admin-topbar{align-items:flex-start}
  .admin-topbar .brand-inline span{display:none}
  .admin-stat-grid{grid-template-columns:1fr}
  .admin-panel{padding:16px}
}


/* Admin Center PRO refresh */
.admin-page{
  background:
    radial-gradient(circle at 10% -10%,rgba(255,77,55,.08),transparent 28%),
    radial-gradient(circle at 90% 0%,rgba(255,174,70,.055),transparent 24%),
    #070a10;
}
.pro-admin-topbar{
  position:sticky;
  top:0;
  z-index:20;
  margin:-22px 0 20px;
  padding:18px 0 14px;
  background:linear-gradient(to bottom,rgba(7,10,16,.97),rgba(7,10,16,.86),transparent);
  backdrop-filter:blur(16px);
}
.admin-brand-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-section-chip{
  padding:6px 8px;
  border-radius:8px;
  border:1px solid rgba(255,183,88,.13);
  background:rgba(255,183,88,.055);
  color:#ffbd63;
  font-size:7px;
  font-weight:900;
  letter-spacing:.13em;
}
.owner-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.owner-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ffbd63;
  box-shadow:0 0 10px rgba(255,183,88,.55);
}
.admin-nav-btn{
  min-height:40px;
  border-radius:12px!important;
}
.admin-hero-pro{
  position:relative;
  overflow:hidden;
  min-height:220px;
  padding:30px;
  border:1px solid rgba(255,255,255,.065);
  background:
    linear-gradient(120deg,rgba(255,74,54,.075),transparent 38%),
    radial-gradient(circle at 88% 14%,rgba(255,186,83,.09),transparent 26%),
    rgba(12,17,25,.8);
  box-shadow:0 24px 80px rgba(0,0,0,.18);
}
.admin-hero-pro:before{
  content:"";
  position:absolute;
  right:-90px;
  top:-120px;
  width:320px;
  height:320px;
  border:1px solid rgba(255,255,255,.04);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(255,255,255,.012),0 0 0 96px rgba(255,255,255,.008);
}
.admin-hero-copy{
  position:relative;
  z-index:1;
  max-width:700px;
}
.admin-hero-kicker{
  display:flex;
  align-items:center;
  gap:9px;
}
.admin-hero-icon{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#ffbd63;
  background:rgba(255,183,88,.07);
  border:1px solid rgba(255,183,88,.12);
  font-size:10px;
}
.admin-hero-pro h1{
  margin:11px 0 9px;
  font-size:clamp(30px,4vw,46px);
  letter-spacing:-.045em;
}
.admin-hero-pro p{
  max-width:650px;
  font-size:12px;
  line-height:1.65;
}
.admin-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:22px;
  color:#738093;
  font-size:8px;
}
.admin-hero-meta span{
  display:flex;
  align-items:center;
  gap:7px;
}
.admin-meta-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#29d391;
  box-shadow:0 0 10px rgba(41,211,145,.35);
}
.admin-owner-card{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-width:310px;
  padding:14px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(7,11,17,.72);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}
.admin-owner-orb{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(145deg,#ff4c3b,#ff8844);
  font-weight:900;
  box-shadow:0 12px 28px rgba(255,75,54,.18);
}
.admin-owner-card span,
.admin-owner-card b{display:block}
.admin-owner-card>div:nth-child(2) span{
  color:#727e91;
  font-size:8px;
}
.admin-owner-card b{
  margin-top:4px;
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}
.admin-owner-lock{
  color:#ffbd63;
  font-size:16px;
}
.pro-admin-stats{
  gap:13px;
  margin-top:18px;
}
.admin-stat-pro{
  position:relative;
  overflow:hidden;
  min-height:164px;
  padding:18px;
  border-color:rgba(255,255,255,.055);
  background:linear-gradient(155deg,rgba(15,21,31,.92),rgba(8,12,19,.84));
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.admin-stat-pro:hover{
  transform:translateY(-2px);
  border-color:rgba(255,183,88,.13);
  box-shadow:0 18px 40px rgba(0,0,0,.14);
}
.admin-stat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.admin-stat-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#ffb45b;
  border:1px solid rgba(255,183,88,.09);
  background:rgba(255,183,88,.045);
}
.admin-stat-icon.live{
  color:#58dfa9;
  border-color:rgba(41,211,145,.10);
  background:rgba(41,211,145,.04);
}
.admin-stat-icon svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.admin-stat-trend{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  padding:5px 7px;
  border-radius:999px;
  font-size:7px!important;
  font-weight:900;
  letter-spacing:.08em;
}
.admin-stat-trend.neutral{
  color:#778294;
  background:#0b1018;
  border:1px solid #1d2634;
}
.admin-stat-trend.today{
  color:#ffbd63;
  background:rgba(255,183,88,.055);
  border:1px solid rgba(255,183,88,.10);
}
.admin-stat-trend.live{
  color:#5fe0aa;
  background:rgba(41,211,145,.055);
  border:1px solid rgba(41,211,145,.10);
}
.admin-stat-trend.live i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#39d898;
}
.admin-stat-label{
  margin-top:18px;
  color:#8993a3!important;
  font-size:9px!important;
  font-weight:650;
}
.admin-stat-pro b{
  margin:6px 0 4px;
  font-size:30px;
  letter-spacing:-.04em;
}
.admin-main-controls{
  margin-top:16px;
}
.admin-panel{
  border:1px solid rgba(255,255,255,.055);
  background:linear-gradient(155deg,rgba(13,19,28,.92),rgba(8,12,18,.88));
  box-shadow:0 18px 50px rgba(0,0,0,.10);
}
.pro-panel-head{
  align-items:center;
}
.admin-panel-title-wrap{
  display:flex;
  align-items:center;
  gap:11px;
}
.admin-panel-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:12px;
  color:#ffbd63;
  border:1px solid rgba(255,183,88,.10);
  background:rgba(255,183,88,.045);
  font-size:13px;
}
.admin-panel-icon.danger{
  color:#ff7062;
  border-color:rgba(255,92,73,.11);
  background:rgba(255,92,73,.045);
}
.admin-maintenance-status-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  margin-top:18px;
}
.admin-maintenance-status-row>div{
  min-width:0;
  padding:13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(6,10,16,.46);
}
.admin-control-label{
  display:block;
  margin-bottom:8px;
  color:#727e90;
  font-size:8px;
  font-weight:700;
}
.maintenance-impact b,
.maintenance-impact span{display:block}
.maintenance-impact b{font-size:9px}
.maintenance-impact span{
  margin-top:4px;
  color:#778294;
  font-size:8px;
  line-height:1.5;
}
.pro-admin-field textarea{
  min-height:122px;
  border-color:#202a38;
  background:#080d14;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.pro-admin-field textarea:focus{
  border-color:rgba(255,105,87,.35);
  box-shadow:0 0 0 3px rgba(255,74,55,.07);
}
.pro-admin-field small{
  color:#667285;
  font-size:8px;
}
.pro-admin-actions{
  justify-content:space-between;
}
.admin-save-btn{
  min-height:44px;
  padding-left:18px;
  padding-right:18px;
}
.system-health-chip,
.admin-table-chip{
  padding:6px 8px;
  border-radius:999px;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}
.system-health-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#58dfa9;
  background:rgba(41,211,145,.05);
  border:1px solid rgba(41,211,145,.10);
}
.system-health-chip i{
  width:5px;height:5px;border-radius:50%;background:#38d99a;
}
.admin-table-chip{
  color:#7b8697;
  background:#0b1018;
  border:1px solid #1c2633;
}
.pro-quick-actions{
  gap:8px;
  margin-top:18px;
}
.admin-action-tile{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  width:100%;
  padding:11px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:14px;
  background:rgba(6,10,16,.42);
  color:var(--text);
  text-decoration:none;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.admin-action-tile:hover{
  transform:translateX(2px);
  border-color:rgba(255,183,88,.15);
  background:rgba(13,18,27,.75);
}
.admin-action-tile:disabled{opacity:.55;cursor:wait}
.admin-action-tile.is-loading .admin-action-icon{animation:adminSpin .8s linear infinite}
@keyframes adminSpin{to{transform:rotate(360deg)}}
.admin-action-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#ffbd63;
  border:1px solid rgba(255,183,88,.08);
  background:rgba(255,183,88,.04);
  font-size:15px;
}
.admin-action-tile b,
.admin-action-tile small{display:block}
.admin-action-tile b{font-size:10px}
.admin-action-tile small{
  margin-top:3px;
  color:#707c8e;
  font-size:8px;
}
.pro-security-note{
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:14px;
}
.security-shield{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#5fe0aa;
  border:1px solid rgba(41,211,145,.09);
  background:rgba(41,211,145,.035);
}
.admin-users-panel{
  margin-top:16px;
}
.pro-admin-table-wrap{
  margin-top:18px;
  border:1px solid rgba(255,255,255,.045);
  border-radius:14px;
  overflow:auto;
  background:rgba(5,9,14,.35);
}
.pro-admin-table{
  min-width:760px;
}
.pro-admin-table th{
  padding:12px 14px;
  background:rgba(255,255,255,.012);
}
.pro-admin-table td{
  padding:13px 14px;
}
.admin-user-cell{
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-user-avatar{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:11px;
  background:linear-gradient(145deg,#161f2d,#0d141e);
  border:1px solid #253043;
  color:#dce4ef;
  font-size:10px;
  font-weight:900;
}
.admin-user-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid #1e2836;
  background:#0b1018;
}
.admin-user-state i{
  width:5px;height:5px;border-radius:50%;background:#5d6879;
}
.admin-user-state.is-active{
  border-color:rgba(41,211,145,.09);
  background:rgba(41,211,145,.04);
}
.admin-user-state.is-active i{background:#39d99a}
.admin-users-mobile{display:none}
.pro-admin-feed{
  margin-top:14px;
}
.pro-admin-feed .admin-feed-item{
  padding:13px 0;
}
.admin-bottom-grid{
  margin-top:16px;
}
.admin-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:24px 4px 0;
  color:#536073;
  font-size:7px;
  letter-spacing:.04em;
}
.admin-center-link-pro{
  position:relative;
  overflow:hidden;
  min-height:78px;
  padding:15px 16px;
  border-color:rgba(255,183,88,.15);
  background:
    radial-gradient(circle at 0 0,rgba(255,183,88,.09),transparent 38%),
    linear-gradient(145deg,rgba(15,20,29,.92),rgba(8,12,18,.9));
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.admin-center-link-pro:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 0 45%,rgba(255,255,255,.025) 50%,transparent 55%);
}
.admin-center-link-pro:hover{
  transform:translateY(-2px);
  border-color:rgba(255,183,88,.30);
  box-shadow:0 16px 35px rgba(0,0,0,.15);
}
.admin-center-copy{position:relative;z-index:1}
.admin-center-kicker{
  display:block;
  margin-bottom:4px;
  color:#ffbd63;
  font-size:7px;
  font-weight:900;
  letter-spacing:.13em;
}
.admin-center-arrow{
  position:relative;
  z-index:1;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#0c121b;
  border:1px solid #202a38;
  color:#ffbd63;
}
.maintenance-page-pro{
  overflow:hidden;
  background:
    radial-gradient(circle at 50% -10%,rgba(255,72,53,.12),transparent 30%),
    #070a10;
}
.maintenance-shell{
  position:relative;
  overflow:hidden;
}
.maintenance-ambient{
  position:absolute;
  border-radius:50%;
  filter:blur(5px);
  pointer-events:none;
}
.maintenance-ambient-one{
  width:420px;
  height:420px;
  left:-230px;
  top:-150px;
  background:radial-gradient(circle,rgba(255,81,59,.08),transparent 68%);
}
.maintenance-ambient-two{
  width:360px;
  height:360px;
  right:-180px;
  bottom:-130px;
  background:radial-gradient(circle,rgba(255,183,88,.06),transparent 68%);
}
.maintenance-card-pro{
  position:relative;
  z-index:2;
  width:min(620px,100%);
  padding:42px 36px 30px;
  border:1px solid rgba(255,255,255,.065);
  background:
    radial-gradient(circle at 50% 0%,rgba(255,183,88,.055),transparent 28%),
    linear-gradient(155deg,rgba(16,22,32,.94),rgba(7,11,17,.95));
  box-shadow:0 35px 100px rgba(0,0,0,.32);
}
.maintenance-brand-ring{
  width:94px;
  height:94px;
  display:grid;
  place-items:center;
  margin:0 auto;
  border-radius:29px;
  border:1px solid rgba(255,255,255,.07);
  background:#0a1018;
  box-shadow:0 0 0 9px rgba(255,255,255,.012),0 20px 45px rgba(0,0,0,.2);
}
.maintenance-card-pro .maintenance-logo{
  width:68px;
  height:68px;
}
.maintenance-status-pill{
  width:max-content;
  display:flex;
  align-items:center;
  gap:7px;
  margin:20px auto 0;
  padding:7px 10px;
  border-radius:999px;
  color:#ffbd63;
  background:rgba(255,183,88,.055);
  border:1px solid rgba(255,183,88,.11);
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
}
.maintenance-status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ffb85f;
  box-shadow:0 0 11px rgba(255,184,95,.45);
}
.maintenance-kicker{
  margin-top:20px!important;
  color:#727f91!important;
  font-size:8px!important;
  font-weight:800;
  letter-spacing:.12em;
}
.maintenance-card-pro h1{
  max-width:500px;
  margin:8px auto 10px;
  font-size:clamp(28px,5vw,40px);
  line-height:1.08;
  letter-spacing:-.045em;
}
.maintenance-public-message{
  max-width:470px!important;
  font-size:11px!important;
}
.maintenance-progress{
  height:4px;
  max-width:350px;
  margin:24px auto 0;
  overflow:hidden;
  border-radius:999px;
  background:#151d28;
}
.maintenance-progress span{
  display:block;
  width:42%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff4d3a,#ffb85f);
  animation:maintenanceScan 2s ease-in-out infinite alternate;
}
@keyframes maintenanceScan{
  from{transform:translateX(-25%)}
  to{transform:translateX(165%)}
}
.maintenance-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:24px;
}
.maintenance-info-grid>div{
  padding:12px 10px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(5,9,14,.42);
}
.maintenance-info-label{
  display:block;
  color:#657184;
  font-size:7px;
  font-weight:800;
  letter-spacing:.1em;
}
.maintenance-info-grid b{
  display:block;
  margin-top:5px;
  font-size:10px;
}
.maintenance-actions{
  display:flex;
  justify-content:center;
  gap:9px;
  margin-top:22px;
}
.maintenance-check-btn{
  min-height:43px;
}
.maintenance-owner-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:0;
  min-height:43px;
}
.maintenance-check-message{
  min-height:16px;
  margin:12px 0 0!important;
  color:#677386!important;
  font-size:8px!important;
}
.maintenance-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.05);
  color:#5d6879;
  font-size:7px;
}
.maintenance-footer span{display:flex;align-items:center;gap:5px}
.maintenance-footer b{color:#7d899a}
.maintenance-secure i{
  width:5px;height:5px;border-radius:50%;background:#39d99a;
}

@media(max-width:760px){
  .admin-owner-card{
    width:100%;
    min-width:0;
  }
  .admin-maintenance-status-row{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  .pro-admin-topbar{
    margin:-12px 0 14px;
    padding:13px 0 10px;
  }
  .admin-section-chip{display:none}
  .admin-top-actions{
    justify-content:flex-end;
    gap:6px;
  }
  .owner-badge{
    padding:6px 8px;
    font-size:7px;
  }
  .admin-nav-btn{
    min-height:36px!important;
    padding:8px 10px!important;
    font-size:9px!important;
  }
  .admin-hero-pro{
    min-height:0;
    padding:22px 18px;
    border-radius:20px;
  }
  .admin-hero-pro:before{display:none}
  .admin-hero-pro h1{font-size:30px}
  .admin-hero-pro p{font-size:10px}
  .admin-owner-card{
    grid-template-columns:38px minmax(0,1fr) auto;
    padding:11px;
  }
  .admin-owner-orb{
    width:38px;height:38px;border-radius:12px;
  }
  .pro-admin-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-stat-pro{
    min-height:148px;
    padding:14px;
  }
  .admin-stat-pro b{font-size:26px}
  .admin-stat-trend{
    padding:4px 6px;
    font-size:6px!important;
  }
  .admin-panel{
    border-radius:17px;
  }
  .admin-panel-title-wrap{gap:9px}
  .admin-panel-icon{width:34px;height:34px}
  .admin-panel-head h2{font-size:18px}
  .pro-admin-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .pro-admin-actions>*{width:100%}
  .pro-admin-table-wrap{display:none}
  .admin-users-mobile{
    display:grid;
    gap:9px;
    margin-top:14px;
  }
  .admin-mobile-user-card{
    padding:13px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.05);
    background:rgba(5,9,14,.42);
  }
  .admin-mobile-user-head{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
  }
  .admin-mobile-user-head b,
  .admin-mobile-user-head small{display:block}
  .admin-mobile-user-head b{font-size:10px}
  .admin-mobile-user-head small{
    max-width:160px;
    margin-top:3px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#697588;
    font-size:7px;
  }
  .admin-mobile-user-meta{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-top:11px;
  }
  .admin-mobile-user-meta>span{
    min-width:0;
    padding:8px;
    border-radius:10px;
    background:#090e15;
    border:1px solid #17202b;
  }
  .admin-mobile-user-meta small,
  .admin-mobile-user-meta b{display:block}
  .admin-mobile-user-meta small{
    color:#657184;
    font-size:6px;
  }
  .admin-mobile-user-meta b{
    margin-top:4px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:8px;
  }
  .admin-footer{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .maintenance-card-pro{
    padding:30px 18px 22px;
    border-radius:22px;
  }
  .maintenance-brand-ring{
    width:82px;
    height:82px;
    border-radius:25px;
  }
  .maintenance-card-pro .maintenance-logo{
    width:58px;
    height:58px;
  }
  .maintenance-info-grid{
    grid-template-columns:1fr;
  }
  .maintenance-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .maintenance-footer{
    flex-direction:column;
    align-items:center;
  }
}
@media(max-width:380px){
  .pro-admin-stats{
    grid-template-columns:1fr;
  }
  .admin-topbar .brand-inline span{display:none}
  .owner-badge{display:none}
  .admin-mobile-user-meta{
    grid-template-columns:1fr;
  }
}


/* Owner login + language controls */
.owner-login-banner{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:11px;
  margin:14px 0 16px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(255,183,88,.14);
  background:
    radial-gradient(circle at 0 0,rgba(255,183,88,.08),transparent 36%),
    rgba(8,13,20,.72);
}
.owner-login-banner[hidden]{display:none!important}
.owner-login-shield{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#ffbd63;
  border:1px solid rgba(255,183,88,.13);
  background:rgba(255,183,88,.05);
  font-size:11px;
}
.owner-login-banner b,
.owner-login-banner small{display:block}
.owner-login-banner b{font-size:10px}
.owner-login-banner small{
  margin-top:4px;
  color:#778395;
  font-size:8px;
  line-height:1.45;
}
.owner-login-mode .notice{display:none}
.owner-login-mode .auth-card{
  border-color:rgba(255,183,88,.11);
}
.maintenance-lang-row{
  display:flex;
  justify-content:flex-end;
  margin:-14px -8px 6px 0;
}
.maintenance-lang-switch,
.admin-lang-switch{
  transform:scale(.92);
  transform-origin:center;
}
.admin-lang-switch{
  margin-right:2px;
}
@media(max-width:620px){
  .maintenance-lang-row{
    margin:-10px -3px 8px 0;
  }
  .maintenance-lang-switch,
  .admin-lang-switch{
    transform:scale(.86);
  }
}


/* Admin mobile professional refinement */
.admin-stat-pro{
  isolation:isolate;
}
.admin-stat-pro:after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(180deg,rgba(255,182,88,.72),rgba(255,76,59,.15),transparent);
  opacity:.75;
}
.admin-stat-pro:nth-child(2):after{
  background:linear-gradient(180deg,rgba(61,221,161,.72),rgba(61,221,161,.08),transparent);
}
.admin-stat-pro:nth-child(3):after{
  background:linear-gradient(180deg,rgba(255,182,88,.65),rgba(255,182,88,.06),transparent);
}
.admin-stat-pro:nth-child(4):after{
  background:linear-gradient(180deg,rgba(105,147,255,.62),rgba(105,147,255,.05),transparent);
}
.admin-stat-pro:nth-child(4) .admin-stat-icon{
  color:#8eabff;
  border-color:rgba(110,149,255,.10);
  background:rgba(110,149,255,.045);
}
.admin-owner-card{
  border-color:rgba(255,255,255,.055);
  background:linear-gradient(145deg,rgba(8,13,20,.86),rgba(5,9,15,.82));
}
.admin-owner-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(110deg,transparent 0 60%,rgba(255,183,88,.025) 75%,transparent);
}
.admin-owner-orb{
  position:relative;
  z-index:1;
}
.admin-owner-lock{
  width:30px;
  height:30px;
  display:grid!important;
  place-items:center;
  border-radius:10px;
  border:1px solid rgba(255,183,88,.09);
  background:rgba(255,183,88,.035);
}
.admin-maintenance-panel{
  position:relative;
  overflow:hidden;
}
.admin-maintenance-panel:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,#ff5443,rgba(255,183,88,.7),transparent 72%);
  opacity:.8;
}

@media(max-width:620px){
  .admin-shell{
    width:calc(100% - 20px);
    padding-top:10px;
    padding-bottom:34px;
  }

  .pro-admin-topbar{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "brand owner"
      "actions actions"!important;
    gap:10px!important;
    margin:-10px -10px 14px!important;
    padding:12px 10px 11px!important;
    border-bottom:1px solid rgba(255,255,255,.055);
    background:rgba(7,10,16,.96)!important;
  }

  .admin-brand-wrap{
    grid-area:brand;
    min-width:0;
  }

  .admin-brand-wrap .brand-inline{
    min-width:0;
  }

  .admin-brand-wrap .brand-inline span{
    display:none!important;
  }

  .admin-brand-wrap .small-icon{
    width:44px!important;
    height:44px!important;
  }

  .admin-top-actions{
    grid-area:actions;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;
    width:100%!important;
    gap:7px!important;
  }

  .admin-top-actions .owner-badge{
    position:absolute;
    top:16px;
    right:10px;
    min-height:30px;
  }

  .admin-lang-switch{
    margin:0!important;
    transform:none!important;
    justify-self:start;
  }

  .admin-lang-switch .lang-btn{
    min-width:40px!important;
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:11px!important;
  }

  .admin-nav-btn{
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    padding:9px 8px!important;
    font-size:10px!important;
    border-radius:13px!important;
    white-space:nowrap;
  }

  .admin-hero-pro{
    gap:16px!important;
    padding:20px 17px 17px!important;
    border-radius:20px!important;
  }

  .admin-hero-kicker{
    gap:8px;
  }

  .admin-hero-icon{
    width:30px;
    height:30px;
    border-radius:10px;
  }

  .admin-hero-pro h1{
    margin-top:13px!important;
    font-size:34px!important;
    line-height:1.03!important;
  }

  .admin-hero-pro p{
    max-width:none!important;
    font-size:10px!important;
    line-height:1.6!important;
  }

  .admin-hero-meta{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:8px!important;
    margin-top:16px!important;
  }

  .admin-hero-meta span{
    min-width:0;
    font-size:7px!important;
  }

  .admin-owner-card{
    grid-template-columns:40px minmax(0,1fr) 30px!important;
    min-height:64px;
    gap:9px!important;
    padding:10px!important;
    border-radius:15px!important;
  }

  .admin-owner-orb{
    width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    font-size:16px;
  }

  .admin-owner-card>div:nth-child(2) span{
    font-size:7px!important;
  }

  .admin-owner-card b{
    max-width:none!important;
    font-size:9px!important;
  }

  .pro-admin-stats{
    gap:9px!important;
    margin-top:11px!important;
  }

  .admin-stat-pro{
    min-height:118px!important;
    padding:12px 12px 11px!important;
    border-radius:16px!important;
  }

  .admin-stat-icon{
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
  }

  .admin-stat-icon svg{
    width:15px!important;
    height:15px!important;
  }

  .admin-stat-trend{
    max-width:94px;
    min-height:22px;
    padding:4px 6px!important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:5.8px!important;
    letter-spacing:.06em!important;
  }

  .admin-stat-label{
    margin-top:11px!important;
    font-size:8px!important;
    line-height:1.2;
  }

  .admin-stat-pro b{
    margin:4px 0 3px!important;
    font-size:25px!important;
    line-height:1!important;
  }

  .admin-stat-pro small{
    display:block;
    font-size:6.5px!important;
    line-height:1.3!important;
  }

  .admin-main-controls{
    margin-top:11px!important;
  }

  .admin-panel{
    padding:16px!important;
  }

  .admin-maintenance-panel{
    border-radius:18px!important;
  }

  .admin-panel-title-wrap{
    min-width:0;
  }

  .admin-panel-icon{
    width:36px!important;
    height:36px!important;
    border-radius:11px!important;
  }

  .admin-panel-head h2{
    font-size:17px!important;
    line-height:1.08!important;
  }

  .admin-panel-head .eyebrow{
    font-size:7px!important;
    letter-spacing:.13em!important;
  }

  .admin-switch{
    width:46px!important;
    height:26px!important;
    flex:0 0 46px;
  }

  .admin-switch span:after{
    width:16px!important;
    height:16px!important;
  }

  .admin-switch input:checked+span:after{
    transform:translateX(20px)!important;
  }

  .admin-maintenance-status-row{
    margin-top:14px!important;
  }
}

@media(max-width:390px){
  .admin-top-actions{
    grid-template-columns:auto 1fr 1fr!important;
  }

  .admin-lang-switch .lang-btn{
    min-width:35px!important;
    padding:6px 7px!important;
    font-size:10px!important;
  }

  .admin-nav-btn{
    padding-left:6px!important;
    padding-right:6px!important;
    font-size:9px!important;
  }

  .admin-hero-pro h1{
    font-size:30px!important;
  }

  .admin-hero-meta{
    grid-template-columns:1fr!important;
  }

  .pro-admin-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .admin-stat-pro{
    min-height:114px!important;
    padding:11px!important;
  }

  .admin-stat-trend{
    max-width:78px;
    font-size:5.5px!important;
  }
}


/* Admin analytics and user search */
.admin-analytics-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
  margin-top:16px;
}
.admin-analytics-grid .admin-panel{margin-top:0}
.admin-growth-bars{
  height:190px;
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  align-items:end;
  gap:9px;
  margin-top:18px;
  padding:10px 4px 0;
}
.admin-growth-day{
  min-width:0;
  display:grid;
  grid-template-rows:1fr auto auto;
  justify-items:center;
  gap:5px;
  height:100%;
}
.admin-growth-track{
  width:100%;
  max-width:34px;
  height:125px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-radius:9px;
  background:#0a1018;
  border:1px solid #192231;
}
.admin-growth-track span{
  width:100%;
  min-height:6px;
  border-radius:8px 8px 3px 3px;
  background:linear-gradient(180deg,#ffb85f,#ff5844);
  box-shadow:0 -8px 24px rgba(255,91,68,.12);
}
.admin-growth-day b{
  font-size:9px;
}
.admin-growth-day small{
  color:#6f7a8d;
  font-size:7px;
  text-transform:capitalize;
}
.admin-breakdown-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:18px;
}
.admin-breakdown-label{
  display:block;
  margin-bottom:10px;
  color:#7e899a;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.admin-breakdown-list{
  display:grid;
  gap:10px;
}
.admin-breakdown-item{
  position:relative;
}
.admin-breakdown-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
  font-size:8px;
}
.admin-breakdown-row span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#a3adbc;
}
.admin-breakdown-row b{font-size:8px}
.admin-breakdown-track{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#111925;
}
.admin-breakdown-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff5a45,#ffb75d);
}
.admin-breakdown-item small{
  display:block;
  margin-top:4px;
  color:#5e6a7c;
  font-size:6px;
}
.admin-user-tools{
  display:flex;
  align-items:center;
  gap:8px;
}
.admin-user-search-wrap{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:240px;
  height:38px;
  padding:0 11px;
  border-radius:12px;
  background:#080d14;
  border:1px solid #202a38;
}
.admin-search-icon{
  color:#738093;
  font-size:14px;
}
.admin-user-search-wrap input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:9px;
}
.admin-user-search-wrap input::placeholder{color:#586477}
.admin-user-filter{
  height:38px;
  padding:0 10px;
  border-radius:12px;
  background:#0a1018;
  border:1px solid #202a38;
  color:#c8d0dd;
  font:inherit;
  font-size:9px;
  outline:none;
}

@media(max-width:900px){
  .admin-analytics-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  .admin-growth-bars{
    height:150px;
    gap:6px;
  }
  .admin-growth-track{
    height:90px;
    max-width:28px;
  }
  .admin-breakdown-columns{
    grid-template-columns:1fr;
    gap:18px;
  }
  .admin-users-panel .pro-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .admin-user-tools{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
  }
  .admin-user-search-wrap{
    min-width:0;
    width:100%;
  }
  .admin-user-filter{
    max-width:112px;
  }
}


/* Admin mobile readability + runtime fix polish */
.admin-value-loading{
  opacity:.6;
  letter-spacing:.08em;
  animation:adminValuePulse 1s ease-in-out infinite alternate;
}
@keyframes adminValuePulse{
  to{opacity:.28}
}

@media(max-width:620px){
  .admin-page{
    font-size:16px;
  }

  .admin-shell{
    width:calc(100% - 18px)!important;
    padding:8px 0 34px!important;
  }

  /* Header: brand/owner, language, navigation */
  .pro-admin-topbar{
    position:sticky!important;
    top:0!important;
    z-index:30!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "brand owner"
      "lang lang"
      "nav nav"!important;
    row-gap:10px!important;
    column-gap:10px!important;
    margin:-8px -9px 14px!important;
    padding:12px 9px 13px!important;
    border-bottom:1px solid rgba(255,255,255,.06)!important;
    background:rgba(7,10,16,.97)!important;
    backdrop-filter:blur(18px)!important;
  }

  .admin-brand-wrap{
    grid-area:brand!important;
    min-width:0!important;
  }

  .admin-brand-wrap .brand-inline{
    gap:8px!important;
  }

  .admin-brand-wrap .brand-inline span{
    display:none!important;
  }

  .admin-brand-wrap .small-icon{
    width:48px!important;
    height:48px!important;
  }

  .admin-section-chip{
    display:none!important;
  }

  .admin-top-actions{
    display:contents!important;
  }

  .admin-top-actions .owner-badge{
    grid-area:owner!important;
    position:static!important;
    align-self:center!important;
    justify-self:end!important;
    min-height:36px!important;
    padding:8px 11px!important;
    border-radius:999px!important;
    font-size:8px!important;
  }

  .admin-lang-switch{
    grid-area:lang!important;
    justify-self:start!important;
    margin:0!important;
    transform:none!important;
    min-height:46px!important;
    padding:4px!important;
  }

  .admin-lang-switch .lang-btn{
    min-width:54px!important;
    min-height:38px!important;
    padding:8px 12px!important;
    font-size:12px!important;
    font-weight:800!important;
  }

  .admin-nav-btn{
    grid-area:nav!important;
  }

  .admin-top-actions > .admin-nav-btn{
    display:flex!important;
  }

  .admin-top-actions > a.admin-nav-btn{
    grid-column:1!important;
  }

  .admin-top-actions > button.admin-nav-btn{
    grid-column:2!important;
  }

  /* recreate nav row because display:contents */
  .pro-admin-topbar > .admin-top-actions > a.admin-nav-btn,
  .pro-admin-topbar > .admin-top-actions > button.admin-nav-btn{
    position:relative!important;
  }

  .pro-admin-topbar{
    --admin-nav-gap:8px;
  }

  /* use absolute grid wrapper behavior through explicit placement */
  .pro-admin-topbar .admin-top-actions > a.admin-nav-btn{
    grid-area:nav!important;
    justify-self:stretch!important;
    align-self:start!important;
    width:calc(50% - 4px)!important;
    margin-right:auto!important;
    min-height:48px!important;
    font-size:12px!important;
    border-radius:15px!important;
  }

  .pro-admin-topbar .admin-top-actions > button.admin-nav-btn{
    grid-area:nav!important;
    justify-self:end!important;
    align-self:start!important;
    width:calc(50% - 4px)!important;
    min-height:48px!important;
    font-size:12px!important;
    border-radius:15px!important;
  }

  /* Hero */
  .admin-hero-pro{
    display:block!important;
    min-height:0!important;
    padding:20px 17px 16px!important;
    border-radius:22px!important;
  }

  .admin-hero-kicker{
    gap:10px!important;
  }

  .admin-hero-icon{
    width:36px!important;
    height:36px!important;
    border-radius:12px!important;
    font-size:12px!important;
  }

  .admin-hero-kicker .eyebrow{
    font-size:10px!important;
    line-height:1.35!important;
    letter-spacing:.14em!important;
  }

  .admin-hero-pro h1{
    margin:16px 0 12px!important;
    font-size:38px!important;
    line-height:1.04!important;
    letter-spacing:-.04em!important;
  }

  .admin-hero-pro > .admin-hero-copy > p{
    font-size:13px!important;
    line-height:1.65!important;
  }

  .admin-hero-meta{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:9px!important;
    margin-top:18px!important;
  }

  .admin-hero-meta span{
    font-size:9px!important;
    line-height:1.4!important;
  }

  .admin-owner-card{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) 36px!important;
    width:100%!important;
    min-height:78px!important;
    margin-top:18px!important;
    padding:12px!important;
    gap:11px!important;
    border-radius:17px!important;
  }

  .admin-owner-orb{
    width:48px!important;
    height:48px!important;
    border-radius:14px!important;
    font-size:18px!important;
  }

  .admin-owner-card>div:nth-child(2) span{
    font-size:9px!important;
  }

  .admin-owner-card b{
    margin-top:4px!important;
    max-width:100%!important;
    font-size:12px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .admin-owner-lock{
    width:36px!important;
    height:36px!important;
    border-radius:11px!important;
  }

  /* Stats: readable stacked cards */
  .pro-admin-stats{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:12px!important;
  }

  .admin-stat-pro{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) auto!important;
    grid-template-areas:
      "icon label badge"
      "icon value badge"
      "icon note note"!important;
    align-items:center!important;
    column-gap:12px!important;
    row-gap:3px!important;
    min-height:112px!important;
    padding:15px 16px!important;
    border-radius:18px!important;
  }

  .admin-stat-top{
    display:contents!important;
  }

  .admin-stat-icon{
    grid-area:icon!important;
    width:48px!important;
    height:48px!important;
    border-radius:14px!important;
  }

  .admin-stat-icon svg{
    width:21px!important;
    height:21px!important;
  }

  .admin-stat-trend{
    grid-area:badge!important;
    align-self:start!important;
    justify-self:end!important;
    max-width:none!important;
    min-height:28px!important;
    padding:6px 9px!important;
    font-size:7px!important;
    letter-spacing:.06em!important;
  }

  .admin-stat-label{
    grid-area:label!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.25!important;
    font-weight:750!important;
  }

  .admin-stat-pro>b{
    grid-area:value!important;
    margin:2px 0!important;
    font-size:32px!important;
    line-height:1!important;
  }

  .admin-stat-pro>small{
    grid-area:note!important;
    display:block!important;
    padding-top:5px!important;
    font-size:9px!important;
    line-height:1.4!important;
  }

  /* Panels */
  .admin-main-controls,
  .admin-analytics-grid,
  .admin-users-panel,
  .admin-bottom-grid{
    margin-top:12px!important;
  }

  .admin-panel{
    padding:18px!important;
    border-radius:20px!important;
  }

  .admin-panel-title-wrap{
    gap:11px!important;
  }

  .admin-panel-icon{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:15px!important;
  }

  .admin-panel-head .eyebrow{
    font-size:9px!important;
    line-height:1.3!important;
  }

  .admin-panel-head h2{
    margin-top:5px!important;
    font-size:22px!important;
    line-height:1.15!important;
  }

  .admin-switch{
    width:54px!important;
    height:30px!important;
    flex:0 0 54px!important;
  }

  .admin-switch span:after{
    width:20px!important;
    height:20px!important;
  }

  .admin-switch input:checked+span:after{
    transform:translateX(24px)!important;
  }

  .admin-maintenance-status-row{
    margin-top:16px!important;
    gap:10px!important;
  }

  .admin-maintenance-status-row>div{
    padding:14px!important;
    border-radius:14px!important;
  }

  .admin-control-label,
  .maintenance-impact span,
  .pro-admin-field small{
    font-size:10px!important;
    line-height:1.5!important;
  }

  .maintenance-impact b,
  .admin-field>span{
    font-size:11px!important;
  }

  .maintenance-state{
    font-size:9px!important;
    padding:7px 10px!important;
  }

  .pro-admin-field textarea{
    min-height:132px!important;
    padding:14px!important;
    font-size:13px!important;
  }

  .admin-save-btn,
  .pro-admin-actions .secondary-btn{
    min-height:48px!important;
    font-size:11px!important;
  }

  /* Analytics readability */
  .admin-growth-bars{
    height:175px!important;
    gap:7px!important;
  }

  .admin-growth-track{
    height:110px!important;
    max-width:32px!important;
  }

  .admin-growth-day b{
    font-size:10px!important;
  }

  .admin-growth-day small{
    font-size:8px!important;
  }

  .admin-breakdown-label{
    font-size:9px!important;
  }

  .admin-breakdown-row,
  .admin-breakdown-row b{
    font-size:10px!important;
  }

  .admin-breakdown-item small{
    font-size:8px!important;
  }

  /* User search + user cards */
  .admin-user-tools{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  .admin-user-search-wrap,
  .admin-user-filter{
    width:100%!important;
    max-width:none!important;
    min-height:46px!important;
    font-size:11px!important;
  }

  .admin-user-search-wrap input{
    font-size:11px!important;
  }

  .admin-users-mobile{
    gap:10px!important;
    margin-top:16px!important;
  }

  .admin-mobile-user-card{
    padding:15px!important;
    border-radius:16px!important;
  }

  .admin-mobile-user-head{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:10px!important;
  }

  .admin-user-avatar{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:12px!important;
  }

  .admin-mobile-user-head b{
    font-size:11px!important;
  }

  .admin-mobile-user-head small{
    max-width:none!important;
    font-size:8px!important;
  }

  .admin-user-state{
    padding:6px 8px!important;
    font-size:8px!important;
  }

  .admin-mobile-user-meta{
    grid-template-columns:1fr!important;
    gap:7px!important;
    margin-top:12px!important;
  }

  .admin-mobile-user-meta>span{
    padding:10px!important;
  }

  .admin-mobile-user-meta small{
    font-size:8px!important;
  }

  .admin-mobile-user-meta b{
    font-size:10px!important;
  }

  .admin-feed-item b{
    font-size:11px!important;
  }

  .admin-feed-item small{
    font-size:9px!important;
    line-height:1.45!important;
  }
}

@media(min-width:621px) and (max-width:900px){
  .pro-admin-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* Site controls and global announcement */
.admin-site-controls-panel{margin-top:16px;position:relative;overflow:hidden}
.admin-site-controls-panel:before{content:"";position:absolute;left:0;top:0;width:100%;height:2px;background:linear-gradient(90deg,#6f94ff,#55d8ba,transparent 75%)}
.admin-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.admin-control-card{padding:16px;border-radius:16px;border:1px solid rgba(255,255,255,.055);background:rgba(6,10,16,.46)}
.admin-control-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.admin-control-card-head b,.admin-control-card-head span{display:block}
.admin-control-card-head b{font-size:11px}
.admin-control-card-head>div>span{margin-top:5px;color:#758194;font-size:9px;line-height:1.5}
.admin-control-status{margin-top:14px}
.compact-control-field{margin-top:14px}
.compact-control-field textarea{min-height:92px}
.site-controls-actions{margin-top:14px}
.global-announcement-banner{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;margin:0 0 14px;padding:12px 14px;border-radius:15px;border:1px solid rgba(255,183,88,.14);background:radial-gradient(circle at 0 0,rgba(255,183,88,.08),transparent 32%),rgba(9,13,20,.88)}
.global-announcement-banner[hidden]{display:none!important}
.global-announcement-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#ffbd63;border:1px solid rgba(255,183,88,.13);background:rgba(255,183,88,.055);font-weight:900}
.global-announcement-banner span{display:block;color:#ffbd63;font-size:7px;font-weight:900;letter-spacing:.12em}
.global-announcement-banner p{margin:4px 0 0;color:#dbe2ed;font-size:10px;line-height:1.5}
.registration-closed-panel{padding:22px;border-radius:18px;text-align:center;border:1px solid rgba(255,183,88,.13);background:radial-gradient(circle at 50% 0,rgba(255,183,88,.07),transparent 30%),rgba(8,12,18,.72)}
.registration-closed-panel[hidden]{display:none!important}
.registration-closed-icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 13px;border-radius:16px;color:#ffbd63;background:rgba(255,183,88,.055);border:1px solid rgba(255,183,88,.12);font-size:20px}
.registration-closed-panel h2{margin:0;font-size:20px}
.registration-closed-panel p{margin:9px auto 16px;max-width:430px;color:#828d9f;font-size:10px;line-height:1.55}
@media(max-width:620px){
  .admin-control-grid{grid-template-columns:1fr}
  .admin-control-card{padding:15px}
  .admin-control-card-head b{font-size:12px}
  .admin-control-card-head>div>span{font-size:10px}
  .global-announcement-banner{margin:0 0 12px;padding:12px}
  .global-announcement-banner p{font-size:11px}
}


/* User access management */
.admin-stat-icon.danger{color:#ff7468;border-color:rgba(255,92,73,.12);background:rgba(255,92,73,.05)}
.admin-user-status-stack{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.admin-access-state{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;font-size:8px;font-weight:800;color:#59dfa9;background:rgba(41,211,145,.045);border:1px solid rgba(41,211,145,.09)}
.admin-access-state.is-suspended{color:#ff7d72;background:rgba(255,92,73,.055);border-color:rgba(255,92,73,.12)}
.admin-user-action-cell{text-align:right!important}
.admin-user-action-btn{min-height:32px;padding:6px 10px;border-radius:10px;border:1px solid #263244;background:#0b111a;color:#dce4ef;font:inherit;font-size:8px;font-weight:800;cursor:pointer}
.admin-user-action-btn:hover{border-color:rgba(255,183,88,.22);color:#ffbd63}
.admin-mobile-user-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}
.admin-modal[hidden]{display:none!important}
.admin-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.admin-modal-backdrop{position:absolute;inset:0;background:rgba(2,5,9,.78);backdrop-filter:blur(8px)}
.admin-modal-card{position:relative;z-index:1;width:min(460px,100%);padding:24px;border-radius:22px;border:1px solid rgba(255,255,255,.07);background:linear-gradient(155deg,rgba(16,22,32,.98),rgba(7,11,17,.98));box-shadow:0 35px 100px rgba(0,0,0,.45)}
.admin-modal-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:1px solid #202a38;border-radius:11px;background:#0b1119;color:#8c97a8;font-size:20px;cursor:pointer}
.admin-modal-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#ffbd63;background:rgba(255,183,88,.055);border:1px solid rgba(255,183,88,.12)}
.admin-modal-card h2{margin:14px 0 5px;font-size:24px}
.admin-modal-target{margin:0;color:#7d899a;font-size:10px}
.admin-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.admin-modal-actions button{min-height:44px}
.admin-modal-open{overflow:hidden}
@media(max-width:620px){
  .admin-modal{padding:14px}
  .admin-modal-card{padding:20px;border-radius:20px}
  .admin-modal-actions{grid-template-columns:1fr}
  .admin-user-action-btn{min-height:38px;font-size:9px}
}


/* Final deterministic admin header layout */
.pro-admin-topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
}

.admin-topbar-primary,
.admin-topbar-secondary{
  min-width:0;
}

.admin-topbar-primary{
  display:flex;
  align-items:center;
  gap:12px;
}

.admin-topbar-primary .owner-badge{
  margin-left:auto;
}

.admin-topbar-secondary{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.admin-nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.admin-nav-actions .admin-nav-btn{
  min-width:126px;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
}

@media(max-width:620px){
  .pro-admin-topbar{
    position:relative!important;
    top:auto!important;
    z-index:10!important;
    display:block!important;
    margin:-8px -9px 16px!important;
    padding:14px 12px 15px!important;
    border-bottom:1px solid rgba(255,255,255,.06)!important;
    background:rgba(7,10,16,.98)!important;
    backdrop-filter:none!important;
  }

  .admin-topbar-primary{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    gap:12px!important;
  }

  .admin-brand-wrap{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
  }

  .admin-brand-wrap .brand-inline{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }

  .admin-brand-wrap .brand-inline span{
    display:none!important;
  }

  .admin-brand-wrap .small-icon{
    width:50px!important;
    height:50px!important;
  }

  .admin-section-chip{
    display:none!important;
  }

  .admin-topbar-primary .owner-badge{
    position:static!important;
    margin:0!important;
    min-height:38px!important;
    padding:9px 12px!important;
    font-size:8px!important;
    white-space:nowrap!important;
  }

  .admin-topbar-secondary{
    display:block!important;
    width:100%!important;
    margin-top:14px!important;
  }

  .admin-lang-switch{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-height:50px!important;
    margin:0!important;
    padding:4px!important;
    transform:none!important;
  }

  .admin-lang-switch .lang-btn{
    min-width:58px!important;
    min-height:42px!important;
    padding:8px 13px!important;
    font-size:13px!important;
    font-weight:800!important;
  }

  .admin-nav-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:10px!important;
    margin-top:12px!important;
  }

  .admin-nav-actions .admin-nav-btn{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    margin:0!important;
    padding:0 12px!important;
    border-radius:17px!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
}

@media(max-width:380px){
  .admin-nav-actions{
    gap:8px!important;
  }

  .admin-nav-actions .admin-nav-btn{
    min-height:50px!important;
    font-size:12px!important;
    padding:0 8px!important;
  }

  .admin-lang-switch .lang-btn{
    min-width:52px!important;
  }
}


/* Hard reset legacy admin nav grid rules */
@media(max-width:620px){
  .admin-nav-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    grid-template-areas:none!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    column-gap:10px!important;
    row-gap:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:12px 0 0!important;
    padding:0!important;
  }

  .admin-nav-actions > .admin-nav-btn{
    grid-area:auto!important;
    grid-row:1!important;
    position:static!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    margin:0!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    box-sizing:border-box!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .admin-nav-actions > a.admin-nav-btn{
    grid-column:1!important;
  }

  .admin-nav-actions > button.admin-nav-btn{
    grid-column:2!important;
  }

  .admin-topbar-secondary{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
}

@media(max-width:380px){
  .admin-nav-actions{
    column-gap:8px!important;
  }

  .admin-nav-actions > .admin-nav-btn{
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    padding:0 7px!important;
    font-size:11px!important;
  }
}


/* Production tools/admin modules */
.tools-panel{position:relative}
.plan-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:15px;border-radius:16px;border:1px solid #222c3b;background:rgba(7,11,17,.6)}
.plan-card>div>span,.plan-card>div>b,.plan-card>div>small{display:block}.plan-card>div>span{color:#768194;font-size:7px;font-weight:900;letter-spacing:.11em}.plan-card>div>b{margin-top:5px;font-size:15px}.plan-card>div>small{margin-top:3px;color:#707c8e;font-size:8px}.plan-card.is-tools{border-color:rgba(255,183,88,.16);background:radial-gradient(circle at 0 0,rgba(255,183,88,.07),transparent 35%),rgba(7,11,17,.65)}
.production-footer-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;margin-top:26px;padding-top:16px;border-top:1px solid rgba(255,255,255,.05);font-size:8px}.production-footer-links a,.production-footer-links button{color:#697587;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}.production-footer-links a:hover,.production-footer-links button:hover{color:#ffbd63}
.network-toast{position:fixed;left:50%;bottom:24px;z-index:120;transform:translateX(-50%);padding:10px 14px;border-radius:12px;background:#0c121b;border:1px solid #263244;color:#dce4ef;font-size:9px;box-shadow:0 15px 40px rgba(0,0,0,.3)}.network-toast.is-offline{border-color:rgba(255,92,73,.18);color:#ff887e}.network-toast.is-online{border-color:rgba(41,211,145,.14);color:#63e8b0}
.admin-server-manager{margin-top:16px}.admin-server-manager-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;margin-top:18px}.admin-node-form,.admin-node-list{min-width:0}.admin-node-form h3,.admin-server-manager-grid>div>h3{margin:0 0 12px;font-size:13px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.admin-form-grid label{display:grid;gap:6px}.admin-form-grid label span{font-size:8px;color:#7c8799;font-weight:700}.admin-form-grid input,.admin-tools-manager select{width:100%;min-height:40px;padding:9px 11px;border:1px solid #202a38;border-radius:11px;background:#080d14;color:#eef2f8;font:inherit;font-size:9px;outline:none}.admin-node-toggles{display:flex;flex-wrap:wrap;gap:10px;margin:13px 0}.admin-node-toggles label{display:flex;align-items:center;gap:7px;font-size:9px;color:#8c97a8}.admin-node-list{display:grid;gap:9px}.admin-node-card{padding:13px;border-radius:14px;border:1px solid rgba(255,255,255,.055);background:rgba(6,10,16,.48)}.admin-node-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.admin-node-head b,.admin-node-head small{display:block}.admin-node-head b{font-size:11px}.admin-node-head small{margin-top:4px;color:#6d798b;font-size:8px}.admin-node-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.admin-node-badges span{padding:5px 7px;border-radius:999px;border:1px solid #253042;color:#7d899a;font-size:6px;font-weight:900}.admin-node-badges .is-live{color:#59dfa9;border-color:rgba(41,211,145,.1);background:rgba(41,211,145,.04)}.admin-node-badges .is-routing{color:#ffbd63;border-color:rgba(255,183,88,.12);background:rgba(255,183,88,.04)}.admin-node-meta{display:grid;gap:5px;margin:10px 0}.admin-node-meta span{min-width:0;color:#687487;font-size:7px}.admin-node-meta b{display:block;margin-top:2px;color:#9aa5b5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-detail-card{width:min(720px,100%);max-height:min(88vh,760px);overflow:auto}.admin-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.admin-detail-grid>div{padding:11px;border-radius:12px;border:1px solid #1d2735;background:#090e15}.admin-detail-grid span,.admin-detail-grid b{display:block}.admin-detail-grid span{color:#6e7a8c;font-size:7px}.admin-detail-grid b{margin-top:4px;font-size:9px;overflow-wrap:anywhere}.admin-detail-status-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.admin-tools-manager{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;margin-top:14px;padding:13px;border-radius:14px;border:1px solid rgba(255,183,88,.1);background:rgba(255,183,88,.025)}.admin-tools-manager label{display:grid;gap:6px;font-size:8px;color:#7e899a}.admin-tools-manager small{grid-column:1/-1;color:#687487;font-size:7px}.admin-detail-section{margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.05)}.admin-detail-section>b{font-size:10px}.admin-detail-feed{display:grid;gap:7px;margin-top:9px}.admin-detail-feed span{padding:8px 9px;border-radius:10px;background:#090e15;border:1px solid #192231;color:#7d899a;font-size:7px}.admin-user-action-btn.is-detail{margin-left:5px}
.info-page{min-height:100vh;padding:24px;background:radial-gradient(circle at 15% 0,rgba(255,78,57,.07),transparent 28%),#070a10;color:#eef2f8}.info-shell{width:min(900px,100%);margin:0 auto}.info-back{display:inline-flex;margin-bottom:16px;color:#8d98aa;text-decoration:none;font-size:10px}.info-card{padding:28px;border-radius:24px}.info-card h1{font-size:clamp(28px,5vw,44px);margin:8px 0 12px}.info-card h2{margin:26px 0 8px;font-size:18px}.info-card p{color:#8b96a8;line-height:1.7;font-size:11px}.info-card a{color:#ffbd63}.support-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.support-card{display:grid;gap:5px;padding:15px;border-radius:14px;border:1px solid #202a38;background:#0a1018;text-decoration:none}.support-card b{color:#eef2f8;font-size:10px}.support-card span{color:#748092;font-size:8px}.changelog-list{display:grid;gap:10px;margin-top:20px}.changelog-list article{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;padding:14px;border-radius:14px;border:1px solid #202a38;background:#0a1018}.changelog-list article>span{color:#ffbd63;font-size:7px;font-weight:900}.changelog-list b{font-size:11px}.changelog-list p{margin:5px 0 0;font-size:9px}
  .admin-server-manager-grid,.admin-form-grid,.admin-detail-grid,.support-grid{grid-template-columns:1fr}
  .admin-tools-manager{grid-template-columns:1fr}.admin-tools-manager button{width:100%}
  .info-page{padding:14px}.info-card{padding:20px;border-radius:20px}
}

/* Global mobile production QA */
@media(max-width:620px){
  input,select,textarea{font-size:16px!important}
  .primary-btn,.secondary-btn,.ghost-btn,.google-btn{min-height:46px}
  .dashboard-main{overflow-x:hidden}
  .glass,.section-block,.account-panel,.tools-panel{max-width:100%;box-sizing:border-box}
  img,svg{max-width:100%}
}


/* Production alerts */
.production-alert{
  display:grid;
  grid-template-columns:minmax(0,1fr) 32px;
  gap:12px;
  align-items:start;
  margin:0 0 12px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(255,183,88,.12);
  background:rgba(12,17,25,.88);
}
.production-alert b,.production-alert p{display:block;margin:0}
.production-alert b{font-size:10px}
.production-alert p{margin-top:4px;color:#7d899a;font-size:8px;line-height:1.5}
.production-alert.warning{border-color:rgba(255,183,88,.18);background:rgba(255,183,88,.035)}
.production-alert.danger{border-color:rgba(255,92,73,.18);background:rgba(255,92,73,.035)}
.production-alert button,.announcement-dismiss{
  width:30px;height:30px;display:grid;place-items:center;border-radius:10px;border:1px solid #243043;background:#0a1018;color:#8c97a8;font-size:17px;cursor:pointer
}
.global-announcement-banner{position:relative}
.announcement-dismiss{position:absolute;right:8px;top:8px;width:28px;height:28px}
.global-announcement-banner>div:nth-child(2){padding-right:34px}
@media(max-width:620px){
  .production-alert b{font-size:11px}.production-alert p{font-size:9px}
}


/* Theme switch */
.theme-toggle-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid #283244;
  background:#0a0f17;
  color:#aeb8c8;
  font:inherit;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.theme-toggle-btn:hover{transform:translateY(-1px);border-color:rgba(255,183,88,.28);color:#fff}
.theme-toggle-btn [data-theme-icon]{font-size:14px;line-height:1}
.theme-toggle-floating{position:fixed;right:16px;bottom:18px;z-index:140;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.sidebar-bottom>.theme-toggle-btn{width:max-content}
.admin-topbar-secondary>.theme-toggle-btn{flex:0 0 auto}
.card-top>.theme-toggle-btn{margin-right:auto}

/* Global light theme */
html[data-theme="light"]{
  --bg:#f4f6fb;
  --panel:#ffffff;
  --panel2:#f7f9fc;
  --text:#172033;
  --muted:#667085;
  --line:#d9dfeb;
  --accent:#e9362c;
  --accent2:#ff6b35;
  --ok:#159b69;
  --shadow:0 20px 55px rgba(28,39,60,.10);
}
html[data-theme="light"] body{
  background:
    radial-gradient(circle at 25% 5%,rgba(255,93,72,.08),transparent 28%),
    radial-gradient(circle at 85% 0,rgba(255,184,91,.08),transparent 24%),
    #f4f6fb!important;
  color:var(--text)!important;
}
html[data-theme="light"] .dashboard-page,
html[data-theme="light"] .admin-page,
html[data-theme="light"] .maintenance-page,
html[data-theme="light"] .maintenance-page-pro,
html[data-theme="light"] .info-page{
  background:
    radial-gradient(circle at 15% 0,rgba(255,86,64,.07),transparent 26%),
    #f4f6fb!important;
  color:var(--text)!important;
}
html[data-theme="light"] .glass{
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,249,252,.96))!important;
  border-color:#dbe1eb!important;
  box-shadow:0 18px 48px rgba(37,48,68,.10)!important;
}
html[data-theme="light"] .ambient{opacity:.09}
html[data-theme="light"] .muted,
html[data-theme="light"] .hero-copy,
html[data-theme="light"] .notice p,
html[data-theme="light"] .server-card p,
html[data-theme="light"] .stat-card span,
html[data-theme="light"] .stat-card small,
html[data-theme="light"] .account-details span,
html[data-theme="light"] .sidebar-bottom,
html[data-theme="light"] .user-chip span,
html[data-theme="light"] .production-footer-links a,
html[data-theme="light"] .production-footer-links button{
  color:#667085!important;
}
html[data-theme="light"] .notice,
html[data-theme="light"] .feature-row div,
html[data-theme="light"] .user-chip,
html[data-theme="light"] .account-details div,
html[data-theme="light"] .production-alert,
html[data-theme="light"] .network-toast{
  background:#f8fafc!important;
  border-color:#dce2eb!important;
  color:#172033!important;
}
html[data-theme="light"] .notice>span{background:#e9eef6!important;color:#475467!important}
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .theme-toggle-btn{
  background:#f3f6fa!important;
  border-color:#d6deea!important;
  color:#5e6b7f!important;
}
html[data-theme="light"] .lang-switch>span{background:#d5dce8!important}
html[data-theme="light"] .lang-btn{color:#68758a!important}
html[data-theme="light"] .lang-btn.active{color:#fff!important}
html[data-theme="light"] .theme-toggle-btn:hover{color:#172033!important;background:#fff!important}
html[data-theme="light"] .profile-form label,
html[data-theme="light"] .admin-field span{color:#344054!important}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .profile-form input,
html[data-theme="light"] .profile-form select,
html[data-theme="light"] .admin-field textarea,
html[data-theme="light"] .admin-form-grid input,
html[data-theme="light"] .admin-tools-manager select,
html[data-theme="light"] .admin-user-search-wrap,
html[data-theme="light"] .admin-user-filter{
  background:#fff!important;
  border-color:#d4dce8!important;
  color:#172033!important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#98a2b3!important}
html[data-theme="light"] .secondary-btn{
  background:#eef2f7!important;
  color:#27364a!important;
  border-color:#d5deea!important;
}
html[data-theme="light"] .ghost-btn{
  background:#fff!important;
  color:#475467!important;
  border-color:#d5deea!important;
}
html[data-theme="light"] .sidebar{
  background:rgba(255,255,255,.97)!important;
  border-color:#dce2eb!important;
}
html[data-theme="light"] .sidebar nav a{color:#667085!important}
html[data-theme="light"] .sidebar nav a.active,
html[data-theme="light"] .sidebar nav a:hover{
  background:#edf1f7!important;
  color:#172033!important;
}
html[data-theme="light"] .hero-card:after{opacity:.09!important}
html[data-theme="light"] .server-card{
  background:linear-gradient(145deg,#fff,#f7f9fc)!important;
  border-color:#dce2eb!important;
}
html[data-theme="light"] .speed-orb{
  border-color:#edf1f6!important;
  box-shadow:inset 0 0 0 1px #d8e0ea!important;
}
html[data-theme="light"] .topbar h1,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .account-panel h2,
html[data-theme="light"] .auth-card h2,
html[data-theme="light"] .onboarding-card h1,
html[data-theme="light"] .info-card h1,
html[data-theme="light"] .info-card h2{color:#172033!important}
html[data-theme="light"] .global-announcement-banner{
  background:
    radial-gradient(circle at 0 0,rgba(255,183,88,.12),transparent 32%),
    #fffaf1!important;
  border-color:#efd7a9!important;
}
html[data-theme="light"] .global-announcement-banner p{color:#5b4b32!important}
html[data-theme="light"] .announcement-dismiss{background:#fff!important;border-color:#e4d2af!important;color:#756042!important}

/* Admin light */
html[data-theme="light"] .admin-page{
  background:
    radial-gradient(circle at 10% -10%,rgba(255,77,55,.07),transparent 28%),
    radial-gradient(circle at 90% 0%,rgba(255,174,70,.06),transparent 24%),
    #f4f6fb!important;
}
html[data-theme="light"] .pro-admin-topbar{
  background:linear-gradient(to bottom,rgba(244,246,251,.98),rgba(244,246,251,.92),transparent)!important;
}
html[data-theme="light"] .admin-hero-pro,
html[data-theme="light"] .admin-stat-pro,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-owner-card,
html[data-theme="light"] .admin-control-card,
html[data-theme="light"] .admin-node-card,
html[data-theme="light"] .admin-mobile-user-card,
html[data-theme="light"] .admin-action-tile,
html[data-theme="light"] .admin-security-note,
html[data-theme="light"] .admin-modal-card{
  background:linear-gradient(150deg,#fff,#f7f9fc)!important;
  border-color:#dce2eb!important;
  color:#172033!important;
  box-shadow:0 16px 40px rgba(42,52,70,.08)!important;
}
html[data-theme="light"] .admin-hero-pro p,
html[data-theme="light"] .admin-owner-card>div:nth-child(2) span,
html[data-theme="light"] .admin-stat-label,
html[data-theme="light"] .admin-stat small,
html[data-theme="light"] .admin-muted,
html[data-theme="light"] .maintenance-impact span,
html[data-theme="light"] .admin-security-note span,
html[data-theme="light"] .admin-action-tile small,
html[data-theme="light"] .admin-feed-item small,
html[data-theme="light"] .admin-node-head small,
html[data-theme="light"] .admin-node-meta span,
html[data-theme="light"] .admin-detail-grid span,
html[data-theme="light"] .admin-modal-target{
  color:#667085!important;
}
html[data-theme="light"] .admin-owner-card b,
html[data-theme="light"] .admin-stat-pro b,
html[data-theme="light"] .admin-panel h2,
html[data-theme="light"] .admin-action-tile b,
html[data-theme="light"] .admin-feed-item b,
html[data-theme="light"] .admin-node-head b,
html[data-theme="light"] .admin-detail-grid b,
html[data-theme="light"] .admin-modal-card h2{color:#172033!important}
html[data-theme="light"] .admin-maintenance-status-row>div,
html[data-theme="light"] .admin-growth-track,
html[data-theme="light"] .admin-breakdown-track,
html[data-theme="light"] .admin-user-avatar,
html[data-theme="light"] .admin-mobile-user-meta>span,
html[data-theme="light"] .admin-detail-grid>div,
html[data-theme="light"] .admin-detail-feed span{
  background:#f4f7fb!important;
  border-color:#dce2eb!important;
  color:#172033!important;
}
html[data-theme="light"] .admin-table th{background:#f6f8fb!important;color:#667085!important}
html[data-theme="light"] .admin-table td{border-color:#e5e9f0!important;color:#344054!important}
html[data-theme="light"] .admin-user-action-btn{
  background:#fff!important;
  border-color:#d3dce8!important;
  color:#475467!important;
}
html[data-theme="light"] .admin-modal-backdrop{background:rgba(38,48,65,.45)!important}
html[data-theme="light"] .admin-modal-close{background:#f6f8fb!important;border-color:#d7dfea!important;color:#667085!important}

/* Maintenance/info light */
html[data-theme="light"] .maintenance-card-pro,
html[data-theme="light"] .maintenance-card,
html[data-theme="light"] .info-card{
  background:
    radial-gradient(circle at 50% 0%,rgba(255,183,88,.07),transparent 28%),
    #fff!important;
  border-color:#dce2eb!important;
  color:#172033!important;
}
html[data-theme="light"] .maintenance-brand-ring{
  background:#f7f9fc!important;
  border-color:#dce2eb!important;
}
html[data-theme="light"] .maintenance-card p,
html[data-theme="light"] .maintenance-public-message,
html[data-theme="light"] .maintenance-check-message,
html[data-theme="light"] .info-card p{color:#667085!important}
html[data-theme="light"] .maintenance-info-grid>div,
html[data-theme="light"] .support-card,
html[data-theme="light"] .changelog-list article{
  background:#f7f9fc!important;
  border-color:#dce2eb!important;
  color:#172033!important;
}
html[data-theme="light"] .support-card b,
html[data-theme="light"] .changelog-list b{color:#172033!important}

/* Mobile critical inline dark overrides need a final light correction */
@media(max-width:620px){
  html[data-theme="light"] .dashboard-page .sidebar{
    background:rgba(255,255,255,.98)!important;
    border-bottom-color:#dce2eb!important;
  }
  html[data-theme="light"] .dashboard-page .sidebar nav a.active{
    background:#edf1f7!important;
    color:#172033!important;
  }
  html[data-theme="light"] .pro-admin-topbar{
    background:rgba(244,246,251,.98)!important;
    border-bottom-color:#dce2eb!important;
  }
  .theme-toggle-btn [data-theme-label]{display:none}
  .theme-toggle-btn{width:42px;min-width:42px;height:42px;min-height:42px;padding:0}
}


/* Final light theme normalization */
.theme-toggle-icon{
  width:17px;
  height:17px;
  display:grid;
  place-items:center;
  flex:0 0 17px;
}
.theme-toggle-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

html[data-theme="light"]{
  --surface:#ffffff;
  --surface-soft:#f7f9fc;
  --surface-muted:#eef2f7;
  --border-light:#d9e0ea;
  --text-strong:#172033;
  --text-soft:#667085;
}

/* Auth / Signup */
html[data-theme="light"] .auth-card,
html[data-theme="light"] .onboarding-card,
html[data-theme="light"] .brand-panel{
  color:#172033!important;
}
html[data-theme="light"] .auth-card,
html[data-theme="light"] .onboarding-card{
  background:#ffffff!important;
  border-color:#d9e0ea!important;
}
html[data-theme="light"] .brand-panel h1,
html[data-theme="light"] .brand-panel strong,
html[data-theme="light"] .mobile-logo strong{
  color:#172033!important;
}
html[data-theme="light"] .google-btn{
  background:#ffffff!important;
  color:#172033!important;
  border:1px solid #d6deea!important;
  box-shadow:0 8px 20px rgba(38,49,68,.06)!important;
}
html[data-theme="light"] .checkbox{
  color:#667085!important;
}

/* Dashboard content */
html[data-theme="light"] .hero-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .sensitivity-panel,
html[data-theme="light"] .tools-panel,
html[data-theme="light"] .quick-page-card,
html[data-theme="light"] .tools-quick-card{
  background:linear-gradient(145deg,#ffffff,#f8fafc)!important;
  border-color:#dbe2eb!important;
  color:#172033!important;
  box-shadow:0 14px 36px rgba(37,48,68,.07)!important;
}
html[data-theme="light"] .hero-card h2,
html[data-theme="light"] .server-card h3,
html[data-theme="light"] .quick-card-body strong,
html[data-theme="light"] .tools-panel h2,
html[data-theme="light"] .sensitivity-panel h2{
  color:#172033!important;
}
html[data-theme="light"] .hero-card p,
html[data-theme="light"] .tools-copy,
html[data-theme="light"] .sensitivity-copy,
html[data-theme="light"] .quick-card-body small,
html[data-theme="light"] .route-advisor-note,
html[data-theme="light"] .tools-message{
  color:#667085!important;
}
html[data-theme="light"] .quick-card-kicker,
html[data-theme="light"] .training-badge,
html[data-theme="light"] .tools-badge{
  color:#a34c1c!important;
}
html[data-theme="light"] .quick-card-arrow{
  color:#667085!important;
  background:#f2f5f9!important;
  border-color:#dce3ed!important;
}
html[data-theme="light"] .quick-card-icon,
html[data-theme="light"] .tools-feature-icon{
  background:#f3f6fa!important;
  border-color:#dce3ed!important;
  color:#475467!important;
}
html[data-theme="light"] .quick-card-icon svg{
  fill:#475467!important;
}

/* Sensitivity */
html[data-theme="light"] .sensitivity-presets{
  background:#f4f7fb!important;
  border-color:#dce3ed!important;
}
html[data-theme="light"] .sens-preset-btn{
  color:#667085!important;
  background:transparent!important;
}
html[data-theme="light"] .sens-preset-btn.active{
  color:#fff!important;
  background:linear-gradient(135deg,#ef4a3a,#ff7b3f)!important;
}
html[data-theme="light"] .sensitivity-values>div,
html[data-theme="light"] .sensitivity-note{
  background:#f7f9fc!important;
  border-color:#dce3ed!important;
}
html[data-theme="light"] .sensitivity-values span,
html[data-theme="light"] .sensitivity-note{
  color:#667085!important;
}
html[data-theme="light"] .sensitivity-values b{
  color:#172033!important;
}

/* tools cards */
html[data-theme="light"] .tools-feature,
html[data-theme="light"] .route-advisor-card,
html[data-theme="light"] .diagnostics-grid>div,
html[data-theme="light"] .diagnostics-history-summary>div,
html[data-theme="light"] .diagnostics-history-block,
html[data-theme="light"] .diagnostics-history-item{
  background:#f7f9fc!important;
  border-color:#dce3ed!important;
  color:#172033!important;
}
html[data-theme="light"] .tools-feature b,
html[data-theme="light"] .route-advisor-head strong,
html[data-theme="light"] .route-advisor-metrics b,
html[data-theme="light"] .diagnostics-grid b,
html[data-theme="light"] .diagnostics-history-summary b,
html[data-theme="light"] .diagnostics-history-item strong{
  color:#172033!important;
}
html[data-theme="light"] .tools-feature small,
html[data-theme="light"] .route-advisor-head small,
html[data-theme="light"] .route-advisor-metrics span,
html[data-theme="light"] .diagnostics-grid span,
html[data-theme="light"] .diagnostics-history-summary span,
html[data-theme="light"] .diagnostics-history-item small,
html[data-theme="light"] .diagnostics-history-metrics{
  color:#667085!important;
}
html[data-theme="light"] .feature-state{
  background:#eef2f7!important;
  border-color:#d6deea!important;
  color:#667085!important;
}
html[data-theme="light"] .feature-state.is-ready{
  background:#eaf8f2!important;
  border-color:#bfe8d6!important;
  color:#137a55!important;
}
html[data-theme="light"] .tools-primary-btn{
  color:#fff!important;
}
html[data-theme="light"] .route-advisor-score{
  color:#3d2a12!important;
}

/* Account */
html[data-theme="light"] .admin-center-link-pro{
  background:
    radial-gradient(circle at 0 0,rgba(255,183,88,.12),transparent 38%),
    linear-gradient(145deg,#ffffff,#f7f9fc)!important;
  border-color:#e5c895!important;
  color:#172033!important;
}
html[data-theme="light"] .admin-center-link b{
  color:#172033!important;
}
html[data-theme="light"] .admin-center-link small{
  color:#667085!important;
}
html[data-theme="light"] .admin-center-arrow{
  background:#f3f6fa!important;
  border-color:#dce3ed!important;
}

/* Admin normalization */
html[data-theme="light"] .admin-stat-trend.neutral,
html[data-theme="light"] .admin-table-chip,
html[data-theme="light"] .owner-badge,
html[data-theme="light"] .admin-section-chip{
  background:#f3f6fa!important;
  border-color:#d8e0ea!important;
  color:#667085!important;
}
html[data-theme="light"] .admin-stat-trend.today{
  background:#fff7e8!important;
  border-color:#ecd49e!important;
  color:#9b541e!important;
}
html[data-theme="light"] .admin-stat-trend.live,
html[data-theme="light"] .system-health-chip{
  background:#eaf8f2!important;
  border-color:#bfe8d6!important;
  color:#137a55!important;
}
html[data-theme="light"] .admin-stat-icon,
html[data-theme="light"] .admin-panel-icon,
html[data-theme="light"] .admin-action-icon{
  background:#f3f6fa!important;
  border-color:#dce3ed!important;
}
html[data-theme="light"] .admin-stat-icon.live{
  background:#eaf8f2!important;
  border-color:#bfe8d6!important;
}
html[data-theme="light"] .admin-growth-track,
html[data-theme="light"] .admin-breakdown-track{
  background:#e8edf4!important;
}
html[data-theme="light"] .admin-growth-track{
  border-color:#d8e0ea!important;
}
html[data-theme="light"] .admin-user-state{
  background:#f2f5f9!important;
  border-color:#d8e0ea!important;
  color:#667085!important;
}
html[data-theme="light"] .admin-user-state.is-active,
html[data-theme="light"] .admin-access-state{
  background:#eaf8f2!important;
  border-color:#bfe8d6!important;
  color:#137a55!important;
}
html[data-theme="light"] .admin-access-state.is-suspended{
  background:#fff0ee!important;
  border-color:#f3c5bf!important;
  color:#b43e31!important;
}
html[data-theme="light"] .admin-node-badges span{
  background:#f2f5f9!important;
  border-color:#d8e0ea!important;
  color:#667085!important;
}
html[data-theme="light"] .admin-node-badges .is-live{
  background:#eaf8f2!important;
  border-color:#bfe8d6!important;
  color:#137a55!important;
}
html[data-theme="light"] .admin-node-badges .is-routing{
  background:#fff7e8!important;
  border-color:#ecd49e!important;
  color:#9b5b19!important;
}
html[data-theme="light"] .admin-modal-card{
  box-shadow:0 28px 80px rgba(27,37,54,.22)!important;
}
html[data-theme="light"] .admin-modal-close,
html[data-theme="light"] .announcement-dismiss{
  background:#ffffff!important;
  border-color:#d8e0ea!important;
}

/* Maintenance and info */
html[data-theme="light"] .maintenance-page-pro{
  background:
    radial-gradient(circle at 50% -10%,rgba(255,102,77,.08),transparent 30%),
    #f4f6fb!important;
}
html[data-theme="light"] .maintenance-status-pill{
  background:#fff7e8!important;
  border-color:#ecd49e!important;
  color:#9b5b19!important;
}
html[data-theme="light"] .maintenance-progress{
  background:#e8edf4!important;
}
html[data-theme="light"] .maintenance-info-label{
  color:#667085!important;
}
html[data-theme="light"] .maintenance-info-grid b{
  color:#172033!important;
}
html[data-theme="light"] .maintenance-footer{
  border-color:#e3e8ef!important;
  color:#667085!important;
}
html[data-theme="light"] .info-back{
  color:#667085!important;
}
html[data-theme="light"] .support-card span,
html[data-theme="light"] .changelog-list p{
  color:#667085!important;
}

/* Mobile hard-coded dark corrections */
@media(max-width:620px){
  html[data-theme="light"] .admin-mobile-user-card,
  html[data-theme="light"] .admin-mobile-user-meta>span,
  html[data-theme="light"] .admin-control-card,
  html[data-theme="light"] .admin-node-card,
  html[data-theme="light"] .admin-owner-card{
    background:#ffffff!important;
    border-color:#dce3ed!important;
  }
  html[data-theme="light"] .theme-toggle-btn{
    background:#f3f6fa!important;
    border-color:#d6deea!important;
    color:#475467!important;
  }
}


/* Final professional theme pass */
.admin-hero-icon svg,
.admin-owner-lock svg,
.admin-modal-icon svg,
.tools-lock-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.admin-panel-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tools-lock-icon{display:grid;place-items:center}

/* Remaining light-mode surfaces */
html[data-theme="light"] .registration-closed-panel,
html[data-theme="light"] .diagnostics-history-head,
html[data-theme="light"] .admin-table-wrap,
html[data-theme="light"] .pro-admin-table-wrap,
html[data-theme="light"] .admin-tools-manager,
html[data-theme="light"] .admin-security-note,
html[data-theme="light"] .pro-security-note,
html[data-theme="light"] .admin-action-tile,
html[data-theme="light"] .admin-control-card,
html[data-theme="light"] .admin-node-card,
html[data-theme="light"] .admin-mobile-user-card{
  background:#ffffff!important;
  border-color:#dce3ed!important;
  color:#172033!important;
}
html[data-theme="light"] .diagnostics-history-head{
  color:#667085!important;
}
html[data-theme="light"] .admin-switch span{
  background:#e5eaf1!important;
  border-color:#cfd8e5!important;
}
html[data-theme="light"] .admin-switch span:after{
  background:#ffffff!important;
  box-shadow:0 2px 7px rgba(35,47,66,.14)!important;
}
html[data-theme="light"] .admin-switch input:checked+span{
  background:rgba(233,54,44,.14)!important;
  border-color:rgba(233,54,44,.34)!important;
}
html[data-theme="light"] .admin-switch input:checked+span:after{
  background:#e9362c!important;
}
html[data-theme="light"] .admin-node-toggles label,
html[data-theme="light"] .admin-form-grid label span,
html[data-theme="light"] .admin-tools-manager label{
  color:#667085!important;
}
html[data-theme="light"] select option{
  background:#ffffff!important;
  color:#172033!important;
}
html[data-theme="light"] .registration-closed-panel h2,
html[data-theme="light"] .registration-closed-panel a{
  color:#172033!important;
}
html[data-theme="light"] .registration-closed-panel p{
  color:#667085!important;
}
html[data-theme="light"] .registration-closed-icon{
  background:#fff7ed!important;
  border-color:#f2d2ac!important;
  color:#b54708!important;
}
html[data-theme="light"] .admin-hero-icon,
html[data-theme="light"] .admin-owner-lock,
html[data-theme="light"] .admin-modal-icon,
html[data-theme="light"] .tools-lock-icon{
  background:#f4f7fb!important;
  border-color:#dce3ed!important;
  color:#475467!important;
}
html[data-theme="light"] .admin-owner-orb{
  color:#ffffff!important;
}
html[data-theme="light"] .admin-node-meta b,
html[data-theme="light"] .admin-breakdown-row span,
html[data-theme="light"] .admin-breakdown-row b,
html[data-theme="light"] .admin-growth-day b{
  color:#344054!important;
}
html[data-theme="light"] .admin-feed-empty,
html[data-theme="light"] .diagnostics-history-empty{
  color:#667085!important;
}

/* Make light theme flatter and cleaner */
html[data-theme="light"] .glass,
html[data-theme="light"] .admin-stat-pro,
html[data-theme="light"] .admin-panel{
  box-shadow:0 10px 28px rgba(38,51,72,.065)!important;
}
html[data-theme="light"] .hero-card,
html[data-theme="light"] .tools-panel,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .admin-hero-pro{
  box-shadow:0 14px 36px rgba(38,51,72,.075)!important;
}

/* No emoji font fallback for professional UI icons */
.theme-toggle-icon,
.admin-hero-icon,
.admin-owner-lock,
.admin-stat-icon,
.admin-panel-icon,
.admin-modal-icon,
.tools-icon,
.tools-feature-icon,
.tools-lock-icon{
  font-family:Inter,system-ui,sans-serif!important;
}


.button-icon{
  width:17px;
  height:17px;
  display:inline-grid;
  place-items:center;
  flex:0 0 17px;
}
.button-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* Dedicated dark login polish */
html[data-theme="dark"] body.auth-page{
  background:
    radial-gradient(circle at 78% 4%,rgba(255,79,58,.10),transparent 30%),
    radial-gradient(circle at 12% 88%,rgba(93,61,255,.08),transparent 34%),
    linear-gradient(160deg,#090c13 0%,#06080d 48%,#04060a 100%)!important;
  color:#f4f7fb!important;
}
html[data-theme="dark"] body.auth-page .ambient-1{
  background:#ff493f!important;
  opacity:.14!important;
}
html[data-theme="dark"] body.auth-page .ambient-2{
  background:#5c44e9!important;
  opacity:.11!important;
}
html[data-theme="dark"] body.auth-page .auth-shell{
  isolation:isolate;
}
html[data-theme="dark"] body.auth-page .brand-panel{
  color:#f5f7fb!important;
}
html[data-theme="dark"] body.auth-page .brand-panel h1{
  color:#f7f9fc!important;
  text-shadow:0 10px 40px rgba(0,0,0,.22);
}
html[data-theme="dark"] body.auth-page .brand-panel h1 span{
  color:#ff5a50!important;
}
html[data-theme="dark"] body.auth-page .hero-copy{
  color:#8f9aae!important;
}
html[data-theme="dark"] body.auth-page .feature-row div{
  background:linear-gradient(145deg,rgba(18,24,36,.78),rgba(10,14,22,.82))!important;
  border-color:#202938!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] body.auth-page .feature-row b{
  color:#eef2f8!important;
}
html[data-theme="dark"] body.auth-page .feature-row span{
  color:#778397!important;
}
html[data-theme="dark"] body.auth-page .auth-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 100% 0,rgba(255,84,63,.055),transparent 30%),
    linear-gradient(155deg,rgba(17,23,34,.97),rgba(8,12,19,.98))!important;
  border:1px solid #202a39!important;
  box-shadow:
    0 30px 80px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] body.auth-page .auth-card:before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,91,76,.34),transparent);
  pointer-events:none;
}
html[data-theme="dark"] body.auth-page .auth-card h2{
  color:#f3f6fb!important;
  letter-spacing:-.025em;
}
html[data-theme="dark"] body.auth-page .auth-card>.muted{
  color:#8591a5!important;
}
html[data-theme="dark"] body.auth-page .mobile-logo strong{
  color:#eef2f8!important;
}
html[data-theme="dark"] body.auth-page .card-top{
  min-height:44px;
}
html[data-theme="dark"] body.auth-page .lang-switch,
html[data-theme="dark"] body.auth-page .theme-toggle-btn{
  background:#090e16!important;
  border-color:#263142!important;
  color:#9ba6b8!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 6px 18px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] body.auth-page .lang-btn{
  color:#7e899d!important;
}
html[data-theme="dark"] body.auth-page .lang-btn.active{
  color:#fff!important;
}
html[data-theme="dark"] body.auth-page .theme-toggle-btn:hover{
  background:#101722!important;
  color:#fff!important;
  border-color:#344154!important;
}
html[data-theme="dark"] body.auth-page .oauth-area{
  padding:14px;
  border:1px solid #202a39;
  border-radius:17px;
  background:rgba(5,9,15,.52);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
html[data-theme="dark"] body.auth-page .google-native-button{
  min-height:46px;
  background:#0b1017;
  border:1px solid #273142;
  border-radius:13px;
}
html[data-theme="dark"] body.auth-page .oauth-trust{
  color:#7c889b!important;
}
html[data-theme="dark"] body.auth-page .oauth-trust-icon{
  background:rgba(41,211,145,.08)!important;
  border-color:rgba(41,211,145,.17)!important;
  color:#62dea9!important;
}
html[data-theme="dark"] body.auth-page .notice{
  background:rgba(8,13,21,.76)!important;
  border-color:#202a39!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
html[data-theme="dark"] body.auth-page .notice>span{
  background:#182131!important;
  color:#aab6c8!important;
  border:1px solid #283548;
}
html[data-theme="dark"] body.auth-page .notice p{
  color:#7e8a9e!important;
}
html[data-theme="dark"] body.auth-page .owner-login-banner{
  background:
    radial-gradient(circle at 0 0,rgba(255,183,88,.08),transparent 38%),
    rgba(8,13,20,.86)!important;
  border-color:rgba(255,183,88,.16)!important;
}
html[data-theme="dark"] body.auth-page .owner-login-banner b{
  color:#f0f3f8!important;
}
html[data-theme="dark"] body.auth-page .owner-login-banner small{
  color:#7f8a9d!important;
}
html[data-theme="dark"] body.auth-page #authMessage:not(:empty){
  background:rgba(255,72,59,.055)!important;
  border-color:rgba(255,102,91,.16)!important;
  color:#ffaaa3!important;
}
html[data-theme="dark"] body.auth-page .auth-card footer{
  color:#657185!important;
}
html[data-theme="dark"] body.auth-page .auth-card footer b{
  color:#a7b1c0!important;
}
html[data-theme="dark"] body.auth-page .production-footer-links{
  border-top-color:#1d2634!important;
}
html[data-theme="dark"] body.auth-page .production-footer-links a,
html[data-theme="dark"] body.auth-page .production-footer-links button{
  color:#647084!important;
}
html[data-theme="dark"] body.auth-page .production-footer-links a:hover,
html[data-theme="dark"] body.auth-page .production-footer-links button:hover{
  color:#ff8a73!important;
}

@media(max-width:620px){
  html[data-theme="dark"] body.auth-page{
    background:
      radial-gradient(circle at 80% 0,rgba(255,77,58,.09),transparent 34%),
      linear-gradient(180deg,#080b11,#05070b)!important;
  }
  html[data-theme="dark"] body.auth-page .auth-card{
    background:
      radial-gradient(circle at 100% 0,rgba(255,84,63,.05),transparent 30%),
      linear-gradient(160deg,#111722,#090d14)!important;
    border-color:#202a38!important;
    box-shadow:0 22px 55px rgba(0,0,0,.38)!important;
  }
  html[data-theme="dark"] body.auth-page .card-top{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  html[data-theme="dark"] body.auth-page .card-top .theme-toggle-btn{
    grid-column:2!important;
    justify-self:end!important;
  }
  html[data-theme="dark"] body.auth-page .card-top .lang-switch{
    grid-column:3!important;
    justify-self:end!important;
  }
  html[data-theme="dark"] body.auth-page .mobile-logo{
    grid-column:1!important;
    min-width:0!important;
  }
  html[data-theme="dark"] body.auth-page .oauth-area{
    padding:10px!important;
    border-radius:15px!important;
  }
}


/* Dedicated light login normalization */
html[data-theme="light"] body.auth-page{
  background:
    radial-gradient(circle at 84% 4%,rgba(255,91,72,.055),transparent 28%),
    radial-gradient(circle at 12% 94%,rgba(80,110,180,.035),transparent 30%),
    #f5f7fb!important;
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .ambient-1{
  background:#ff735f!important;
  opacity:.055!important;
}
html[data-theme="light"] body.auth-page .ambient-2{
  background:#6b7fa7!important;
  opacity:.035!important;
}
html[data-theme="light"] body.auth-page .brand-panel{
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .brand-panel h1{
  color:#172033!important;
  text-shadow:none!important;
}
html[data-theme="light"] body.auth-page .brand-panel h1 span{
  color:#ff5147!important;
}
html[data-theme="light"] body.auth-page .hero-copy{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .feature-row div{
  background:#ffffff!important;
  border:1px solid #dce3ed!important;
  box-shadow:0 8px 24px rgba(31,43,63,.055)!important;
}
html[data-theme="light"] body.auth-page .feature-row b{
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .feature-row span{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .auth-card{
  background:
    radial-gradient(circle at 100% 0,rgba(255,90,70,.025),transparent 30%),
    #ffffff!important;
  border:1px solid #dce3ed!important;
  box-shadow:0 22px 60px rgba(38,50,70,.085)!important;
}
html[data-theme="light"] body.auth-page .auth-card:before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,91,76,.22),transparent);
  pointer-events:none;
}
html[data-theme="light"] body.auth-page .auth-card h2{
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .auth-card>.muted{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .mobile-logo strong{
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .lang-switch,
html[data-theme="light"] body.auth-page .theme-toggle-btn{
  background:#f5f7fa!important;
  border-color:#d8e0eb!important;
  color:#556276!important;
  box-shadow:0 5px 16px rgba(39,52,72,.045)!important;
}
html[data-theme="light"] body.auth-page .lang-btn{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .lang-btn.active{
  color:#fff!important;
}
html[data-theme="light"] body.auth-page .oauth-area{
  padding:14px;
  border:1px solid #e1e6ee;
  border-radius:17px;
  background:#fbfcfe!important;
  box-shadow:inset 0 1px 0 #fff;
}
html[data-theme="light"] body.auth-page .google-native-button{
  background:#ffffff!important;
  border:1px solid #d8dfe9!important;
  border-radius:13px!important;
}
html[data-theme="light"] body.auth-page .oauth-trust{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .oauth-trust-icon{
  background:#ecfbf5!important;
  border-color:#c8efdf!important;
  color:#16956a!important;
}
html[data-theme="light"] body.auth-page .notice{
  background:#f7f9fc!important;
  border-color:#dce3ed!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.auth-page .notice>span{
  background:#e9eef5!important;
  color:#556276!important;
  border:1px solid #d9e1ec!important;
}
html[data-theme="light"] body.auth-page .notice p{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .owner-login-banner{
  background:#fffaf2!important;
  border-color:#ecd7aa!important;
}
html[data-theme="light"] body.auth-page .owner-login-banner b{
  color:#172033!important;
}
html[data-theme="light"] body.auth-page .owner-login-banner small{
  color:#667085!important;
}
html[data-theme="light"] body.auth-page .auth-card footer{
  color:#7a8597!important;
}
html[data-theme="light"] body.auth-page .auth-card footer b{
  color:#536074!important;
}
html[data-theme="light"] body.auth-page .production-footer-links{
  border-top-color:#e5e9f0!important;
}
html[data-theme="light"] body.auth-page .production-footer-links a,
html[data-theme="light"] body.auth-page .production-footer-links button{
  color:#667085!important;
}

@media(max-width:900px){
  html[data-theme="light"] body.auth-page .brand-panel{
    display:flex!important;
    background:
      radial-gradient(circle at 100% 0,rgba(255,88,67,.035),transparent 30%),
      #ffffff!important;
    border:1px solid #dce3ed!important;
    box-shadow:0 16px 44px rgba(38,50,70,.075)!important;
  }
}

@media(max-width:620px){
  html[data-theme="light"] body.auth-page{
    background:#f5f7fb!important;
  }
  html[data-theme="light"] body.auth-page .brand-panel{
    border-radius:22px!important;
    padding:22px 18px!important;
  }
  html[data-theme="light"] body.auth-page .auth-card{
    border-radius:22px!important;
    box-shadow:0 16px 42px rgba(38,50,70,.075)!important;
  }
  html[data-theme="light"] body.auth-page .card-top{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  html[data-theme="light"] body.auth-page .card-top .theme-toggle-btn{
    grid-column:2!important;
    justify-self:end!important;
  }
  html[data-theme="light"] body.auth-page .card-top .lang-switch{
    grid-column:3!important;
    justify-self:end!important;
  }
  html[data-theme="light"] body.auth-page .mobile-logo{
    grid-column:1!important;
    min-width:0!important;
  }
  html[data-theme="light"] body.auth-page .oauth-area{
    padding:10px!important;
    border-radius:15px!important;
  }
}


/* Login mobile header alignment: logo left, theme + language right */
@media(max-width:620px){
  body.auth-page .card-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
  }

  body.auth-page .mobile-logo{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    margin-right:auto!important;
    grid-column:auto!important;
  }

  body.auth-page .card-top .theme-toggle-btn{
    position:static!important;
    grid-column:auto!important;
    justify-self:auto!important;
    margin:0!important;
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }

  body.auth-page .card-top .lang-switch{
    position:static!important;
    grid-column:auto!important;
    justify-self:auto!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
}


/* Final compact auth header controls */
@media(max-width:900px){
  body.auth-page .card-top{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-height:44px!important;
    gap:8px!important;
    margin:0 0 18px!important;
  }

  body.auth-page .mobile-logo{
    order:1!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
    flex:1 1 auto!important;
    margin:0!important;
  }

  body.auth-page .mobile-logo .small-icon{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
  }

  body.auth-page .mobile-logo strong{
    min-width:0!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.auth-page .card-top .theme-toggle-btn{
    order:2!important;
    position:static!important;
    flex:0 0 40px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
  }

  body.auth-page .card-top .lang-switch{
    order:3!important;
    position:static!important;
    flex:0 0 auto!important;
    min-height:40px!important;
    margin:0!important;
    padding:3px!important;
    transform:none!important;
  }

  body.auth-page .card-top .lang-btn{
    min-width:43px!important;
    min-height:34px!important;
    padding:6px 9px!important;
    font-size:11px!important;
  }
}

@media(max-width:430px){
  body.auth-page .mobile-logo strong{
    display:none!important;
  }

  body.auth-page .mobile-logo{
    flex:1 1 auto!important;
  }

  body.auth-page .card-top{
    gap:7px!important;
  }

  body.auth-page .card-top .theme-toggle-btn{
    flex-basis:38px!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
  }

  body.auth-page .card-top .lang-switch{
    min-height:38px!important;
  }

  body.auth-page .card-top .lang-btn{
    min-width:40px!important;
    min-height:32px!important;
    padding:5px 8px!important;
  }
}


/* Theme placement normalization */
.signup-header{
  display:flex;
  align-items:center;
  gap:10px;
}
.signup-header>.brand-inline{margin-right:auto}
.signup-header>.theme-toggle-btn{flex:0 0 auto}
.signup-header>.lang-switch{flex:0 0 auto}

.maintenance-lang-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.maintenance-lang-row>.theme-toggle-btn{
  flex:0 0 auto;
  margin:0!important;
}

.info-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.info-toolbar .info-back{margin:0}
.info-toolbar>.theme-toggle-btn{flex:0 0 auto}

/* Signup theme surfaces */
html[data-theme="dark"] body.signup-page{
  background:
    radial-gradient(circle at 82% 2%,rgba(255,79,58,.09),transparent 30%),
    radial-gradient(circle at 8% 92%,rgba(93,61,255,.07),transparent 32%),
    linear-gradient(160deg,#090c13,#05070b)!important;
}
html[data-theme="dark"] body.signup-page .onboarding-card{
  background:
    radial-gradient(circle at 100% 0,rgba(255,84,63,.05),transparent 30%),
    linear-gradient(155deg,#111722,#090d14)!important;
  border-color:#202a39!important;
  box-shadow:0 28px 72px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body.signup-page .signup-header{
  border-bottom-color:#202a39!important;
}
html[data-theme="dark"] body.signup-page .signup-brand-copy strong,
html[data-theme="dark"] body.signup-page .signup-intro h1{
  color:#f1f4f9!important;
}
html[data-theme="dark"] body.signup-page .signup-brand-copy span,
html[data-theme="dark"] body.signup-page .signup-intro p,
html[data-theme="dark"] body.signup-page .compact-footer{
  color:#7e899d!important;
}
html[data-theme="dark"] body.signup-page .profile-form label{
  color:#dbe2ec!important;
}
html[data-theme="dark"] body.signup-page .profile-form input,
html[data-theme="dark"] body.signup-page .profile-form select{
  background:#0a0f17!important;
  border-color:#253042!important;
  color:#edf2f8!important;
}
html[data-theme="dark"] body.signup-page .profile-form input:focus,
html[data-theme="dark"] body.signup-page .profile-form select:focus{
  border-color:#ff675d!important;
  box-shadow:0 0 0 3px rgba(255,79,64,.08)!important;
}
html[data-theme="dark"] body.signup-page .compact-terms{
  background:rgba(7,11,18,.72)!important;
  border-color:#202a39!important;
  color:#8d98aa!important;
}
html[data-theme="dark"] body.signup-page .signup-back-btn{
  color:#98a4b7!important;
}
html[data-theme="dark"] body.signup-page .signup-back-btn:hover{
  color:#fff!important;
}
html[data-theme="dark"] body.signup-page .lang-switch,
html[data-theme="dark"] body.signup-page .theme-toggle-btn{
  background:#090e16!important;
  border-color:#263142!important;
  color:#9ba6b8!important;
}

/* Maintenance / restricted */
html[data-theme="dark"] .maintenance-card,
html[data-theme="dark"] .maintenance-card-pro{
  background:
    radial-gradient(circle at 50% 0,rgba(255,183,88,.045),transparent 28%),
    linear-gradient(155deg,#111722,#090d14)!important;
  border-color:#202a39!important;
}
html[data-theme="dark"] .maintenance-lang-row .theme-toggle-btn,
html[data-theme="dark"] .maintenance-lang-row .lang-switch{
  background:#090e16!important;
  border-color:#263142!important;
  color:#9ba6b8!important;
}

/* Info pages */
html[data-theme="dark"] .info-card{
  background:linear-gradient(155deg,#111722,#090d14)!important;
  border-color:#202a39!important;
  box-shadow:0 26px 68px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] .info-toolbar .info-back{
  color:#8390a3!important;
}
html[data-theme="dark"] .info-toolbar .theme-toggle-btn{
  background:#090e16!important;
  border-color:#263142!important;
  color:#9ba6b8!important;
}

@media(max-width:620px){
  .signup-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
    gap:7px!important;
  }
  .signup-header>.brand-inline{min-width:0;margin:0!important}
  .signup-header>.theme-toggle-btn{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
  }
  .signup-header>.lang-switch{
    margin:0!important;
    transform:none!important;
  }
  .signup-header .lang-btn{
    min-width:40px!important;
    min-height:32px!important;
    padding:5px 8px!important;
  }
  .maintenance-lang-row{
    margin:-10px -3px 10px 0!important;
  }
  .info-toolbar{
    margin-bottom:12px;
  }
}


/* Public status page */
.status-page{min-height:100vh;padding:24px;background:#070a10;color:var(--text)}
.status-shell{width:min(980px,100%);margin:0 auto}
.status-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.status-back{color:#8d98aa;text-decoration:none;font-size:10px}
.status-card{padding:26px;border-radius:24px}
.status-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.status-header h1{margin:7px 0 8px;font-size:clamp(30px,5vw,46px)}
.status-header p{margin:0;color:#7f8a9d;font-size:11px;line-height:1.6}
.status-overall{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;border:1px solid #273142;background:#0b1119;color:#9ba6b8;font-size:8px;font-weight:900;white-space:nowrap}
.status-overall i{width:8px;height:8px;border-radius:50%;background:#7f8a9d;box-shadow:0 0 0 4px rgba(127,138,157,.08)}
.status-overall.is-operational{color:#59dfa9;border-color:rgba(41,211,145,.15);background:rgba(41,211,145,.045)}
.status-overall.is-operational i{background:#29d391}
.status-overall.is-degraded{color:#ffbd63;border-color:rgba(255,183,88,.17);background:rgba(255,183,88,.045)}
.status-overall.is-degraded i{background:#ffbd63}
.status-overall.is-offline{color:#ff8177;border-color:rgba(255,92,73,.17);background:rgba(255,92,73,.045)}
.status-overall.is-offline i{background:#ff5c49}
.status-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
.status-summary>div{padding:14px;border:1px solid #202a38;border-radius:14px;background:#0a1018}
.status-summary span,.status-summary b{display:block}
.status-summary span{color:#6e7a8c;font-size:8px}
.status-summary b{margin-top:5px;font-size:16px}
.status-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}
.status-actions small{color:#6f7b8d;font-size:8px}
.status-node-list{display:grid;gap:10px}
.status-node{padding:14px;border:1px solid #202a38;border-radius:15px;background:#0a1018}
.status-node-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.status-node-head b,.status-node-head small{display:block}
.status-node-head b{font-size:11px}
.status-node-head small{margin-top:4px;color:#6e7a8c;font-size:8px}
.status-node-state{padding:6px 8px;border-radius:999px;border:1px solid #273142;color:#8490a3;font-size:7px;font-weight:900}
.status-node-state.is-online{color:#59dfa9;border-color:rgba(41,211,145,.13);background:rgba(41,211,145,.04)}
.status-node-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.status-node-meta>div{padding:9px;border-radius:10px;background:#080d14;border:1px solid #192230}
.status-node-meta span,.status-node-meta b{display:block}
.status-node-meta span{color:#667386;font-size:7px}
.status-node-meta b{margin-top:3px;font-size:9px}
.status-scope{margin:16px 0 0;color:#6c788a;font-size:8px;line-height:1.55}
html[data-theme="light"] body.status-page{background:#f4f6fb!important;color:#172033!important}
html[data-theme="light"] .status-card,
html[data-theme="light"] .status-node,
html[data-theme="light"] .status-summary>div{background:#fff!important;border-color:#dce2eb!important;color:#172033!important}
html[data-theme="light"] .status-node-meta>div{background:#f7f9fc!important;border-color:#e0e6ef!important}
html[data-theme="light"] .status-header p,
html[data-theme="light"] .status-actions small,
html[data-theme="light"] .status-node-head small,
html[data-theme="light"] .status-node-meta span,
html[data-theme="light"] .status-scope,
html[data-theme="light"] .status-back{color:#667085!important}
@media(max-width:620px){
  .status-page{padding:14px}
  .status-card{padding:20px}
  .status-header{display:grid}
  .status-summary{grid-template-columns:1fr}
  .status-node-meta{grid-template-columns:1fr}
  .status-actions{align-items:stretch;flex-direction:column}
  .status-actions button{width:100%}
}


/* Notification center */
.topbar-user-actions{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
}
.notification-bell-btn{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  border:1px solid #243043;
  background:#0b1119;
  color:#93a0b4;
  cursor:pointer;
  transition:.18s ease;
}
.notification-bell-btn:hover,
.notification-bell-btn.has-unread{
  color:#fff;
  border-color:rgba(255,183,88,.25);
  background:#101722;
}
.notification-bell-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.notification-count{
  position:absolute;
  right:-5px;
  top:-5px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg,#ff3b30,#ff6b35);
  color:#fff;
  border:2px solid #080c13;
  font-size:7px;
  font-weight:900;
  box-shadow:0 5px 12px rgba(255,59,48,.25);
}
.notification-panel{
  position:relative;
  z-index:25;
  width:min(460px,100%);
  margin:-16px 0 20px auto;
  border-radius:18px;
  overflow:hidden;
}
.notification-panel[hidden]{display:none!important}
.notification-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 15px;
  border-bottom:1px solid rgba(255,255,255,.055);
}
.notification-panel-head span,
.notification-panel-head b{display:block}
.notification-panel-head span{
  color:#6f7b8e;
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
}
.notification-panel-head b{
  margin-top:3px;
  font-size:11px;
}
.notification-panel-head button{
  border:0;
  background:transparent;
  color:#ff9b78;
  font:inherit;
  font-size:8px;
  font-weight:850;
  cursor:pointer;
}
.notification-list{
  display:grid;
  max-height:420px;
  overflow:auto;
}
.notification-item{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:10px;
  align-items:flex-start;
  width:100%;
  padding:13px 15px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.045);
  background:transparent;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.notification-item:hover{background:rgba(255,255,255,.025)}
.notification-item.is-unread{background:rgba(255,183,88,.025)}
.notification-type-dot{
  width:8px;
  height:8px;
  margin-top:4px;
  border-radius:50%;
  background:#738095;
}
.notification-item.type-success .notification-type-dot{background:#29d391}
.notification-item.type-warning .notification-type-dot{background:#ffbd63}
.notification-item.type-info .notification-type-dot{background:#6f94ff}
.notification-item-copy b,
.notification-item-copy p,
.notification-item-copy small{display:block;margin:0}
.notification-item-copy b{font-size:9px}
.notification-item-copy p{
  margin-top:4px;
  color:#7f8b9d;
  font-size:8px;
  line-height:1.45;
}
.notification-item-copy small{
  margin-top:6px;
  color:#596679;
  font-size:7px;
}
.notification-new-dot{
  width:7px;
  height:7px;
  margin-top:4px;
  border-radius:50%;
  background:#ff6b35;
  box-shadow:0 0 0 4px rgba(255,107,53,.08);
}
.notification-empty{
  padding:22px 15px;
  color:#748094;
  text-align:center;
  font-size:9px;
}

/* Admin notification composer */
.admin-notification-panel{margin-top:16px}
.admin-notification-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:16px;
  margin-top:16px;
}
.admin-notification-form{
  display:grid;
  gap:11px;
}
.admin-notification-form .admin-field{margin:0}
.admin-notification-form textarea{min-height:110px}
.admin-notification-recent{
  display:grid;
  gap:8px;
  align-content:start;
}
.admin-notification-item{
  padding:12px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(6,10,16,.48);
}
.admin-notification-item-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.admin-notification-item b,
.admin-notification-item small,
.admin-notification-item p{display:block;margin:0}
.admin-notification-item b{font-size:9px}
.admin-notification-item small{color:#697587;font-size:7px}
.admin-notification-item p{
  margin-top:6px;
  color:#7b8799;
  font-size:8px;
  line-height:1.45;
}
.admin-notification-type{
  padding:5px 7px;
  border-radius:999px;
  border:1px solid #263143;
  color:#8793a5;
  font-size:6px;
  font-weight:900;
}
.admin-notification-type.warning{color:#ffbd63;border-color:rgba(255,183,88,.14)}
.admin-notification-type.success{color:#59dfa9;border-color:rgba(41,211,145,.12)}
.admin-notification-type.info{color:#8fb0ff;border-color:rgba(111,148,255,.14)}

html[data-theme="light"] .notification-bell-btn{
  background:#fff!important;
  border-color:#d5deea!important;
  color:#667085!important;
}
html[data-theme="light"] .notification-bell-btn:hover,
html[data-theme="light"] .notification-bell-btn.has-unread{
  color:#172033!important;
  background:#f7f9fc!important;
}
html[data-theme="light"] .notification-count{border-color:#fff!important}
html[data-theme="light"] .notification-panel{
  background:#fff!important;
  border-color:#dce2eb!important;
}
html[data-theme="light"] .notification-panel-head{
  border-bottom-color:#e4e9f0!important;
}
html[data-theme="light"] .notification-item{
  border-bottom-color:#edf0f4!important;
  color:#172033!important;
}
html[data-theme="light"] .notification-item:hover{background:#f8fafc!important}
html[data-theme="light"] .notification-item.is-unread{background:#fffaf2!important}
html[data-theme="light"] .notification-item-copy p,
html[data-theme="light"] .notification-item-copy small,
html[data-theme="light"] .notification-empty{color:#667085!important}
html[data-theme="light"] .admin-notification-item{
  background:#fff!important;
  border-color:#dce3ed!important;
}
html[data-theme="light"] .admin-notification-item p,
html[data-theme="light"] .admin-notification-item small{color:#667085!important}

@media(max-width:620px){
  .topbar{
    gap:10px!important;
  }
  .topbar-user-actions{
    gap:6px;
  }
    .notification-bell-btn{
    width:40px;
    height:40px;
    border-radius:12px;
  }
  .notification-panel{
    width:100%;
    margin:-8px 0 16px;
  }
  .notification-list{max-height:55vh}
  .admin-notification-grid{grid-template-columns:1fr}
}


/* DOBERTO FF PROXY — Admin layout polish v20260920 */
@media (min-width: 981px){
  .pro-admin-stats{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
  }
  .admin-stat-pro{
    min-height:176px!important;
    padding:20px!important;
  }
}

@media (min-width: 621px) and (max-width: 980px){
  .pro-admin-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Notification Center: professional form controls + balanced columns */
.admin-notification-panel{
  overflow:hidden;
}
.admin-notification-grid{
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
  gap:22px!important;
  align-items:start!important;
}
.admin-notification-form{
  padding:18px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:18px!important;
  background:rgba(6,10,16,.46)!important;
}
.admin-notification-form .admin-field{
  gap:8px!important;
}
.admin-notification-form .admin-field>span{
  color:#aeb7c6!important;
  font-size:10px!important;
  font-weight:750!important;
  letter-spacing:.01em!important;
}
.admin-notification-form input,
.admin-notification-form select,
.admin-notification-form textarea{
  width:100%!important;
  min-height:46px!important;
  padding:12px 14px!important;
  border:1px solid #202a38!important;
  border-radius:12px!important;
  background:#080d14!important;
  color:#eef2f8!important;
  font:inherit!important;
  font-size:11px!important;
  outline:none!important;
  box-shadow:none!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.admin-notification-form textarea{
  min-height:126px!important;
  resize:vertical!important;
  line-height:1.55!important;
}
.admin-notification-form input::placeholder,
.admin-notification-form textarea::placeholder{
  color:#5f6b7d!important;
  opacity:1!important;
}
.admin-notification-form input:focus,
.admin-notification-form select:focus,
.admin-notification-form textarea:focus{
  border-color:rgba(255,105,87,.42)!important;
  box-shadow:0 0 0 3px rgba(255,74,55,.075)!important;
  background:#0a1019!important;
}
.admin-notification-form select{
  appearance:auto!important;
  cursor:pointer!important;
}
.admin-notification-form .primary-btn{
  width:100%!important;
  min-height:48px!important;
  margin-top:2px!important;
  border-radius:13px!important;
  font-size:11px!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 24px rgba(255,72,48,.12)!important;
}
.admin-notification-grid>div:last-child{
  min-width:0!important;
  min-height:100%!important;
  padding:18px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:18px!important;
  background:rgba(6,10,16,.34)!important;
}
.admin-notification-grid>div:last-child>h3{
  margin:0 0 14px!important;
  font-size:15px!important;
  line-height:1.2!important;
  letter-spacing:-.02em!important;
}
.admin-notification-recent{
  min-height:180px!important;
  max-height:520px!important;
  overflow:auto!important;
  padding-right:3px!important;
}
.admin-notification-item{
  padding:14px!important;
  border-radius:14px!important;
}
.admin-notification-item b{
  font-size:10px!important;
}
.admin-notification-item small{
  font-size:8px!important;
}
.admin-notification-item p{
  font-size:9px!important;
  line-height:1.55!important;
}
.admin-notification-type{
  font-size:7px!important;
  padding:5px 8px!important;
}
.admin-notification-panel .admin-feed-empty{
  min-height:140px!important;
  display:grid!important;
  place-items:center!important;
  padding:18px!important;
  border:1px dashed rgba(255,255,255,.07)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.015)!important;
}

html[data-theme="light"] .admin-notification-form,
html[data-theme="light"] .admin-notification-grid>div:last-child{
  background:#f8fafc!important;
  border-color:#dde4ee!important;
}
html[data-theme="light"] .admin-notification-form input,
html[data-theme="light"] .admin-notification-form select,
html[data-theme="light"] .admin-notification-form textarea{
  background:#fff!important;
  border-color:#d7dee8!important;
  color:#172033!important;
}
html[data-theme="light"] .admin-notification-form input::placeholder,
html[data-theme="light"] .admin-notification-form textarea::placeholder{
  color:#98a2b3!important;
}
html[data-theme="light"] .admin-notification-panel .admin-feed-empty{
  background:#fff!important;
  border-color:#dfe5ed!important;
}

@media(max-width:900px){
  .admin-notification-grid{
    grid-template-columns:1fr!important;
  }
  .admin-notification-grid>div:last-child{
    min-height:auto!important;
  }
}
@media(max-width:620px){
  .admin-notification-form,
  .admin-notification-grid>div:last-child{
    padding:15px!important;
    border-radius:16px!important;
  }
  .admin-notification-form input,
  .admin-notification-form select,
  .admin-notification-form textarea{
    min-height:48px!important;
    font-size:16px!important;
  }
  .admin-notification-form textarea{
    min-height:132px!important;
  }
}


/* DOBERTO FF PROXY — Admin placement hard-fix v20260920-2 */
.admin-stat-grid.pro-admin-stats{
  display:grid!important;
  width:100%!important;
  grid-auto-flow:row!important;
  align-items:stretch!important;
}
.admin-stat-grid.pro-admin-stats>.admin-stat-pro{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}
@media(min-width:1180px){
  .admin-stat-grid.pro-admin-stats{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(min-width:721px) and (max-width:1179px){
  .admin-stat-grid.pro-admin-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .admin-stat-grid.pro-admin-stats{
    grid-template-columns:1fr!important;
  }
}

/* The generic .admin-field display rule was overriding HTML [hidden]. */
.admin-notification-form .notification-field[hidden]{
  display:none!important;
}

.admin-notification-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;
  gap:20px!important;
  align-items:stretch!important;
}
.admin-notification-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-content:start!important;
}
.notification-field{
  min-width:0!important;
  margin:0!important;
}
.notification-field-audience{grid-column:1!important}
.notification-field-type{grid-column:2!important}
.notification-field-target,
.notification-field-title,
.notification-field-message{
  grid-column:1 / -1!important;
}
.notification-field-expiry{grid-column:1!important}
.notification-submit{
  grid-column:2!important;
  align-self:end!important;
  height:46px!important;
  margin:0!important;
}
.notification-status{
  grid-column:1 / -1!important;
  margin:0!important;
  min-height:18px!important;
}
.admin-notification-recent-panel{
  min-width:0!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  padding:18px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:18px!important;
  background:rgba(6,10,16,.34)!important;
}
.admin-notification-recent-panel>h3{
  margin:0 0 14px!important;
  font-size:15px!important;
  line-height:1.2!important;
}
.admin-notification-recent{
  flex:1 1 auto!important;
  min-height:250px!important;
}
.admin-notification-panel .admin-feed-empty{
  height:100%!important;
  min-height:250px!important;
}

@media(max-width:980px){
  .admin-notification-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:720px){
  .admin-notification-form{
    grid-template-columns:1fr!important;
  }
  .notification-field-audience,
  .notification-field-type,
  .notification-field-target,
  .notification-field-title,
  .notification-field-message,
  .notification-field-expiry,
  .notification-submit,
  .notification-status{
    grid-column:1!important;
  }
  .admin-notification-recent{
    min-height:160px!important;
  }
  .admin-notification-panel .admin-feed-empty{
    min-height:160px!important;
  }
}


/* DOBERTO FF PROXY — Admin stat internal alignment v20260920-3 */
@media(min-width:721px){
  .admin-stat-grid.pro-admin-stats{
    gap:14px!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro{
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) auto!important;
    grid-template-areas:
      "icon label badge"
      "icon value badge"
      "icon note note"!important;
    align-items:center!important;
    column-gap:14px!important;
    row-gap:4px!important;
    min-height:132px!important;
    padding:18px 20px!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-top{
    display:contents!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-icon{
    grid-area:icon!important;
    width:52px!important;
    height:52px!important;
    border-radius:15px!important;
    align-self:center!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-icon svg{
    width:22px!important;
    height:22px!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-trend{
    grid-area:badge!important;
    justify-self:end!important;
    align-self:start!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-label{
    grid-area:label!important;
    margin:0!important;
    align-self:end!important;
    font-size:10px!important;
    line-height:1.25!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro>b{
    grid-area:value!important;
    margin:0!important;
    align-self:center!important;
    font-size:31px!important;
    line-height:1!important;
  }
  .admin-stat-grid.pro-admin-stats>.admin-stat-pro>small{
    grid-area:note!important;
    margin:0!important;
    padding-top:2px!important;
    font-size:8.5px!important;
    line-height:1.35!important;
  }
}


/* DOBERTO FF PROXY — Stat icon true-center fix v20260920-4 */
/* .admin-stat span{display:block} was overriding the icon's grid centering. */
.admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-icon{
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  justify-items:center!important;
  padding:0!important;
  line-height:0!important;
  text-align:center!important;
  overflow:hidden!important;
}
.admin-stat-grid.pro-admin-stats>.admin-stat-pro .admin-stat-icon svg{
  display:block!important;
  margin:auto!important;
  flex:none!important;
  transform:none!important;
}

/* DOBERTO PROXY V5 — iOS profile card */
.ios-profile-card{position:relative;overflow:hidden;border-color:rgba(255,107,53,.24)!important}
.ios-profile-card:before{content:"";position:absolute;inset:-35% auto auto 55%;width:170px;height:170px;border-radius:50%;background:rgba(255,59,48,.12);filter:blur(45px);pointer-events:none}
.ios-profile-card .quick-card-kicker{color:#ff8a82}
.ios-profile-card .quick-card-arrow{color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.ios-profile-card:hover{border-color:rgba(255,107,53,.45)!important;transform:translateY(-2px)}
