/* CoachAssist dashboard system — light lime glass.
   Loaded after the legacy dashboard layers to keep the product surface unified. */
:root{
  --cad-ink:#1b2734;
  --cad-ink-soft:#435160;
  --cad-muted:#71808d;
  --cad-lime:#b7ef00;
  --cad-lime-strong:#a4d900;
  --cad-lime-pale:#efffc4;
  --cad-canvas:#f7f8f5;
  --cad-card:rgba(255,255,255,.76);
  --cad-card-strong:rgba(255,255,255,.92);
  --cad-line:rgba(27,39,52,.10);
  --cad-line-strong:rgba(27,39,52,.16);
  --cad-shadow:0 20px 56px rgba(27,39,52,.10);
  --cad-shadow-soft:0 10px 26px rgba(27,39,52,.07);
}

html body:has(.sb),
html body:has(.admin-shell){
  background:
    radial-gradient(circle at 93% 3%,rgba(183,239,0,.25),transparent 28%),
    radial-gradient(circle at 8% 4%,rgba(220,255,119,.22),transparent 24%),
    linear-gradient(135deg,#fbfcf9 0%,#f4f7f0 53%,#fafcf7 100%) !important;
  color:var(--cad-ink) !important;
}

/* ── Coach workspace ─────────────────────────────────────────────── */
html body .sb{
  --g:var(--cad-lime);
  --gl:#d7ff72;
  --gd:var(--cad-lime-strong);
  --dk:var(--cad-ink);
  --mu:var(--cad-muted);
  --bo:var(--cad-line);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,255,231,.72)) !important;
  border-left:1px solid rgba(255,255,255,.92) !important;
  border-right:1px solid var(--cad-line) !important;
  box-shadow:-18px 0 56px rgba(27,39,52,.08),inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter:blur(28px) saturate(150%) !important;
  -webkit-backdrop-filter:blur(28px) saturate(150%) !important;
  overflow:hidden;
}
html body .sb:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:220px;height:220px;right:-118px;top:-104px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(183,239,0,.48),rgba(183,239,0,0) 69%);
  pointer-events:none;
}
html body .sb-logo{
  padding:18px 16px 15px !important;
  border-bottom:1px solid var(--cad-line) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(249,255,232,.65)) !important;
}
html body .sb-ico{
  width:42px;height:42px;
  border-radius:15px !important;
  background:linear-gradient(135deg,#d8ff69 0%,var(--cad-lime) 52%,#9fd600 100%) !important;
  color:var(--cad-ink) !important;
  box-shadow:0 11px 22px rgba(164,217,0,.25),inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html body .sb-t{color:var(--cad-ink) !important;font-weight:900 !important;}
html body .sb-s{color:var(--cad-muted) !important;}
html body .sb-sec{color:#82906f !important;letter-spacing:.3px !important;font-size:10px !important;}
html body .sb-nav{padding:11px 9px !important;}
html body .sb .ni{
  min-height:40px;
  margin:2px 0;
  padding:9px 10px !important;
  border:1px solid transparent !important;
  border-right:0 !important;
  border-radius:14px !important;
  color:var(--cad-ink-soft) !important;
  font-weight:760 !important;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}
html body .sb .ni-ic{
  width:26px;height:26px;
  display:inline-grid;place-items:center;
  border-radius:9px;
  color:#61705c !important;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(27,39,52,.06);
}
html body .sb .ni:hover{
  background:rgba(255,255,255,.78) !important;
  border-color:var(--cad-line) !important;
  color:var(--cad-ink) !important;
  transform:translateX(-2px) !important;
  box-shadow:var(--cad-shadow-soft) !important;
}
html body .sb .ni.on{
  background:linear-gradient(135deg,#d9ff77,#b7ef00) !important;
  border-color:rgba(113,151,0,.18) !important;
  color:var(--cad-ink) !important;
  box-shadow:0 10px 22px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.66) !important;
}
html body .sb .ni.on .ni-ic{background:rgba(255,255,255,.58);color:var(--cad-ink) !important;}
html body .sb .ni-b{background:var(--cad-ink) !important;color:#fff !important;}
html body .sb-ft{border-color:var(--cad-line) !important;color:var(--cad-muted) !important;}

html body .main{background:transparent !important;}
html body .tb{
  background:rgba(255,255,255,.72) !important;
  border-bottom:1px solid rgba(255,255,255,.9) !important;
  box-shadow:0 8px 26px rgba(27,39,52,.04) !important;
  backdrop-filter:blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(145%) !important;
}
html body .tb h1,html body .pt,html body .ph,html body .main h1,html body .main h2,html body .main h3{color:var(--cad-ink) !important;}
html body .tb-date,html body .main .chip,html body .main .badge{
  background:rgba(255,255,255,.72) !important;
  border:1px solid var(--cad-line) !important;
  color:var(--cad-ink-soft) !important;
}
html body .ct{padding-bottom:96px !important;}
html body .main .pn,
html body .main .sc,
html body .main .card,
html body .main .set-card,
html body .main .box,
html body .main .hero,
html body .main .note-box,
html body .main .table-box,
html body .main .srch-bar{
  background:linear-gradient(135deg,rgba(255,255,255,.84),rgba(255,255,255,.60)) !important;
  border:1px solid rgba(255,255,255,.94) !important;
  box-shadow:var(--cad-shadow-soft),inset 0 1px 0 rgba(255,255,255,.95) !important;
  backdrop-filter:blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(150%) !important;
}
html body .main .pn:hover,html body .main .sc:hover,html body .main .set-card:hover{box-shadow:var(--cad-shadow) !important;}
html body .main .ph,html body .main .set-head{border-color:var(--cad-line) !important;background:rgba(255,255,255,.32) !important;}
html body .main .sl,html body .main .ss,html body .main .muted,html body .main .sub,html body .main .set-sub{color:var(--cad-muted) !important;}
html body .main .sv,html body .main .num{color:var(--cad-ink) !important;}
html body .main .sc.cg,html body .main .sc.cb,html body .main .sc.cr,html body .main .sc.cy,html body .main .sc.cp{border-top-color:var(--cad-lime) !important;}

html body .main input,
html body .main select,
html body .main textarea,
html body .main .edit-box input,
html body .main .edit-box select{
  color:var(--cad-ink) !important;
  background:rgba(255,255,255,.84) !important;
  border-color:var(--cad-line-strong) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html body .main input:focus,html body .main select:focus,html body .main textarea:focus{
  border-color:rgba(132,177,0,.62) !important;
  box-shadow:0 0 0 4px rgba(183,239,0,.22),inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html body .main label{color:var(--cad-ink-soft) !important;}

html body .main .btn,
html body .main .bp,
html body .main .bp2,
html body .main .bg2{
  background:linear-gradient(135deg,#d8ff69 0%,var(--cad-lime) 55%,#a7dc00 100%) !important;
  color:var(--cad-ink) !important;
  border:1px solid rgba(111,151,0,.20) !important;
  box-shadow:0 10px 23px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.68) !important;
  font-weight:850 !important;
}
html body .main .btn:hover,html body .main .bp:hover,html body .main .bp2:hover,html body .main .bg2:hover{
  filter:none !important;
  transform:translateY(-2px) !important;
  box-shadow:0 16px 30px rgba(164,217,0,.30),inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html body .main .btn.secondary,
html body .main .btn.bs,
html body .main .btn.bs2,
html body .main .bs,
html body .main .bs2{
  color:var(--cad-ink-soft) !important;
  background:rgba(255,255,255,.80) !important;
  border-color:var(--cad-line-strong) !important;
  box-shadow:none !important;
}
html body .main .btn.danger,html body .main .btn.bd,html body .main .btn.bd2,html body .main .bd,html body .main .bd2{
  background:linear-gradient(135deg,#ff7a7a,#ef4444) !important;
  color:#fff !important;
  border-color:rgba(185,28,28,.20) !important;
  box-shadow:0 10px 22px rgba(239,68,68,.20) !important;
}
html body .main .btn[disabled]{opacity:.52;box-shadow:none !important;cursor:not-allowed;}

html body .main table,html body .main .tw table{background:transparent !important;}
html body .main th{background:rgba(239,255,196,.45) !important;color:#5c694e !important;border-color:var(--cad-line) !important;}
html body .main td{background:rgba(255,255,255,.50) !important;color:var(--cad-ink-soft) !important;border-color:rgba(27,39,52,.07) !important;}
html body .main tbody tr:hover td{background:rgba(239,255,196,.40) !important;}
html body .main .table-wrap{border-color:var(--cad-line) !important;background:rgba(255,255,255,.34) !important;}

html body .main .prof-hero{
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(241,255,199,.86)) !important;
  color:var(--cad-ink) !important;
  border:1px solid rgba(255,255,255,.96) !important;
  box-shadow:var(--cad-shadow) !important;
}
html body .main .prof-hero *,html body .main .prof-hero h1,html body .main .prof-hero h2{color:var(--cad-ink) !important;}
html body .main .prof-hero .muted{color:var(--cad-muted) !important;}
html body .dock-nav,html body .bottom-nav{
  background:rgba(255,255,255,.86) !important;
  border-color:rgba(255,255,255,.95) !important;
  box-shadow:0 18px 42px rgba(27,39,52,.14),inset 0 1px 0 #fff !important;
}
html body .dock-item.center,html body .dock-item.center.on,html body .dock-item.center:hover{background:var(--cad-lime) !important;color:var(--cad-ink) !important;box-shadow:0 10px 24px rgba(164,217,0,.28) !important;}
html body .mnav{background:rgba(255,255,255,.86) !important;color:var(--cad-ink) !important;border-color:rgba(255,255,255,.94) !important;box-shadow:var(--cad-shadow-soft) !important;}

/* ── Super admin ─────────────────────────────────────────────────── */
html body .admin-shell{
  --ac:var(--cad-lime);
  --ac2:#d8ff69;
  --gw:var(--cad-card);
  --gb:var(--cad-line);
  --ink:var(--cad-ink);
  --muted:var(--cad-muted);
  --line:var(--cad-line);
  --soft:var(--cad-lime-pale);
  --brand:var(--cad-lime);
  --brand2:#d8ff69;
  --card:var(--cad-card-strong);
  max-width:1440px !important;
  grid-template-columns:270px minmax(0,1fr) !important;
  gap:18px !important;
  padding:20px !important;
}
html body .admin-shell .panel,
html body .admin-shell section.panel{
  background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,255,255,.62)) !important;
  border:1px solid rgba(255,255,255,.95) !important;
  border-radius:26px !important;
  box-shadow:var(--cad-shadow-soft),inset 0 1px 0 rgba(255,255,255,.98) !important;
  backdrop-filter:blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(145%) !important;
}
html body .admin-shell .admin-menu{
  position:sticky !important;
  top:20px !important;
  height:calc(100vh - 40px) !important;
  padding:16px !important;
  background:linear-gradient(165deg,rgba(255,255,255,.94),rgba(247,255,226,.75)) !important;
  border-color:rgba(255,255,255,.98) !important;
  box-shadow:-2px 15px 44px rgba(27,39,52,.09),inset 0 1px 0 #fff !important;
}
html body .admin-brand{padding:5px 5px 15px !important;border-color:var(--cad-line) !important;}
html body .admin-brand .logo{
  background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  box-shadow:0 10px 22px rgba(164,217,0,.22) !important;
}
html body .admin-brand .logo[data-app-logo]{
  background-image:url("brand/coachassist-symbol.png") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:78% !important;
  font-size:0 !important;
}
html body .admin-brand h2,html body .admin-hero h1,html body .admin-content h1,html body .admin-shell section h1{color:var(--cad-ink) !important;}
html body .admin-brand .muted,html body .admin-hero .muted,html body .admin-shell .note,html body .admin-shell .muted{color:var(--cad-muted) !important;}
html body .admin-nav{gap:9px !important;padding:4px 0 !important;}
html body .admin-nav-sec{display:grid;gap:3px;padding:2px 0 9px;border-bottom:1px solid rgba(27,39,52,.07);}
html body .admin-nav-sec:last-child{border-bottom:0;}
html body .admin-nav-title{color:#83916d !important;font-size:10px !important;font-weight:900 !important;padding:4px 8px !important;}
html body .admin-menu.panel .admin-nav a{
  min-height:41px;
  padding:9px 10px !important;
  border-radius:14px !important;
  color:var(--cad-ink-soft) !important;
  font-weight:780 !important;
  border:1px solid transparent !important;
}
html body .admin-menu.panel .admin-nav a span:first-child{
  width:25px;height:25px;
  display:inline-grid;place-items:center;
  border-radius:9px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(27,39,52,.06);
  color:var(--cad-ink-soft) !important;
}
html body .admin-menu.panel .admin-nav a:hover{background:rgba(255,255,255,.82) !important;border-color:var(--cad-line) !important;color:var(--cad-ink) !important;transform:translateX(-2px) !important;}
html body .admin-menu.panel .admin-nav a.active{
  background:linear-gradient(135deg,#ddff82,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  border-color:rgba(118,156,0,.20) !important;
  box-shadow:0 10px 22px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.68) !important;
}
html body .admin-menu.panel .admin-nav a.active span:first-child{background:rgba(255,255,255,.58) !important;color:var(--cad-ink) !important;}
html body .admin-menu-bottom{border-color:var(--cad-line) !important;}
html body .admin-shell .btn{
  background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  border:1px solid rgba(114,151,0,.20) !important;
  box-shadow:0 10px 22px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.66) !important;
}
html body .admin-shell .btn.secondary{background:rgba(255,255,255,.84) !important;color:var(--cad-ink-soft) !important;border-color:var(--cad-line-strong) !important;box-shadow:none !important;}
html body .admin-shell .btn.danger{background:linear-gradient(135deg,#ff7a7a,#ef4444) !important;color:#fff !important;border-color:rgba(185,28,28,.20) !important;}
html body .admin-shell .btn:hover{filter:none !important;transform:translateY(-2px) !important;}
html body .admin-hero{padding:4px 4px 10px !important;margin-bottom:12px !important;}
html body .admin-stats .stat,html body .admin-kpi-row .stat{
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(239,255,196,.58)) !important;
  border:1px solid rgba(255,255,255,.95) !important;
  box-shadow:var(--cad-shadow-soft),inset 0 1px 0 #fff !important;
}
html body .admin-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
html body .admin-stats .num,html body .admin-kpi-row .num{color:var(--cad-ink) !important;}
html body .admin-shell .fg input,html body .admin-shell .fg select,html body .admin-shell textarea,html body .admin-shell .edit-box input,html body .admin-shell .edit-box select{
  background:rgba(255,255,255,.86) !important;
  border-color:var(--cad-line-strong) !important;
  color:var(--cad-ink) !important;
}
html body .admin-shell .fg input:focus,html body .admin-shell .fg select:focus,html body .admin-shell textarea:focus{
  border-color:rgba(132,177,0,.62) !important;
  box-shadow:0 0 0 4px rgba(183,239,0,.22) !important;
}
html body .admin-shell .table-wrap{background:rgba(255,255,255,.48) !important;border-color:var(--cad-line) !important;}
html body .admin-shell th{background:rgba(239,255,196,.48) !important;color:#59694c !important;border-color:var(--cad-line) !important;}
html body .admin-shell td{background:rgba(255,255,255,.48) !important;color:var(--cad-ink-soft) !important;border-color:rgba(27,39,52,.07) !important;}
html body .admin-shell tbody tr:hover td{background:rgba(239,255,196,.42) !important;}
html body .admin-shell .mini,html body .admin-shell .acct-card,html body .admin-shell .admin-empty-note{background:rgba(255,255,255,.68) !important;border-color:var(--cad-line) !important;}
html body .admin-shell .acct-ava{background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;color:var(--cad-ink) !important;}
html body .admin-shell .tab.active,html body .admin-shell .chip{background:var(--cad-lime-pale) !important;color:var(--cad-ink) !important;border-color:rgba(132,177,0,.22) !important;}
html body .admin-mnav{background:var(--cad-lime) !important;color:var(--cad-ink) !important;border-color:rgba(114,151,0,.20) !important;box-shadow:0 10px 24px rgba(164,217,0,.28) !important;}

/* A deliberately quiet dashboard: orient the admin first, then route to the focused workspace. */
html body .admin-overview-grid{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr) !important;}
html body .admin-overview-card{padding:22px !important;}
html body .admin-overview-card h2{margin:0;color:var(--cad-ink);font-size:18px;font-weight:900;}
html body .admin-overview-card>p{margin:6px 0 17px;color:var(--cad-muted);font-size:12px;line-height:1.9;}
html body .admin-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
html body .admin-quick-action{display:flex;align-items:flex-start;gap:10px;min-height:76px;padding:13px;border-radius:17px;background:rgba(255,255,255,.65);border:1px solid var(--cad-line);text-decoration:none;color:var(--cad-ink);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
html body .admin-quick-action:hover{transform:translateY(-2px);border-color:rgba(132,177,0,.38);box-shadow:0 13px 25px rgba(164,217,0,.14);}
html body .admin-quick-action i{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#ddff82,var(--cad-lime));font-style:normal;font-size:15px;}
html body .admin-quick-action b{display:block;font-size:12.5px;}
html body .admin-quick-action small{display:block;margin-top:3px;color:var(--cad-muted);font-size:10px;line-height:1.65;}
html body .admin-system-state{display:grid;gap:10px;}
html body .admin-state-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border-radius:16px;background:rgba(255,255,255,.66);border:1px solid var(--cad-line);}
html body .admin-state-row b{font-size:12px;color:var(--cad-ink);}
html body .admin-state-row span{font-size:10.5px;color:var(--cad-muted);}
html body .admin-state-row strong{padding:5px 8px;border-radius:99px;background:var(--cad-lime-pale);color:#526b00;font-size:10px;white-space:nowrap;}

/* This surface is intentionally always light; dashboards do not expose a dark theme toggle. */
html body:has(.sb) .theme-toggle-fab,
html body:has(.admin-shell) .theme-toggle-fab{display:none !important;}

@media(max-width:980px){
  html body .sb{box-shadow:-18px 0 52px rgba(27,39,52,.16) !important;}
  html body .admin-shell{grid-template-columns:1fr !important;padding:12px !important;gap:12px !important;}
  html body .admin-shell .admin-menu{
    position:fixed !important;top:10px !important;right:10px !important;bottom:10px !important;
    width:min(86vw,318px) !important;height:auto !important;max-width:none !important;
    z-index:260 !important;overflow:auto !important;
    transform:translateX(112%) scale(.985) !important;opacity:.02 !important;
    background:linear-gradient(165deg,rgba(255,255,255,.97),rgba(247,255,226,.93)) !important;
  }
  html body.sidebar-open .admin-shell .admin-menu{transform:translateX(0) scale(1) !important;opacity:1 !important;}
  html body .admin-overview-grid{grid-template-columns:1fr !important;}
}
@media(max-width:620px){
  html body .tb{padding:0 14px !important;}
  html body .ct{padding:14px 12px 100px !important;}
  html body .main .pn,html body .main .sc,html body .main .card,html body .main .set-card{border-radius:18px !important;}
  html body .admin-stats,html body .admin-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  html body .admin-overview-card{padding:16px !important;}
}
@media(max-width:390px){
  html body .admin-stats,html body .admin-quick-actions{grid-template-columns:1fr !important;}
}
@media(prefers-reduced-motion:reduce){
  html body .sb .ni,html body .admin-nav a,html body .main .btn,html body .admin-shell .btn{transition:none !important;}
}

/* ── Shared Persian type ─────────────────────────────────────────── */
html,body,button,input,select,textarea,option,optgroup,table,th,td,a{
  font-family:Vazir,Vazirmatn,Tahoma,Arial,sans-serif !important;
}

/* ── Club workspace: same light lime glass system ────────────────── */
html body:has(.app){
  background:
    radial-gradient(circle at 92% 2%,rgba(183,239,0,.24),transparent 27%),
    radial-gradient(circle at 7% 8%,rgba(225,255,144,.22),transparent 26%),
    linear-gradient(135deg,#fbfcf9 0%,#f3f7ee 54%,#fafcf7 100%) !important;
  color:var(--cad-ink) !important;
}
html body .app .side{padding:14px 10px 14px 0 !important;}
html body .app .side-in{
  background:linear-gradient(165deg,rgba(255,255,255,.94),rgba(246,255,223,.77)) !important;
  border:1px solid rgba(255,255,255,.98) !important;
  box-shadow:-2px 18px 48px rgba(27,39,52,.09),inset 0 1px 0 #fff !important;
  backdrop-filter:blur(28px) saturate(150%) !important;
  -webkit-backdrop-filter:blur(28px) saturate(150%) !important;
}
html body .app .brand{border-color:var(--cad-line) !important;}
html body .app .brand h2,
html body .app .main h1,
html body .app .main h2,
html body .app .main h3{color:var(--cad-ink) !important;}
html body .app .brand .muted,
html body .app .main .muted{color:var(--cad-muted) !important;}
html body .app .logo{
  background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  box-shadow:0 10px 23px rgba(164,217,0,.25),inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html body .app .nav-title{color:#809068 !important;}
html body .app .nav-section{border-color:rgba(27,39,52,.07) !important;}
html body .app .nav a{
  color:var(--cad-ink-soft) !important;
  border:1px solid transparent !important;
  border-radius:14px !important;
  font-weight:780 !important;
}
html body .app .nav a span:first-child{
  background:rgba(255,255,255,.70) !important;
  border:1px solid rgba(27,39,52,.06) !important;
  color:#627057 !important;
}
html body .app .nav a:hover{
  background:rgba(255,255,255,.82) !important;
  color:var(--cad-ink) !important;
  border-color:var(--cad-line) !important;
  box-shadow:var(--cad-shadow-soft) !important;
}
html body .app .nav a.active{
  background:linear-gradient(135deg,#ddff82,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  border-color:rgba(112,151,0,.20) !important;
  box-shadow:0 10px 22px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.66) !important;
}
html body .app .nav a.active span:first-child{background:rgba(255,255,255,.58) !important;color:var(--cad-ink) !important;}
html body .app .side-bottom{border-color:var(--cad-line) !important;}
html body .app .main{background:transparent !important;}
html body .app .topbar{
  background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(248,255,229,.64)) !important;
  border:1px solid rgba(255,255,255,.96) !important;
  box-shadow:var(--cad-shadow-soft),inset 0 1px 0 #fff !important;
}
html body .app .topbar h1{background:none !important;-webkit-text-fill-color:var(--cad-ink) !important;color:var(--cad-ink) !important;}
html body .app .chip,
html body .app .badge{
  background:rgba(255,255,255,.76) !important;
  border-color:var(--cad-line) !important;
  color:var(--cad-ink-soft) !important;
}
html body .app .card,
html body .app .portal-card{
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,255,255,.62)) !important;
  border:1px solid rgba(255,255,255,.96) !important;
  box-shadow:var(--cad-shadow-soft),inset 0 1px 0 rgba(255,255,255,.98) !important;
  backdrop-filter:blur(20px) saturate(145%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(145%) !important;
}
html body .app .card .hd{color:var(--cad-ink) !important;border-color:var(--cad-line) !important;background:linear-gradient(180deg,rgba(239,255,196,.35),transparent) !important;}
html body .app .card .lbl,
html body .app .fg label{color:var(--cad-ink-soft) !important;}
html body .app .card .num{color:var(--cad-ink) !important;}
html body .app .fg input,
html body .app .fg select,
html body .app .fg textarea,
html body .app .filters input,
html body .app .filters select{
  background:rgba(255,255,255,.88) !important;
  border-color:var(--cad-line-strong) !important;
  color:var(--cad-ink) !important;
}
html body .app .fg input:focus,
html body .app .fg select:focus,
html body .app .fg textarea:focus,
html body .app .filters input:focus,
html body .app .filters select:focus{
  border-color:rgba(132,177,0,.62) !important;
  box-shadow:0 0 0 4px rgba(183,239,0,.22) !important;
}
html body .app .btn{
  background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;
  color:var(--cad-ink) !important;
  border:1px solid rgba(112,151,0,.20) !important;
  box-shadow:0 10px 23px rgba(164,217,0,.22),inset 0 1px 0 rgba(255,255,255,.68) !important;
}
html body .app .btn.secondary{background:rgba(255,255,255,.86) !important;color:var(--cad-ink-soft) !important;border-color:var(--cad-line-strong) !important;box-shadow:none !important;}
html body .app .btn.danger{background:linear-gradient(135deg,#ff7a7a,#ef4444) !important;color:#fff !important;border-color:rgba(185,28,28,.20) !important;}
html body .app .btn:hover{filter:none !important;box-shadow:0 16px 30px rgba(164,217,0,.30),inset 0 1px 0 rgba(255,255,255,.72) !important;}
html body .app .tbl th{background:rgba(239,255,196,.48) !important;color:#59694c !important;border-color:var(--cad-line) !important;}
html body .app .tbl td{background:rgba(255,255,255,.54) !important;color:var(--cad-ink-soft) !important;border-color:rgba(27,39,52,.07) !important;}
html body .app .tbl tbody tr:hover td{background:rgba(239,255,196,.42) !important;}
html body .app .bottom-nav,
html body .club-mob-topbar{
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(255,255,255,.98) !important;
  box-shadow:0 14px 38px rgba(27,39,52,.12),inset 0 1px 0 #fff !important;
}
html body .app .bottom-nav .dock-add .dock-add-btn{
  background:linear-gradient(135deg,#d8ff69,var(--cad-lime)) !important;
  box-shadow:0 10px 24px rgba(164,217,0,.28) !important;
}
html body .app .bottom-nav .dock-add .dock-add-btn .cic{color:var(--cad-ink) !important;stroke:var(--cad-ink) !important;}
html body .app .bottom-nav .dock-item.active{background:var(--cad-lime-pale) !important;color:var(--cad-ink) !important;}
html body .club-mob-topbar .cmt-title,
html body .club-mob-topbar .cmt-btn{color:var(--cad-ink) !important;}
html body .club-mob-topbar .cmt-btn.mnav,
html body .mnav{background:var(--cad-lime) !important;color:var(--cad-ink) !important;border-color:rgba(112,151,0,.20) !important;box-shadow:0 10px 24px rgba(164,217,0,.28) !important;}

html body .club-user-context{display:flex;align-items:center;gap:9px;padding:10px 9px;margin:0 0 9px;border-radius:14px;background:rgba(239,255,196,.48);border:1px solid rgba(132,177,0,.16);color:var(--cad-ink);}
html body .club-user-context>span{width:29px;height:29px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.72);color:#637700;}
html body .club-user-context .cic{width:16px;height:16px;}
html body .club-user-context b,html body .club-user-context small{display:block;line-height:1.45;}
html body .club-user-context b{font-size:11px;}
html body .club-user-context small{font-size:9.5px;color:var(--cad-muted);}
html body .club-user-inline{display:inline-block;margin-inline-start:7px;padding-inline-start:7px;border-inline-start:1px solid var(--cad-line);color:#62734f;}

/* Team access management */
html body .app .team-hero .bd{display:flex;align-items:center;justify-content:space-between;gap:16px;}
html body .app .team-hero h2{margin:5px 0 4px;font-size:18px;}
html body .team-kicker{display:inline-flex;align-items:center;gap:6px;color:#647d00;font-size:11px;font-weight:900;}
html body .team-kicker .cic{width:16px;height:16px;}
html body .team-list{display:grid;gap:10px;}
html body .team-member{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--cad-line);border-radius:17px;background:rgba(255,255,255,.56);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
html body .team-member:hover{transform:translateY(-1px);border-color:rgba(132,177,0,.32);box-shadow:var(--cad-shadow-soft);}
html body .team-member.owner{background:linear-gradient(135deg,rgba(239,255,196,.76),rgba(255,255,255,.68));}
html body .team-member.is-disabled{opacity:.68;filter:grayscale(.24);}
html body .team-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#ddff82,var(--cad-lime));color:var(--cad-ink);font-weight:900;font-size:17px;}
html body .team-copy{min-width:0;}
html body .team-copy b{display:block;color:var(--cad-ink);font-size:13px;}
html body .team-copy span,html body .team-copy small{display:block;color:var(--cad-muted);font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .team-role{display:grid;gap:4px;text-align:center;}
html body .team-role em{font-style:normal;color:var(--cad-muted);font-size:10px;}
html body .team-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}
html body .team-actions form{margin:0;}
html body .team-role-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
html body .team-role-guide>div{padding:11px;border:1px solid var(--cad-line);border-radius:14px;background:rgba(255,255,255,.50);}
html body .team-role-guide b{color:var(--cad-ink);font-size:12px;}
html body .team-role-guide p{margin:4px 0 0;color:var(--cad-muted);font-size:10.5px;line-height:1.75;}

/* Super-admin focused modal workspaces */
html body .admin-modal[hidden]{display:none !important;}
html body .admin-modal{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:22px;background:rgba(27,39,52,.38);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
html body .admin-modal__dialog{width:min(680px,100%);max-height:min(82vh,760px);overflow:auto;padding:20px;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(248,255,230,.93));border:1px solid rgba(255,255,255,.98);border-radius:25px;box-shadow:0 30px 80px rgba(27,39,52,.24);animation:cadModalIn .24s cubic-bezier(.22,1,.36,1) both;}
html body .admin-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid var(--cad-line);}
html body .admin-modal__head h2{margin:0;color:var(--cad-ink);font-size:17px;}
html body .admin-modal__head p{margin:4px 0 0;color:var(--cad-muted);font-size:11px;}
html body .admin-modal__close{width:36px;height:36px;border:1px solid var(--cad-line);background:#fff;border-radius:12px;color:var(--cad-ink);font-size:21px;line-height:1;cursor:pointer;}
html body.modal-open{overflow:hidden;}
@keyframes cadModalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

/* Dashboard actions and player directory keep the admin surface compact on mobile. */
html body button.admin-quick-action{width:100%;appearance:none;text-align:right;font:inherit;cursor:pointer;}
html body button.admin-quick-action:focus-visible,
html body .admin-modal__close:focus-visible{outline:3px solid rgba(132,177,0,.42);outline-offset:3px;}
html body .admin-player-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,rgba(239,255,196,.80),rgba(255,255,255,.84)) !important;}
html body .admin-player-intro h1{margin:4px 0;color:var(--cad-ink);font-size:21px;}
html body .admin-player-intro .note{max-width:650px;margin:0;color:var(--cad-muted);line-height:1.9;}
html body .admin-player-kicker{display:inline-flex;align-items:center;gap:6px;color:#637700;font-size:11px;font-weight:900;}
html body .admin-player-search{width:min(300px,100%);flex:0 0 min(300px,100%);}
html body .admin-player-search input{width:100%;min-height:44px;padding:0 14px;border:1px solid var(--cad-line-strong);border-radius:14px;background:rgba(255,255,255,.86);color:var(--cad-ink);font:inherit;}
html body .admin-player-search input:focus{outline:0;border-color:rgba(132,177,0,.66);box-shadow:0 0 0 4px rgba(183,239,0,.20);}
html body .admin-player-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0;}
html body .admin-player-kpis .stat{min-height:108px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(248,255,230,.72)) !important;border:1px solid rgba(255,255,255,.95) !important;border-radius:19px;box-shadow:var(--cad-shadow-soft);}
html body .admin-player-kpis .num{color:#6c8500 !important;}
html body .admin-player-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
html body .admin-player-head h2{margin:0;color:var(--cad-ink);font-size:16px;}
html body .admin-player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
html body .admin-player-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;padding:12px;border:1px solid var(--cad-line);border-radius:17px;background:rgba(255,255,255,.58);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
html body .admin-player-card:hover{transform:translateY(-2px);border-color:rgba(132,177,0,.38);box-shadow:var(--cad-shadow-soft);}
html body .admin-player-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#ddff82,var(--cad-lime));color:var(--cad-ink);font-weight:900;font-size:16px;}
html body .admin-player-copy{min-width:0;}
html body .admin-player-copy b,html body .admin-player-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .admin-player-copy b{color:var(--cad-ink);font-size:12px;}
html body .admin-player-copy span{margin-top:3px;color:var(--cad-muted);font-size:10px;}
html body .admin-player-meta,html body .admin-player-sources{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;}
html body .admin-player-meta span{padding:3px 7px;border-radius:999px;background:rgba(239,255,196,.72);color:#5a7100;font-size:9.5px;font-weight:800;}
html body .admin-player-sources span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cad-muted);font-size:10px;}
html body .admin-player-empty,html body .admin-empty-note{margin:14px 0 0;color:var(--cad-muted);font-size:12px;}
html body .admin-player-filters{display:grid;grid-template-columns:minmax(230px,1.7fr) repeat(3,minmax(130px,.8fr)) auto;align-items:end;gap:10px;margin:14px 0 0;padding:14px !important;background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(247,255,227,.66)) !important;}
html body .admin-player-filter-field{display:grid;gap:6px;min-width:0;color:var(--cad-ink-soft);font-size:10px;font-weight:850;}
html body .admin-player-filter-field input,html body .admin-player-filter-field select{width:100%;min-width:0;height:43px;padding:0 11px;border:1px solid var(--cad-line-strong);border-radius:13px;background:rgba(255,255,255,.86);color:var(--cad-ink);font:600 11px/1 var(--app-font,Vazir,Vazirmatn,Tahoma,Arial,sans-serif);outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
html body .admin-player-filter-field input{padding-right:37px;background-image:radial-gradient(circle at 17px 50%,#b7ef00 0 3px,transparent 3.5px);}
html body .admin-player-filter-field input:focus,html body .admin-player-filter-field select:focus{border-color:rgba(132,177,0,.68);background-color:#fff;box-shadow:0 0 0 4px rgba(183,239,0,.18);}
html body .admin-player-filter-actions{display:flex;align-items:center;gap:6px;}
html body .admin-player-filter-actions .btn{min-height:43px;padding:0 13px;white-space:nowrap;font-size:10.5px;}
html body .admin-player-head>div{min-width:0;}
html body .admin-player-head .muted{display:block;margin-top:4px;font-size:10px;}
html body .admin-player-page-badge{display:inline-flex;align-items:center;min-height:29px;padding:0 9px;border:1px solid rgba(132,177,0,.18);border-radius:999px;background:rgba(239,255,196,.66);color:#596f00;font-size:9.5px;font-weight:900;white-space:nowrap;}
html body .admin-player-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid var(--cad-line);color:var(--cad-muted);font-size:10px;}
html body .admin-player-pagination>div{display:flex;align-items:center;gap:5px;direction:ltr;}
html body .admin-player-pagination a,html body .admin-player-pagination i{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--cad-line);border-radius:10px;background:rgba(255,255,255,.72);color:var(--cad-ink-soft);font-size:11px;font-weight:900;font-style:normal;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease;}
html body .admin-player-pagination i{width:18px;border-color:transparent;background:transparent;}
html body .admin-player-pagination a:hover{transform:translateY(-1px);border-color:rgba(132,177,0,.40);background:#fff;}
html body .admin-player-pagination a.active{border-color:rgba(112,151,0,.22);background:linear-gradient(135deg,#dfff82,#b7ef00);color:var(--cad-ink);box-shadow:0 7px 16px rgba(164,217,0,.20);}

@media(max-width:980px){
  html body .app .side{padding:10px 0 10px 10px !important;}
  html body .app .side-in{border-radius:23px !important;}
  html body .app .bottom-nav{background:rgba(255,255,255,.94) !important;}
}
@media(max-width:680px){
  html body .app .team-hero .bd{display:grid;}
  html body .team-member{grid-template-columns:38px minmax(0,1fr);gap:9px;}
  html body .team-role,html body .team-actions{grid-column:2;justify-content:flex-start;text-align:right;}
  html body .team-avatar{width:38px;height:38px;border-radius:12px;}
  html body .team-role-guide{grid-template-columns:1fr;}
  html body .club-user-inline{display:block;margin:4px 0 0;padding:0;border:0;}
  html body .admin-modal{align-items:end;padding:0;}
  html body .admin-modal__dialog{width:100%;max-height:90vh;border-radius:23px 23px 0 0;padding:17px;}
  html body .admin-player-intro{display:grid;}
  html body .admin-player-search{width:100%;}
  html body .admin-player-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px !important;}
  html body .admin-player-filter-search,html body .admin-player-filter-actions{grid-column:1/-1;}
  html body .admin-player-filter-actions .btn{flex:1;display:grid;place-items:center;}
  html body .admin-player-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  html body .admin-player-kpis .stat{min-height:88px;padding:11px 8px;}
  html body .admin-player-grid{grid-template-columns:1fr;}
  html body .admin-player-pagination{align-items:flex-start;flex-direction:column;}
}
@media(max-width:390px){html body .admin-player-filters{grid-template-columns:1fr;}html body .admin-player-filter-field{grid-column:1/-1;}}
