/* Raj Premium Panel — unified, understated premium UI refresh */
:root{
  --bg:#0b1020;--card:#111a2d;--card2:#162238;--line:rgba(148,163,184,.18);
  --txt:#edf2ff;--mut:#9aa9c1;--cyan:#60a5fa;--blue:#6366f1;
  --grad:linear-gradient(115deg,#4f46e5,#0ea5e9);--accent:#818cf8;
  --soft-shadow:0 12px 30px rgba(0,0,0,.16);--focus-ring:0 0 0 3px rgba(99,102,241,.18);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body,body.dash{background:#0b1020!important;color:var(--txt);font-family:Inter,Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;padding:16px 20px calc(36px + env(safe-area-inset-bottom,0px));}
body::before,body.dash::before{background:radial-gradient(850px 300px at 90% -100px,rgba(99,102,241,.09),transparent 75%),#0b1020!important;opacity:1}
.wrap,body.dash .wrap{width:100%;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}
.tbwrap{position:sticky;top:calc(env(safe-area-inset-top,0px) + 8px);z-index:30;margin-bottom:20px}
.topbar.dtop,.topbar{background:#111a2d!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.dtop .menu-btn,.dtop .menu-btn i{color:#c7d2fe!important;filter:none!important}
.dep-btn{background:#263a75!important;border:1px solid #435b9a!important;border-radius:10px!important;box-shadow:none!important;color:#f8fbff!important;font-size:12px!important;font-weight:750!important;letter-spacing:.25px!important}
.dep-btn:hover{background:#304987!important}
.pal-btn{width:42px!important;height:38px!important;border-radius:10px!important;background:#182540!important;border:1px solid #344466!important;color:#b8c4ff!important;box-shadow:none!important}
.av{border:1px solid #40527a!important;box-shadow:none!important;padding:2px!important}
.av .dot{background:#34d399!important;box-shadow:none!important;border-color:#111a2d!important}
/* Main user-facing surfaces */
.stat,.mini,.panel,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.nc,.dstack .nc,.dstack .upd,.dstack .top5{
  background:#111a2d!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:var(--soft-shadow)!important;
}
.dstack{width:100%;max-width:1240px;margin:18px auto 0!important;gap:14px!important}
.dgrid{gap:14px!important}
.dgrid .nc{border-color:var(--line)!important;box-shadow:var(--soft-shadow)!important}
.bal{min-height:124px!important;height:auto!important;padding:20px!important}
.bal .v{color:#c7d2fe!important;text-shadow:none!important;font-variant-numeric:tabular-nums}
.bal .l,.safe .t,.sc .lb,.sc .um{color:#dbe5f6!important}
.bal .w,.safe .t i,.sc .ico2{filter:none!important;text-shadow:none!important}
.howbar,.join,.nc.act .go,.qgrid .qt,.fbtn,.tk-submit,.tk-view,.btn,.button,.more,.more:hover,.more:active{
  box-shadow:none!important;text-shadow:none!important;
}
.howbar{background:#172a46!important;border:1px solid #344968!important;color:#e6f2ff!important}
.howbar i{color:#93c5fd!important}
.safe{background:#141f36!important;border-color:#34425f!important}
.safe .en{background:#354a83!important;box-shadow:none!important}
.sc,.sc.s1,.sc.s2,.sc.r1,.sc.r2{background:#131e33!important}
.sc .n,.sc.s1 .n,.sc.s2 .n,.sc.r1 .n,.sc.r2 .n{color:#edf2ff!important;text-shadow:none!important}
.sc .um{border-top:1px solid #33435e!important}
.upd{background:#111a2d!important;border-color:#33425e!important}
.upd .tag{color:#93c5fd!important}
.upd-ico{background:#253b72!important;color:#e8edff!important}
.join{background:#263a75!important;border:1px solid #435b9a!important;border-radius:10px!important;color:#fff!important}
.top5{background:#111a2d!important;border-color:#35425a!important}
.top5-ico{color:#f0c674!important;filter:none!important}
.top5-head h3{letter-spacing:.7px!important}
.tr.th>span{background:#1a2740!important;color:#cbd5e1!important;box-shadow:none!important}
#topRows .tr:nth-child(1) .rk{text-shadow:none!important}
.pill,.bd,.abadge{box-shadow:none!important}
.pill.r{background:#2d2943!important;border-color:#494064!important}
.pill.k,.pill.b{background:#15373b!important;border-color:#28595c!important;color:#8be3da!important}
.qgrid .qt{background:#131e33!important;border:1px solid #34425e!important;border-radius:12px!important;transition:background .18s,border-color .18s,transform .18s!important}
.qgrid .qt:hover{background:#1b2a45!important;border-color:#536892!important}
.qgrid .qt i{filter:none!important}
/* Drawer and overlays */
.ov,.th-ov{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(3,8,20,.78)!important}
.drawer{background:#0e1729!important;border-right:1px solid #283955!important;box-shadow:12px 0 32px rgba(0,0,0,.3)!important}
.dr-head{border-bottom:1px solid var(--line)!important}
.dr-head .dr-logo{border:1px solid #435b9a!important;box-shadow:none!important}
.dr-head .dr-title{color:#dbeafe!important;text-shadow:none!important}
.dr-sec{color:#93c5fd!important;letter-spacing:1px!important}
.drawer a{border-radius:10px!important;color:#dbe5f6!important;transition:background .18s,border-color .18s!important}
.drawer a.act{background:#1a2b48!important;border:1px solid #344e78!important;box-shadow:inset 3px 0 #818cf8!important}
.drawer a.act::before{box-shadow:none!important;background:#818cf8!important}
.drawer a.act .ic{color:#c7d2fe!important}
.th-box{background:#111a2d!important;border:1px solid #34425e!important;border-radius:16px!important;box-shadow:var(--soft-shadow)!important;transform:none!important}
.th-box h4{color:#dbeafe!important;text-shadow:none!important}
.th-opt{background:#162238!important;border-color:#33425e!important;border-radius:12px!important}
.th-opt.sel{border-color:var(--c)!important;box-shadow:inset 0 0 0 1px var(--c)!important}
.th-dot{box-shadow:none!important}
.th-close{background:#162238!important;border:1px solid #33425e!important;border-radius:10px!important}
.toast{background:#14213a!important;border:1px solid #49618a!important;border-radius:12px!important;box-shadow:var(--soft-shadow)!important}
/* Product and detail cards */
.kcard,details.pcard{border-color:#2c3c58!important;background:#111a2d!important;border-radius:16px!important}
.pcard .pci{background:#1a2942!important;border-color:#334866!important}
.pcard .dur{background:#142039!important;border-color:#2c3d59!important}
/* Inputs */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,.in,.fin,.ksel select,.kcal{
  background:#0c1425!important;color:#edf2ff!important;border:1px solid #33425d!important;border-radius:10px!important;box-shadow:none!important;
}
input:focus,select:focus,textarea:focus,.in:focus,.fin:focus,.ksel select:focus{border-color:#7187c8!important;box-shadow:var(--focus-ring)!important;outline:none!important}
input::placeholder,textarea::placeholder{color:#7888a4!important;opacity:1}
input[type=checkbox],input[type=radio]{accent-color:#818cf8}
.btn,.fbtn,.tk-submit,.join,.nc.act .go{background:#304a83!important;border:1px solid #49649b!important;color:#fff!important;border-radius:10px!important;letter-spacing:.2px!important;font-weight:700!important}
.btn:hover,.fbtn:hover,.tk-submit:hover,.join:hover,.nc.act .go:hover{background:#395793!important}
.btn::after{display:none!important}
.fbtn.ghost{background:transparent!important;border:1px solid #405477!important;color:#c7d2fe!important}
.ferr,.al.er,.alert-error{background:rgba(239,68,68,.09)!important;border-color:#783f4a!important;color:#ffb4b4!important;box-shadow:none!important}
.msg,.fnote,.al.ok,.alert-success{background:rgba(52,211,153,.08)!important;border-color:#2f6d63!important;color:#a7f3d0!important;box-shadow:none!important}
.ferr,.al,.msg,.fnote{border-radius:10px!important}
/* Tables and statuses */
.tbl,.tbl-wrap,.tbl .tr>span,.ktbl,.twrap{border-color:var(--line)!important}
.ktbl th{background:#1a2740!important;color:#cbd5e1!important}
.ktbl td{border-top-color:var(--line)!important}
.tk-view{background:#1a2b48!important;border:1px solid #405a83!important;color:#dbeafe!important}
.tk-msg.adm{background:#182b49!important;border-color:#334f77!important}
.tk-mh b{color:#c7d2fe!important}
.sb.open{background:#302714!important;border-color:#6b542b!important;color:#f5d18d!important}
.sb.answered{background:#153229!important;border-color:#2f6d63!important;color:#a7f3d0!important}
.sb.closed{background:#202b3d!important;border-color:#3c4b63!important;color:#c3ccda!important}
/* Slightly quieter motion; honor user reduced-motion preference */
.dstack .nc,.dstack .nc::before,.dstack .nc::after{animation:none!important;will-change:auto!important}
.rip,.hit{animation:none!important}
button,a,input,select,textarea{touch-action:manipulation}
:focus-visible{outline:2px solid #93c5fd!important;outline-offset:2px}
@media(min-width:900px){body,body.dash{padding-left:28px;padding-right:28px}.dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.qgrid{grid-template-columns:repeat(6,minmax(0,1fr))}.tbwrap{margin-bottom:26px}}
@media(max-width:680px){body,body.dash{padding:12px 12px calc(28px + env(safe-area-inset-bottom,0px))}.dstack{gap:12px!important}.dgrid{gap:10px!important}.bal .v{font-size:30px!important}.safe{align-items:flex-start!important}.safe .t{font-size:12px!important}.qgrid .qt span{white-space:normal;text-align:center;line-height:1.25}}
@media(max-width:380px){.dep-btn{padding:0 8px!important;font-size:10px!important}.dep-btn i{font-size:13px!important}.pal-btn{width:36px!important}.av{flex-basis:36px!important;width:36px!important;height:36px!important}.dgrid{grid-template-columns:1fr!important}}
/* Global polish: remove neon text outlines and backdrop blur from legacy components. */
body *,body *::before,body *::after{text-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Unified, low-glow colored outlines across all user/reseller surfaces. */
:root{--card-edge-blue:#3c5c92;--card-edge-purple:#5a4f83;--card-edge-teal:#2c6d70;--card-edge-rose:#79475e}
body.dash .dstack>.nc,body.dash .dgrid>.nc,body.dash .top5,body.dash .qgrid>.qt,
body .rs-card,body .panel,body .stat,body .mini,body .kcard,body .pcard,body .ticket-card,body .tk-card,body .pc,
body .tbl-wrap,body .ktbl,body .th-box,body .toast{border-color:var(--card-edge-blue)!important;box-shadow:var(--soft-shadow,0 8px 24px rgba(0,0,0,.12))!important}
body.dash .dstack>.nc:nth-child(4n+2),body.dash .dgrid>.nc:nth-child(4n+2),body .rs-card:nth-child(4n+2),body .pc:nth-child(4n+2){border-color:var(--card-edge-purple)!important}
body.dash .dstack>.nc:nth-child(4n+3),body.dash .dgrid>.nc:nth-child(4n+3),body .rs-card:nth-child(4n+3),body .pc:nth-child(4n+3){border-color:var(--card-edge-teal)!important}
body.dash .dstack>.nc:nth-child(4n),body.dash .dgrid>.nc:nth-child(4n),body .rs-card:nth-child(4n),body .pc:nth-child(4n){border-color:var(--card-edge-rose)!important}
body .howbar{background:rgba(255,0,0,.07)!important;border-color:#a73542!important;color:#ffd7da!important}
body .howbar i{color:#ff343e!important;font-size:18px!important}
body .howbar:hover{background:#a91f2b!important;border-color:#ef4444!important;color:#fff!important}
body .howbar:hover i{color:#fff!important}
body .dep-btn{background:rgba(255,0,0,.09)!important;border-color:#a73542!important;color:#ffe3e5!important}
body .dep-btn i{color:#ff343e!important}
body .dep-btn:hover{background:#a91f2b!important;border-color:#ef4444!important}
/* Brand-accurate social icon colours on their separate bottom shortcuts. */
.social-icon[aria-label="Telegram"]{color:#2aabee!important;border-color:#285e7f!important}
.social-icon[aria-label="WhatsApp"]{color:#25d366!important;border-color:#276b4d!important}
.social-icon[aria-label="Instagram"]{color:#e879b9!important;border-color:#74405f!important}
.social-icon[aria-label="YouTube"]{color:#ff343e!important;border-color:#8f3941!important}
.social-icon:hover{transform:translateY(-1px);background:#1b2b45!important}

/* Video playback controls use a familiar YouTube-red accent consistently. */
body .pn-play{background:#e6212b!important;border:1px solid #ff626b!important;color:#fff!important;box-shadow:none!important}
body .pn-play:hover{background:#bf1620!important;border-color:#ff7b82!important}
body .pn-l2{background:rgba(255,0,0,.07)!important;border-color:#a73542!important}
body .pn-l2 i{color:#ff343e!important}

/* Additional legacy card surfaces on wallet, profile, referral, reseller and payment pages. */
body :is(.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box){border-color:var(--card-edge-blue,#3c5c92)!important}
body :is(.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box):nth-of-type(4n+2){border-color:var(--card-edge-purple,#5a4f83)!important}
body :is(.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box):nth-of-type(4n+3){border-color:var(--card-edge-teal,#2c6d70)!important}

/* Reference-inspired compact pass: consistent scale, crisp outlines, no heavy blur/glow. */
:root{--card-edge-blue:#4b6598;--card-edge-purple:#68578f;--card-edge-teal:#2d7a82;--card-edge-rose:#8a4d62;--card-edge-amber:#8b6a39}
body,body.dash{font-size:13px!important;-webkit-font-smoothing:antialiased}
.tbwrap{margin-bottom:16px!important}
.topbar.dtop{height:56px!important;padding:0 10px!important;gap:8px!important;border-radius:15px!important;border-color:#263956!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important;background:#0d1423!important}
.dtop .menu-btn{width:32px!important;height:36px!important;padding:0!important}
.dtop .dep-btn{height:34px!important;flex:1 1 auto!important;min-width:0!important;padding:0 10px!important;font-size:11px!important;letter-spacing:.15px!important;border-radius:9px!important;box-shadow:none!important}
.dtop .dep-btn i{font-size:15px!important;color:#fff!important}
.dtop .pal-btn{width:40px!important;height:34px!important;border-radius:9px!important;box-shadow:none!important}
.dtop .av{flex-basis:36px!important;width:36px!important;height:36px!important;box-shadow:none!important}
.pn-sec{margin:17px 4px 8px!important;font-size:12px!important;letter-spacing:1.65px!important;text-shadow:none!important}
.pn-search{height:46px!important;border:1px solid #354664!important;border-radius:15px!important;background:#0c1425!important;padding:0 12px!important;gap:10px!important;box-shadow:none!important}
.pn-search:focus-within{border-color:#3bc9dc!important;box-shadow:0 0 0 2px rgba(34,211,238,.09)!important}
.pn-search>i{font-size:15px!important;color:#a9b7d2!important}
.pn-search input,.pn-search input:not([type=checkbox]):not([type=radio]):not([type=hidden]){height:100%!important;min-width:0!important;flex:1 1 auto!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none!important;font-size:13px!important;color:#edf2ff!important}
.pn-search input::placeholder{color:#8492ab!important;opacity:1!important}
.pn-filter{border:1px solid #34415d!important;border-radius:15px!important;padding:12px!important;background:#0a101d!important;box-shadow:none!important}
.pn-fl{font-size:11px!important;letter-spacing:1.2px!important;margin-bottom:9px!important}
.pn-chips{gap:8px!important;padding-bottom:3px!important}
.pn-chip{height:38px!important;padding:0 15px!important;border-radius:20px!important;font-size:11.5px!important;letter-spacing:.35px!important;box-shadow:none!important}
.pn-chip.on{background:#0bc8df!important;border-color:#0bc8df!important;color:#03141b!important;box-shadow:0 3px 10px rgba(11,200,223,.12)!important}
.pn{width:92%!important;margin:13px auto!important;border:1.5px solid #5874ba!important;border-radius:20px!important;box-shadow:0 5px 18px rgba(38,77,151,.12)!important;background:#070a12!important}
.pn-media{aspect-ratio:16/10!important}
.pn-body{padding:11px 11px 10px!important;background:#0d1320!important}
.pn-t{font-size:14px!important;letter-spacing:.65px!important;margin:2px 0 9px!important}
.pn-b{font-size:9px!important;padding:4px 7px!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.pn-f{font-size:12px!important;padding:8px 10px!important;gap:9px!important;border-color:#1b2d40!important;border-left-color:#22c6d8!important;border-radius:10px!important}
.pn-lnks{gap:8px!important;margin-top:9px!important}
.pn-l{min-height:39px!important;border-width:1px!important;border-radius:10px!important;font-size:10px!important;padding:5px 6px!important}
.pn-l1{border-color:#268e9a!important;box-shadow:none!important}
.pn-l2{border-color:#a53845!important;box-shadow:none!important}
.pn-purchase{height:38px!important;margin-top:9px!important;border-radius:10px!important;font-size:12.5px!important;letter-spacing:.7px!important;box-shadow:none!important}
.pn-plan{gap:7px!important;padding:8px!important;border-color:#2c3b56!important;border-radius:10px!important}
.pn-pl{font-size:13px!important}.pn-pp{font-size:15px!important}
.pn-qty{width:48px!important;height:34px!important;font-size:13px!important}
.pn-buy{height:32px!important;padding:0 11px!important;font-size:11px!important;box-shadow:none!important}
.pn-play{width:44px!important;height:44px!important;border:1.5px solid #ff5360!important;background:#e6212b!important;color:#fff!important;box-shadow:none!important;font-size:15px!important}
.pn-simple .pn-body{padding:10px!important}
/* Card edges use clear colour, but keep the luminous halo subdued. */
body.dash .dstack>.nc,body.dash .dgrid>.nc,body.dash .top5,body.dash .qgrid>.qt,
body .rs-card,body .panel,body .stat,body .mini,body .kcard,body .pcard,body .ticket-card,body .tk-card,body .pc,
body .tbl-wrap,body .ktbl,body .th-box,body .toast,body .live-chart-card,
body :is(.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box){
  border-color:var(--card-edge-blue)!important;
  box-shadow:0 5px 16px rgba(0,0,0,.16)!important;
}
body.dash .dstack>.nc:nth-child(4n+2),body.dash .dgrid>.nc:nth-child(4n+2),body .rs-card:nth-child(4n+2),body .pc:nth-child(4n+2){border-color:var(--card-edge-purple)!important}
body.dash .dstack>.nc:nth-child(4n+3),body.dash .dgrid>.nc:nth-child(4n+3),body .rs-card:nth-child(4n+3),body .pc:nth-child(4n+3){border-color:var(--card-edge-teal)!important}
body.dash .dstack>.nc:nth-child(4n),body.dash .dgrid>.nc:nth-child(4n),body .rs-card:nth-child(4n),body .pc:nth-child(4n){border-color:var(--card-edge-rose)!important}
@media(max-width:390px){.dtop .dep-btn{font-size:10px!important;padding:0 7px!important}.dtop .pal-btn{width:34px!important}.dtop .av{width:32px!important;height:32px!important;flex-basis:32px!important}.pn{width:96%!important}.pn-media{aspect-ratio:16/10!important}}
@media(prefers-reduced-motion:reduce){.auth-container,.pn{animation:none!important}}
/* Slow, low-intensity border halo: gently brightens and dims around card edges. */
@keyframes raj-card-edge-breathe{
  0%,100%{filter:drop-shadow(0 0 1px rgba(75,101,152,.045)) drop-shadow(0 0 1px rgba(104,87,143,.012))}
  50%{filter:drop-shadow(0 0 2px rgba(75,101,152,.105)) drop-shadow(0 0 2px rgba(104,87,143,.028))}
}
body :is(.nc,.pn,.stat,.mini,.panel,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.pc,.tbl-wrap,.ktbl,.live-chart-card,.rs-card,.qt,.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box){
  animation-name:raj-card-edge-breathe;
  animation-duration:6.8s;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
  animation-direction:alternate;
}
/* Keep the existing gentle dashboard float while adding the slow edge pulse. */
body .dstack .nc{
  animation-name:nfloat,raj-card-edge-breathe;
  animation-duration:3.8s,6.8s;
  animation-timing-function:ease-in-out,ease-in-out;
  animation-iteration-count:infinite,infinite;
  animation-direction:alternate,alternate;
  animation-delay:var(--fd,0s),0s;
}
/* The login/register border still rotates; only its outer halo breathes gently. */
body .auth-container{
  animation-name:auth-border-track,raj-card-edge-breathe!important;
  animation-duration:5s,6.8s!important;
  animation-timing-function:linear,ease-in-out!important;
  animation-iteration-count:infinite,infinite!important;
  animation-direction:normal,alternate!important;
}
@media(prefers-reduced-motion:reduce){
  body :is(.nc,.pn,.stat,.mini,.panel,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.pc,.tbl-wrap,.ktbl,.live-chart-card,.rs-card,.qt,.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.okcard,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box,.auth-container){animation:none!important}
}

/* Final social icon pass: brand-colour glyphs on a dark compact button (no muted opacity). */
.social-icon{background:#101827!important;border-color:#354866!important;opacity:1!important;filter:none!important}
.social-icon[aria-label="Telegram"]{color:#2AABEE!important;background:#101827!important;border-color:#2AABEE!important}
.social-icon[aria-label="WhatsApp"]{color:#25D366!important;background:#101827!important;border-color:#25D366!important}
.social-icon[aria-label="Instagram"]{color:#E1306C!important;background:#101827!important;border-color:#E1306C!important}
.social-icon[aria-label="YouTube"]{color:#FF0033!important;background:#101827!important;border-color:#FF0033!important}
.social-icon:hover{background:#172238!important}

/* ===== User / reseller compact sizing pass (CSS-only; workflow untouched) ===== */
/* Keep the same visual language while trimming vertical spacing and control sizes slightly. */
body .grid{gap:15px!important}
body .stat{min-height:104px!important;padding:15px 16px 14px!important;border-radius:16px!important}
body .ico{width:33px!important;height:33px!important;margin-bottom:10px!important;border-radius:10px!important;font-size:14px!important}
body .val,body .mini .val{font-size:17px!important}
body .lbl,body .mini .lbl{font-size:12px!important}
body .mini{min-height:60px!important;padding:12px 14px!important;border-radius:14px!important}
body .grid.m{margin-top:17px!important}
body .upd:not(.nc){margin-top:17px!important;padding:14px!important;border-radius:18px!important}
body .upd-ico{flex-basis:40px!important;height:40px!important;border-radius:12px!important;font-size:15px!important}
body .upd h3{font-size:15px!important}
body .join{height:38px!important;margin-top:12px!important;font-size:11px!important}
body .panel{margin-top:15px!important;padding:14px!important;border-radius:16px!important}
body .panel h2{margin-bottom:10px!important;font-size:14px!important}
body .btn{padding:9px 12px!important;font-size:11.5px!important}
body .urow{padding:10px 0!important}
body .urow b{font-size:12.5px!important}
body .top5{margin-top:18px!important;padding:14px 12px 12px!important;border-radius:19px!important}
body .top5-head{margin-bottom:10px!important;gap:8px!important}
body .tr,body .tr>span{height:34px!important}
body .tr.th,body .tr.th>span{height:36px!important}
body .bnav{margin-top:22px!important;height:60px!important;border-radius:19px!important}
body .bnav a{font-size:20px!important}
body .fpanel{padding:16px 14px 14px!important;border-radius:18px!important}
body .fbtn{height:43px!important;border-radius:11px!important;font-size:12px!important;letter-spacing:1px!important}
body .ferr,body .fnote{padding:9px 11px!important;margin-bottom:11px!important;font-size:11.5px!important}
body .kcard{padding:17px 14px 15px!important;margin-top:15px!important;border-radius:22px!important}
body .ktbl th{padding:14px 10px!important;font-size:11px!important}
body .ktbl td{padding:11px 10px!important;font-size:12px!important}
body .rbox,body .rclaim{margin-top:14px!important;padding:14px!important;border-radius:19px!important}
body .rclaimbtn{height:45px!important;font-size:13px!important;border-radius:12px!important}
body .tk-head{font-size:14px!important;letter-spacing:2.2px!important;margin:19px 0 12px!important}
body .tk-card{padding:18px 15px!important;margin-bottom:18px!important;border-radius:16px!important}
body .tk-title{margin-bottom:15px!important;padding-left:12px!important;font-size:17.5px!important}
body .tk-in{height:48px!important;margin-bottom:12px!important;padding:0 13px!important;font-size:14px!important}
body .tk-submit{height:46px!important;font-size:14px!important;letter-spacing:.7px!important}
body .tk-list{padding:19px 0 12px!important}
body .tk-lh{padding:0 15px!important}
body .tk-lh h2{font-size:17px!important}
body .tk-tbl th{padding:17px 13px!important;font-size:12px!important}
body .tk-tbl td{padding:12px 13px!important}
body .tk-msg{padding:10px 12px!important}
body .tk-mt{font-size:13px!important}
body .pf-card{padding:16px 14px!important;margin-bottom:15px!important;border-radius:18px!important}
body .pf-top{gap:12px!important;margin-bottom:15px!important}
body .pf-av{flex-basis:52px!important;height:52px!important;font-size:22px!important}
body .pf-name{font-size:17px!important}
body .pf-lab{margin:12px 2px 6px!important}
body .pf-lock{height:43px!important;padding:0 12px!important;font-size:12.5px!important}
body .pf-eye{height:39px!important;width:39px!important}
body .pf-log{gap:10px!important;padding:10px 0!important}
body .pf-li{flex-basis:33px!important;height:33px!important;border-radius:10px!important}
body .pf-lt b{font-size:12.5px!important}
body .pf-note{margin-top:12px!important;font-size:11.5px!important}

/* Reseller wallet, actions, user network and table: modest, consistent reduction. */
body .rs{margin-top:15px!important}
body .rs-card{padding:16px!important;margin-bottom:15px!important;border-radius:19px!important}
body .rs-wico{right:14px!important;top:12px!important;font-size:27px!important}
body .rs-lab{font-size:12px!important;letter-spacing:1.35px!important}
body .rs-amt{font-size:33px!important;margin:3px 0 10px!important}
body .rs-badge{gap:7px!important;padding:7px 12px!important;font-size:12px!important;border-radius:10px!important}
body .rs-earn{margin-top:9px!important;font-size:11px!important}
body .rs-link{margin:13px 0 10px!important;padding:12px!important;border-radius:14px!important}
body .rs-link-h{font-size:10.5px!important}
body .rs-link-v{margin-top:7px!important;font-size:12px!important}
body .rs-btn{height:46px!important;border-radius:12px!important;font-size:13.5px!important;letter-spacing:.4px!important}
body .rs-h{gap:8px!important;font-size:15.5px!important;margin-bottom:12px!important}
body .rs-in{height:46px!important;border-radius:12px!important;font-size:14px!important;padding:0 13px!important;margin-bottom:10px!important}
body .rs-tbl th{padding:10px 8px!important;font-size:10.5px!important;letter-spacing:.7px!important}
body .rs-tbl td{padding:10px 8px!important;font-size:12px!important}
body .rs-note{font-size:11.5px!important;line-height:1.45!important;margin-top:9px!important}
body .rs-count{font-size:10px!important}

/* Reseller API, referrals, deposits and chart cards. */
body .ra{margin-top:15px!important}
body .ra-hero{gap:12px!important;padding:15px!important;margin-bottom:12px!important;border-radius:19px!important}
body .ra-hico{flex-basis:46px!important;height:46px!important;border-radius:13px!important;font-size:18px!important}
body .ra-ht h1{font-size:20px!important}
body .ra-ht p{font-size:12px!important}
body .ra-live{padding:6px 9px!important;font-size:10px!important}
body .ra-stats{gap:8px!important;margin-bottom:12px!important}
body .ra-stats div{padding:12px 5px!important;border-radius:14px!important}
body .ra-stats b{font-size:20px!important}
body .ra-card{padding:16px!important;margin-bottom:14px!important;border-radius:19px!important}
body .ra-h{gap:8px!important;font-size:13px!important;margin-bottom:13px!important}
body .ra-n{flex-basis:24px!important;height:24px!important;font-size:12px!important}
body .ra-in{height:47px!important;border-radius:12px!important;padding:0 12px!important;font-size:13px!important}
body .ra-ib{flex-basis:47px!important;height:47px!important;border-radius:12px!important}
body .ra-btn{height:47px!important;border-radius:12px!important;font-size:13.5px!important}
body .ra-note,body .ra-st{font-size:12px!important;margin-top:11px!important}
body .ra-tabs{border-radius:13px!important;padding:5px!important}
body .ra-tabs button{height:38px!important;font-size:13px!important;border-radius:10px!important}
body .ra-code{padding:13px!important;font-size:12px!important}
body .ra-pn{padding:12px!important;margin-bottom:12px!important;border-radius:16px!important}
body .ra-pnn{font-size:15px!important;margin-bottom:10px!important}
body .ra-pl{padding:11px!important;margin-bottom:8px!important;border-radius:12px!important}
body .ra-pll{font-size:14px!important}
body .ra-plp{font-size:12px!important;margin:3px 0 7px!important}
body .ra-cp{padding:8px 13px!important;font-size:12px!important}
body .dp-stat{padding:10px 9px 11px!important;margin-bottom:8px!important;border-radius:17px!important}
body .dp-v{font-size:21px!important}
body .dp-tabs{gap:8px!important;margin:10px 0!important}
body .dp-tab{height:38px!important;border-radius:13px!important;font-size:11.5px!important}
body .dp-card{padding:12px 14px 15px!important;border-radius:18px!important}
body .dp-h{font-size:16px!important;margin-bottom:8px!important}
body .dp-in{height:39px!important;font-size:13px!important;margin-bottom:9px!important;padding:0 13px!important}
body .dp-pay{height:46px!important;border-radius:15px!important;font-size:14px!important;letter-spacing:1px!important}
body .bn-card{padding:12px 14px 15px!important;border-radius:18px!important}
body .bn-h{font-size:16px!important}
body .live-charts{gap:11px!important;margin:15px 0 20px!important}
body .live-chart-card{padding:14px 14px 10px!important;border-radius:14px!important}
body .live-chart-head{gap:9px!important}
body .live-chart-head h3{font-size:11.5px!important}
body .live-chart-svg{min-height:140px!important;max-height:210px!important}
body .live-chart-foot{padding-top:8px!important;font-size:9.5px!important}

/* Dashboard cards: shorter, but preserve the existing role-specific chart visibility. */
body.dash .dstack{gap:12px!important;margin-top:15px!important}
body.dash .dgrid{gap:11px!important}
body.dash .nc{border-radius:18px!important}
body.dash .nc.bal{min-height:112px!important;height:112px!important;padding:15px!important}
body.dash .nc.bal .l{font-size:12px!important;letter-spacing:2px!important}
body.dash .nc.bal .w{right:15px!important;top:13px!important;font-size:26px!important}
body.dash .howbar{height:42px!important;font-size:12.5px!important;letter-spacing:1px!important;gap:9px!important;border-radius:13px!important}
body.dash .safe{min-height:48px!important;padding:8px 12px!important;border-radius:13px!important}
body.dash .safe .t{font-size:11.5px!important;gap:8px!important}
body.dash .safe .t i{font-size:15px!important}
body.dash .safe #safeTxt{min-height:28px!important}
body.dash .sc{padding:13px 12px 10px 14px!important;min-height:88px!important;border-radius:17px!important}
body.dash .sc.s1,body.dash .sc.s2{min-height:122px!important;padding-top:14px!important}
body.dash .sc .ico2{right:12px!important;top:10px!important;font-size:20px!important}
body.dash .sc .lb{font-size:10.5px!important;letter-spacing:1px!important;margin-top:5px!important}
body.dash .sc .um{margin-top:9px!important;padding-top:8px!important;font-size:11.5px!important}
body.dash .nc.act{padding:13px 12px 13px 15px!important;gap:9px!important}
body.dash .nc.act h3{font-size:15px!important;gap:8px!important}
body.dash .nc.act .go{height:43px!important;min-width:100px!important;font-size:12.5px!important;padding:0 10px!important}
body.dash .upd{padding:15px!important;border-radius:18px!important}
body.dash .upd h3{font-size:13.5px!important}
body.dash .top5-head{margin-bottom:9px!important}
body.dash .qgrid{gap:8px!important}
body.dash .qgrid .qt{min-height:72px!important;padding:9px 3px!important;gap:7px!important}
body.dash .qgrid .qt i{font-size:18px!important}
body.dash .qgrid .qt span{font-size:10.5px!important}

@media(max-width:680px){
  body .live-charts{gap:10px!important;margin:12px 0 17px!important}
  body .live-chart-card{padding:13px 11px 10px!important}
  body .pf-card,body .rs-card,body .ra-card{padding:14px!important}
  body .dp-card{padding:11px 12px 13px!important}
  body.dash .dgrid{gap:9px!important}
}
@media(prefers-reduced-motion:reduce){
  body :is(.nc,.pn,.stat,.mini,.panel,.upd,.top5,.kcard,.pcard,.ticket-card,.tk-card,.pc,.tbl-wrap,.ktbl,.live-chart-card,.rs-card,.bn-card,.dp-card,.dp-stat,.pf-card,.ra-card,.ra-stats,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box){animation:none!important}
}


/* Keep Binance HOW TO DEPOSIT visually identical to Instant UPI tutorial button. */
body .bn-how{background:linear-gradient(180deg,#ff2d45,#e11128)!important;border:1px solid rgba(255,86,103,.8)!important;color:#fff!important;box-shadow:0 0 12px rgba(255,45,69,.4)!important;transition:filter .2s ease,transform .15s ease!important}
body .bn-how:hover{filter:brightness(1.05)!important;box-shadow:0 0 12px rgba(255,45,69,.4)!important}

body .bn-paid-form{width:100%;margin:14px 0 0!important}
body .bn-paid-form .bn-paid{width:100%;border:0!important;font:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}


/* Reseller API: reduce the original broad halo; use only a slow, low-intensity edge pulse. */
@keyframes raj-reseller-edge-pulse{
  0%,100%{box-shadow:0 4px 12px rgba(0,0,0,.14),0 0 1px rgba(75,101,152,.035)}
  50%{box-shadow:0 4px 12px rgba(0,0,0,.14),0 0 3px rgba(75,101,152,.085)}
}
body .ra-hero{box-shadow:0 4px 14px rgba(91,108,240,.065)!important;animation:raj-reseller-edge-pulse 6.8s ease-in-out infinite alternate!important}
body :is(.ra-card,.ra-stats div,.ra-pn,.ra-pl){
  filter:none!important;
  animation:raj-reseller-edge-pulse 6.8s ease-in-out infinite alternate!important;
}
body .ra-bp{box-shadow:0 5px 14px rgba(99,102,241,.14)!important}
body .ra-bc{box-shadow:0 5px 14px rgba(6,214,232,.12)!important}
body .ra-bg{box-shadow:0 5px 14px rgba(34,197,94,.12)!important}
body .ra-ibc{box-shadow:0 4px 12px rgba(34,184,232,.13)!important}
@keyframes raPulse{
  0%,100%{box-shadow:0 5px 14px rgba(99,102,241,.12)}
  50%{box-shadow:0 0 0 2px rgba(167,139,250,.10),0 6px 16px rgba(99,102,241,.18)}
}
@media(prefers-reduced-motion:reduce){body .ra-hero,body :is(.ra-card,.ra-stats div,.ra-pn,.ra-pl){animation:none!important}}

/* Consistent brand accent: highlight PANEL in purple on all user/reseller pages. */
.brand-panel{color:#b7a2ff!important;text-shadow:0 0 5px rgba(183,162,255,.24),0 0 11px rgba(124,92,255,.13)!important}


/* ===== Cohesive black / purple / white UI palette (visual-only) ===== */
:root{
  --bg:#050407;--card:#0d0a12;--card2:#130e1b;--line:rgba(167,139,250,.36);
  --txt:#f8f6ff;--mut:#b5adc5;--cyan:#c4b5fd;--blue:#8b5cf6;
  --grad:linear-gradient(115deg,#6d28d9,#a78bfa);--accent:#bda4ff;
  --soft-shadow:0 0 0 1px rgba(139,92,246,.08);--focus-ring:0 0 0 3px rgba(139,92,246,.18);
}
body,body.dash{background:#050407!important;color:#f8f6ff!important}
body::before,body.dash::before{background:#050407!important;box-shadow:none!important;filter:none!important}
body :is(.topbar,.topbar.dtop,.panel,.stat,.mini,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.nc,.dstack .nc,.dstack .upd,.dstack .top5,.live-chart-card,.pf-card,.rs-card,.ra-card,.bn-card,.dp-card,.dp-stat,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box,.bal,.safe,.sc,.howbar){
  background:var(--card)!important;
  color:var(--txt)!important;
  border-color:rgba(167,139,250,.43)!important;
  box-shadow:0 0 0 1px rgba(139,92,246,.08),0 0 7px rgba(124,58,237,.06)!important;
  animation:raj-ui-edge-pulse 5.8s ease-in-out infinite alternate!important;
}
body :is(.stat,.mini,.panel,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.nc,.live-chart-card,.pf-card,.rs-card,.ra-card,.bn-card,.dp-card,.dp-stat,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box){
  background:linear-gradient(145deg,#0e0a14,#0a080e)!important;
}
body :is(.topbar,.topbar.dtop){background:#0b0810!important;border-color:rgba(167,139,250,.48)!important}
body :is(.brand,.brand-logo,.welcome h1,.welcome h1 .name,.panel h2,.top5-head h3,.upd h3,.ra-h,.pf-name){color:#f8f6ff!important}
body :is(.brand span,.welcome h1 .name,.val,.bal .v,.topbar .menu-btn,.dtop .menu-btn i,.panel h2 i,.upd .tag,.upd-ico,.top5-ico,.sc .ico2){color:#c4b5fd!important}
body :is(.howbar,.join,.nc.act .go,.qgrid .qt,.fbtn,.tk-submit,.tk-view,.btn,.button,.more,.dep-btn,.pal-btn){
  background:linear-gradient(135deg,#6d28d9,#4c1d95)!important;
  border-color:rgba(196,181,253,.7)!important;color:#fff!important;
}
body :is(.howbar:hover,.join:hover,.nc.act .go:hover,.qgrid .qt:hover,.fbtn:hover,.tk-submit:hover,.tk-view:hover,.btn:hover,.button:hover,.more:hover,.dep-btn:hover){
  background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;border-color:#d1c4ff!important;
}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,.in,.fin,.ksel select,.kcal){background:#07050b!important;color:#f8f6ff!important;border-color:#3b2a56!important}
body :is(input:focus,select:focus,textarea:focus,.in:focus,.fin:focus,.ksel select:focus){border-color:#a78bfa!important;box-shadow:0 0 0 3px rgba(139,92,246,.18)!important}
body :is(.safe,.sc,.qgrid .qt,.upd .tag,.upd-ico,.pcard .pci,.pcard .dur,.howbar){border-color:rgba(167,139,250,.38)!important}
body .tr.th>span{background:#171020!important;color:#e9ddff!important}
body :is(.pill,.bd,.abadge){border-color:rgba(167,139,250,.42)!important}
@keyframes raj-ui-edge-pulse{
  0%,100%{border-color:rgba(139,92,246,.31);box-shadow:0 0 0 1px rgba(139,92,246,.06),0 0 5px rgba(124,58,237,.035)}
  50%{border-color:rgba(196,181,253,.72);box-shadow:0 0 0 1px rgba(167,139,250,.19),0 0 11px rgba(124,58,237,.13)}
}
@media(prefers-reduced-motion:reduce){body :is(.topbar,.topbar.dtop,.panel,.stat,.mini,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.nc,.live-chart-card,.pf-card,.rs-card,.ra-card,.bn-card,.dp-card,.dp-stat,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box,.bal,.safe,.sc,.howbar){animation:none!important}}

/* Registered custom property drives consistent edge/glow breathing without overriding layout animations. */
@property --raj-ui-edge-alpha{syntax:"<number>";inherits:false;initial-value:.38}
@property --raj-ui-glow-alpha{syntax:"<number>";inherits:false;initial-value:.06}
body :is(.topbar,.topbar.dtop,.panel,.stat,.mini,.upd,.top5,.kcard,.pcard,.pn-card,.ticket-card,.tk-card,.nc,.dstack .nc,.dstack .upd,.dstack .top5,.live-chart-card,.pf-card,.rs-card,.ra-card,.bn-card,.dp-card,.dp-stat,.fpanel,.rbox,.rup-box,.qrbox,.mini2,.sx-box,.bal,.safe,.sc,.howbar){
  --raj-ui-edge-alpha:.38;--raj-ui-glow-alpha:.06;
  border-color:rgba(167,139,250,var(--raj-ui-edge-alpha))!important;
  box-shadow:0 0 0 1px rgba(139,92,246,var(--raj-ui-glow-alpha)),0 0 10px rgba(124,58,237,var(--raj-ui-glow-alpha))!important;
  animation:raj-ui-edge-alpha-pulse 5.8s ease-in-out infinite alternate,raj-ui-glow-alpha-pulse 5.8s ease-in-out infinite alternate!important;
}
@keyframes raj-ui-edge-alpha-pulse{0%,100%{--raj-ui-edge-alpha:.30}50%{--raj-ui-edge-alpha:.82}}
@keyframes raj-ui-glow-alpha-pulse{0%,100%{--raj-ui-glow-alpha:.035}50%{--raj-ui-glow-alpha:.12}}


/* Final polish: clearer, regular purple border breathing on user/reseller cards. */
@keyframes raj-ui-edge-alpha-pulse{0%,100%{--raj-ui-edge-alpha:.34}50%{--raj-ui-edge-alpha:.92}}
@keyframes raj-ui-glow-alpha-pulse{0%,100%{--raj-ui-glow-alpha:.055}50%{--raj-ui-glow-alpha:.20}}
