/* ═══════════════════════════════════════════════════════════════
   SERVICEHUB LIGHT THEME — shared overrides (v78)
   Pages par apne <style> ke BAAD include karo:
     <link rel="stylesheet" href="/user/light.css">
   Ye same CSS variable names ko LIGHT values par map karta hai
   aur common dark hard-coded colors override karta hai.
   ═══════════════════════════════════════════════════════════════ */

:root{
  /* Same variable names — LIGHT values (dark pages automatic light ho jayenge) */
  --navy:#0f2a5c;
  --navy2:#123a7c;
  --orange:#1d4ed8;
  --orange2:#3b82f6;
  --bg:#fafaf7;
  --bg2:#ffffff;
  --card:#ffffff;
  --card2:#f8fafc;
  --text:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --green:#16a34a;
  --red:#dc2626;
  --font:'Inter',system-ui,-apple-system,sans-serif;
}

/* v81 — Inter font everywhere (pages jo Poppins reference karte hain) */
body,.modal,.f-inp,.f-sel,.f-btn,.o-btn,input,select,textarea,button,.topnav,.side-nav,.btn{font-family:var(--font) !important}

/* ── Body / backgrounds ── */
body{
  background:#fafaf7 !important;
  color:#1e293b !important;
}
.layout{min-height:100vh}

/* ── Sidebar (user pages) ── */
.sidebar{background:linear-gradient(180deg,#ffffff,#f6f8fc) !important;border-right:1px solid #e5d9ce !important;color:#334155 !important}
.side-logo{color:#0f2a5c !important;border-bottom:1px solid #eef1f6 !important}
.side-logo .mark{background:linear-gradient(135deg,#123a7c,#1d4ed8) !important;color:#fff !important}
.side-nav .lbl{color:#94a3b8 !important}
.side-nav a{color:#334155 !important}
.side-nav a:hover{background:#f5f3ff !important;color:#6d28d9 !important}
.side-nav a.active{background:linear-gradient(135deg,#4f46e5,#7c3aed) !important;color:#fff !important;box-shadow:0 6px 16px rgba(124,58,237,.35) !important}

/* ── Topbar / wallet pill ── */
.wallet-pill{background:#fff !important;border:1px solid #e2e8f0 !important;box-shadow:0 2px 10px rgba(15,42,92,.06) !important}
.wallet-pill .amt{color:#b45309 !important}
.wallet-pill .amt i{color:#d97706 !important}
.btn-o{background:linear-gradient(135deg,#f59e0b,#ea580c) !important;color:#fff !important;box-shadow:0 4px 12px rgba(234,88,12,.35) !important}
.burger{background:#123a7c !important;color:#fff !important;border:none !important}

/* ── Headings / text ── */
h1,h2,h3,h4,h5{color:#0f2a5c !important}
.welcome h2{color:#0f2a5c !important}
.welcome p{color:#64748b !important}
.sec-h h3{color:#0f2a5c !important}

/* ── Stat cards ── */
.stat,.cat-box,.svc-box{background:#ffffff !important;border:1px solid #e2e8f0 !important;box-shadow:0 2px 10px rgba(15,42,92,.05)}
.stat:hover,.cat-box:hover,.svc-box:hover{box-shadow:0 12px 28px rgba(15,42,92,.12) !important;border-color:#c7d2fe !important}
.stat .v{color:#0f2a5c !important}
.stat .l{color:#64748b !important}
.cat-count{background:#ede9fe !important;color:#6d28d9 !important;border:1px solid #ddd6fe !important}
.cost-chip{background:linear-gradient(135deg,#f5b301,#e0a400) !important;color:#1e293b !important}
.cat-go,.svc-go{color:#1d4ed8 !important}

/* ── Tables ── */
.tbl-wrap,.hist-wrap,.note{background:#ffffff !important;border:1px solid #e2e8f0 !important;box-shadow:0 2px 10px rgba(15,42,92,.05)}
.tbl-wrap th,.hist-wrap th{background:#f8fafc !important;color:#64748b !important}
.tbl-wrap td,.hist-wrap td{color:#1e293b !important;border-top:1px solid #f1f5f9 !important}
.hist-head{color:#0f2a5c !important;border-bottom:1px solid #eef1f6 !important}
.hist-head i{color:#d97706 !important}
.empty{color:#94a3b8 !important}

/* ── Pills / badges ── */
.pill.ok{background:#dcfce7 !important;color:#16a34a !important}
.pill.no{background:#fee2e2 !important;color:#dc2626 !important}
.pill.wt,.pill.pend{background:#fef9c3 !important;color:#a16207 !important}

/* ── Modals / forms ── */
.modal-bg{background:rgba(15,23,42,.55) !important}
.modal{background:#ffffff !important;border:1px solid #e2e8f0 !important}
.modal h3{color:#0f2a5c !important}
.modal .sub{color:#64748b !important}
.f-lbl{color:#334155 !important}
.f-inp,.f-sel{background:#ffffff !important;color:#1e293b !important;border:1.5px solid #e2e8f0 !important}
.f-inp::placeholder{color:#94a3b8 !important}
.f-inp:focus,.f-sel:focus{border-color:#123a7c !important}
.f-btn{background:linear-gradient(135deg,#4f46e5,#7c3aed 55%,#db2777) !important;color:#fff !important;box-shadow:0 6px 16px -6px rgba(124,58,237,.55) !important;border:none !important}
.f-cancel{background:#f1f5f9 !important;color:#475569 !important;border:1px solid #e2e8f0 !important}
.cost-badge{background:#fdf3d3 !important;color:#92650a !important;border:1.5px solid #f5d878 !important}
.msg.err{background:#fee2e2 !important;border:1px solid #fecaca !important;color:#b91c1c !important}
.msg.ok{background:#dcfce7 !important;border:1px solid #bbf7d0 !important;color:#166534 !important}
.alert.ok{background:#dcfce7 !important;border:1px solid #bbf7d0 !important;color:#166534 !important}
.alert.no{background:#fee2e2 !important;border:1px solid #fecaca !important;color:#b91c1c !important}
.back-btn{background:#fff !important;border:1.5px solid #e2e8f0 !important;color:#334155 !important}
.back-btn:hover{border-color:#123a7c !important;color:#123a7c !important}

/* ── Buy coins packages ── */
.pkg{background:#ffffff !important;border:1.5px solid #e2e8f0 !important;box-shadow:0 2px 10px rgba(15,42,92,.05)}
.pkg:hover{box-shadow:0 14px 30px rgba(15,42,92,.12) !important;border-color:#f5b301 !important}
.pkg .ci{background:#fdf3d3 !important;border:1px solid #f5d878 !important;color:#b45309 !important}
.pkg .coins{color:#0f2a5c !important}
.pkg .clbl{color:#64748b !important}
.pkg .price{color:#b45309 !important}
.buy-btn{background:linear-gradient(135deg,#f59e0b,#ea580c) !important;color:#fff !important;box-shadow:0 6px 16px rgba(234,88,12,.35) !important}
.note{color:#475569 !important}

/* ── Profile / history extras ── */
.kv{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f1f5f9}
.kv b{color:#0f2a5c}

/* ── Links inside tables ── */
.tbl-wrap a,.hist-wrap a{color:#1d4ed8 !important}

/* ── Public site footer (header.php/footer.php) ── */
footer{background:linear-gradient(160deg,#1e1b4b,#312e81 55%,#4c1d95) !important;color:#c7d2fe !important;border-top:none !important}
footer h5{color:#fff !important}
footer a{color:#a5b4fc !important}
footer a:hover{color:#fbbf24 !important}
footer .logo{color:#fff !important}
footer .mark{background:linear-gradient(135deg,#4f46e5,#ec4899) !important;color:#fff !important}
footer li{color:#c7d2fe !important}
.foot-bottom{border-top:1px solid rgba(255,255,255,.15) !important;color:#a5b4fc !important}

/* ── Public topnav (header.php) ── */
.topnav{background:rgba(255,255,255,.95) !important;border-bottom:1px solid #e5d9ce !important;box-shadow:0 1px 8px rgba(0,0,0,.05)}
.topnav .logo{color:#0f2a5c !important}
.topnav nav a{color:#334155 !important}
.topnav nav a:hover{color:#1d4ed8 !important;background:#eef2ff !important}

/* ── Public section cards ── */
.svc-card,.info-card,.how-card,.contact-card{background:#ffffff !important;border:1px solid #e2e8f0 !important;box-shadow:0 2px 10px rgba(15,42,92,.05)}
.step,.faq-item{background:#ffffff !important;border:1px solid #e2e8f0 !important}

/* ── v79 polish — cleaner cards & tiles ── */
body{background:radial-gradient(1100px 500px at 100% -100px,#ede9fe,transparent 60%),radial-gradient(900px 420px at -120px 30%,#fce7f3,transparent 55%),radial-gradient(1000px 500px at 50% 115%,#cffafe,transparent 55%),#f7f8fc !important}
.tile{box-shadow:0 1px 4px rgba(15,42,92,.06) !important}
.tile:hover{box-shadow:0 8px 18px rgba(15,42,92,.14) !important}
.wcard{border:1px solid #eef1f6 !important;box-shadow:0 1px 5px rgba(15,42,92,.05)}
.wcard:hover{border-color:#c7d2fe !important}
.svc-strip{background:linear-gradient(135deg,#efe4c8,#e7d9b8) !important}
.banner-zone{background:radial-gradient(700px 300px at 20% 0%,#eaf1ff,transparent 60%),radial-gradient(600px 280px at 85% 100%,#fdf6e3,transparent 60%),#f0f3fa !important}
/* ── v161 — COLORFUL POLISH (poori user site) ── */
.tbl-wrap th,.hist-wrap th{background:linear-gradient(90deg,#eef2ff,#fdf2f8) !important;color:#4338ca !important}
.cost-badge{background:#ede9fe !important;color:#5b21b6 !important;border:1.5px solid #ddd6fe !important}
.cost-badge i{color:#7c3aed !important}
.wallet-pill .amt{color:#7c3aed !important}
.wallet-pill .amt i{color:#8b5cf6 !important}
.f-inp:focus,.f-sel:focus{border-color:#7c3aed !important;box-shadow:0 0 0 3px rgba(124,58,237,.14) !important}
.back-btn:hover{border-color:#7c3aed !important;color:#6d28d9 !important}
::selection{background:#7c3aed;color:#fff}

/* ═══════════════════════════════════════════════════════════════
   v174 — DARK MODE (html.dark + localStorage sh_theme)
   Toggle: /user/theme.js — head me:      <link rel="stylesheet" href="/user/light.css?v=209">
      <script src="/user/theme.js?v=209"></script>
   Theme sirf user pages par lagta hai (html.dark class sirf wahan set hota hai).
   Sab rules !important — pages ke apne <style> blocks light.css ke baad aate hain.
   ═══════════════════════════════════════════════════════════════ */
html.dark{
  --navy:#c7d2fe; --navy2:#1d4ed8; --orange:#60a5fa; --orange2:#93c5fd;
  --bg:#0b1020; --bg2:#111a31; --card:#111a31; --card2:#0f1729;
  --text:#e7ecf8; --muted:#8d99b8; --line:#22304f;
  --green:#4ade80; --red:#f87171;
  color-scheme:dark;
}
html.dark body{
  background:radial-gradient(900px 420px at 100% -80px,rgba(91,84,240,.14),transparent 60%),radial-gradient(700px 360px at -60px 120px,rgba(255,122,26,.07),transparent 55%),#0b1020 !important;
  color:#e7ecf8 !important;
}
html.dark ::selection{background:#7c3aed;color:#fff}
html.dark ::-webkit-scrollbar{width:9px;height:9px}
html.dark ::-webkit-scrollbar-thumb{background:#2c3a5c;border-radius:99px;border:2px solid #0b1020}
html.dark ::-webkit-scrollbar-thumb:hover{background:#3a4a75}
html.dark ::-webkit-scrollbar-track{background:transparent}

/* headings + generic text */
html.dark h1,html.dark h2,html.dark h3,html.dark h4,html.dark h5{color:#e7ecf8 !important}
html.dark .welcome h2,html.dark .sec-h h3{color:#e7ecf8 !important}
html.dark .welcome p,html.dark .sec-h p{color:#8d99b8 !important}
html.dark .pg{color:#e7ecf8 !important}
html.dark .empty{color:#6d7997 !important}
html.dark a{color:inherit}
html.dark .main{color:#e7ecf8}

/* ── sidebar (user pages) ── */
html.dark .sidebar{background:linear-gradient(180deg,#111a31,#0d1526) !important;border-right:1px solid #1c2846 !important;color:#c9d2e8 !important}
html.dark .side-logo{color:#fff !important;border-bottom:1px solid rgba(255,255,255,.07) !important}
html.dark .side-nav .lbl{color:#647290 !important}
html.dark .side-nav a{color:#b7c1d9 !important}
html.dark .side-nav a:hover{background:rgba(255,255,255,.07) !important;color:#fff !important}
html.dark .side-nav a.active{background:linear-gradient(135deg,#5b54f0,#7c3aed) !important;color:#fff !important}

/* ── dashboard top navbar ── */
html.dark .nav{box-shadow:0 6px 24px rgba(0,0,0,.5)}
html.dark .nav-center .nav-link{color:rgba(255,255,255,.85)}
html.dark .nav-center .nav-link:hover{background:rgba(255,255,255,.14) !important;color:#fff !important}
html.dark .nav-center .nav-link.active{background:#fff !important;color:#4338ca !important}
html.dark .nav-center{background:#111a31 !important;border-bottom:1px solid #22304f !important;box-shadow:0 14px 28px rgba(0,0,0,.5) !important}
html.dark .nav-center .nav-link{border-color:#1e2b4a !important;background:#0f1729 !important;color:#c9d2e8 !important}
html.dark .nav-center .nav-link.active{background:#fff !important;color:#4338ca !important}

/* ── role/service-activation + distributor top header (.top) ── */
html.dark .top{background:#111a31 !important;border-bottom:1px solid #22304f !important}
html.dark .top .logo{color:#e7ecf8 !important}
html.dark .top .who{color:#8d99b8 !important}
html.dark .top .out{background:#0f1729 !important;color:#c9d2e8 !important;border:1.5px solid #22304f !important}
html.dark .top .out:hover{border-color:#34456e !important;color:#fff !important}

/* ── quick tiles (dashboard) — pastel → dark tints ── */
html.dark .tile{border-color:rgba(255,255,255,.08) !important}
html.dark .tile b{color:#e7ecf8 !important}
html.dark .tile .t-sub{color:rgba(231,236,248,.55) !important}
html.dark .tile.t-green{background:#17281b !important}
html.dark .tile.t-teal{background:#102824 !important}
html.dark .tile.t-khaki{background:#282414 !important}
html.dark .tile.t-blue{background:#14243c !important}
html.dark .tile.t-orange{background:#2c1c10 !important}
html.dark .tile.t-purple{background:#211639 !important}
html.dark .tile.t-pink{background:#2d1520 !important}
html.dark .tile.t-red{background:#2d1414 !important}
html.dark .tile:hover{box-shadow:0 8px 18px rgba(0,0,0,.45) !important}

/* ── stat cards / boxes ── */
html.dark .stat,html.dark .cat-box,html.dark .svc-box,html.dark .card{
  background:#111a31 !important;border-color:#22304f !important;
  box-shadow:0 2px 10px rgba(0,0,0,.35) !important;color:#e7ecf8 !important;
}
html.dark .stat:hover,html.dark .cat-box:hover,html.dark .svc-box:hover{border-color:#34456e !important;box-shadow:0 12px 28px rgba(0,0,0,.5) !important}
html.dark .stat .v{color:#e7ecf8 !important}
html.dark .stat .l{color:#8d99b8 !important}
html.dark .cat-box h4,html.dark .svc-box h4{color:#e7ecf8 !important}
html.dark .svc-box p{color:#8d99b8 !important}
html.dark .cat-go,html.dark .svc-go{color:#8ea2ff !important}
html.dark .cat-count{background:rgba(109,40,217,.25) !important;color:#c4b5fd !important;border-color:rgba(165,180,252,.3) !important}
html.dark .cat-banner,html.dark .svc-banner{background:#0f1729 !important;border-color:#22304f !important}
html.dark .cat-ico,html.dark .svc-ico{box-shadow:0 5px 12px rgba(0,0,0,.4) !important}
html.dark .pstat{background:#0f1729 !important;border-color:#22304f !important}
html.dark .pstat b{color:#e7ecf8 !important}
html.dark .pstat span{color:#8d99b8 !important}
html.dark .pstat.ok{background:rgba(22,163,74,.12) !important;border-color:rgba(22,163,74,.4) !important}
html.dark .pstat.ok b{color:#4ade80 !important}
html.dark .pstat.pend{background:rgba(180,83,9,.14) !important;border-color:rgba(180,83,9,.45) !important}
html.dark .pstat.pend b{color:#fbbf24 !important}
html.dark .pstat.fail{background:rgba(220,38,38,.12) !important;border-color:rgba(220,38,38,.45) !important}
html.dark .pstat.fail b{color:#f87171 !important}

/* ── cashback banner zone + offers (dashboard) ── */
html.dark .banner-zone{background:radial-gradient(700px 300px at 20% 0%,rgba(91,84,240,.16),transparent 60%),radial-gradient(600px 280px at 85% 100%,rgba(219,39,119,.10),transparent 60%),#0d1428 !important}
html.dark .cb-card{background:#111a31 !important;box-shadow:0 24px 60px rgba(0,0,0,.6) !important}
html.dark .cb-left{background:linear-gradient(165deg,#101a36,#0b1226) !important}
html.dark .cb-mid h3{color:#e7ecf8 !important}
html.dark .cb-mid .sub{color:#8d99b8 !important}
html.dark .cb-offer-tag{background:rgba(245,179,1,.16) !important;color:#fbbf24 !important}
html.dark .offer{background:#0f1729 !important;border-color:#22304f !important}
html.dark .offer:hover{box-shadow:0 10px 22px rgba(0,0,0,.5) !important}
html.dark .offer .o-ico{background:rgba(99,102,241,.2) !important;color:#a5b4fc !important}
html.dark .offer .o-lbl,html.dark .offer .o-get{color:#8d99b8 !important}
html.dark .offer .o-amt{color:#e7ecf8 !important}
html.dark .offer .o-cb{color:#4ade80 !important}
html.dark .offer .o-xtra{color:#6d7997 !important}
html.dark .offer .o-btn{background:#16203a !important;color:#c9d2e8 !important;border-color:#22304f !important}
html.dark .offer .o-btn:hover{background:#4f46e5 !important;color:#fff !important;border-color:#4f46e5 !important}
html.dark .offer.pop .o-ico{background:rgba(245,179,1,.16) !important;color:#fbbf24 !important}
html.dark .cb-right{border-left-color:#1c2846 !important}
html.dark .cb-right .z-ico{background:rgba(245,179,1,.16) !important}
html.dark .cb-right .ends{color:#e7ecf8 !important}
html.dark .cb-right .trust{color:#8d99b8 !important}

/* ── tables ── */
html.dark .tbl-wrap,html.dark .hist-wrap,html.dark .note{background:#111a31 !important;border-color:#22304f !important;box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
html.dark .tbl-wrap th,html.dark .hist-wrap th{background:#0f1729 !important;color:#8d99b8 !important}
html.dark .tbl-wrap td,html.dark .hist-wrap td{color:#dbe3f4 !important;border-top-color:#1a2542 !important}
html.dark .tbl-wrap tr:hover td{background:#16203a !important}
html.dark .tbl-wrap th{border-bottom:1px solid #22304f !important}
html.dark .hist-head{color:#e7ecf8 !important;border-bottom-color:#22304f !important}
html.dark .tbl-wrap a,html.dark .hist-wrap a{color:#8ea2ff !important}
html.dark .tabs .tab,html.dark .tab{background:#0f1729 !important;color:#8d99b8 !important;border-color:#22304f !important}
html.dark .tab.on,html.dark .tabs .tab.on{background:linear-gradient(135deg,#5b54f0,#7c3aed) !important;color:#fff !important;border-color:transparent !important}

/* ── pills / banners / messages ── */
html.dark .pill.ok{background:rgba(22,163,74,.16) !important;color:#4ade80 !important}
html.dark .pill.no{background:rgba(220,38,38,.16) !important;color:#f87171 !important}
html.dark .pill.wt,html.dark .pill.pend{background:rgba(180,83,9,.18) !important;color:#fbbf24 !important}
html.dark .pill-w.ok{background:rgba(22,163,74,.16) !important;color:#4ade80 !important}
html.dark .pill-w.wt{background:rgba(180,83,9,.18) !important;color:#fbbf24 !important}
html.dark .pill-w.no{background:rgba(220,38,38,.16) !important;color:#f87171 !important}
html.dark .banner{background:#0f1729 !important;border-color:#22304f !important;color:#dbe3f4 !important}
html.dark .banner.ok{background:rgba(22,163,74,.12) !important;border-color:rgba(22,163,74,.45) !important}
html.dark .banner.err{background:rgba(220,38,38,.12) !important;border-color:rgba(220,38,38,.45) !important}
html.dark .banner.warn{background:rgba(180,83,9,.14) !important;border-color:rgba(180,83,9,.45) !important}
html.dark .msg.err,html.dark .alert.no{background:rgba(220,38,38,.12) !important;border-color:rgba(220,38,38,.45) !important;color:#fca5a5 !important}
html.dark .msg.ok,html.dark .alert.ok{background:rgba(22,163,74,.12) !important;border-color:rgba(22,163,74,.45) !important;color:#86efac !important}
html.dark .msg.warn{background:rgba(180,83,9,.14) !important;border-color:rgba(180,83,9,.45) !important;color:#fbbf24 !important}
html.dark .msg.wait{background:rgba(59,130,246,.12) !important;border-color:rgba(59,130,246,.45) !important;color:#93c5fd !important}

/* ── modals / forms ── */
html.dark .modal-bg{background:rgba(3,7,18,.66) !important}
html.dark .modal{background:#111a31 !important;border:1px solid #22304f !important;color:#e7ecf8 !important}
html.dark .modal h3{color:#e7ecf8 !important}
html.dark .modal .sub{color:#8d99b8 !important}
html.dark .f-lbl{color:#aab6d0 !important}
html.dark .f-inp,html.dark .f-sel,html.dark .inp{background:#0f1729 !important;color:#e7ecf8 !important;border-color:#22304f !important}
html.dark .f-inp::placeholder,html.dark .f-sel::placeholder,html.dark .inp::placeholder{color:#5f6d8d !important}
html.dark .f-inp:focus,html.dark .f-sel:focus,html.dark .inp:focus{border-color:#7c3aed !important;box-shadow:0 0 0 3px rgba(124,58,237,.22) !important}
html.dark .f-cancel{background:#16203a !important;color:#aab6d0 !important;border-color:#22304f !important}
html.dark .cost-badge{background:rgba(245,179,1,.14) !important;color:#fbbf24 !important;border-color:rgba(245,179,1,.4) !important}
html.dark .cost-badge i{color:#fbbf24 !important}
html.dark .back-btn{background:#0f1729 !important;color:#c9d2e8 !important;border-color:#22304f !important}
html.dark .back-btn:hover{border-color:#7c3aed !important;color:#c4b5fd !important}
html.dark .kv{border-bottom-color:#1a2542 !important}
html.dark .kv b{color:#e7ecf8 !important}
html.dark .kv span{color:#8d99b8 !important}

/* ── buy coins packages ── */
html.dark .pkg{background:#111a31 !important;border-color:#22304f !important;box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
html.dark .pkg:hover{border-color:#f5b301 !important;box-shadow:0 14px 30px rgba(0,0,0,.5) !important}
html.dark .pkg .ci{background:rgba(245,179,1,.14) !important;border-color:rgba(245,179,1,.4) !important;color:#fbbf24 !important}
html.dark .pkg .coins{color:#e7ecf8 !important}
html.dark .pkg .clbl{color:#8d99b8 !important}
html.dark .pkg .price{color:#fbbf24 !important}
html.dark .best-tag{background:rgba(245,179,1,.16) !important;color:#fde047 !important}
html.dark .claim-btn{filter:brightness(.95)}
html.dark .claim-timer{color:#fbbf24 !important}

/* ── distributor / activation cards + hero ── */
html.dark .hero{background:linear-gradient(140deg,#101a36,#0b1226 60%,#1a1550) !important;border:1px solid #22304f !important}
html.dark .hero h1{color:#fff !important}
html.dark .hero p{color:#aab6d0 !important}
html.dark .hero .badge{background:rgba(255,255,255,.12) !important;color:#c7d2fe !important}
html.dark .fee{background:#0f1729 !important;border-color:#22304f !important}
html.dark .fee .lbl{color:#8d99b8 !important}
html.dark .fee .note{color:#6d7997 !important}
html.dark .creds{background:#0f1729 !important;border-color:#22304f !important}
html.dark .links a{background:#0f1729 !important;color:#c9d2e8 !important;border-color:#22304f !important}
html.dark .links a:hover{border-color:#34456e !important;color:#fff !important}
html.dark .svc{background:#111a31 !important;border-color:#22304f !important}
html.dark .svc.on{border-color:rgba(22,163,74,.5) !important}
html.dark .svc .price{color:#8d99b8 !important}
html.dark .svc .price b{color:#e7ecf8 !important}
html.dark .svc .note{color:#6d7997 !important}
html.dark .svc h3{color:#e7ecf8 !important}
html.dark .out,html.dark .pay{color:#fff}
html.dark .info-row{border-bottom-color:#1a2542 !important}
html.dark .info-row .k,html.dark .k{color:#8d99b8 !important}
html.dark .info-row .v,html.dark .v{color:#e7ecf8 !important}
html.dark .grid .card{background:#111a31 !important;border-color:#22304f !important}

/* ── PAN history (pan-history.php v132 styles) ── */
html.dark .dgrid{background:#111a31 !important;border-color:#22304f !important}
html.dark .dgroup{background:#0f1729 !important;border-color:#22304f !important}
html.dark .dhead{color:#e7ecf8 !important;border-bottom-color:#22304f !important}
html.dark .ditem{background:#0f1729 !important;border-color:#22304f !important}
html.dark .ditem .dl{color:#8d99b8 !important}
html.dark .ditem .dv{color:#e7ecf8 !important}
html.dark .chip{background:#0f1729 !important;color:#aab6d0 !important;border-color:#22304f !important}
html.dark .chip.on{background:linear-gradient(135deg,#5b54f0,#7c3aed) !important;color:#fff !important;border-color:transparent !important}
html.dark .ackval{background:#0f1729 !important;color:#e7ecf8 !important;border-color:#22304f !important}
html.dark .ackval.miss{color:#f87171 !important}
html.dark .ackval.refv{color:#4ade80 !important}
html.dark .date{color:#8d99b8 !important}
html.dark .cnt{color:#8d99b8 !important}
html.dark .big{color:#e7ecf8 !important}
html.dark .dl{color:#8d99b8 !important}
html.dark .dv{color:#e7ecf8 !important}

/* ── PAN full-page modal + result cards (dashboard inline v150-v152) ── */
html.dark .panHead{background:#111a31 !important;box-shadow:0 10px 16px -14px rgba(0,0,0,.9) !important}
html.dark .panClose{background:#0f1729 !important;color:#c9d2e8 !important;border-color:#22304f !important}
html.dark .panClose:hover{background:#16203a !important;color:#c4b5fd !important}
html.dark .prCard{background:#111a31 !important;border-color:#22304f !important}
html.dark .prCard:hover{border-color:#34456e !important}
html.dark .prName{color:#e7ecf8 !important}
html.dark .prChip{background:#0f1729 !important;border-color:#22304f !important}
html.dark .prChip span{color:#8d99b8 !important}
html.dark .prChip b{color:#e7ecf8 !important}
html.dark .prChip.ack{background:rgba(22,163,74,.12) !important;border-color:rgba(22,163,74,.5) !important}
html.dark .prChip.ack span{color:#86efac !important}
html.dark .prChip.ack b{color:#4ade80 !important}
html.dark .prStBox{background:#0f1729 !important;border-color:#22304f !important}
html.dark .prStBox h5{color:#e7ecf8 !important}
html.dark .prStRow{border-bottom-color:#1a2542 !important}
html.dark .prStRow span{color:#8d99b8 !important}
html.dark .prStRow b{color:#e7ecf8 !important}
html.dark .prSecTitle{color:#e7ecf8 !important}
html.dark .prSecTitle .cnt{background:rgba(99,102,241,.2) !important;color:#a5b4fc !important}
html.dark .prBtn.ghost{background:#16203a !important;color:#a5b4fc !important;border-color:#2c3a63 !important}
html.dark .prWait{background:rgba(180,83,9,.14) !important;border-color:rgba(180,83,9,.45) !important;color:#fbbf24 !important}
html.dark #svcModal .modal > h3{background:#111a31 !important}
html.dark #svcModal .modal > .cost-badge{background:#111a31 !important}
html.dark .ptl-section{background:#111a31 !important;border-color:#22304f !important}
html.dark .ptl-head h3{color:#e7ecf8 !important}
html.dark .ptl-head p{color:#8d99b8 !important}
html.dark .pt-box.light{background:rgba(245,179,1,.08) !important;border-color:rgba(245,179,1,.3) !important}
html.dark .pt-box.light .pt-box-title{color:#fbbf24 !important}
html.dark .pt-box.light .pt-box-note{color:#d9a94a !important}

/* ── profile page extras ── */
html.dark .profile-card{background:#111a31 !important;border-color:#22304f !important}

/* ── public-style foot strip (user pages) ── */
html.dark .foot{background:linear-gradient(160deg,#0d1226,#141b3a 55%,#1e1046) !important;color:#a5b4fc !important}

/* ── theme toggle button (theme.js injected) ── */
.th-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  width:36px;height:36px;padding:0;border-radius:99px;cursor:pointer;
  background:rgba(255,255,255,.15);color:#fff;font-family:inherit;font-weight:700;font-size:12.5px;
  border:1.5px solid rgba(255,255,255,.28);transition:.15s;flex-shrink:0;
}
.th-btn:hover{background:rgba(255,255,255,.28);transform:translateY(-1px)}
.th-btn.th-side{
  width:auto;margin:10px 12px 2px;padding:9px 14px;border-radius:10px;
  background:#f5f3ff;color:#5b21b6;border:1.5px solid #e4e0ff;justify-content:flex-start;
}
.th-btn.th-side:hover{background:#ede9fe}
.th-btn.th-top{
  width:auto;padding:8px 14px;background:#f8fafc;color:#334155;border:1.5px solid #e2e8f0;
}
.th-btn.th-top:hover{background:#eef2ff;color:#5b21b6}
html.dark .th-btn.th-side{background:rgba(99,102,241,.18) !important;color:#c4b5fd !important;border-color:rgba(165,180,252,.32) !important}
html.dark .th-btn.th-side:hover{background:rgba(99,102,241,.3) !important}
html.dark .th-btn.th-top{background:#0f1729 !important;color:#c9d2e8 !important;border-color:#22304f !important}
html.dark .th-btn.th-top:hover{background:#16203a !important;color:#fff !important}
html.dark .th-btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}

/* ═══════════════════════════════════════════════════════════════
   v192 — PREMIUM THEME = dashboard-ui-preview.html wala FULL design
   (Fintech Glass Dark: mesh backdrop + 44px grid overlay, glass topbar,
   hero wallet stat, favorites-style quick tiles, preview category cards,
   glass timeline table + chip pills, pill bottom-nav, glass modals).
   Admin panel → Settings → Theme Manager se select hota hai (SH_SITE_THEME='premium').
   theme.js premium par DONO class lagata hai (dark + premium) — dark ke
   readability rules + ye preview layer dono ek saath chalte hain.
   ═══════════════════════════════════════════════════════════════ */
html.premium{color-scheme:dark}

/* ── backdrop — preview .mesh: 3 mesh glows (canvas bg) + 44px grid overlay ── */
html.premium body{
  background:
    radial-gradient(700px 420px at 12% -6%,rgba(59,130,246,.32),transparent 60%),
    radial-gradient(640px 400px at 92% 8%,rgba(139,92,246,.26),transparent 60%),
    radial-gradient(560px 380px at 50% 108%,rgba(236,72,153,.18),transparent 62%),
    #070b16 !important;
  color:#eef3ff !important;
}
html.premium body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(760px 520px at 50% 0%,#000,transparent 75%);
  mask-image:radial-gradient(760px 520px at 50% 0%,#000,transparent 75%);
}

/* ── preview font (Segoe UI) ── */
html.premium body,html.premium .modal,html.premium .f-inp,html.premium .f-sel,html.premium .f-btn,html.premium .o-btn,html.premium input,html.premium select,html.premium textarea,html.premium button,html.premium .btn{
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif !important;
}

/* ── centered content column (preview .page) + favorites-style quick strip ── */
html.premium .nav-in,html.premium .strip,html.premium .stats,html.premium .wrap{max-width:1180px;margin-left:auto;margin-right:auto}
html.premium .strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;-ms-overflow-style:none}
html.premium .strip::-webkit-scrollbar{display:none}
html.premium .strip .tile{flex:1 1 158px;max-width:250px;background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:18px !important;padding:13px 12px !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:none !important}
html.premium .strip .tile:hover{transform:translateY(-3px) !important;border-color:rgba(255,255,255,.20) !important;box-shadow:0 14px 30px -14px rgba(0,0,0,.6) !important}
html.premium .tile b{color:#eef3ff !important}
html.premium .tile .t-sub{color:#fbbf24 !important;font-weight:800}
html.premium .tile .t-ico{border-radius:14px !important;box-shadow:0 10px 22px -8px rgba(0,0,0,.5) !important}

/* ── glass topbar (preview .topbar) ── */
html.premium .nav{background:rgba(7,11,22,.6) !important;border-bottom:1px solid rgba(255,255,255,.08) !important;box-shadow:0 10px 34px rgba(0,0,0,.45) !important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html.premium .nav-center{background:transparent !important;border-bottom:none !important;box-shadow:none !important}
html.premium .nav-center .nav-link{background:rgba(255,255,255,.05) !important;border-color:rgba(255,255,255,.10) !important;color:#93a3c8 !important}
html.premium .nav-center .nav-link:hover{background:rgba(255,255,255,.10) !important;border-color:rgba(255,255,255,.18) !important;color:#eef3ff !important}
html.premium .nav-center .nav-link.active{background:linear-gradient(135deg,#3b82f6,#1d4ed8) !important;border-color:transparent !important;color:#fff !important;box-shadow:0 8px 20px -6px rgba(59,130,246,.55) !important}
html.premium .logo .logo-txt{background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#3b82f6 !important}
html.premium .wallet-chip{background:rgba(251,191,36,.12) !important;border-color:rgba(251,191,36,.35) !important}
html.premium .wallet-chip .wc-amt{color:#fbbf24 !important}

/* ── stats → preview HERO row (glass cards + gradient-text wallet) ── */
html.premium .stats{grid-template-columns:1.6fr 1fr 1fr 1fr;gap:12px}
@media(max-width:1000px){html.premium .stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){html.premium .stats{grid-template-columns:1fr}}
html.premium .stats .stat{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;box-shadow:0 14px 34px -16px rgba(0,0,0,.7) !important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html.premium .stats .stat:nth-child(1){background:radial-gradient(circle at 112% -25%,rgba(251,191,36,.38),transparent 58%),linear-gradient(140deg,rgba(59,130,246,.30),rgba(139,92,246,.22) 55%,rgba(236,72,153,.16)) !important;border:1px solid rgba(255,255,255,.18) !important;box-shadow:0 0 0 1px rgba(59,130,246,.25),0 18px 50px -12px rgba(29,78,216,.55) !important}
html.premium .stats .stat .ico{border-radius:14px !important;background:linear-gradient(135deg,#3b82f6,#8b5cf6) !important;box-shadow:0 10px 22px -8px rgba(0,0,0,.45) !important}
html.premium .stats .stat:nth-child(1) .ico{background:linear-gradient(135deg,#f59e0b,#ef4444) !important;box-shadow:0 10px 22px -8px rgba(239,68,68,.5) !important}
html.premium .stats .stat:nth-child(2) .ico{background:linear-gradient(135deg,#1d4ed8,#3b82f6) !important;box-shadow:0 10px 22px -8px rgba(59,130,246,.5) !important}
html.premium .stats .stat:nth-child(3) .ico{background:linear-gradient(135deg,#6d28d9,#a78bfa) !important;box-shadow:0 10px 22px -8px rgba(139,92,246,.5) !important}
html.premium .stats .stat:nth-child(4) .ico{background:linear-gradient(135deg,#16a34a,#4ade80) !important;box-shadow:0 10px 22px -8px rgba(74,222,128,.45) !important}
html.premium .stats .stat .v{font-weight:900;color:#eef3ff !important}
html.premium .stats .stat:nth-child(1) .v{font-size:32px;line-height:1;letter-spacing:-1px;background:linear-gradient(90deg,#fff,#fbbf24) !important;-webkit-background-clip:text !important;background-clip:text !important;-webkit-text-fill-color:transparent !important;color:transparent !important}
html.premium .stats .stat .l{font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#93a3c8 !important}

/* ── category cards → preview .cat grid (4/3/2 cols + radial glow hover) ── */
html.premium .cat-grid{grid-template-columns:repeat(4,1fr);gap:11px}
@media(max-width:980px){html.premium .cat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){html.premium .cat-grid{grid-template-columns:repeat(2,1fr)}}
html.premium .cat-box{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;padding:15px !important;box-shadow:none !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.premium .cat-box:hover{transform:translateY(-4px) !important;border-color:rgba(255,255,255,.20) !important;box-shadow:0 20px 40px -18px rgba(0,0,0,.6) !important}
html.premium .cat-box:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:.25s;background:radial-gradient(220px 130px at 18% 0%,rgba(59,130,246,.85),transparent 70%)}
html.premium .cat-box:hover:before{opacity:.22}
html.premium .cat-ico{width:46px !important;height:46px !important;border-radius:15px !important;font-size:17px !important;box-shadow:0 10px 22px -8px rgba(0,0,0,.5) !important}
html.premium .cat-box h4{font-size:13px !important;font-weight:800 !important;color:#eef3ff !important}
html.premium .cat-count{background:rgba(255,255,255,.09) !important;border-color:rgba(255,255,255,.16) !important;color:#93a3c8 !important;font-weight:900 !important}
html.premium .cat-banner{background:#0f1729 !important;border-color:rgba(255,255,255,.12) !important;border-radius:14px !important}
html.premium .cat-go,html.premium .svc-go{color:#60a5fa !important;font-weight:800}

/* ── service cards → preview glass ── */
html.premium .svc-box{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;padding:15px !important;box-shadow:none !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.premium .svc-box:hover{transform:translateY(-4px) !important;border-color:rgba(59,130,246,.5) !important;box-shadow:0 22px 44px -18px rgba(59,130,246,.45),0 0 0 1px rgba(59,130,246,.25) !important}
html.premium .svc-box h4{color:#eef3ff !important;font-weight:800 !important}
html.premium .svc-box p{color:#93a3c8 !important}
html.premium .svc-ico{width:44px !important;height:44px !important;border-radius:14px !important;font-size:16px !important;box-shadow:0 10px 22px -8px rgba(0,0,0,.5) !important}
html.premium .svc-banner{background:#0f1729 !important;border-color:rgba(255,255,255,.12) !important;border-radius:14px !important}

/* ── activity table → preview timeline glass + chip pills ── */
html.premium .tbl-wrap,html.premium .hist-wrap{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;box-shadow:0 14px 34px -16px rgba(0,0,0,.7) !important}
html.premium .tbl-wrap th,html.premium .hist-wrap th{background:rgba(255,255,255,.05) !important;border-bottom:1px solid rgba(255,255,255,.08) !important;color:#5e6d8f !important;font-size:10px !important;font-weight:900 !important;letter-spacing:.9px;text-transform:uppercase}
html.premium .tbl-wrap td,html.premium .hist-wrap td{color:#dbe3f4 !important;border-top-color:rgba(255,255,255,.06) !important}
html.premium .tbl-wrap tr:hover td{background:rgba(255,255,255,.04) !important}
html.premium .tbl-wrap td b i{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:12px;background:rgba(59,130,246,.16);color:#60a5fa !important}
html.premium .pill{border:1px solid transparent;font-weight:900 !important;letter-spacing:.5px}
html.premium .pill.ok{background:rgba(52,211,153,.13) !important;border-color:rgba(52,211,153,.3) !important;color:#34d399 !important}
html.premium .pill.no{background:rgba(248,113,113,.13) !important;border-color:rgba(248,113,113,.3) !important;color:#f87171 !important}
html.premium .pill.wt,html.premium .pill.pend{background:rgba(251,191,36,.13) !important;border-color:rgba(251,191,36,.32) !important;color:#fbbf24 !important}
html.premium .tbl-wrap a,html.premium .hist-wrap a{color:#60a5fa !important}

/* ── footer glass strip ── */
html.premium .foot{background:rgba(9,14,28,.72) !important;border-top:1px solid rgba(255,255,255,.07) !important;color:#93a3c8 !important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}

/* ── section headers → preview .sec (brand icon + tight bold title) ── */
html.premium .sec-h{margin:22px 2px 12px}
html.premium .sec-h h3{font-size:14.5px !important;font-weight:900 !important;letter-spacing:.2px;color:#eef3ff !important}
html.premium .sec-h h3 i{width:auto !important;height:auto !important;border-radius:0;background:none !important;box-shadow:none !important;color:#3b82f6 !important;font-size:14px !important}
html.premium .sec-h a{color:#93a3c8 !important}
html.premium .sec-h a:hover{color:#3b82f6}

/* ── activation / distributor header + hero → preview glass hero ── */
html.premium .top{background:rgba(7,11,22,.6) !important;border-bottom:1px solid rgba(255,255,255,.08) !important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
html.premium .hero{background:linear-gradient(140deg,rgba(59,130,246,.30),rgba(139,92,246,.22) 55%,rgba(236,72,153,.16)) !important;border:1px solid rgba(255,255,255,.18) !important;border-radius:26px !important;box-shadow:0 0 0 1px rgba(59,130,246,.25),0 18px 50px -12px rgba(29,78,216,.55) !important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html.premium .hero h1{color:#fff !important}

/* ── modals glass ── */
html.premium .modal-bg{background:rgba(3,7,18,.72) !important}
html.premium .modal{background:rgba(13,20,38,.95) !important;border:1px solid rgba(255,255,255,.12) !important;border-radius:24px !important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 30px 80px -20px rgba(0,0,0,.85)}

/* ── packages / profile / result cards glass ── */
html.premium .pkg{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.premium .pkg:hover{border-color:rgba(251,191,36,.5) !important;box-shadow:0 20px 40px -18px rgba(0,0,0,.6) !important}
html.premium .pkg .coins{color:#eef3ff !important}
html.premium .pkg .clbl{color:#93a3c8 !important}
html.premium .pkg .price{color:#fbbf24 !important}
html.premium .profile-card,html.premium .grid .card,html.premium .prCard{background:rgba(255,255,255,.055) !important;border:1px solid rgba(255,255,255,.10) !important;border-radius:20px !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.premium .prCard:hover{border-color:rgba(59,130,246,.4) !important}

/* ══ PREMIUM BOTTOM NAV (dashboard — mobile pill, preview jaisa) ══
   Markup: user/dashboard.php — .prem-bnav (default hidden, sirf premium me flex) */
.prem-bnav{
  display:none;gap:4px;max-width:440px;width:100%;justify-content:space-between;align-items:center;
  background:rgba(9,14,28,.82);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:7px;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 20px 50px -12px rgba(0,0,0,.7);
}
html.premium .prem-bnav{display:flex;justify-content:center;position:fixed;left:0;right:0;bottom:0;z-index:120;padding:10px 14px calc(12px + env(safe-area-inset-bottom))}
.prem-bnav .pb{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border-radius:15px;color:#5e6d8f;font-size:9.5px;font-weight:800;letter-spacing:.3px;text-decoration:none;transition:.16s}
.prem-bnav .pb i{font-size:16px}
.prem-bnav .pb:hover{color:#93a3c8}
.prem-bnav .pb.on{color:#fff !important;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 8px 20px -6px rgba(59,130,246,.55)}
.prem-bnav .pb.fab i{width:44px;height:44px;margin-top:-24px;display:grid;place-items:center;border-radius:16px;color:#fff;font-size:17px;background:linear-gradient(135deg,#f59e0b,#ef4444);border:3px solid #070b16;box-shadow:0 12px 26px -8px rgba(239,68,68,.55)}
@media(max-width:899px){html.premium body{padding-bottom:88px}}
@media(min-width:900px){html.premium .prem-bnav{display:none !important}}
