/* =============================================================================
   Paybusk – THEME SWITCH  (assets/css/theme.css)
   -----------------------------------------------------------------------------
   html[data-theme="light"]  -> clean white + soft-blue look (same as the landing screenshot)
   html[data-theme="dark"]   -> the original dark look (landing + login pages get a dark version too)
   Loaded LAST on every page so it only overrides colours – layout is never touched.
   ============================================================================= */

/* ---------- 0. switch button ---------- */
.tg{--tg-bg:rgba(255,255,255,.08);--tg-line:rgba(255,255,255,.2);--tg-fg:#fff;--tg-hover:rgba(255,255,255,.18);
  position:relative;display:inline-grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border-radius:13px;overflow:hidden;cursor:pointer;
  color:var(--tg-fg);background:var(--tg-bg);border:1px solid var(--tg-line);-webkit-tap-highlight-color:transparent;
  transition:background .2s,border-color .2s,transform .2s,box-shadow .25s}
.tg:hover{background:var(--tg-hover);transform:translateY(-1px)}
.tg:active{transform:scale(.92)}
.tg:focus-visible{outline:2px solid #ffc21a;outline-offset:2px}
.tg svg{position:absolute;width:20px;height:20px;transition:transform .55s cubic-bezier(.34,1.56,.64,1),opacity .3s ease}
/* dark mode shows a SUN (click = go light), light mode shows a MOON (click = go dark) */
html[data-theme="dark"] .tg .tg-sun{opacity:1;transform:none;color:#fbbf24}
html[data-theme="dark"] .tg .tg-moon{opacity:0;transform:rotate(-100deg) scale(.3)}
html[data-theme="light"] .tg .tg-moon{opacity:1;transform:none;color:#4f46e5}
html[data-theme="light"] .tg .tg-sun{opacity:0;transform:rotate(100deg) scale(.3)}
.tg:hover svg{filter:drop-shadow(0 0 6px currentColor)}
/* sizes that match the neighbours */
.top-r .tg{width:46px;height:46px;border-radius:14px}
.tx-r .tg{width:40px;height:40px;border-radius:12px}
.pubnav-r .tg{width:38px;height:38px;border-radius:11px}
.nav-cta .tg{width:40px;height:40px;border-radius:12px}
.tg-fixed{position:fixed;top:16px;right:16px;z-index:60}
.tg-fixed .tg{width:44px;height:44px;border-radius:14px;--tg-bg:rgba(255,255,255,.16);--tg-line:rgba(255,255,255,.34);--tg-hover:rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 26px -10px rgba(0,0,40,.5)}
@media(max-width:560px){.tg-fixed{top:10px;right:10px}.top-r .tg{width:42px;height:42px}}
/* on the always-navy bars the moon must be light, not indigo */
html[data-theme="light"] .nav .tg .tg-moon,html[data-theme="light"] .tx-bar .tg .tg-moon{color:#c7d2fe}
/* floating switch on the (blue) login page */
html[data-theme="light"] .tg-fixed .tg{--tg-bg:rgba(255,255,255,.96);--tg-line:#fff;--tg-hover:#fff;box-shadow:0 10px 26px -10px rgba(0,0,60,.55)}

/* landing nav: keep logo + switch + sign-up + burger on one line on phones */
@media(max-width:560px){
  .nav-in{gap:10px;padding:10px 14px}
  .nav-cta{gap:8px;margin-left:auto}
  .nav-cta .btn{white-space:nowrap;padding:8px 12px;font-size:13px}
  .nav-cta .tg{width:36px;height:36px;border-radius:11px}
  .nav-cta .burger{width:34px}
  .nav .banner{height:30px;max-width:128px}
  .nav .brand.pill{padding:5px 10px}
}

/* ---------- smooth change ---------- */
html.theme-vt::view-transition-old(root),html.theme-vt::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.theme-vt::view-transition-old(root){z-index:1}
html.theme-vt::view-transition-new(root){z-index:2147483646}
html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{
  transition:background-color .4s ease,color .4s ease,border-color .4s ease,box-shadow .4s ease,fill .4s ease,stroke .4s ease !important}
@media(prefers-reduced-motion:reduce){html.theme-anim *{transition:none !important}}

/* =============================================================================
   1. LIGHT  –  APP SHELL  (dashboard, offers, tasks, rewards, profile, faq, …)
   ============================================================================= */
html[data-theme="light"] body:is(.app,.pub){
  --bg:#f3f6ff;--bg2:#eaf0ff;--card:#ffffff;--card2:#f7f9ff;--line:#dde5f5;--text:#0b1b4d;--muted:#5b6b90;
  --p1:#3b82f6;--p2:#1d4ed8;--p3:#1237c9;--glow:rgba(29,78,216,.30);--brand:#1d4ed8;--accent:#1d4ed8;
  --good:#059669;--bad:#e11d48;--warn:#d97706;
  --g-bg:linear-gradient(145deg,rgba(255,255,255,.95),rgba(255,255,255,.78) 60%);--g-line:#dde5f5;
  --g-shadow:0 10px 30px -12px rgba(20,50,140,.18),inset 0 1px 0 #fff;
  --soft-shadow:0 8px 24px rgba(20,50,140,.08);
}
html[data-theme="light"]{color-scheme:light}

html[data-theme="light"] body:is(.app,.pub) .tx-wrap,html[data-theme="light"] body:is(.app,.pub) .shell{background:transparent !important;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub){background:radial-gradient(900px 520px at 88% -8%,#dbe7ff 0,transparent 62%),radial-gradient(760px 520px at -6% 104%,#ece8ff 0,transparent 60%),#f6f9ff !important;background-attachment:fixed !important;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) #stars,html[data-theme="light"] body:is(.app,.pub) .orb.o1,html[data-theme="light"] body:is(.app,.pub) .orb.o2{display:none !important}
html[data-theme="light"] body:is(.app,.pub) code{background:rgba(29,78,216,.08);color:#1e3a8a}
html[data-theme="light"] body:is(.app,.pub) ::selection{background:#bcd0ff;color:#08175e}
html[data-theme="light"] body:is(.app,.pub) .grad{background-image:linear-gradient(90deg,#1d4ed8,#6366f1,#1d4ed8);background-size:200% auto}

/* buttons / forms */
html[data-theme="light"] body:is(.app,.pub) .btn.glow{box-shadow:0 10px 26px -10px rgba(29,78,216,.55)}
html[data-theme="light"] body:is(.app,.pub) .btn.ghost{background:#fff;border-color:var(--line);color:var(--text);box-shadow:0 2px 8px rgba(20,50,140,.05)}
html[data-theme="light"] body:is(.app,.pub) .btn.ghost:hover{background:#eef3ff;border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) input,html[data-theme="light"] body:is(.app,.pub) select,html[data-theme="light"] body:is(.app,.pub) textarea{background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] body:is(.app,.pub) input::placeholder,html[data-theme="light"] body:is(.app,.pub) textarea::placeholder{color:#8a97b4}
html[data-theme="light"] body:is(.app,.pub) input:focus,html[data-theme="light"] body:is(.app,.pub) select:focus,html[data-theme="light"] body:is(.app,.pub) textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(29,78,216,.16)}

/* cards */
html[data-theme="light"] body:is(.app,.pub) .card{box-shadow:var(--soft-shadow)}
html[data-theme="light"] body:is(.app,.pub) .card:hover{border-color:#b6c8f3}
html[data-theme="light"] body:is(.app,.pub) .card.narrow{box-shadow:0 30px 70px -30px rgba(29,78,216,.35)}
html[data-theme="light"] body:is(.app,.pub) .stat b{background-image:linear-gradient(90deg,#0b1b4d,#1d4ed8)}
html[data-theme="light"] body:is(.app,.pub) .tag{background:#dfe8ff;color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .reply{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .bar{background:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .bar i{box-shadow:0 0 10px rgba(29,78,216,.35)}
html[data-theme="light"] body:is(.app,.pub) .pill{background:#dfe8ff;color:#1d4ed8;border-color:#bfd0ff}
html[data-theme="light"] body:is(.app,.pub) tbody tr:hover{background:rgba(29,78,216,.05)}
html[data-theme="light"] body:is(.app,.pub) .flash{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
html[data-theme="light"] body:is(.app,.pub) .flash.err{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
html[data-theme="light"] body:is(.app,.pub) .chipbtn{background:#fff}
html[data-theme="light"] body:is(.app,.pub) .chipbtn:hover{color:#1d4ed8;border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .chip{background:#fff}
html[data-theme="light"] body:is(.app,.pub) .copy input{background:#f6f8fd}
html[data-theme="light"] body:is(.app,.pub) .nd{background:#eef3ff}

/* sidebar */
html[data-theme="light"] body:is(.app,.pub) .side{background:rgba(255,255,255,.86) !important;border-right:1px solid #dde5f5 !important;
  box-shadow:inset -1px 0 0 #fff,10px 0 40px -26px rgba(20,50,140,.35)}
html[data-theme="light"] body:is(.app,.pub) .side:hover{box-shadow:inset -1px 0 0 #fff,24px 0 60px -26px rgba(20,50,140,.45)}
html[data-theme="light"] body:is(.app,.pub) .side-brand,html[data-theme="light"] body:is(.app,.pub) .brand{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .side-brand i,html[data-theme="light"] body:is(.app,.pub) .brand i{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .si{color:#5b6b90}
html[data-theme="light"] body:is(.app,.pub) .si:hover{background:#eef3ff;color:#0b1b4d;box-shadow:inset 0 0 0 1px #dde5f5}
html[data-theme="light"] body:is(.app,.pub) .si.on{background:linear-gradient(135deg,#dfe8ff,#eef3ff);color:#1d4ed8;box-shadow:inset 0 0 0 1px #c9d8fb,0 10px 24px -14px rgba(29,78,216,.55)}
html[data-theme="light"] body:is(.app,.pub) .si.on::before{background:#1d4ed8;box-shadow:0 0 12px rgba(29,78,216,.5)}
html[data-theme="light"] body:is(.app,.pub) .si.on .nic{filter:none}
html[data-theme="light"] body:is(.app,.pub) .si.out{border-top-color:var(--line)}
html[data-theme="light"] body:is(.app,.pub) .sg{color:#8a97b4}
html[data-theme="light"] body:is(.app,.pub) .pin{background:#fff;color:#5b6b90}
html[data-theme="light"] body:is(.app,.pub) .pin:hover,html[data-theme="light"] body:is(.app,.pub) .side.pinned .pin{color:#1d4ed8;border-color:#9db8f5;background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .side-user{background:#fff;border-color:var(--line);color:var(--text);box-shadow:0 6px 18px -10px rgba(20,50,140,.25)}
html[data-theme="light"] body:is(.app,.pub) .side-user:hover{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .scrim{background:rgba(8,20,70,.45)}

/* top bar */
html[data-theme="light"] body:is(.app,.pub) .top::before{background:rgba(255,255,255,.82) !important;border-bottom:1px solid #dde5f5 !important;box-shadow:0 8px 28px -18px rgba(20,50,140,.3),inset 0 1px 0 #fff !important}
html[data-theme="light"] body:is(.app,.pub) .burger span{background:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .search{background:#fff !important;border-color:var(--line) !important;color:#5b6b90}
html[data-theme="light"] body:is(.app,.pub) .search input{color:var(--text);background:none}
html[data-theme="light"] body:is(.app,.pub) .tick{background:#fff !important;border-color:var(--line) !important;box-shadow:0 4px 14px -8px rgba(20,50,140,.2) !important}
html[data-theme="light"] body:is(.app,.pub) .tick-live{background:#eef3ff !important;border-color:var(--line) !important;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .tk{color:#5b6b90}
html[data-theme="light"] body:is(.app,.pub) .tk b{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .tk.tip{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .tk[data-uc]:hover,html[data-theme="light"] body:is(.app,.pub) .tx-chip[data-uc]:hover,html[data-theme="light"] body:is(.app,.pub) .nx-tk[data-uc]:hover{background:#eef3ff;border-color:#c9d8fb}
html[data-theme="light"] body:is(.app,.pub) .co{background:#fff7e0;color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .icon-btn,html[data-theme="light"] body:is(.app,.pub) .bal,html[data-theme="light"] body:is(.app,.pub) .top-r .btn.ghost{background:#fff !important;border:1px solid var(--line) !important;color:var(--text);
  box-shadow:0 4px 14px -8px rgba(20,50,140,.25) !important}
html[data-theme="light"] body:is(.app,.pub) .icon-btn:hover,html[data-theme="light"] body:is(.app,.pub) .bal:hover,html[data-theme="light"] body:is(.app,.pub) .top-r .btn.ghost:hover{background:#eef3ff !important;border-color:#9db8f5 !important}
html[data-theme="light"] body:is(.app,.pub) .bal{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .bal .ic{color:#f59e0b}
html[data-theme="light"] body:is(.app,.pub) .nb{box-shadow:0 0 0 2px #fff,0 0 8px #3b82f6;background:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .dd-menu,html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-menu{background:#fff !important;border:1px solid #dde5f5 !important;box-shadow:0 26px 60px -20px rgba(20,50,140,.4) !important;
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .dd-menu a{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .dd-menu a:hover{background:#eef3ff !important;box-shadow:none !important}
html[data-theme="light"] body:is(.app,.pub) .dd-menu a .ic{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .dd-head,html[data-theme="light"] body:is(.app,.pub) .dd-title{border-color:var(--line) !important}
html[data-theme="light"] body:is(.app,.pub) .dd-head small{color:var(--muted)}
html[data-theme="light"] body:is(.app,.pub) .dd.open .dd-btn{box-shadow:0 0 0 3px rgba(59,130,246,.4)}

/* hero (welcome) – same blue banner as the landing page */
html[data-theme="light"] body:is(.app,.pub) .welcome{background:linear-gradient(120deg,#0a2090 0%,#1038d0 55%,#1b5cf0 100%);border-color:transparent;color:#fff;box-shadow:0 22px 50px -24px rgba(16,56,208,.6)}
html[data-theme="light"] body:is(.app,.pub) .welcome .muted{color:#dbe6ff}
html[data-theme="light"] body:is(.app,.pub) .chip2 .ic{color:#93c5fd}
html[data-theme="light"] body:is(.app,.pub) .welcome .btn.ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4);color:#fff;box-shadow:none}
html[data-theme="light"] body:is(.app,.pub) .welcome .btn.ghost:hover{background:rgba(255,255,255,.22);border-color:#fff}

/* tiles / kpis / offers */
html[data-theme="light"] body:is(.app,.pub) .q:hover{box-shadow:0 18px 40px -22px rgba(29,78,216,.5)}
html[data-theme="light"] body:is(.app,.pub) .kpi:hover{border-color:#9db8f5;box-shadow:0 22px 50px -26px rgba(29,78,216,.45)}
html[data-theme="light"] body:is(.app,.pub) .kbar{background:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .rb{background:#fff;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .rb:hover{background:#eef3ff;border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .hrow{scrollbar-color:#c7d4f2 transparent}
html[data-theme="light"] body:is(.app,.pub) .hrow::-webkit-scrollbar-thumb{background:#c7d4f2}
html[data-theme="light"] body:is(.app,.pub) .offer:hover{box-shadow:0 24px 50px -26px rgba(29,78,216,.5)}
html[data-theme="light"] body:is(.app,.pub) .offer-img{background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#60a5fa)}
html[data-theme="light"] body:is(.app,.pub) .offer-rw strong{color:#d97706}
html[data-theme="light"] body:is(.app,.pub) .offer-tag{color:#fff}
html[data-theme="light"] body:is(.app,.pub) .partner:hover{box-shadow:0 20px 44px -24px rgba(29,78,216,.45)}
html[data-theme="light"] body:is(.app,.pub) .pl{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}

/* charts + small widgets */
html[data-theme="light"] body:is(.app,.pub) .bars .grid{stroke:rgba(20,50,140,.12)}
html[data-theme="light"] body:is(.app,.pub) .bars .ax{fill:#6b7a99}
html[data-theme="light"] body:is(.app,.pub) .bar-r{fill:#60a5fa}
html[data-theme="light"] body:is(.app,.pub) .bar-r.now{fill:#1d4ed8;filter:drop-shadow(0 0 6px rgba(29,78,216,.45))}
html[data-theme="light"] body:is(.app,.pub) .bar-r:hover{fill:#93c5fd}
html[data-theme="light"] body:is(.app,.pub) .sd i{border-color:#c7d4f2}
html[data-theme="light"] body:is(.app,.pub) .sd.next i{color:#1d4ed8;border-color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .lbrow{border-bottom-color:#e8eefb}
html[data-theme="light"] body:is(.app,.pub) .rk{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .rstats div{background:#f1f5ff}
html[data-theme="light"] body:is(.app,.pub) .nx-tipbox,html[data-theme="light"] body:is(.app,.pub) .pf-tipbox{background:#0b1b4d}

/* modal / footer / public nav */
html[data-theme="light"] body:is(.app,.pub) .modal{background:rgba(8,20,70,.5)}
html[data-theme="light"] body:is(.app,.pub) .modal-card{background:#fff;border-color:#dde5f5;box-shadow:0 40px 100px -30px rgba(20,50,140,.5)}
html[data-theme="light"] body:is(.app,.pub) .av-opt:has(input:checked){border-color:#1d4ed8;box-shadow:0 0 18px rgba(29,78,216,.35)}
html[data-theme="light"] body:is(.app,.pub) .foot{background:#fff !important;border-top-color:var(--line)}
html[data-theme="light"] body:is(.app,.pub) .foot small{color:#8a97b4}
html[data-theme="light"] body:is(.app,.pub) .fl a:hover{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .pubnav{background:rgba(255,255,255,.86);border-bottom-color:var(--line)}
html[data-theme="light"] body:is(.app,.pub) .pubnav nav a:hover{color:#1d4ed8;background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .pubnav-r .btn.ghost{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .welcome h1,html[data-theme="light"] body:is(.app,.pub) .welcome p,html[data-theme="light"] body:is(.app,.pub) .welcome b,html[data-theme="light"] body:is(.app,.pub) .welcome small{color:#fff}
html[data-theme="light"] body:is(.app,.pub) .welcome .chip2{color:#dbe6ff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25)}

/* ---------- user-card popup ---------- */
html[data-theme="light"] body:is(.app,.pub) .uc-ov{background:rgba(8,20,70,.5)}
html[data-theme="light"] body:is(.app,.pub) .uc-box{background:radial-gradient(120% 90% at 0 0,#e4ecff 0,transparent 55%),linear-gradient(160deg,#ffffff,#f3f6ff 70%);border-color:#cfdcfa;color:var(--text);
  box-shadow:0 40px 100px -30px rgba(20,50,140,.55),0 0 0 1px #fff inset}
html[data-theme="light"] body:is(.app,.pub) .uc-box::before{background:linear-gradient(90deg,#3b82f6,#1d4ed8,#fbbf24)}
html[data-theme="light"] body:is(.app,.pub) .uc-x{color:#0b1b4d;background:#eef3ff;border-color:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .uc-x:hover{background:#dfe8ff;border-color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .uc-side{background:linear-gradient(180deg,#f3f6ff,transparent);border-right-color:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .uc-av{box-shadow:0 14px 34px -10px rgba(20,50,140,.45),0 0 0 3px #fff,0 0 30px -8px rgba(29,78,216,.35)}
html[data-theme="light"] body:is(.app,.pub) .uc-lb b{color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .uc-lb{color:#d97706}html[data-theme="light"] body:is(.app,.pub) .uc-lb .uc-i{fill:#fbbf2433}
html[data-theme="light"] body:is(.app,.pub) .uc-lb.nx{color:#2563eb}
html[data-theme="light"] body:is(.app,.pub) .uc-bar{background:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .uc-pill{background:#dfe8ff;border-color:#bfd0ff;color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .uc-pill.hot{background:#fff1e0;border-color:#fcd6a8;color:#c2410c}
html[data-theme="light"] body:is(.app,.pub) .uc-adm{background:#fff7e0;color:#b45309;border-color:#f6d98a}
html[data-theme="light"] body:is(.app,.pub) .uc-btn{background:#fff;border-color:#dde5f5;color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .uc-btn:hover{background:#eef3ff;border-color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .uc-sw i{background:#cdd8f2}
html[data-theme="light"] body:is(.app,.pub) .uc-sw input:checked+i{background:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .uc-tabs button{background:#fff;border-color:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .uc-tabs button:hover{color:#1d4ed8;border-color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .uc-sec{color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .uc-sec .uc-i{color:#d97706}
html[data-theme="light"] body:is(.app,.pub) .uc-cnt{background:#e8eefb}
html[data-theme="light"] body:is(.app,.pub) .uc-t,html[data-theme="light"] body:is(.app,.pub) .uc-card,html[data-theme="light"] body:is(.app,.pub) .uc-b,html[data-theme="light"] body:is(.app,.pub) .uc-empty{background:#fff;border-color:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .uc-t:hover{background:#f3f7ff;border-color:#b6c8f3}
html[data-theme="light"] body:is(.app,.pub) .uc-ti{color:#d97706;background:#fff4d6}
html[data-theme="light"] body:is(.app,.pub) .uc-t em{color:#059669}
html[data-theme="light"] body:is(.app,.pub) .uc-tbl{border-color:#e3e9f6;background:#fff}
html[data-theme="light"] body:is(.app,.pub) .uc-th{background:#f3f6ff}
html[data-theme="light"] body:is(.app,.pub) .uc-tr{border-top-color:#eef2fb}
html[data-theme="light"] body:is(.app,.pub) .uc-tr:hover{background:#f7f9ff}
html[data-theme="light"] body:is(.app,.pub) .uc-on i{color:#b45309;background:#fff4d6;border-color:#f6d98a}
html[data-theme="light"] body:is(.app,.pub) .uc-on i.ok{color:#059669;background:#e6f8ef;border-color:#a7ecc8}
html[data-theme="light"] body:is(.app,.pub) .uc-rw{color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .uc-paid{background:#e6f8ef;color:#059669}
html[data-theme="light"] body:is(.app,.pub) .uc-b.on{background:linear-gradient(160deg,#fff7e0,#eef3ff);border-color:#f6d98a}
html[data-theme="light"] body:is(.app,.pub) .uc-bi{background:#eef3ff;color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .uc-bp{background:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .uc-got{color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .uc-priv .uc-i,html[data-theme="light"] body:is(.app,.pub) .uc-err .uc-i{color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .uc-priv b,html[data-theme="light"] body:is(.app,.pub) .uc-err b{color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .uc-sk{background:linear-gradient(90deg,#eef2fb,#e1e8f8,#eef2fb);background-size:200% 100%}

/* =============================================================================
   2. LIGHT  –  .nx GLASS UI KIT (offers, tasks, earn, leaderboard, support, transactions, dashboard…)
   ============================================================================= */
html[data-theme="light"] body:is(.app,.pub) .nx{--gold:#d97706;--green:#16a34a;--glass:rgba(255,255,255,.78);--glass2:#ffffff;--gline:#dde5f5;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .nx .muted{color:var(--muted)}
html[data-theme="light"] body:is(.app,.pub) .nx-top-bar{box-shadow:0 0 10px rgba(29,78,216,.4);background:linear-gradient(90deg,#3b82f6,#1d4ed8,#fbbf24)}
html[data-theme="light"] body:is(.app,.pub) .nx-rp{background:rgba(29,78,216,.22)}

/* page header + glass panels = soft blue/lavender cards (as in the screenshot) */
html[data-theme="light"] body:is(.app,.pub) .nx-ph{background:linear-gradient(135deg,#eaf1ff,#f8faff);border-color:#dde5f5;box-shadow:0 14px 34px -22px rgba(29,78,216,.4),inset 0 1px 0 #fff;
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-ph::before{background:radial-gradient(circle,rgba(59,130,246,.32),transparent 70%)}
html[data-theme="light"] body:is(.app,.pub) .nx-ph::after{background:radial-gradient(circle,rgba(251,191,36,.28),transparent 70%)}
html[data-theme="light"] body:is(.app,.pub) .nx-pt h1,html[data-theme="light"] body:is(.app,.pub) .nx-pt p{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .nx-pt p{color:var(--muted);opacity:1}
html[data-theme="light"] body:is(.app,.pub) .nx-pi{background:#fff4d6;border-color:#f6d98a;color:#d97706;box-shadow:0 6px 18px -8px rgba(245,158,11,.55)}
html[data-theme="light"] body:is(.app,.pub) .nx .card,html[data-theme="light"] body:is(.app,.pub) .nx-panel,html[data-theme="light"] body:is(.app,.pub) .nx-offers{background:linear-gradient(145deg,#ffffff,#f4f7ff 70%);border-color:#dde5f5;color:var(--text);
  box-shadow:0 14px 34px -22px rgba(20,50,140,.35),inset 0 1px 0 #fff;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-panel,html[data-theme="light"] body:is(.app,.pub) .nx-offers{background:linear-gradient(135deg,#eaf1ff,#f8faff)}
html[data-theme="light"] body:is(.app,.pub) .nx-panel:nth-of-type(even){background:linear-gradient(135deg,#efecff,#f8f8ff)}
html[data-theme="light"] body:is(.app,.pub) .nx-panel::before,html[data-theme="light"] body:is(.app,.pub) .nx-offers::before{background:radial-gradient(circle,rgba(59,130,246,.22),transparent 70%)}
html[data-theme="light"] body:is(.app,.pub) .nx-panel::after,html[data-theme="light"] body:is(.app,.pub) .nx-offers::after{background:radial-gradient(circle,rgba(251,191,36,.2),transparent 70%)}
html[data-theme="light"] body:is(.app,.pub) .nx-sh i{background:#fff4d6 !important;border-color:#f6d98a;color:#d97706;box-shadow:0 6px 16px -8px rgba(245,158,11,.5)}
html[data-theme="light"] body:is(.app,.pub) .nx-sh h2{color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .nx-sh small{color:var(--muted);opacity:1}
html[data-theme="light"] body:is(.app,.pub) .nx-sh .nx-all{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .nx-jump a{background:#fff;border-color:#dde5f5;color:var(--text);box-shadow:0 4px 12px -8px rgba(20,50,140,.3);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-jump a:hover{background:#eef3ff;border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .nx-jump .all{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .nx-rb{background:#fff;color:var(--text);border-color:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .nx-rb:hover{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .nx-prog{background:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .nx-prog i{background:linear-gradient(90deg,#3b82f6,#fbbf24)}

/* controls */
html[data-theme="light"] body:is(.app,.pub) .nx input:not([type=hidden]):not([type=checkbox]):not([type=radio]),html[data-theme="light"] body:is(.app,.pub) .nx textarea,html[data-theme="light"] body:is(.app,.pub) .nx select{background:#fff;border-color:#dde5f5;color:var(--text);
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx input::placeholder,html[data-theme="light"] body:is(.app,.pub) .nx textarea::placeholder{color:#8a97b4}
html[data-theme="light"] body:is(.app,.pub) .nx input:focus,html[data-theme="light"] body:is(.app,.pub) .nx textarea:focus,html[data-theme="light"] body:is(.app,.pub) .nx select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(29,78,216,.15);background:#fff}
html[data-theme="light"] body:is(.app,.pub) .nx label{color:#1e2d5c}
html[data-theme="light"] body:is(.app,.pub) .nx .btn.ghost{background:#fff;border-color:#dde5f5;color:var(--text);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx .btn.ghost:hover{background:#eef3ff;border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .nx a:focus-visible,html[data-theme="light"] body:is(.app,.pub) .nx button:focus-visible{outline-color:#3b82f6}
html[data-theme="light"] body:is(.app,.pub) .nx-search input{background:#fff !important}
html[data-theme="light"] body:is(.app,.pub) .nx-tabs,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2{background:#fff;border-color:#dde5f5;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-tabs button,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 a,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 button{color:#475a86}
html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 a:hover,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 button:hover{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 .on,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 a.on,html[data-theme="light"] body:is(.app,.pub) .nx-tabs2 button.on{color:#fff}

/* pills / badges */
html[data-theme="light"] body:is(.app,.pub) .nx .pill{background:#fff4d6;border-color:#f6d98a;color:#b45309;box-shadow:none}
html[data-theme="light"] body:is(.app,.pub) .nx .badge{background:#eef3ff;border-color:#dde5f5;color:#334a7a}
html[data-theme="light"] body:is(.app,.pub) .nx .badge.pending,html[data-theme="light"] body:is(.app,.pub) .nx .badge.open{background:#fff4d6;border-color:#f6d98a;color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .nx .badge.approved,html[data-theme="light"] body:is(.app,.pub) .nx .badge.paid,html[data-theme="light"] body:is(.app,.pub) .nx .badge.answered,html[data-theme="light"] body:is(.app,.pub) .nx .badge.done,html[data-theme="light"] body:is(.app,.pub) .nx .badge.resolved{background:#e6f8ef;border-color:#a7ecc8;color:#047857}
html[data-theme="light"] body:is(.app,.pub) .nx .badge.rejected,html[data-theme="light"] body:is(.app,.pub) .nx .badge.denied,html[data-theme="light"] body:is(.app,.pub) .nx .badge.failed{background:#ffe9ec;border-color:#fecdd3;color:#be123c}
html[data-theme="light"] body:is(.app,.pub) .nx .pos{color:#16a34a}html[data-theme="light"] body:is(.app,.pub) .nx .neg{color:#e11d48}

/* offer walls */
html[data-theme="light"] body:is(.app,.pub) .nx-wall{background:linear-gradient(150deg,#ffffff,#eef3ff);border-color:#dde5f5;box-shadow:0 12px 28px -18px rgba(20,50,140,.4),inset 0 1px 0 #fff;
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-wall:nth-child(4n+2){background:linear-gradient(150deg,#ffffff,#e4f8f4)}
html[data-theme="light"] body:is(.app,.pub) .nx-wall:nth-child(4n+3){background:linear-gradient(150deg,#ffffff,#ece8ff)}
html[data-theme="light"] body:is(.app,.pub) .nx-wall:nth-child(4n+4){background:linear-gradient(150deg,#ffffff,#fff3d9)}
html[data-theme="light"] body:is(.app,.pub) .nx-wall[style*=background]{background-image:none}
html[data-theme="light"] body:is(.app,.pub) .nx-wall::after{opacity:.5}
html[data-theme="light"] body:is(.app,.pub) .nx-wall .orb{opacity:.28}
html[data-theme="light"] body:is(.app,.pub) .nx-wall .lv{color:#047857;background:#e6f8ef}
html[data-theme="light"] body:is(.app,.pub) .nx-wall .pl{background:#e8efff;color:#1d4ed8;box-shadow:inset 0 1px 0 #fff}
html[data-theme="light"] body:is(.app,.pub) .nx-wall .pl.has{background:transparent}
html[data-theme="light"] body:is(.app,.pub) .nx-wall:hover{border-color:#9db8f5;box-shadow:0 22px 44px -22px rgba(29,78,216,.55),0 0 0 1px #c9d8fb}
html[data-theme="light"] body:is(.app,.pub) .nx-wall small{color:var(--muted);opacity:1}
html[data-theme="light"] body:is(.app,.pub) .nx-wall .go{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .nx-nowall,html[data-theme="light"] body:is(.app,.pub) .nx-nomatch,html[data-theme="light"] body:is(.app,.pub) .nx-empty{background:#fff;border-color:#dde5f5;color:var(--text);-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-nowall code{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .nx-empty p,html[data-theme="light"] body:is(.app,.pub) .nx-empty a{color:var(--muted)}html[data-theme="light"] body:is(.app,.pub) .nx-empty a{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .nx-empty .ei{background:#fff4d6;border-color:#f6d98a;color:#d97706}

/* offer cards */
html[data-theme="light"] body:is(.app,.pub) .nx .ogrid .offer,html[data-theme="light"] body:is(.app,.pub) .nx-offers .offer{background:linear-gradient(160deg,#ffffff,#f5f8ff) !important;border:1px solid #dde5f5 !important;
  box-shadow:0 10px 24px -16px rgba(20,50,140,.45),inset 0 1px 0 #fff !important;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx .ogrid .offer:hover,html[data-theme="light"] body:is(.app,.pub) .nx-offers .offer:hover{border-color:#9db8f5 !important;box-shadow:0 20px 38px -20px rgba(29,78,216,.55) !important}
html[data-theme="light"] body:is(.app,.pub) .nx-shn::before{background:linear-gradient(90deg,transparent,rgba(255,226,140,.2) 25%,rgba(255,255,255,.9) 50%,rgba(255,226,140,.2) 75%,transparent)}
html[data-theme="light"] body:is(.app,.pub) .nx-offers .offer .offer-body b,html[data-theme="light"] body:is(.app,.pub) .nx .offer .offer-body b{color:var(--text)}

/* stat cards */
html[data-theme="light"] body:is(.app,.pub) .nx-st{background:#fff;border-color:#dde5f5;box-shadow:0 10px 24px -18px rgba(20,50,140,.4),inset 0 1px 0 #fff;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .nx-st:hover{border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .nx-st .si{background:#fff4d6;color:#d97706}
html[data-theme="light"] body:is(.app,.pub) .nx-st.g .si{color:#16a34a;background:#e6f8ef}
html[data-theme="light"] body:is(.app,.pub) .nx-st.r .si{color:#e11d48;background:#ffe9ec}
html[data-theme="light"] body:is(.app,.pub) .nx-st.v .si{color:#4f46e5;background:#e8e6ff}

/* leaderboard */
html[data-theme="light"] body:is(.app,.pub) .lb-p{background:linear-gradient(160deg,#ffffff,#f1f5ff);border-color:#dde5f5;box-shadow:0 14px 32px -20px rgba(20,50,140,.45),inset 0 1px 0 #fff;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .lb-p.r1{border-color:#f3c64a;box-shadow:0 18px 40px -20px rgba(245,158,11,.55),0 0 0 1px #fbe29a,inset 0 1px 0 #fff;background:linear-gradient(160deg,#fffdf4,#fff4d6)}
html[data-theme="light"] body:is(.app,.pub) .lb-p.r2{border-color:#c4cee3}
html[data-theme="light"] body:is(.app,.pub) .lb-p.r3{border-color:#f4c19a}
html[data-theme="light"] body:is(.app,.pub) .lb-p::after{opacity:.5}
html[data-theme="light"] body:is(.app,.pub) .lb-av>*{box-shadow:0 0 0 3px #fff}
html[data-theme="light"] body:is(.app,.pub) .lb-row,html[data-theme="light"] body:is(.app,.pub) .nx-tx{background:#fff;border-color:#dde5f5;box-shadow:0 6px 16px -14px rgba(20,50,140,.4)}
html[data-theme="light"] body:is(.app,.pub) .lb-row:hover,html[data-theme="light"] body:is(.app,.pub) .nx-tx:hover{background:#f5f8ff;border-color:#b6c8f3}
html[data-theme="light"] body:is(.app,.pub) .lb-rk{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .lb-b .t{background:#e3e9f6}
html[data-theme="light"] body:is(.app,.pub) .lb-b .t i{background:linear-gradient(90deg,#3b82f6,#fbbf24)}
html[data-theme="light"] body:is(.app,.pub) .lb-u .you,html[data-theme="light"] body:is(.app,.pub) .lb-p .you{color:#052e16}

/* tasks / transactions / support / frame */
html[data-theme="light"] body:is(.app,.pub) .nx-task:hover{border-color:#9db8f5;box-shadow:0 20px 40px -22px rgba(29,78,216,.5)}
html[data-theme="light"] body:is(.app,.pub) .nx-task p{opacity:.9;color:#33477a}
html[data-theme="light"] body:is(.app,.pub) .nx-tx .ti.in{color:#16a34a;background:#e6f8ef}
html[data-theme="light"] body:is(.app,.pub) .nx-tx .ti.out{color:#e11d48;background:#ffe9ec}
html[data-theme="light"] body:is(.app,.pub) .nx-tx .tm span.ty{background:hsla(var(--h),80%,52%,.12);color:hsl(var(--h),70%,32%);border-color:hsla(var(--h),70%,45%,.3)}
html[data-theme="light"] body:is(.app,.pub) .nx-ir .ii{background:#fff4d6}
html[data-theme="light"] body:is(.app,.pub) .nx-ir a{color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .nx .reply{background:#ecfdf5;border-color:#a7ecc8;border-left-color:#22c55e;color:#064e3b}
html[data-theme="light"] body:is(.app,.pub) .nx-note{background:#fff8e6;border-color:#f6d98a;color:#5b4310}
html[data-theme="light"] body:is(.app,.pub) .nx-frame{background:linear-gradient(110deg,#eef3ff 30%,#fff 50%,#eef3ff 70%);background-size:200% 100%;border-color:#dde5f5;box-shadow:0 18px 44px -24px rgba(20,50,140,.45)}
html[data-theme="light"] body:is(.app,.pub) .nx .nx-frame iframe.wall{border:1px solid #dde5f5}

/* dashboard / profile scoped bits that use fixed colours */
html[data-theme="light"] body:is(.app,.pub) .nx-goalsel option{color:#0b1b4d;background:#fff}
html[data-theme="light"] body:is(.app,.pub) .nx-svg .dot,html[data-theme="light"] body:is(.app,.pub) .pf-svg .dot{stroke:#fff}
html[data-theme="light"] body:is(.app,.pub) .nx-sd.done{background:#e6f8ef}
html[data-theme="light"] body:is(.app,.pub) .nx-sd.next{background:#fff4d6}

/* earn.php footer & shared nx footer use currentColor → follow text automatically */
html[data-theme="light"] body:is(.app,.pub) .nx-foot{background:linear-gradient(180deg,rgba(29,78,216,.06),transparent 85%),#fff}

/* ---------- top-nav shell (earn.php) stays navy, exactly like the landing nav ---------- */
html[data-theme="light"] body:is(.app,.pub) .tx-bar::before{background:#050f45 !important;border-bottom:1px solid rgba(255,255,255,.08) !important;box-shadow:0 10px 30px -14px rgba(5,15,69,.55) !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .bal,html[data-theme="light"] body:is(.app,.pub) .tx-r .icon-btn{background:rgba(255,255,255,.1) !important;border-color:rgba(255,255,255,.2) !important;color:#fff;box-shadow:none !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .bal:hover,html[data-theme="light"] body:is(.app,.pub) .tx-r .icon-btn:hover{background:rgba(255,255,255,.2) !important;border-color:#ffc21a !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .bal .ic{color:#fbbf24}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-menu{background:#0c2552 !important;border:1px solid rgba(94,234,212,.18) !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-menu a{color:#e7eeff}html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-menu a:hover{background:rgba(255,255,255,.1) !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-menu a .ic{color:#93c5fd}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-head,html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-title{border-color:rgba(94,234,212,.18) !important;color:#fff}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .dd-head small{color:#b9c8e6}
html[data-theme="light"] body:is(.app,.pub) .tx-nav a{color:#b9c8e6}html[data-theme="light"] body:is(.app,.pub) .tx-nav a:hover,html[data-theme="light"] body:is(.app,.pub) .tx-nav a.on{color:#fff}
html[data-theme="light"] body:is(.app,.pub) .tx-brand{color:#fff}html[data-theme="light"] body:is(.app,.pub) .tx-brand i{color:#fbbf24}
html[data-theme="light"] body:is(.app,.pub) .tx-burger span{background:#fff}
html[data-theme="light"] body:is(.app,.pub) .tx-tick{background:transparent !important;border:0 !important;box-shadow:none !important}
html[data-theme="light"] body:is(.app,.pub) .tx-live{background:linear-gradient(160deg,#0c2552,#0a3a6a) !important;border-color:rgba(94,234,212,.18) !important}
html[data-theme="light"] body:is(.app,.pub) .tx-bar .tg{--tg-bg:rgba(255,255,255,.1);--tg-line:rgba(255,255,255,.22);--tg-hover:rgba(255,255,255,.2)}
html[data-theme="light"] body:is(.app,.pub) .tx-foot{background:linear-gradient(180deg,#0a1d52,#050f45)}
html[data-theme="light"] body:is(.app,.pub) .tx-foot a,html[data-theme="light"] body:is(.app,.pub) .tx-foot h4{color:#b9c8e6}html[data-theme="light"] body:is(.app,.pub) .tx-foot h4{color:#fff}html[data-theme="light"] body:is(.app,.pub) .tx-foot a:hover{color:#fbbf24}
html[data-theme="light"] body:is(.app,.pub) .tx-fb p{color:#b9c8e6}

/* ---------- offer / wall pop-ups + rewards ---------- */
html[data-theme="light"] body:is(.app,.pub) .om-back,html[data-theme="light"] body:is(.app,.pub) .wm-back,html[data-theme="light"] body:is(.app,.pub) .pb-ov{background:rgba(8,20,70,.55)}
html[data-theme="light"] body:is(.app,.pub) .om{background:linear-gradient(170deg,#ffffff,#f3f6ff);color:#0b1b4d;border-color:#dde5f5;box-shadow:0 30px 80px -20px rgba(20,50,140,.5)}
html[data-theme="light"] body:is(.app,.pub) .om-x{background:#eef3ff;color:#475a86}html[data-theme="light"] body:is(.app,.pub) .om-x:hover{background:#dfe8ff;color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .om-pill{background:#eef3ff;color:#0b1b4d}html[data-theme="light"] body:is(.app,.pub) .om-pill.g{background:#16a34a;color:#fff}html[data-theme="light"] body:is(.app,.pub) .om-pill.c{color:#b45309;background:#fff4d6}
html[data-theme="light"] body:is(.app,.pub) .om-desc,html[data-theme="light"] body:is(.app,.pub) .om-rw{background:#f1f5ff;color:#33477a}
html[data-theme="light"] body:is(.app,.pub) .om-rw em{background:#fff4d6;color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .om-st{color:#33477a}
html[data-theme="light"] body:is(.app,.pub) .om-st i{background:#dfe8ff;color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .wm{background:#fff;border-color:#dde5f5;box-shadow:0 30px 90px -20px rgba(20,50,140,.55)}
html[data-theme="light"] body:is(.app,.pub) .wm-h{background:#f3f6ff}
html[data-theme="light"] body:is(.app,.pub) .wm-h a.wm-t{color:#1d4ed8 !important}
html[data-theme="light"] body:is(.app,.pub) .wm-x{color:#5b6b90}html[data-theme="light"] body:is(.app,.pub) .wm-x:hover{background:#e3e9f6;color:#0b1b4d}
html[data-theme="light"] body:is(.app,.pub) .wm-body,html[data-theme="light"] body:is(.app,.pub) .wm-body iframe{background:#fff}
html[data-theme="light"] body:is(.app,.pub) .wm-load{color:#5b6b90}
html[data-theme="light"] body:is(.app,.pub) .wm-load i{border-color:rgba(29,78,216,.15);border-top-color:#1d4ed8}
html[data-theme="light"] body:is(.app,.pub) .pb-md{background:linear-gradient(180deg,#ffffff,#f3f6ff);border-color:#dde5f5;color:#0b1b4d;box-shadow:0 30px 80px -24px rgba(20,50,140,.55)}
html[data-theme="light"] body:is(.app,.pub) .pb-sum{background:#f3f6ff;border-color:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .pb-quick button,html[data-theme="light"] body:is(.app,.pub) .pb-chips a,html[data-theme="light"] body:is(.app,.pub) .pb-pager a,html[data-theme="light"] body:is(.app,.pub) .pb-pager span{border-color:#cfd9f1}
html[data-theme="light"] body:is(.app,.pub) .pb-sh svg{stroke:#16a34a}
html[data-theme="light"] body:is(.app,.pub) .pb-cat h4{opacity:.75}
html[data-theme="light"] body:is(.app,.pub) .pb-tile:hover,html[data-theme="light"] body:is(.app,.pub) .pb-tile:focus-visible{border-color:#1d4ed8;box-shadow:0 18px 36px -18px rgba(29,78,216,.55),0 0 0 3px rgba(29,78,216,.1)}
html[data-theme="light"] body:is(.app,.pub) .pb-grid:hover .pb-tile:not(:hover){filter:brightness(.92)}

/* ---------- admin ---------- */
html[data-theme="light"] body:is(.app,.pub) .ad{--g:#ffffff;--gl:#dde5f5;color:var(--text)}
html[data-theme="light"] body:is(.app,.pub) .ad-card{background:linear-gradient(145deg,#fff,#f4f7ff);box-shadow:0 12px 30px -20px rgba(20,50,140,.4),inset 0 1px 0 #fff;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="light"] body:is(.app,.pub) .ad-pill{background:#fff;color:var(--text);border-color:#dde5f5}
html[data-theme="light"] body:is(.app,.pub) .ad-pill:hover{background:#eef3ff}
html[data-theme="light"] body:is(.app,.pub) .ad-st:hover{border-color:#9db8f5}
html[data-theme="light"] body:is(.app,.pub) .ad-ic{box-shadow:none}
html[data-theme="light"] body:is(.app,.pub) .ad .violet{background:#ece8ff;color:#6d28d9}html[data-theme="light"] body:is(.app,.pub) .ad .amber{background:#fff4d6;color:#b45309}html[data-theme="light"] body:is(.app,.pub) .ad .sky{background:#dff1ff;color:#0369a1}
html[data-theme="light"] body:is(.app,.pub) .ad .rose{background:#ffe9ec;color:#be123c}html[data-theme="light"] body:is(.app,.pub) .ad .green{background:#e6f8ef;color:#047857}
html[data-theme="light"] body:is(.app,.pub) .ad-dl.up{background:#e6f8ef;color:#047857}html[data-theme="light"] body:is(.app,.pub) .ad-dl.dn{background:#ffe9ec;color:#be123c}
html[data-theme="light"] body:is(.app,.pub) .ad-row{border-top-color:#e8eefb}
html[data-theme="light"] body:is(.app,.pub) .ad-row .am{color:#b45309}
html[data-theme="light"] body:is(.app,.pub) .ad-bd.pending{background:#fff4d6;color:#b45309}html[data-theme="light"] body:is(.app,.pub) .ad-bd.paid{background:#e6f8ef;color:#047857}html[data-theme="light"] body:is(.app,.pub) .ad-bd.other{background:#ffe9ec;color:#be123c}

/* =============================================================================
   3. DARK  –  LANDING PAGE  (index.php)   (light = the original look)
   ============================================================================= */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body.lp{--ink:#e8eeff;--mute:#9fb0dd;--line:#1e2b5a;--shadow:0 10px 28px rgba(0,0,0,.45);
  background:#060b1f;color:var(--ink)}
html[data-theme="dark"] #loader{background:#060b1f}
html[data-theme="dark"] .ld-bar{background:#1e2b5a}
html[data-theme="dark"] body.lp .nav{background:#050f45}
html[data-theme="dark"] body.lp :focus-visible{outline-color:#ffc21a}
/* white "illustration" cards inside the hero keep their light colours */
html[data-theme="dark"] body.lp .phone,html[data-theme="dark"] body.lp .ph-row,html[data-theme="dark"] body.lp .mcard,html[data-theme="dark"] body.lp .panel,html[data-theme="dark"] body.lp .pay,html[data-theme="dark"] body.lp .brand.pill{--ink:#0b1b4d;--mute:#5b6b90;--line:#e3e9f6;color:#0b1b4d}
html[data-theme="dark"] body.lp .pay h3{color:#0b1b4d}
html[data-theme="dark"] body.lp .stats2{background:#0b1433;border-color:#1e2b5a;box-shadow:0 20px 50px -26px #000}
html[data-theme="dark"] body.lp .stat,html[data-theme="dark"] body.lp .card,html[data-theme="dark"] body.lp .ticker{background:#101a40;border-color:#1e2b5a}
html[data-theme="dark"] body.lp .stat.hl{background:linear-gradient(135deg,#2a63ff,#1237c9);border-color:transparent}
html[data-theme="dark"] body.lp .card:hover{box-shadow:0 18px 38px -18px rgba(0,0,0,.8),0 0 0 1px #2c3f86}
html[data-theme="dark"] body.lp .card::before{background:radial-gradient(260px circle at var(--gx,50%) var(--gy,0%),rgba(96,165,250,.16),transparent 70%)}
html[data-theme="dark"] body.lp .ico em{border-color:#101a40}
html[data-theme="dark"] body.lp .tk-item strong{color:#e8eeff}
html[data-theme="dark"] body.lp .soft{background:linear-gradient(180deg,#0d1738,#09102b);border-color:#1e2b5a}
html[data-theme="dark"] body.lp .show{background:linear-gradient(135deg,#0e1a46,#0a1232);border-color:#1e2b5a;box-shadow:0 20px 44px -26px #000}
html[data-theme="dark"] body.lp .show.alt{background:linear-gradient(135deg,#171040,#0a1030)}
html[data-theme="dark"] body.lp .show h2{color:#fff}
html[data-theme="dark"] body.lp .show h2 em{color:#60a5fa}
html[data-theme="dark"] body.lp .pill{background:rgba(59,130,246,.18);color:#8fbaff}
html[data-theme="dark"] body.lp .trio .pi{box-shadow:0 8px 18px -8px rgba(0,0,0,.6)}
html[data-theme="dark"] body.lp .tabs button{background:#101a40;border-color:#1e2b5a;color:#9fb0dd}
html[data-theme="dark"] body.lp .tabs button:hover{border-color:#60a5fa;color:#8fbaff}
html[data-theme="dark"] body.lp .tabs button.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
html[data-theme="dark"] body.lp .pane details{background:#101a40;border-color:#1e2b5a}
html[data-theme="dark"] body.lp .pane summary{color:#e8eeff}
html[data-theme="dark"] body.lp .pane summary::after{color:#60a5fa}
html[data-theme="dark"] body.lp .sec-head h2{color:#fff}
html[data-theme="dark"] body.lp .sec-head.light h2{color:#fff}
html[data-theme="dark"] body.lp .pl.logo{background:#fff}
html[data-theme="dark"] body.lp .foot{background:#030718}
html[data-theme="dark"] body.lp .cta-box{box-shadow:0 22px 50px -26px #000}
/* sign-in / sign-up pop-up */
html[data-theme="dark"] body.lp .m-back{background:rgba(2,6,28,.8)}
html[data-theme="dark"] body.lp .m-box{background:#0d1636;box-shadow:0 30px 80px rgba(0,0,0,.7),0 0 0 1px #1e2b5a;color:#e8eeff}
html[data-theme="dark"] body.lp .m-box h3{color:#fff}
html[data-theme="dark"] body.lp .m-x{background:#18234f;color:#e8eeff}
html[data-theme="dark"] body.lp .m-tabs{background:#0a122b}
html[data-theme="dark"] body.lp .m-tabs button{color:#9fb0dd}
html[data-theme="dark"] body.lp .m-f input,html[data-theme="dark"] body.lp .m-pw input{background:#0a122b;color:#e8eeff;border-color:#1e2b5a}
html[data-theme="dark"] body.lp .m-f input:focus,html[data-theme="dark"] body.lp .m-pw input:focus{background:#0d1636;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.2)}
html[data-theme="dark"] body.lp .m-f input::placeholder,html[data-theme="dark"] body.lp .m-pw input::placeholder{color:#5f719f}
html[data-theme="dark"] body.lp .m-eye{color:#7f90c0}
html[data-theme="dark"] body.lp .m-err{background:#3a0f1c;border-color:#7f1d36;color:#fda4b4}
html[data-theme="dark"] body.lp .m-row a,html[data-theme="dark"] body.lp .m-alt a,html[data-theme="dark"] body.lp .m-check a{color:#7db3ff}
html[data-theme="dark"] body.lp .m-ok{background:#12255f;box-shadow:0 0 0 8px #0e1a47;color:#7db3ff}
html[data-theme="dark"] body.lp .m-done small{color:#7f90c0}

/* =============================================================================
   4. DARK  –  LOGIN / SIGN-UP / RESET PAGES  (auth_ui.php)
   ============================================================================= */
html[data-theme="dark"] body.auth{--ink:#e8eeff;--mute:#9fb0dd;--line:#1e2b5a;background:#030a24}
html[data-theme="dark"] body.auth .bg{background:radial-gradient(900px 600px at 12% 8%,#16398f 0,transparent 60%),radial-gradient(800px 640px at 92% 96%,#33146e 0,transparent 60%),linear-gradient(135deg,#061547,#071a5e 55%,#0e0a3d)}
html[data-theme="dark"] body.auth .orb{opacity:.28}
html[data-theme="dark"] body.auth .shell{background:#0d1636;box-shadow:0 40px 90px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.08)}
html[data-theme="dark"] body.auth .side{background:linear-gradient(165deg,#0b2a8f 0,#071a66 55%,#1b0e5c 100%)}
html[data-theme="dark"] body.auth .logo-tile{--ink:#0b1b4d;color:#0b1b4d}
html[data-theme="dark"] body.auth .panel{background:linear-gradient(180deg,#0d1636,#0a1230);color:#e8eeff}
html[data-theme="dark"] body.auth .panel h1{color:#fff}
html[data-theme="dark"] body.auth .tabs{background:#0a122b}
html[data-theme="dark"] body.auth .tabs a{color:#9fb0dd}
html[data-theme="dark"] body.auth .tabs a:hover{color:#8fbaff}
html[data-theme="dark"] body.auth .tabs a.on,html[data-theme="dark"] body.auth .tabs a.on:hover{color:#fff}
html[data-theme="dark"] body.auth .in input,html[data-theme="dark"] body.auth .f input,html[data-theme="dark"] body.auth .pw input{background:#0a122b;color:#e8eeff;border-color:#1e2b5a}
html[data-theme="dark"] body.auth .in input:hover{border-color:#2c3f86}
html[data-theme="dark"] body.auth .in input:focus,html[data-theme="dark"] body.auth .f input:focus,html[data-theme="dark"] body.auth .pw input:focus{background:#0d1636;border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.2)}
html[data-theme="dark"] body.auth .in input::placeholder,html[data-theme="dark"] body.auth .f input::placeholder{color:#5f719f}
html[data-theme="dark"] body.auth .in .ic{color:#6f81b3}
html[data-theme="dark"] body.auth .in:focus-within .ic{color:#7db3ff}
html[data-theme="dark"] body.auth .in input:not(:placeholder-shown):invalid:not(:focus){background:#2a0f1c;border-color:#7f1d36}
html[data-theme="dark"] body.auth .in input:not(:placeholder-shown):valid:not(:focus){border-color:#1c6b4c}
html[data-theme="dark"] body.auth .eye{color:#7f90c0}
html[data-theme="dark"] body.auth .eye:hover,html[data-theme="dark"] body.auth .eye.on{color:#8fbaff;background:#16225a}
html[data-theme="dark"] body.auth .check a,html[data-theme="dark"] body.auth .link,html[data-theme="dark"] body.auth .alt a{color:#7db3ff}
html[data-theme="dark"] body.auth .err{background:#3a0f1c;border-color:#7f1d36;color:#fda4b4}
html[data-theme="dark"] body.auth .invite{background:linear-gradient(90deg,#3a2c08,#0d1636);border-color:#6b5112;color:#fcd98a}
html[data-theme="dark"] body.auth .note.caps{color:#fbbf24}html[data-theme="dark"] body.auth .note.ok{color:#4ade80}html[data-theme="dark"] body.auth .note.bad{color:#fb7185}
html[data-theme="dark"] body.auth .ok-ic{background:#12255f;box-shadow:0 0 0 8px #0e1a47;color:#7db3ff}
html[data-theme="dark"] body.auth .ok-ic.ok{background:#0d3a2a;box-shadow:0 0 0 8px #0a2c20;color:#4ade80}
html[data-theme="dark"] body.auth .ok-ic.bad{background:#3a0f1c;box-shadow:0 0 0 8px #2a0b14;color:#fb7185}
html[data-theme="dark"] body.auth .meter i{background:#1e2b5a}
html[data-theme="dark"] body.auth :focus-visible{outline-color:#ffc21a}

/* landing nav logo: the banner svg has white lettering, so the pill must be dark (was invisible on white) */
body.lp .nav .brand.pill{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);box-shadow:none}

/* =============================================================================
   7. LIGHT – ADMIN PANEL  (admin.css / body.adm)
   ============================================================================= */
html[data-theme="light"] body.adm{--bg:#f3f6ff;--side:#ffffff;--card:#ffffff;--card2:#f7f9ff;--line:#dde5f5;--line2:#cfd9f1;--text:#0b1b4d;--mut:#5b6b90;--dim:#8a97b4;
  --p1:#3b82f6;--p2:#1d4ed8;--p3:#1237c9;--s1:#3b82f6;--s2:#0d9488;--good:#059669;--warn:#d97706;--bad:#e11d48;--glow:rgba(29,78,216,.3);
  background-image:radial-gradient(900px 500px at 85% -10%,#dbe7ff,transparent 60%),radial-gradient(700px 500px at 0% 110%,#ece8ff,transparent 60%)}
:where(html[data-theme="light"] body.adm) a{color:#1d4ed8}
html[data-theme="light"] body.adm code{background:rgba(29,78,216,.08);color:#1e3a8a}
html[data-theme="light"] body.adm .ad-side{box-shadow:10px 0 40px -28px rgba(20,50,140,.4)}
html[data-theme="light"] body.adm .ad-brand{color:#0b1b4d}
html[data-theme="light"] body.adm .ad-link:hover{background:#eef3ff;color:#0b1b4d}
html[data-theme="light"] body.adm .ad-link.on{background:linear-gradient(90deg,#dfe8ff,#eef3ff);color:#1d4ed8;box-shadow:inset 0 0 0 1px #c9d8fb}
html[data-theme="light"] body.adm .ad-badge{background:#ffe9ec;color:#be123c;border-color:#fecdd3}
html[data-theme="light"] body.adm .ad-scrim{background:rgba(8,20,70,.45)}
html[data-theme="light"] body.adm .ad-top{background:rgba(255,255,255,.86)}
html[data-theme="light"] body.adm .ad-burger{background:#fff;color:#0b1b4d}
html[data-theme="light"] body.adm .ad-chip{background:#fff}
html[data-theme="light"] body.adm .ad-chip:hover{color:#1d4ed8;background:#eef3ff}
html[data-theme="light"] body.adm .ad-top-r .tg{--tg-bg:#fff;--tg-line:#cfd9f1;--tg-fg:#0b1b4d;--tg-hover:#eef3ff;width:38px;height:38px;border-radius:11px}
html[data-theme="light"] body.adm .ad-btn{box-shadow:0 8px 22px -10px rgba(29,78,216,.6)}
html[data-theme="light"] body.adm .ad-btn.ghost{background:#fff;box-shadow:none}
html[data-theme="light"] body.adm .ad-btn.ghost:hover{background:#eef3ff}
html[data-theme="light"] body.adm input,html[data-theme="light"] body.adm select,html[data-theme="light"] body.adm textarea{background:#fff;color:#0b1b4d}
html[data-theme="light"] body.adm input:focus,html[data-theme="light"] body.adm select:focus,html[data-theme="light"] body.adm textarea:focus{box-shadow:0 0 0 3px rgba(29,78,216,.16)}
html[data-theme="light"] body.adm .ad-flash{color:#065f46;background:#ecfdf5}
html[data-theme="light"] body.adm .ad-flash.err{color:#9f1239;background:#fff1f2}
html[data-theme="light"] body.adm .ad-card,html[data-theme="light"] body.adm .ad-stat,html[data-theme="light"] body.adm .ad-tcard{box-shadow:0 12px 30px -22px rgba(20,50,140,.4)}
html[data-theme="light"] body.adm .ad-stat b{background-image:linear-gradient(90deg,#0b1b4d,#1d4ed8)}
html[data-theme="light"] body.adm .ad-stat::after{background:radial-gradient(circle,rgba(59,130,246,.2),transparent 70%)}
html[data-theme="light"] body.adm .ad-stat:hover{border-color:#9db8f5}
html[data-theme="light"] body.adm .ad-att a:hover{background:#eef3ff}
html[data-theme="light"] body.adm .ad-att a em.z{background:#f1f5ff}
html[data-theme="light"] body.adm .ad-search input{background:#fff}
html[data-theme="light"] body.adm .ad-t th{background:#f3f6ff}
html[data-theme="light"] body.adm .ad-t tbody tr:hover{background:rgba(29,78,216,.05)}
html[data-theme="light"] body.adm .ad-t .empty .ic{color:#b6c3e6}
html[data-theme="light"] body.adm .ad-thumb{background:linear-gradient(135deg,#1e3a8a,#3b82f6)}
html[data-theme="light"] body.adm .ad-pages a:hover{color:#1d4ed8}
html[data-theme="light"] body.adm .ad-pill.mute{background:#f1f5ff}
html[data-theme="light"] body.adm .ad-pill.brand{color:#1d4ed8;background:#e4ecff;border-color:#bfd0ff}
html[data-theme="light"] body.adm .ad-tabs{background:#eef3ff}
html[data-theme="light"] body.adm .ad-tabs a:hover{color:#1d4ed8}
html[data-theme="light"] body.adm .ad-tabs a.on:hover{color:#fff}
html[data-theme="light"] body.adm .ad-tabs a em{background:rgba(29,78,216,.12)}
html[data-theme="light"] body.adm .ad-tabs a.on em{background:rgba(255,255,255,.25)}
html[data-theme="light"] body.adm .ad-sw i{background:#cdd8f2}
html[data-theme="light"] body.adm .ad-sw i::after{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}
html[data-theme="light"] body.adm .ad-sw input:checked+i{background:linear-gradient(135deg,#3b82f6,#1237c9);border-color:transparent}
html[data-theme="light"] body.adm .star{color:#b6c3e6}
html[data-theme="light"] body.adm .star.on{color:#f59e0b}
html[data-theme="light"] body.adm .ad-modal{background:rgba(8,20,70,.5)}
html[data-theme="light"] body.adm .ad-mcard{background:linear-gradient(170deg,#ffffff,#f3f6ff);border-color:#cfd9f1;box-shadow:0 40px 100px -30px rgba(20,50,140,.5)}
html[data-theme="light"] body.adm .ad-x{background:#fff}
html[data-theme="light"] body.adm .ad-x:hover{color:#1d4ed8}
html[data-theme="light"] body.adm .ad-quote{background:#f3f6ff}
html[data-theme="light"] body.adm .ad-svg .grid{stroke:#e3e9f6}
html[data-theme="light"] body.adm .ad-svg .base{stroke:#c7d4f2}
html[data-theme="light"] body.adm .ad-svg .lbl{stroke:#fff}
html[data-theme="light"] body.adm .ad-svg .dot{stroke:#fff}
html[data-theme="light"] body.adm .ad-svg .cross{stroke:#1d4ed8}
html[data-theme="light"] body.adm .ad-tip{background:#fff;border-color:#9db8f5;color:#0b1b4d;box-shadow:0 18px 40px -14px rgba(20,50,140,.45)}
