/* portal.css — SYNK Markets client portal.
   Dark theme = Exness-style deep-navy (2026-09-17, per Branny's ref).
   Light theme = clean white/slate. Gold accent retained but rationed.
   Radius budget: 10px + 999px. */

:root{
  --bg:#0A1014;        /* measured ground, my.exness.com PA */
  --surface:#111A1F;   /* minimal lift; the reference leans on hairlines, not a panel stack */
  --raised:#1D272D;
  --ink:#EDF0F2;
  --text:#A9B7C0;
  --muted:#6C8595;
  --line:rgba(237,240,242,.10);
  --line-soft:rgba(237,240,242,.05);
  --gold:#FFDE02;
  --gold-deep:#E5C400;
  --gold-ink:#000000;  /* reference sets pure black on the yellow fill */
  --gold-text:#FFDE02;
  --info:#44A2FA;      /* reference uses this for NEW badges, 64 occurrences */
  --up:#22C55E;
  --down:#EF4444;
  --r:10px;
  --r-sm:4px;
  --mono:ui-monospace,"Cascadia Mono","Segoe UI Mono","SF Mono",monospace;
  --side:248px;
  --shadow-tile:0 1px 2px rgba(0,0,0,.20), 0 6px 20px rgba(0,0,0,.28);
  --shadow-card:0 1px 3px rgba(0,0,0,.16), 0 12px 28px rgba(0,0,0,.24);
  color-scheme:dark;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(255,222,2,.06), transparent 60%),
    linear-gradient(180deg,#0E151A 0%,var(--bg) 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:Inter,system-ui,sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:Manrope,Inter,sans-serif;margin:0;letter-spacing:0}
p{margin:0}
button{font:inherit;color:inherit}

.pv-skip{position:absolute;left:-9999px;top:0;z-index:80;background:var(--gold);color:var(--gold-ink);padding:10px 16px;border-radius:var(--r)}
.pv-skip:focus{left:12px;top:12px}

/* ---------- shell ---------- */
.pv-shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh}

.pv-side{
  position:sticky;top:0;height:100vh;overflow-y:auto;
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:22px 0 30px;
  scrollbar-width:thin;scrollbar-color:var(--line) transparent;
}
.pv-side::-webkit-scrollbar{width:8px}
.pv-side::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}

.pv-brand{display:flex;align-items:center;gap:10px;padding:0 20px 22px;margin-bottom:6px;border-bottom:1px solid var(--line-soft)}
.pv-brand-mark{width:30px;height:30px;flex:0 0 auto}
.pv-brand-word{font-family:Manrope,sans-serif;font-weight:500;font-size:17px;color:var(--ink)}
.pv-brand-word b{font-weight:500}

.pv-nav{padding:14px 12px 0}
.pv-group{margin-bottom:22px}
.pv-group-label{
  font-size:10px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted);padding:0 10px;margin-bottom:9px;
}
.pv-link{
  position:relative;display:flex;align-items:center;gap:11px;
  padding:9px 10px;border-radius:8px;
  color:var(--text);font-size:13.5px;font-weight:500;
  transition:color .16s ease,background-color .16s ease;
}
.pv-link svg{width:17px;height:17px;flex:0 0 auto;opacity:.75;transition:opacity .16s ease}
.pv-link:hover{color:var(--ink);background:rgba(255,222,2,.06)}
.pv-link:hover svg{opacity:1}
/* deliberate divergence from Tradestone's filled cyan pill: warm tint + gold left bar */
.pv-link.is-active{color:var(--ink);background:rgba(255,222,2,.10)}
.pv-link.is-active svg{opacity:1;color:var(--gold)}
.pv-link.is-active::before{
  content:"";position:absolute;left:-12px;top:6px;bottom:6px;width:2px;
  background:var(--gold);border-radius:0 2px 2px 0;
}
.pv-link-tag{margin-left:auto;font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:500;
  color:var(--info);border:0;border-radius:3px;padding:1px 6px;letter-spacing:.02em;
  background:rgba(68,162,250,.12)}

/* ---------- top bar ---------- */
.pv-body{display:flex;flex-direction:column;min-width:0}
.pv-top{
  display:flex;align-items:center;gap:16px;
  padding:22px 32px 18px;border-bottom:1px solid var(--line-soft);
}
.pv-top-copy{min-width:0;flex:1 1 auto}
.pv-top h1{font-size:21px;font-weight:500;line-height:1.2}
.pv-top p{color:var(--muted);font-size:13px;margin-top:3px}
.pv-top-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}

.pv-bell{position:relative;display:grid;place-items:center;width:38px;height:38px;
  border:1px solid var(--line);border-radius:999px;color:var(--text);transition:color .16s ease,border-color .16s ease}
.pv-bell:hover{color:var(--ink);border-color:var(--gold)}
.pv-bell svg{width:18px;height:18px}
.pv-bell-dot{position:absolute;top:9px;right:10px;width:6px;height:6px;border-radius:999px;background:var(--gold)}

.pv-chip{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border:1px solid var(--line);border-radius:999px;transition:border-color .16s ease}
.pv-chip:hover{border-color:var(--gold)}
.pv-avatar{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;
  font-family:Manrope,sans-serif;font-weight:500;font-size:12px;color:var(--gold-ink);
  background:linear-gradient(135deg,var(--gold),var(--gold-deep))}
.pv-chip-copy{display:flex;flex-direction:column;line-height:1.25}
.pv-chip-copy b{font-size:12.5px;font-weight:500;color:var(--ink)}
.pv-chip-copy span{font-size:10.5px;color:var(--muted)}

.pv-preview-note{
  margin:16px 32px 0;padding:11px 15px;border:1px solid rgba(255,222,2,.34);
  border-radius:var(--r);background:rgba(255,222,2,.07);
  color:var(--text);font-size:12.5px;
}
.pv-preview-note b{color:var(--gold-text);font-weight:500}

.pv-main{padding:26px 32px 40px;flex:1 1 auto}

.pv-foot{padding:22px 32px 34px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:11.5px}
.pv-foot nav{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:9px}
.pv-foot nav a{color:var(--text)}
.pv-foot nav a:hover{color:var(--gold-text)}
.pv-foot p{max-width:78ch;line-height:1.6}

/* ---------- primitives ---------- */
.pv-card{background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r);padding:22px 24px;position:relative}
.pv-card>h2,.pv-card>h3{font-size:16px;font-weight:500}

.pv-eyebrow{font-size:10px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-text);margin-bottom:9px}

.pv-sec{margin-bottom:26px}
.pv-sec-head{display:flex;align-items:baseline;gap:14px;margin-bottom:14px}
.pv-sec-head h2{font-size:17px;font-weight:500}
.pv-sec-head a{margin-left:auto;font-size:12.5px;color:var(--text)}
.pv-sec-head a:hover{color:var(--gold-text)}

.pv-grid{display:grid;gap:16px}
.pv-grid-2{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.pv-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* THE LEDGER RULE — the portal's primary layout primitive (see UI-SPEC signature element) */
.pv-ledger{border-top:1px solid var(--line)}
.pv-row{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;
  gap:16px;padding:14px 0;border-bottom:1px solid var(--line);
}
.pv-row-idx{font-family:var(--mono);font-size:11px;font-variant-numeric:tabular-nums;color:var(--gold-text);letter-spacing:.06em}
.pv-row-main strong{display:block;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;color:var(--ink)}
.pv-row-main span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.pv-row-end{font-family:var(--mono);font-size:13px;font-variant-numeric:tabular-nums;color:var(--text);text-align:right;white-space:nowrap}

/* figure strip: ONE strip, not four repeated stat cards (see re-derive test) */
.pv-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  background:var(--surface)}
.pv-strip>div{padding:20px 22px;border-right:1px solid var(--line-soft)}
.pv-strip>div:last-child{border-right:0}
.pv-strip dt{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
/* Rich money style — sans, tabular, semibold, big. Broker feel, not code-monospace. */
.pv-strip dd{margin:8px 0 0;font-family:Inter,system-ui,sans-serif;font-size:28px;font-weight:500;
  font-variant-numeric:tabular-nums;letter-spacing:-0.01em;color:var(--ink)}
.pv-strip dd small{font-size:12px;color:var(--muted);margin-left:6px;text-transform:uppercase;
  letter-spacing:.06em;font-weight:500}
.pv-strip dd.pv-gold{color:var(--gold-text)}

.pv-up{color:var(--up)}
.pv-down{color:var(--down)}

.pv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:0 20px;border-radius:var(--r);border:1px solid var(--line);
  background:transparent;color:var(--ink);font-size:13.5px;font-weight:500;cursor:pointer;
  transition:border-color .18s ease,background-color .18s ease,color .18s ease}
.pv-btn:hover{border-color:var(--gold);color:var(--gold)}
.pv-btn-primary{background:linear-gradient(135deg,var(--gold),var(--gold-deep));
  border-color:transparent;color:var(--gold-ink)}
.pv-btn-primary:hover{color:var(--gold-ink);filter:brightness(1.06)}
.pv-btn[disabled]{opacity:.45;cursor:not-allowed}
.pv-btn[disabled]:hover{border-color:var(--line);color:var(--ink)}

.pv-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 11px;border-radius:999px;
  border:1px solid var(--line);font-size:11px;font-weight:500;color:var(--text)}
.pv-pill-gold{border-color:rgba(255,222,2,.5);color:var(--gold)}
.pv-pill-up{border-color:rgba(22,199,132,.45);color:var(--up)}
.pv-pill-muted{color:var(--muted)}

.pv-bar{height:4px;border-radius:999px;background:rgba(199,186,156,.14);overflow:hidden;margin-top:10px}
.pv-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold-deep),var(--gold));border-radius:999px}

.pv-empty{padding:26px;border:1px dashed var(--line);border-radius:var(--r);color:var(--muted);font-size:13px;text-align:center}

/* a state box for anything that is deliberately not wired up */
.pv-notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r);
  border:1px solid rgba(255,222,2,.3);background:rgba(255,222,2,.06);font-size:12.5px;color:var(--text)}
.pv-notice b{color:var(--gold);font-weight:500}
.pv-notice svg{width:17px;height:17px;flex:0 0 auto;color:var(--gold);margin-top:1px}

/* table */
.pv-table{width:100%;border-collapse:collapse;font-size:13px}
.pv-table th{text-align:left;font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);padding:12px 12px 11px;border-bottom:1px solid var(--line)}
.pv-table td{padding:14px 12px;border-bottom:1px solid var(--line-soft);color:var(--text)}
.pv-table td:first-child,.pv-table th:first-child{padding-left:0}
.pv-table td:last-child,.pv-table th:last-child{padding-right:0;text-align:right}
.pv-table .pv-num{font-family:Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;
  font-weight:500;color:var(--ink);letter-spacing:-0.01em}
.pv-table tr:last-child td{border-bottom:0}
.pv-scroll{overflow-x:auto}

/* forms */
.pv-field{margin-top:15px}
.pv-field label{display:block;font-size:10.5px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.pv-field input,.pv-field select,.pv-field textarea{
  width:100%;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);
  color:var(--ink);padding:11px 13px;font-family:Inter,sans-serif;font-size:14px;
  transition:border-color .18s ease,box-shadow .18s ease}
.pv-field input:focus,.pv-field select:focus,.pv-field textarea:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(255,222,2,.15)}
.pv-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pv-hint{font-size:11.5px;color:var(--muted);margin-top:7px}

/* auth page layout */
.pv-auth-page .pv-shell{grid-template-columns:1fr}
.pv-auth-page #pv-side,.pv-auth-page .pv-top,.pv-auth-page .pv-foot{display:none!important}
.pv-auth-page .pv-main{padding:40px 16px;min-height:80vh;display:flex;align-items:center;justify-content:center}
.pv-auth-page .pv-main>section{width:100%}
.pv-alert{padding:12px 16px;border-radius:var(--r);background:rgba(234,57,67,.12);color:#EA3943;
  font-size:13px;margin-bottom:16px;border:1px solid rgba(234,57,67,.25)}

/* option cards (deposit methods etc) */
.pv-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}
.pv-opt{padding:15px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg);
  cursor:pointer;text-align:left;transition:border-color .18s ease}
.pv-opt:hover{border-color:var(--gold)}
.pv-opt.is-on{border-color:var(--gold);background:rgba(255,222,2,.07)}
.pv-opt strong{display:block;font-family:Manrope,sans-serif;font-size:13.5px;font-weight:500;color:var(--ink)}
.pv-opt span{display:block;font-size:11.5px;color:var(--muted);margin-top:4px}

/* verification checklist */
.pv-steps{margin-top:16px;border-top:1px solid var(--line)}
.pv-step{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}
.pv-step i{width:9px;height:9px;border-radius:999px;background:rgba(199,186,156,.3);flex:0 0 auto}
.pv-step.is-done i{background:var(--up)}
.pv-step strong{font-family:Manrope,sans-serif;font-weight:500;font-size:13.5px;color:var(--ink);flex:1 1 auto}
.pv-step span{font-size:12px;color:var(--muted);font-family:var(--mono)}

/* mentor positions: an order-book block, not a card grid */
.pv-book{font-family:var(--mono);font-size:12.5px;font-variant-numeric:tabular-nums}
.pv-book-head,.pv-book-row{display:grid;grid-template-columns:64px 52px minmax(0,1fr) auto;gap:12px;padding:9px 0}
.pv-book-head{color:var(--muted);font-size:10px;letter-spacing:.12em;text-transform:uppercase;border-bottom:1px solid var(--line)}
.pv-book-row{border-bottom:1px solid var(--line-soft)}
.pv-book-row:last-child{border-bottom:0}
.pv-book-sym{color:var(--ink)}
.pv-side-buy{color:var(--up)}
.pv-side-sell{color:var(--down)}

.pv-burger{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:var(--r);
  background:transparent;cursor:pointer;padding:0;align-items:center;justify-content:center;gap:4px;flex-direction:column}
.pv-burger span{display:block;width:16px;height:1.5px;background:var(--ink);border-radius:2px}
.pv-scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:40}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .pv-grid-2,.pv-grid-3{grid-template-columns:minmax(0,1fr)}
  .pv-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pv-strip>div:nth-child(2){border-right:0}
  .pv-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
  .pv-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .pv-shell{grid-template-columns:minmax(0,1fr)}
  .pv-side{position:fixed;left:0;top:0;z-index:50;width:min(280px,84vw);
    transform:translateX(-101%);transition:transform .26s cubic-bezier(.22,.61,.36,1)}
  body.pv-nav-open .pv-side{transform:none}
  .pv-burger{display:flex;align-self:flex-start;margin-top:2px}
  .pv-top{align-items:flex-start}
  .pv-top-actions{margin-top:2px}
  .pv-top,.pv-main,.pv-foot,.pv-preview-note{padding-left:18px;padding-right:18px}
  .pv-preview-note{margin-left:18px;margin-right:18px}
  .pv-chip-copy{display:none}
  .pv-chip{padding:4px}
}
@media (max-width:560px){
  .pv-strip{grid-template-columns:minmax(0,1fr)}
  .pv-strip>div{border-right:0;border-bottom:1px solid var(--line-soft)}
  .pv-strip>div:last-child{border-bottom:0}
  .pv-opts{grid-template-columns:minmax(0,1fr)}
  .pv-field-row{grid-template-columns:minmax(0,1fr)}
  .pv-row{grid-template-columns:26px minmax(0,1fr);gap:12px}
  .pv-row-end{grid-column:2;text-align:left;margin-top:2px}
  .pv-top h1{font-size:18px}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

/* ========== COPY TRADING ROWS (Tradestone-faithful) ========== */
.pv-copy-head{padding:0 0 8px;border-bottom:1px solid var(--line);margin-bottom:0}
/* One set of tracks for the header and every row (2026-10-07). Each minimum is the widest thing that column holds,
   measured: the longest name with its risk badge (GREENLIGHT SIGNAL), the longest figure or header label. Below
   1350px the chart column goes, below 1240px each trader becomes a card, so no row is ever wider than the list. */
.pv-copy-head,.pv-copy-list{--copy-cols:minmax(240px,2fr) 98px minmax(75px,1fr) minmax(66px,1fr) minmax(81px,1fr) minmax(69px,1fr) minmax(90px,1fr) minmax(53px,1fr) minmax(46px,1fr) 84px}
.pv-copy-cols{display:grid;grid-template-columns:var(--copy-cols);gap:0 10px;align-items:center;padding:0 17px}
.pv-col-label{font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:0 8px}
.pv-col-identity{padding-left:0}
.pv-col-chart{padding-left:0}

.pv-copy-list{display:flex;flex-direction:column;gap:8px}
.pv-copy-row>*{min-width:0}
.pv-copy-row .pv-stat{min-width:0}
.pv-copy-row .pv-stat b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.pv-copy-row{
  display:grid;grid-template-columns:var(--copy-cols);
  align-items:center;gap:0 10px;
  padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);
  background:var(--surface);
  transition:border-color .18s ease;
}
.pv-copy-row:hover{border-color:var(--gold)}

.pv-copy-identity{display:flex;align-items:center;gap:10px;min-width:0}
.pv-copy-identity .pv-avatar{width:36px;height:36px;font-size:13px;flex:0 0 auto;
  background:none;font-weight:500;font-family:Manrope,sans-serif;border-radius:999px}
.pv-copy-name{min-width:0;flex:1 1 auto}
.pv-copy-name strong{display:block;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;
  color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-copy-name span{display:block;font-size:11px;color:var(--muted);margin-top:2px}

.pv-risk-badge{
  display:inline-flex;align-items:center;padding:2px 8px;border-radius:4px;
  font-size:10px;font-weight:500;color:#fff;white-space:nowrap;flex:0 0 auto;margin-left:6px;
}

.pv-copy-chart{display:flex;align-items:center;padding:0 4px}
.pv-spark{width:90px;height:32px;display:block}

.pv-copy-stats{display:contents}
.pv-stat{padding:0 8px;font-family:var(--mono);font-size:12.5px;font-variant-numeric:tabular-nums;color:var(--text);
  display:flex;flex-direction:column;gap:3px}
.pv-stat small{font-family:Inter,sans-serif;font-size:9px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);line-height:1}
.pv-stat b{font-weight:500}

.pv-btn-copy-detail{
  min-height:32px;padding:0 14px;border:1px solid var(--line);border-radius:6px;
  background:transparent;color:var(--ink);font-size:12px;font-weight:500;cursor:pointer;
  transition:border-color .18s ease,background .18s ease;justify-self:end;
}
.pv-btn-copy-detail:hover{border-color:var(--gold);background:rgba(255,222,2,.08)}

@media(max-width:1350px){
  .pv-copy-head,.pv-copy-list{--copy-cols:minmax(240px,2fr) minmax(75px,1fr) minmax(66px,1fr) minmax(81px,1fr) minmax(69px,1fr) minmax(90px,1fr) minmax(53px,1fr) minmax(46px,1fr) 84px}
  .pv-copy-chart,.pv-col-chart{display:none}
}
@media(max-width:1240px){
  .pv-copy-cols{display:none}
  .pv-copy-row{
    display:flex;flex-wrap:wrap;gap:10px;padding:16px;
  }
  .pv-copy-identity{flex:1 1 100%;margin-bottom:4px}
  .pv-copy-chart{display:flex;flex:0 0 auto}
  .pv-copy-stats{display:flex;flex-wrap:wrap;gap:6px 14px;flex:1 1 100%}
  .pv-stat{padding:0}
  .pv-btn-copy-detail{flex:0 0 auto}
}

/* ========== DEPOSIT CARDS ========== */
.pv-deposit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pv-deposit-card{
  padding:20px;border:1px solid var(--line);border-radius:var(--r);
  background:var(--surface);
  transition:border-color .18s ease;cursor:pointer;
}
.pv-deposit-card:hover{border-color:var(--gold)}
.pv-deposit-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.pv-deposit-icon{width:40px;height:40px;display:grid;place-items:center;
  border-radius:var(--r);background:rgba(255,222,2,.08);font-size:20px;flex:0 0 auto}
.pv-deposit-top strong{font-family:Manrope,sans-serif;font-size:14px;font-weight:500;color:var(--ink)}
.pv-deposit-meta{display:flex;gap:24px}
.pv-deposit-meta>div{display:flex;flex-direction:column;gap:3px}
.pv-deposit-label{font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pv-deposit-meta span:not(.pv-deposit-label){font-size:12px;color:var(--text)}

.pv-pill-down{border-color:rgba(234,57,67,.45);color:var(--down)}

@media(max-width:700px){
  .pv-deposit-grid{grid-template-columns:minmax(0,1fr)}
}

/* ========== DASHBOARD ========== */
.pv-kyc-card{padding:30px 32px}
.pv-kyc-left{max-width:480px}
.pv-kyc-left h2{font-size:24px;font-weight:500;margin-bottom:6px}
.pv-kyc-left p{color:var(--text);font-size:15px;line-height:1.5}
.pv-kyc-icon{width:48px;height:48px;display:grid;place-items:center;
  border-radius:12px;background:rgba(22,199,132,.10);color:var(--up);margin-bottom:16px}
.pv-kyc-icon svg{width:24px;height:24px}

.pv-dash-funds{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px 28px;
  padding:24px 26px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface)}
.pv-dash-total .pv-eyebrow{margin-bottom:6px}
/* Money reads as one unit: $ 975.72 USD — no wide gap before USD. */
.pv-dash-amount{font-family:Inter,system-ui,sans-serif;font-size:32px;font-weight:500;white-space:nowrap;
  font-variant-numeric:tabular-nums;letter-spacing:-0.01em;color:var(--ink)}
.pv-dash-amount small{font-size:13px;color:var(--muted);font-weight:500;margin-left:6px;
  text-transform:uppercase;letter-spacing:.06em}

.pv-dash-actions{display:flex;gap:10px;flex-wrap:wrap;grid-column:1 / -1;order:3}
/* Branny picked this style over the flat pill row (2026-09-17, "kindly keep this style
   it's better"): tile + circular icon badge + label under, only the PRIMARY's badge is
   yellow. The badge is the svg itself, so no markup change is needed. */
.pv-dash-action{display:flex;flex:1;min-width:96px;flex-direction:column;
  align-items:center;justify-content:center;gap:10px;
  padding:16px 12px;border:none;border-radius:12px;
  background:var(--surface);color:var(--ink);font-size:13.5px;font-weight:500;
  box-shadow:var(--shadow-tile);transition:box-shadow .16s ease}
.pv-dash-action:hover{box-shadow:var(--shadow-card)}
.pv-dash-action svg{width:42px;height:42px;padding:12px;box-sizing:border-box;
  border-radius:999px;background:var(--raised);stroke:var(--ink)}
.pv-dash-action-primary svg{background:var(--gold);stroke:var(--gold-ink);color:var(--gold-ink)}

.pv-dash-breakdown{display:flex;flex-direction:column;gap:10px;padding-left:20px;border-left:1px solid var(--line-soft)}
.pv-dash-acct{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text)}
.pv-dash-acct i{width:8px;height:8px;border-radius:999px;flex:0 0 auto}
.pv-dash-acct b{margin-left:auto;font-family:Inter,system-ui,sans-serif;
  font-variant-numeric:tabular-nums;color:var(--ink);font-weight:500;font-size:14px}

.pv-security-banner{border-color:rgba(22,199,132,.3);background:rgba(22,199,132,.04)}
.pv-security-banner svg{color:var(--up)}

.pv-security-bar{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;margin-top:8px;
  border-radius:var(--r);border:1px solid rgba(22,199,132,.2);
  background:rgba(22,199,132,.03);
  font-size:12px;color:var(--text);
}
.pv-security-bar svg{width:16px;height:16px;flex:0 0 auto;color:var(--up)}
.pv-security-bar strong{color:var(--ink);margin-right:4px}

.pv-btn-sm{min-height:32px;padding:0 14px;font-size:12px;border-radius:8px}
.pv-card-link{transition:border-color .18s ease}
.pv-card-link:hover{border-color:var(--gold)}

.pv-acct-cell{display:flex;align-items:center;gap:10px}
.pv-acct-cell .pv-avatar{background:linear-gradient(135deg,#4FC3F7,#0288D1)}
.pv-avatar-sm{width:32px;height:32px;font-size:13px}
.pv-sub-text{display:block;font-size:11px;color:var(--muted);margin-top:2px}

@media(max-width:900px){
  .pv-dash-funds{grid-template-columns:minmax(0,1fr);gap:18px}
  .pv-dash-breakdown{padding-left:0;border-left:0;padding-top:12px;border-top:1px solid var(--line-soft)}
  .pv-dash-actions{flex-wrap:wrap}
}

/* Deposit modal */
.pv-modal-scrim{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:900;display:flex;align-items:center;justify-content:center;padding:16px}
.pv-modal{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);width:100%;max-width:400px;padding:28px 24px 24px}
.pv-modal h3{font:600 18px/1.3 var(--sans);color:var(--ink);margin:0 0 4px}
.pv-modal p{font:14px/1.5 var(--sans);color:var(--text);margin:0 0 20px}
.pv-modal label{display:block;font:500 11px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.pv-modal input,.pv-modal select{width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--raised);color:var(--ink);font:15px/1.4 var(--sans)}
.pv-modal input:focus,.pv-modal select:focus{outline:none;border-color:var(--gold)}
/* Mobile Pay: the country comes first and sits apart from the number and amount (2026-10-07) */
.pv-modal select{margin-bottom:14px}
.pv-modal-btns{display:flex;gap:10px;margin-top:20px}
.pv-modal-btns button{flex:1;padding:10px 0;border-radius:var(--r);font:600 14px/1 var(--sans);cursor:pointer;border:none}
.pv-modal-btns .pv-btn-cancel{background:var(--raised);color:var(--text)}
.pv-modal-btns .pv-btn-confirm{background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:var(--gold-ink)}
.pv-modal-btns button:disabled{opacity:.5;cursor:not-allowed}
.pv-modal .pv-modal-err{color:#EA3943;font:13px/1.4 var(--sans);margin-top:8px}
.pv-modal-copy{max-width:480px}
.pv-copy-detail-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.pv-copy-detail-head .pv-avatar-lg{width:48px;height:48px;font-size:18px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:500;flex:0 0 auto}
.pv-copy-detail-chart{margin-bottom:16px;border-radius:var(--r);overflow:hidden;background:var(--raised);padding:8px 12px}
.pv-copy-detail-chart .pv-spark{width:100%;height:60px}
.pv-copy-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.pv-copy-detail-grid>div{background:var(--surface);padding:10px 14px;display:flex;flex-direction:column;gap:2px}
.pv-copy-detail-grid span{font:12px/1 var(--sans);color:var(--muted)}
.pv-copy-detail-grid b{font:600 15px/1.2 var(--sans);color:var(--ink)}
.pv-copy-form{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.pv-copy-form label{margin-bottom:-10px}
.pv-copy-form select{width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--raised);color:var(--ink);font:15px/1.4 var(--sans);appearance:auto}
.pv-copy-form select:focus{outline:none;border-color:var(--gold)}
.pv-copy-fee-note{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:var(--r);border:1px solid rgba(22,199,132,.2);background:rgba(22,199,132,.03);font-size:13px;color:var(--text)}
.pv-copy-fee-note svg{width:16px;height:16px;flex:0 0 auto;color:var(--up)}
.pv-copy-fee-note b{color:var(--ink)}
.pv-modal-success{text-align:center}
.pv-success-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:rgba(22,199,132,.12);display:flex;align-items:center;justify-content:center}
.pv-success-icon svg{width:24px;height:24px;color:var(--up)}

/* ---- KYC / Verification Center ---- */
.pv-kyc-center{max-width:520px;margin:0 auto;text-align:center;padding:32px 28px}
.pv-kyc-badge{display:inline-block;font:600 12px/1 var(--sans);text-transform:uppercase;letter-spacing:.06em;color:var(--gold);border:1px solid var(--gold);border-radius:4px;padding:5px 12px;margin-bottom:14px}
.pv-kyc-desc{color:var(--muted);font-size:14px;margin-bottom:24px}
.pv-kyc-steps{text-align:left;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-bottom:24px}
.pv-kyc-step{display:flex;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid var(--line)}
.pv-kyc-step:last-child{border-bottom:none}
.pv-kyc-dot{width:10px;height:10px;border-radius:50%;background:var(--muted);flex:0 0 auto}
.pv-kyc-step-name{flex:1;font:500 14px/1.3 var(--sans);color:var(--ink)}
.pv-kyc-step-status{font:13px/1 var(--sans);color:var(--muted);white-space:nowrap}
.pv-kyc-verify-btn{width:100%;margin-top:4px}

/* Dashboard KYC card — horizontal layout */
.pv-kyc-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px}
.pv-kyc-left{display:flex;align-items:flex-start;gap:18px;flex:1}
.pv-kyc-text h2{margin-bottom:6px;font-size:17px}
.pv-kyc-text p{color:var(--muted);font-size:13.5px;line-height:1.5;margin-bottom:0}
.pv-kyc-right{flex:0 0 auto}
.pv-kyc-illust{width:110px;height:auto}
@media(max-width:600px){.pv-kyc-card{flex-direction:column;text-align:center}.pv-kyc-left{flex-direction:column;align-items:center}.pv-kyc-right{display:none}}

/* KYC prompt banner */
.pv-kyc-prompt{background:linear-gradient(135deg,rgba(255,222,2,.12),rgba(255,222,2,.04));border:1px solid rgba(255,222,2,.25);border-radius:var(--r);padding:14px 20px;display:flex;align-items:center;gap:14px;margin-bottom:20px}
.pv-kyc-prompt-icon{flex:0 0 auto;width:32px;height:32px;border-radius:50%;background:rgba(255,222,2,.15);display:flex;align-items:center;justify-content:center}
.pv-kyc-prompt-icon svg{width:16px;height:16px;color:var(--gold)}
.pv-kyc-prompt-text{flex:1;font:500 13.5px/1.45 var(--sans);color:var(--ink)}
.pv-kyc-prompt-text strong{color:var(--gold)}
.pv-kyc-prompt a{font:600 12.5px/1 var(--sans);color:var(--gold);text-decoration:none;white-space:nowrap;border:1px solid var(--gold);border-radius:4px;padding:7px 14px}
.pv-kyc-prompt a:hover{background:var(--gold);color:#0A0908}

/* KYC document upload */
.pv-kyc-doc-title{font:700 20px/1.2 var(--sans);color:var(--ink);margin-bottom:10px}
.pv-kyc-doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
@media(max-width:480px){.pv-kyc-doc-grid{grid-template-columns:1fr}}
.pv-kyc-doc-box{border:1px solid var(--line);border-radius:var(--r);padding:16px;text-align:center}
.pv-kyc-doc-label{font:600 13px/1 var(--sans);color:var(--ink);margin-bottom:10px;text-transform:uppercase;letter-spacing:.04em}
.pv-kyc-doc-preview{width:100%;height:140px;border:2px dashed var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;overflow:hidden;background:rgba(255,255,255,.02)}
.pv-kyc-doc-preview span{color:var(--muted);font:13px/1 var(--sans)}
.pv-kyc-doc-actions{display:flex;gap:8px;justify-content:center}

/* KYC selfie area */
.pv-kyc-selfie-area{margin-bottom:24px}
.pv-kyc-selfie-preview{width:200px;height:200px;margin:0 auto 12px;border-radius:50%}

/* Small button variant */
.pv-btn-sm{font-size:12.5px;padding:7px 14px}

/* Camera preview wrap */
.pv-kyc-cam-wrap{position:relative;overflow:hidden}
.pv-kyc-cam-wrap video{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.pv-kyc-cam-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,9,8,.7);border-radius:inherit}
.pv-kyc-cam-overlay span{color:var(--muted);font:13px/1 var(--sans)}

/* Liveness instructions overlay */
.pv-kyc-liveness-instruction{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(10,9,8,.85));padding:18px 16px 14px;border-radius:0 0 50% 50%;text-align:center}
.pv-kyc-liveness-instruction span{color:#fff;font:600 14px/1.3 var(--sans);display:block;margin-bottom:8px}
.pv-kyc-liveness-progress{height:4px;background:rgba(255,255,255,.15);border-radius:2px;overflow:hidden}
.pv-kyc-liveness-bar{height:100%;background:var(--up);border-radius:2px;transition:width .5s ease}

/* Verification spinner */
.pv-kyc-spinner-wrap{text-align:center;padding:32px 0}
.pv-kyc-spinner{width:48px;height:48px;border:3px solid var(--line);border-top-color:var(--gold);border-radius:50%;margin:0 auto;animation:pv-spin 1s linear infinite}
@keyframes pv-spin{to{transform:rotate(360deg)}}

/* ========== PROMO CARDS (Tradestone-faithful) ========== */
.pv-promo-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}
.pv-promo-card{
  position:relative;overflow:hidden;
  padding:28px 28px 24px;border:1px solid var(--line);border-radius:var(--r);
  background:var(--surface);
  display:flex;align-items:center;gap:16px;min-height:160px;
}
.pv-promo-copy{position:relative;z-index:1;flex:1 1 auto}
.pv-promo-copy h2{font-size:20px;font-weight:500;line-height:1.25;margin-bottom:8px}
.pv-promo-copy h2 span{color:var(--gold)}
.pv-promo-copy p{color:var(--text);font-size:13px;line-height:1.5;margin-bottom:16px;max-width:260px}
.pv-promo-graphic{flex:0 0 auto;width:200px}
.pv-promo-graphic svg{width:100%;height:auto}
.pv-promo-copy-right{position:relative}
.pv-promo-avatars{position:relative;width:140px;height:120px;flex:0 0 auto}
.pv-promo-avatar{position:absolute;display:flex;align-items:center;gap:6px}
.pv-promo-av-circle{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:rgba(79,195,247,.15);border:1.5px solid rgba(79,195,247,.4);
  color:var(--ink);font-family:Manrope,sans-serif;font-weight:500;font-size:13px;
}
.pv-promo-av-lg{width:44px;height:44px;font-size:16px;background:rgba(79,195,247,.22);border-color:rgba(79,195,247,.5)}
.pv-promo-av-tag{font-family:var(--mono);font-size:11px;font-weight:500;white-space:nowrap}
@media(max-width:900px){.pv-promo-grid{grid-template-columns:1fr}.pv-promo-avatars{display:none}
  .pv-promo-card{flex-direction:column;align-items:flex-start}
  .pv-promo-graphic{width:100%;max-height:160px}
}

/* ========== EYE TOGGLE ========== */
.pv-eye-toggle{
  background:none;border:none;cursor:pointer;padding:0;margin-left:6px;
  vertical-align:middle;display:inline-flex;align-items:center;
}
.pv-eye-toggle svg{width:14px;height:14px;color:var(--muted);transition:color .18s ease}
.pv-eye-toggle:hover svg{color:var(--ink)}

/* ========== ACCOUNT FILTERS (search + select) ========== */
.pv-acct-filters{display:flex;align-items:center;gap:10px;margin-left:auto}
.pv-search-box{
  display:flex;align-items:center;gap:7px;
  padding:0 12px;height:34px;
  border:1px solid var(--line);border-radius:8px;
  background:var(--bg);transition:border-color .18s ease;
}
.pv-search-box:focus-within{border-color:var(--gold)}
.pv-search-box svg{width:14px;height:14px;color:var(--muted);flex:0 0 auto}
.pv-search-input{
  border:none;background:none;outline:none;
  color:var(--ink);font:13px/1 Inter,sans-serif;
  width:130px;padding:0;
}
.pv-search-input::placeholder{color:var(--muted)}
.pv-filter-select{
  height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;
  background:var(--bg);color:var(--text);font:13px/1 Inter,sans-serif;
  cursor:pointer;appearance:auto;
}
.pv-filter-select:focus{outline:none;border-color:var(--gold)}
@media(max-width:700px){.pv-acct-filters{flex-wrap:wrap}.pv-search-box{flex:1 1 100%}}

/* ========== POPULAR MARKETS ========== */
.pv-markets-card{padding:0}
.pv-market-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);padding:0 20px}
.pv-market-tab{
  background:none;border:none;cursor:pointer;
  padding:12px 16px;font:500 13.5px/1 Inter,sans-serif;
  color:var(--muted);border-bottom:2px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.pv-market-tab:hover{color:var(--ink)}
.pv-market-tab.is-active{color:var(--ink);border-bottom-color:var(--gold)}
.pv-market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);padding:0}
.pv-mkt-card{background:var(--surface);padding:18px 16px}
.pv-mkt-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.pv-mkt-flag{font-size:16px;line-height:1}
.pv-mkt-head strong{font-family:Manrope,sans-serif;font-size:14px;font-weight:500;color:var(--ink)}
.pv-mkt-price{font-family:var(--mono);font-size:13px;font-variant-numeric:tabular-nums;color:var(--text);margin-bottom:8px}
.pv-mkt-val{color:var(--ink);font-size:15px;font-weight:500}
.pv-mkt-price small{color:var(--muted);margin:0 4px}
.pv-mkt-spark{width:100%;height:40px;display:block}
.pv-market-attr{text-align:center;padding:10px 16px;font-size:12px;color:var(--muted);margin:0}
.pv-market-attr a{color:var(--gold)}
.pv-tv-badge{color:var(--muted);display:flex;align-items:center}
@media(max-width:900px){.pv-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.pv-market-grid{grid-template-columns:1fr}.pv-market-tabs{overflow-x:auto;flex-wrap:nowrap}}

/* Timeframe filter tabs */
.pv-tf-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding:0 16px;margin-bottom:4px;overflow-x:auto}
.pv-tf-btn{
  background:none;border:none;cursor:pointer;
  padding:10px 18px;font:500 13px/1 Inter,sans-serif;
  color:var(--muted);border-bottom:2px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.pv-tf-btn:hover{color:var(--ink)}
.pv-tf-btn.is-active{color:var(--ink);border-bottom-color:var(--gold)}

/* ========== MOBILE SIZE BOOST ========== */
@media(max-width:900px){
  .pv-link{font-size:16px;font-weight:500;padding:12px 12px}
  .pv-link svg{width:20px;height:20px}
  .pv-group-label{font-size:12px;font-weight:500;margin-bottom:10px}
  .pv-sec-head h2{font-size:20px;font-weight:500}
  .pv-sec-head a{font-size:14px;font-weight:500}
  .pv-table{font-size:15px}
  .pv-table th{font-size:12px;font-weight:500;padding:12px}
  .pv-table td{font-size:15px;font-weight:500;padding:16px 12px}
  .pv-tf-btn{font-size:15px;font-weight:500;padding:12px 20px}
  .pv-empty{font-size:15px;font-weight:500}
  .pv-dash-acct{font-size:14px;font-weight:500}
  .pv-dash-acct b{font-weight:500}
  .pv-eyebrow{font-size:12px}
  .pv-row-main strong{font-size:16px}
  .pv-row-main span{font-size:14px}
  .pv-row-end{font-size:15px}
  .pv-stat small{font-size:12px}
  .pv-stat b{font-size:15px;font-weight:500}
  .pv-copy-name strong{font-size:16px}
  .pv-btn-sm{font-size:14px;font-weight:500;padding:8px 16px;min-height:36px}
  .pv-mkt-head strong{font-size:16px}
  .pv-mkt-price{font-size:15px}
  .pv-deposit-top strong{font-size:16px}
  .pv-deposit-label{font-size:12px}
  .pv-deposit-meta span:not(.pv-deposit-label){font-size:14px}
  .pv-strip dt{font-size:11px}
  .pv-strip dd{font-size:22px}
  .pv-col-label{font-size:12px;font-weight:500}
  .pv-brand-word{font-size:20px}
  .pv-top h1{font-size:22px}
  .pv-top p{font-size:15px}
  .pv-pill{font-size:12px;font-weight:500;padding:5px 12px}
  .pv-security-bar{font-size:14px}
  .pv-security-bar strong{font-weight:500}
}

/* ========== LIGHT MODE ========== */
:root[data-theme="light"]{
  --bg:#FFFFFF;
  --surface:#F5F7FA;
  --raised:#EBEEF3;
  --ink:#0A1014;
  --text:#4B5563;
  --muted:#6C8595;
  --line:rgba(20,29,34,.10);
  --line-soft:rgba(20,29,34,.05);
  --gold:#FFDE02;
  --gold-deep:#E5C400;
  --gold-ink:#0A0A0A;
  --gold-text:#7A6800;
  --info:#1B6FC4;
  --up:#16A34A;
  --down:#DC2626;
  --shadow-tile:0 1px 2px rgba(15,20,32,.05), 0 6px 16px rgba(15,20,32,.06);
  --shadow-card:0 1px 3px rgba(15,20,32,.06), 0 12px 28px rgba(15,20,32,.08);
  color-scheme:light;
}
[data-theme="light"] body{
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(229,184,0,.05), transparent 60%),
    #F5F7FA;
  color:var(--ink);
}
[data-theme="light"] .pv-side{background:#EDEAE3}
[data-theme="light"] .pv-card,
[data-theme="light"] .pv-copy-row,
[data-theme="light"] .pv-strip,
[data-theme="light"] .pv-deposit-card,
[data-theme="light"] .pv-mkt-card,
[data-theme="light"] .pv-promo-card,
[data-theme="light"] .pv-dash-funds{background:var(--surface)}
[data-theme="light"] .pv-link:hover{background:rgba(229,184,0,.08)}
[data-theme="light"] .pv-link.is-active{background:rgba(229,184,0,.12)}
[data-theme="light"] .pv-opt{background:var(--surface)}
[data-theme="light"] .pv-opt.is-on{background:rgba(229,184,0,.08)}
[data-theme="light"] .pv-field input,
[data-theme="light"] .pv-field select,
[data-theme="light"] .pv-field textarea{background:var(--surface)}
[data-theme="light"] .pv-modal{background:var(--surface)}
[data-theme="light"] .pv-modal input,
[data-theme="light"] .pv-modal select{background:var(--raised)}
[data-theme="light"] .pv-copy-detail-chart{background:var(--raised)}
[data-theme="light"] .pv-search-box{background:var(--surface)}
[data-theme="light"] .pv-filter-select{background:var(--surface)}
[data-theme="light"] .pv-modal-scrim{background:rgba(0,0,0,.35)}
[data-theme="light"] .pv-scrim{background:rgba(0,0,0,.3)}
[data-theme="light"] .pv-avatar{color:var(--gold-ink)}
[data-theme="light"] .pv-dash-action{color:var(--ink)}
[data-theme="light"] .pv-dash-action svg{stroke:var(--ink)}
[data-theme="light"] .pv-dash-action-primary{color:#000}
[data-theme="light"] .pv-dash-action-primary svg{stroke:#000}
[data-theme="light"] .pv-burger span{background:var(--ink)}
[data-theme="light"] .pv-copy-form select{background:var(--raised)}
[data-theme="light"] .pv-modal-btns .pv-btn-cancel{background:var(--raised)}

/* theme toggle */
.pv-theme-toggle{
  display:grid;place-items:center;width:38px;height:38px;
  border:1px solid var(--line);border-radius:999px;background:transparent;
  cursor:pointer;color:var(--text);transition:color .16s ease,border-color .16s ease;
}
.pv-theme-toggle:hover{color:var(--ink);border-color:var(--gold)}
.pv-theme-toggle svg{width:18px;height:18px}

/* ---- Profile modal (SB avatar chip → shows account details) ---- */
.pv-profile-modal{padding:0}
.pv-profile-head{display:flex;align-items:center;gap:16px;padding:24px 26px 20px;border-bottom:1px solid var(--line)}
.pv-profile-head .pv-avatar{width:52px;height:52px;font-size:18px;flex:0 0 auto}
.pv-profile-head strong{display:block;font-size:16px;color:var(--ink);font-weight:500;margin-bottom:2px}
.pv-profile-head span{color:var(--muted);font-size:12.5px;display:block}
.pv-profile-body{padding:22px 26px 12px;margin:0}
.pv-profile-row{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft);align-items:baseline}
.pv-profile-row:last-child{border-bottom:0}
.pv-profile-row dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:500}
.pv-profile-row dd{margin:0;font-size:13.5px;color:var(--ink);word-break:break-all;font-weight:500}
.pv-profile-row dd.mono{font-family:var(--mono);font-size:12.5px}

/* ---- Live Support floating widget ---- */
.pv-support-btn{
  position:fixed !important;right:22px;bottom:22px;z-index:1200;
  width:58px;height:58px;border-radius:999px;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:var(--gold-ink);
  box-shadow:0 8px 24px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.28);
  display:grid !important;place-items:center;transition:transform .18s ease;
  padding:0;
}
.pv-support-btn:hover{transform:translateY(-2px) scale(1.03)}
.pv-support-btn svg{width:26px;height:26px;stroke:var(--gold-ink)}
.pv-support-dot{position:absolute;top:6px;right:6px;width:12px;height:12px;border-radius:999px;
  background:var(--down);border:2px solid var(--bg);display:none}
.pv-support-dot.is-on{display:block}
.pv-support-panel{
  position:fixed !important;right:22px;bottom:92px;z-index:1200;width:340px;max-width:calc(100vw - 24px);
  max-height:min(560px,calc(100vh - 120px));display:none;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 18px 48px rgba(0,0,0,.45);overflow:hidden;
}
.pv-support-panel.is-open{display:flex}
.pv-support-head{padding:14px 18px;border-bottom:1px solid var(--line);
  display:flex;justify-content:space-between;align-items:center}
.pv-support-head strong{font-size:14.5px;color:var(--ink);font-weight:500}
.pv-support-head small{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}
.pv-support-head button{background:none;border:0;color:var(--muted);cursor:pointer;padding:6px}
.pv-support-body{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.pv-support-msg{max-width:80%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.4;word-wrap:break-word}
.pv-support-msg.is-client{align-self:flex-end;background:var(--gold);color:var(--gold-ink)}
.pv-support-msg.is-admin{align-self:flex-start;background:var(--raised);color:var(--ink)}
.pv-support-msg-time{display:block;font-size:10px;opacity:.65;margin-top:3px;letter-spacing:.02em}
.pv-support-empty{color:var(--muted);font-size:12.5px;text-align:center;padding:20px 8px}
.pv-support-foot{padding:12px 14px;border-top:1px solid var(--line);display:flex;gap:8px;align-items:flex-end}
.pv-support-foot textarea{flex:1;background:var(--bg);border:1px solid var(--line);border-radius:10px;
  color:var(--ink);padding:9px 12px;font:inherit;font-size:13px;resize:none;min-height:38px;max-height:120px;line-height:1.4}
.pv-support-foot textarea:focus{outline:none;border-color:var(--gold)}
.pv-support-send{background:var(--gold);color:var(--gold-ink);border:0;border-radius:10px;
  padding:9px 14px;font-weight:500;font-size:13px;cursor:pointer}
.pv-support-send:hover{background:var(--gold-deep)}
.pv-support-send[disabled]{opacity:.55;cursor:not-allowed}
