/* =============================================================================
   Paybusk – DESIGN LAYER  (assets/css/polish.css)
   One shared stylesheet loaded LAST on every page (via theme_head in inc/theme.php).
   Presentation only: no markup, PHP, database or JS behaviour is changed.
   Remove the <link> in inc/theme.php to return to the previous look instantly.
   ============================================================================= */

/* ---------- 1. Brand tokens ---------- */
:root{
  --pf:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --pb-accent:#4f46e5; --pb-accent-h:#4338ca; --pb-accent-soft:rgba(79,70,229,.10);
  --pb-amber:#f5b324; --pb-amber-h:#e6a50f;
  --pb-r-sm:8px; --pb-r:12px; --pb-r-lg:16px;
  --pb-sh-1:0 1px 2px rgba(15,20,40,.06),0 1px 1px rgba(15,20,40,.04);
  --pb-sh-2:0 6px 20px -8px rgba(15,20,40,.18),0 2px 4px rgba(15,20,40,.05);
  --pb-ease:cubic-bezier(.2,.6,.2,1);
  /* landing + auth palettes */
  --blue:var(--pb-accent); --blue2:var(--pb-accent-h); --navy:#0b1030;
  --yellow:var(--pb-amber); --yellow2:var(--pb-amber-h); --purple:var(--pb-accent);
  --ink:#10162f; --mute:#5d6682; --line:#e4e8f1; --r:var(--pb-r-lg);
  --shadow:var(--pb-sh-2);
}
html[data-theme="dark"] body:is(.app,.pub),
html[data-theme="dark"] body{
  --bg:#0b0e18; --bg2:#0f1320; --card:#131827; --card2:#131827; --line:#222a3f;
  --text:#eceff7; --muted:#97a1ba;
  --p1:#5b54ee; --p2:#6d67f5; --p3:#4f46e5; --brand:#7f7af8; --accent:#a5a1ff;
  --glow:transparent; --soft-shadow:var(--pb-sh-2);
}
html[data-theme="light"] body:is(.app,.pub){
  --bg:#f5f6fa; --bg2:#eef0f6; --card:#fff; --card2:#fff; --line:#e3e7f0;
  --text:#10162f; --muted:#5d6682;
  --p1:#5b54ee; --p2:#4f46e5; --p3:#4338ca; --brand:#4f46e5; --accent:#4f46e5;
  --glow:transparent; --soft-shadow:var(--pb-sh-2);
}
html[data-theme="dark"] body{background:var(--bg) !important}
html[data-theme="light"] body:is(.app,.pub){background:var(--bg) !important}

/* ---------- 2. One typeface, calmer weights ---------- */
html body,html body :not(code):not(kbd):not(pre):not(svg):not(path){font-family:var(--pf) !important}
html body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-weight:400;font-feature-settings:'cv11','ss01'}
html body :is(h1,h2,h3,h4){font-weight:650;letter-spacing:-.018em;line-height:1.2}
html body :is(strong,b,th,summary,.btn,label){font-weight:600}
html body :is(.kpi b,.stat b,.bal,.pn-bal,.co,.coin b){font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:650}
html body p,html body li{line-height:1.65}

/* ---------- 3. Remove decorative "effects" ---------- */
#stars,.orb,.o1,.o2,.o3,.bg .grid,.glass,.treasure,.spark{display:none !important}
body::before,body::after{display:none !important}
.hx::before,.hx::after,.side::before,.side::after{display:none !important}
.grad{background:none !important;-webkit-background-clip:initial !important;background-clip:initial !important;
  color:var(--accent) !important;animation:none !important}
.btn.glow,.btn.yellow{animation:none !important}
.btn.glow::after,.btn.yellow::after,.card:hover::before{display:none !important}
.mcard,.hx-art *{animation:none !important}
.cta-box{animation:none !important;background-size:auto !important}
.tg:hover svg,.si.on .nic{filter:none !important}
[class*="glow"],.badge,.pill{text-shadow:none}

/* ---------- 4. Buttons ---------- */
html body .btn{border-radius:var(--pb-r);font-size:14px;padding:10px 18px;border:1px solid transparent;
  background:var(--pb-accent);color:#fff;box-shadow:var(--pb-sh-1);letter-spacing:0;
  transition:background .18s var(--pb-ease),box-shadow .18s var(--pb-ease),transform .12s var(--pb-ease),border-color .18s}
html body .btn:hover{background:var(--pb-accent-h);box-shadow:var(--pb-sh-2);text-decoration:none}
html body .btn:active{transform:translateY(1px);box-shadow:none}
html body .btn.lg{padding:13px 24px;font-size:15px;border-radius:var(--pb-r)}
html body .btn.sm{padding:7px 12px;font-size:13px;border-radius:var(--pb-r-sm)}
html body .btn.glow{box-shadow:var(--pb-sh-1)}
html body .btn.yellow{background:var(--pb-amber);border-color:transparent;color:#2b1d00;box-shadow:var(--pb-sh-1)}
html body .btn.yellow:hover{background:var(--pb-amber-h);box-shadow:var(--pb-sh-2)}
html body .btn.ghost,html body .btn.outline{background:transparent;border-color:var(--line);color:var(--text);box-shadow:none}
html body .btn.ghost:hover,html body .btn.outline:hover{background:var(--pb-accent-soft);border-color:var(--pb-accent);transform:none}
.hx .btn.ghost,.hx .btn.outline,.nav .btn.ghost,.cta-box .btn.ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.hx .btn.ghost:hover,.hx .btn.outline:hover,.cta-box .btn.ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
html body .btn.danger{background:var(--bad,#e11d48)}
html body :is(.btn,a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--pb-accent);outline-offset:2px;box-shadow:none}

/* ---------- 5. Surfaces: cards, stats, tables ---------- */
html body :is(.card,.stat,.pay,.kpi,.offer,.uc-card,.refcard,.wall){
  background:var(--card);border:1px solid var(--line);border-radius:var(--pb-r-lg);box-shadow:var(--pb-sh-1);
  transition:border-color .2s var(--pb-ease),box-shadow .2s var(--pb-ease)}
html body :is(.card,.stat,.pay,.kpi,.offer,.wall):hover{transform:none !important;border-color:color-mix(in srgb,var(--pb-accent) 35%,var(--line));box-shadow:var(--pb-sh-2)}
html body .card{padding:22px}
html body .card-h,html body .rowsec-h{font-weight:600}
html body :is(.badge,.pill,.tag,.chip2){border-radius:999px;font-weight:600;font-size:12px;letter-spacing:.01em}
html body .table-wrap{border:1px solid var(--line);border-radius:var(--pb-r);overflow:auto;background:var(--card)}
html body table{border-collapse:collapse;width:100%}
html body th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;text-align:left}
html body :is(th,td){padding:12px 16px;border-bottom:1px solid var(--line)}
html body tbody tr:last-child td{border-bottom:0}
html body tbody tr{transition:background .15s}
html body tbody tr:hover{background:var(--pb-accent-soft)}
html body :is(.bar,.uc-bar,.lvs-track) > *{border-radius:inherit}

/* ---------- 6. Forms ---------- */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){
  border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--text);
  padding:11px 14px;font-size:14.5px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
html body :is(input,select,textarea):hover{border-color:color-mix(in srgb,var(--pb-accent) 40%,var(--line))}
html body :is(input,select,textarea):focus{outline:0;border-color:var(--pb-accent);box-shadow:0 0 0 3px var(--pb-accent-soft)}
html body ::placeholder{color:var(--muted);opacity:.7}
html body label{font-size:13px;color:var(--muted);margin-bottom:6px}

/* ---------- 7. Navigation ---------- */
html body :is(.side,.top,.tx-bar,.pubnav,.nav){-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html body .side{background:var(--bg2) !important;border-right:1px solid var(--line) !important;box-shadow:none !important}
html body .top,html body .pubnav{background:color-mix(in srgb,var(--bg) 94%,transparent) !important;border-bottom:1px solid var(--line) !important}
html body .top::before,html body .tx-bar::before{background:none !important;box-shadow:none !important}
html body .si{border-radius:10px;font-weight:500;color:var(--muted);box-shadow:none !important;transition:background .15s,color .15s}
html body .si:hover{background:var(--pb-accent-soft);color:var(--text);box-shadow:none !important}
html body .si.on{background:var(--pb-accent-soft) !important;color:var(--accent);box-shadow:inset 3px 0 0 var(--pb-accent) !important}
html body :is(.side-user,.dd-menu,.modal-card){background:var(--card) !important;border:1px solid var(--line);box-shadow:var(--pb-sh-2) !important;
  -webkit-backdrop-filter:none;backdrop-filter:none}

/* ---------- 8. Landing page ---------- */
.nav{background:var(--navy) !important;border-bottom:1px solid rgba(255,255,255,.08)}
.hx{background:linear-gradient(180deg,#0a0f2e 0,#111a4a 100%) !important;border-radius:0 0 28px 28px !important;padding:72px 0 96px}
.hx h1{font-weight:700;letter-spacing:-.03em}
.hx .lead,.hx p{color:#b8c1e0}
.sec-head h2{font-weight:650;letter-spacing:-.025em}
.pill{background:var(--pb-accent-soft);color:var(--pb-accent)}
.cta-box{background:linear-gradient(160deg,#0b1030,#1a2370) !important;border-radius:24px}
.foot{background:var(--navy) !important}
.card,.stat,.pay{box-shadow:var(--pb-sh-1)}
.ticker,.tk-item{border-radius:var(--pb-r)}

/* ---------- 9. Auth screens ---------- */
body.auth .bg{background:linear-gradient(160deg,#0a0f2e,#141c52) !important}
body.auth .shell{border-radius:20px;box-shadow:0 30px 70px -20px rgba(5,8,30,.6),0 0 0 1px rgba(255,255,255,.06)}
body.auth .side{background:linear-gradient(170deg,#141c52,#0b1030) !important;border:0 !important}
body.auth .side::before,body.auth .side::after{display:none !important}
body.auth .logo-tile{border-radius:12px;box-shadow:var(--pb-sh-2)}

/* ---------- 10. Motion: one quiet entrance, respects user setting ---------- */
@keyframes pbIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html body .content>*,html body .page-h{animation:pbIn .35s var(--pb-ease) both}
html body .content>*:nth-child(2){animation-delay:.04s}
html body .content>*:nth-child(3){animation-delay:.08s}
html body .content>*:nth-child(n+4){animation-delay:.12s}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important}}

/* ---------- 11. Responsive refinements ---------- */
img,svg,video,canvas{max-width:100%}
@media (max-width:900px){
  html body .card{padding:18px}
  .hx{padding:48px 0 72px}
  html body :is(th,td){padding:10px 12px}
}
@media (max-width:560px){
  html body .btn.lg{width:100%}
  html body :is(h1){font-size:clamp(24px,7vw,30px)}
  .hx{border-radius:0 0 20px 20px !important}
}
