/* Tape · Midnight glass. Own identity: deep midnight, ice-cyan to violet accent, frosted glass. */
:root {
  --ground: #060814; --card: rgba(255,255,255,.06); --card-solid: #11152A; --line: rgba(255,255,255,.10); --ink: #F2F5FF; --muted: #A3AECB;
  --gold: #5CE1FF; --gold-text: #5CE1FF; --gold-soft: rgba(92,225,255,.14); --on-gold: #05070F; --violet: #8B7CFF;
  --grad: linear-gradient(120deg, #5CE1FF 0%, #8B7CFF 100%);
  --gain: #34E5A1; --gain-soft: rgba(52,229,161,.15); --loss: #FF6B81; --loss-soft: rgba(255,107,129,.15);
  --glass: rgba(255,255,255,.06); --glass-line: rgba(255,255,255,.13); --glass-blur: blur(22px) saturate(140%);
  --aur1: rgba(92,225,255,.30); --aur2: rgba(139,124,255,.32); --scrim: rgba(3,4,12,.6);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --r: 24px; --pad: 22px;
  color-scheme: dark;
}
:root[data-theme="light"] { --ground: #EEF2FC; --card: rgba(255,255,255,.62); --card-solid: #FFFFFF; --line: rgba(20,30,70,.10); --ink: #0B1020; --muted: #5A6486;
  --gold: #0A8FBA; --gold-text: #0A7AA0; --gold-soft: rgba(10,143,186,.12); --gain: #0B7A55; --gain-soft: rgba(14,159,110,.12); --loss: #C82B42; --loss-soft: rgba(229,56,79,.12);
  --glass: rgba(255,255,255,.62); --glass-line: rgba(255,255,255,.9); --aur1: rgba(92,225,255,.45); --aur2: rgba(139,124,255,.35); --scrim: rgba(20,30,70,.35); color-scheme: light; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] { --ground: #EEF2FC; --card: rgba(255,255,255,.62); --card-solid: #FFFFFF; --line: rgba(20,30,70,.10); --ink: #0B1020; --muted: #5A6486;
  --gold: #0A8FBA; --gold-text: #0A7AA0; --gold-soft: rgba(10,143,186,.12); --gain: #0B7A55; --gain-soft: rgba(14,159,110,.12); --loss: #C82B42; --loss-soft: rgba(229,56,79,.12);
  --glass: rgba(255,255,255,.62); --glass-line: rgba(255,255,255,.9); --aur1: rgba(92,225,255,.45); --aur2: rgba(139,124,255,.35); --scrim: rgba(20,30,70,.35); color-scheme: light; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.up { color: var(--gain); } .down { color: var(--loss); } .gold { color: var(--gold-text); } .muted { color: var(--muted); }

/* ---------- shell: bottom tabs on phones, side rail on wide screens */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
#view { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) var(--pad) 120px; }
@media (min-width: 900px) {
  #app { flex-direction: row; }
  #nav { position: sticky; top: 0; height: 100dvh; width: 112px; flex-direction: column; justify-content: flex-start; align-items: center; gap: 22px; padding: 30px 0; border-top: 0; border-right: 1px solid var(--line); background: var(--ground); backdrop-filter: none; }
  #nav .logo { display: block; margin-bottom: 18px; }
  #view { max-width: 1040px; padding: 36px 48px 80px; }
}

/* ---------- type */
.eyebrow { font: 500 13px/18px var(--sans); color: var(--muted); }
.display { font: 700 32px/38px var(--serif); letter-spacing: -.02em; }
.voice { font: 500 16px/24px var(--sans); color: var(--muted); }
.hero-num { font: 700 40px/44px var(--serif); letter-spacing: -.02em; }
.hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 8px; }
.hdr .hi { font: 700 28px/34px var(--serif); letter-spacing: -.02em; }
.hdr .sub { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 22px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--card); display: grid; place-items: center; flex-shrink: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sec { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 0 6px; }
.sec h2 { font: 600 18px/24px var(--sans); }
.sec .link { font: 600 14px/20px var(--sans); color: var(--gold-text); }
.sec .aside { font-size: 13px; color: var(--muted); }

/* ---------- pills, chips, segmented */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 600 13px/18px var(--sans); }
.pill.up { background: var(--gain-soft); color: var(--gain); } .pill.down { background: var(--loss-soft); color: var(--loss); }
.pill.gold { background: var(--gold-soft); color: var(--gold-text); } .pill.flat { background: var(--card); color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font: 600 14px/20px var(--sans); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); }
.seg button { padding: 5px 14px; border-radius: 999px; font: 600 13px/18px var(--sans); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.seg.wide { display: flex; background: var(--card); border: 0; }
.seg.wide button { flex: 1; padding: 10px 8px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 26px; font: 700 16px/20px var(--sans); }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.ghost { border: 1.5px solid var(--line); }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- coin rows */
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.coin { width: 42px; height: 42px; border-radius: 21px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; font: 700 17px/20px var(--sans); flex-shrink: 0; }
.row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .nm b { font: 600 16px/22px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm span { font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .spark { width: 64px; height: 28px; flex-shrink: 0; }
.row .px { width: 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.row .px b { font: 600 16px/22px var(--sans); font-variant-numeric: tabular-nums; }
.row .px span { font: 600 13px/18px var(--sans); }
.row.add { border-bottom: 0; color: var(--muted); font-weight: 500; font-size: 15px; }
.row.add .coin { background: none; border: 1.5px dashed var(--muted); color: var(--muted); }
.star { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; }
.star svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.star[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold); }

/* ---------- cards */
.card { background: var(--card); border-radius: var(--r); padding: 20px; }
.balance { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.balance .top { display: flex; align-items: center; justify-content: space-between; }
.balance .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.balance .empty { color: var(--muted); font-size: 15px; line-height: 22px; }
.balance .edit { font: 600 14px/20px var(--sans); color: var(--gold-text); text-align: left; }

/* mood */
.gauge { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--loss-soft), var(--line) 50%, var(--gain-soft)); margin: 14px 0 8px; }
.gauge i { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 10px; border: 3px solid var(--ground); box-shadow: 0 1px 5px rgba(29,26,22,.28); transition: left .7s cubic-bezier(.2,.8,.2,1); }
.gauge-labels { display: flex; justify-content: space-between; font: 500 12px/16px var(--sans); color: var(--muted); }
.mood-note { margin-top: 12px; }

/* ---------- discover */
.search { display: flex; align-items: center; gap: 10px; margin-top: 18px; height: 50px; padding: 0 16px; border-radius: 25px; background: var(--card); position: relative; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.suggest { position: absolute; left: 0; right: 0; top: 56px; z-index: 5; background: var(--ground); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(29,26,22,.12); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.suggest a:hover, .suggest a:focus-visible { background: var(--card); }
.suggest small { color: var(--muted); font-size: 13px; }
.tools { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.idea .nm span { color: var(--ink); }
.idea .nm span.sub { color: var(--muted); }
.str { font: 700 12px/16px var(--sans); padding: 3px 9px; border-radius: 999px; }
.str.Strong { background: var(--gold); color: var(--on-gold); } .str.Moderate { background: var(--gold-soft); color: var(--gold-text); }
.str.Weak, .str.Neutral { background: var(--card); color: var(--muted); }
.dirword { font: 600 14px/20px var(--sans); }

/* ---------- coin page */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.topbar .who { display: flex; align-items: center; gap: 10px; }
.topbar .who b { font: 600 20px/26px var(--sans); }
.topbar .who span { color: var(--muted); font-size: 15px; }
.price-big { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.chartbox { position: relative; margin: 14px -4px 0; touch-action: pan-y; }
.chartbox svg { display: block; width: 100%; }
.chartbox .tip { position: absolute; top: 0; left: 0; font: 600 13px/18px var(--sans); background: var(--ink); color: var(--ground); padding: 4px 10px; border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; }
.tfs { display: flex; gap: 6px; margin-top: 8px; }
.tfs button { flex: 1; padding: 8px 0; border-radius: 999px; font: 600 14px/20px var(--sans); color: var(--muted); }
.tfs button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.read { margin-top: 22px; }
.read .headline { font: 700 28px/34px var(--serif); letter-spacing: -.015em; margin: 10px 0 8px; }
.read .sumline { color: var(--muted); font-size: 16px; line-height: 24px; }
.meter { display: flex; gap: 4px; margin-top: 14px; }
.meter i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.meter i.on { background: var(--c); }
.why { margin-top: 8px; }
.why .w { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.why .dot { width: 28px; height: 28px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font: 700 14px/16px var(--sans); }
.why .dot.up { background: var(--gain-soft); color: var(--gain); } .why .dot.down { background: var(--loss-soft); color: var(--loss); } .why .dot.flat { background: var(--card); color: var(--muted); }
.why b { display: block; font: 600 16px/22px var(--sans); }
.why span.t { color: var(--muted); font-size: 15px; line-height: 22px; }
.plan3 { display: flex; gap: 10px; margin-top: 10px; }
.plan3 > div { flex: 1; min-width: 0; background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.plan3 small { font: 500 12px/16px var(--sans); color: var(--muted); }
.plan3 b { font: 600 16px/22px var(--sans); font-variant-numeric: tabular-nums; }
.plan-note { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 22px; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; padding: 0 12px; }
.adv summary { list-style: none; cursor: pointer; padding: 16px 0; font: 600 15px/20px var(--sans); color: var(--gold-text); display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; }
.adv summary::-webkit-details-marker { display: none; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metrics > div { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.metrics small { color: var(--muted); font: 500 12px/16px var(--sans); }
.metrics b { font: 600 17px/24px var(--sans); }
.term { border-bottom: 1.5px dotted var(--muted); cursor: help; }
.fine { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 19px; }
@media (min-width: 900px) {
  .twocol { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .twocol > aside { position: sticky; top: 36px; }
  .balance { margin-top: 18px; }
}

/* ---------- record */
.tabs3 { margin-top: 18px; }
.bigrate { display: flex; align-items: flex-end; gap: 16px; margin-top: 18px; }
.bigrate .n { font: 700 72px/72px var(--serif); letter-spacing: -.03em; }
.bigrate .n small { font-size: 32px; }
.bigrate .s { padding-bottom: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.tape { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 16px; }
.tape i { aspect-ratio: 1; border-radius: 4px; background: var(--line); }
.tape i.right { background: var(--gain); } .tape i.wrong { background: var(--loss); } .tape i.open { background: none; border: 1.5px dashed var(--gold); }
.jrow { border-bottom: 1px solid var(--line); padding: 14px 0; }
.jrow .l1 { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.jrow .l1 .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jrow .l1 .nm b { font: 600 16px/22px var(--sans); }
.jrow .l1 .nm span { font-size: 13px; color: var(--muted); }
.jrow .res { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.calls { display: flex; gap: 8px; margin-top: 10px; padding-left: 54px; flex-wrap: wrap; }
.call { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 13px/18px var(--sans); color: var(--muted); }
.call i { width: 9px; height: 9px; border-radius: 5px; border: 1.5px solid var(--muted); }
.call.right { color: var(--gain); border-color: var(--gain-soft); background: var(--gain-soft); } .call.right i { background: var(--gain); border-color: var(--gain); }
.call.wrong { color: var(--loss); border-color: var(--loss-soft); background: var(--loss-soft); } .call.wrong i { background: var(--loss); border-color: var(--loss); }
.detail { padding: 12px 0 2px 54px; display: flex; flex-direction: column; gap: 10px; }
.hint { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 21px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.stats3 > div { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.stats3 > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.stats3 small { color: var(--muted); font: 500 13px/18px var(--sans); }
.stats3 b { font: 600 22px/30px var(--sans); }
.lrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lrow .l { flex: 1; min-width: 0; font-weight: 600; }
.lrow .n { width: 56px; text-align: right; color: var(--muted); }
.lrow .h { width: 60px; text-align: right; }
.lrow .r { width: 64px; text-align: right; font-weight: 600; }
.lrow.head { color: var(--muted); font-size: 12px; padding: 6px 0; font-weight: 500; }
.lbar { display: inline-block; width: 56px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.lbar i { display: block; height: 100%; }
.read-lines p { font: 500 16px/24px var(--sans); margin: 0 0 12px; }
.prog .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; }
.prog .bar i { display: block; height: 100%; background: var(--gold); transition: width .4s; }

/* ---------- states */
.empty { padding: 34px 6px; text-align: center; color: var(--muted); }
.empty .voice { color: var(--ink); display: block; margin-bottom: 6px; }
.skel { background: linear-gradient(90deg, var(--card), var(--line), var(--card)); background-size: 200% 100%; border-radius: 10px; animation: shimmer 1.4s infinite linear; }
.errbox { padding: 18px; border-radius: 18px; background: var(--loss-soft); color: var(--ink); margin-top: 18px; }
.errbox b { color: var(--loss); }
.errbox p { margin: 6px 0 12px; font-size: 15px; }
.demo-note { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); font: 500 13px/19px var(--sans); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); font: 600 12px/16px var(--sans); }
.badge i { width: 8px; height: 8px; border-radius: 4px; background: var(--gain); }
.badge.demo i { background: var(--gold); }

/* ---------- sheet, toast, intro */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(29,26,22,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--ground); border-radius: 28px 28px 0 0; padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); animation: sheet .28s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 18px; }
.sheet h3 { font: 700 26px/32px var(--serif); margin-bottom: 4px; }
.sheet .set { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sheet .set > p { font-size: 14px; line-height: 20px; color: var(--muted); }
.sheet .err { color: var(--loss); }
.field { height: 50px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--ground); padding: 0 16px; width: 100%; font-size: 16px; }
.field:focus { outline: 0; border-color: var(--gold); }
.holdrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.holdrow .nm { flex: 1; display: flex; flex-direction: column; }
.holdrow input { width: 84px; height: 42px; text-align: right; }
.danger { color: var(--loss); font: 700 15px/20px var(--sans); text-align: left; padding: 8px 0; }
@media (min-width: 900px) { .scrim { align-items: center; } .sheet { border-radius: 28px; } }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 14px); max-width: min(92vw, 420px); background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 18px; font: 500 15px/21px var(--sans); opacity: 0; pointer-events: none; transition: .25s; z-index: 60; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.intro { position: fixed; inset: 0; z-index: 50; background: var(--ground); display: flex; flex-direction: column; padding: max(28px, env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.intro .art { flex: 1; display: grid; place-items: center; }
.intro .art svg { width: min(72vw, 280px); height: auto; }
.intro h2 { font: 700 34px/40px var(--serif); letter-spacing: -.02em; }
.intro p { color: var(--muted); font-size: 17px; line-height: 26px; margin-top: 12px; }
.intro .dots { display: flex; gap: 6px; margin: 22px 0; }
.intro .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: .25s; }
.intro .dots i.on { width: 26px; background: var(--gold); }
.intro .skip { align-self: center; margin-top: 12px; color: var(--muted); font-weight: 600; padding: 8px; }

/* ---------- motion (kept gentle, and off for people who ask) */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@media all {
  .rise { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.3,.7,.2,1) .1s forwards; }
  .fadein { animation: fade .8s ease .3s both; }
  .meter i.on { transform-origin: left; animation: grow .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .draw { stroke-dasharray: none; stroke-dashoffset: 0; } .skel { animation: none; } }

/* ---- motion & polish ---- */
:root { --ease: cubic-bezier(.2,.8,.2,1); }
.read .headline b.up { color: var(--gain); } .read .headline b.down { color: var(--loss); }
.read .headline b { font-weight: 600; letter-spacing: .01em; }
.hero-num, .px b, .plan3 b, .stats3 b, .lrow, .metrics b, .bigrate .n { font-variant-numeric: tabular-nums; }
.str { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
@keyframes marker { from { left: 50%; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,99,.45); } 50% { box-shadow: 0 0 0 6px rgba(31,157,99,0); } }
@media all {
  #view.enter { animation: enter .42s var(--ease) both; }
  body[data-settled="1"] .rise { animation: none; }
  .gauge i.go { animation: marker 1.1s var(--ease) .25s both; }
  #nav a[aria-current="page"] i { animation: pop .38s var(--ease); }
  #nav a, .row, .btn, .chip, .seg button, .star, .card, .icon-btn, .jrow, .call { transition: transform .18s var(--ease), background .2s, box-shadow .25s, border-color .2s, color .2s; }
  .btn:active, .chip:active, .icon-btn:active, .star:active, .seg button:active { transform: scale(.95); }
  .row:active { transform: scale(.992); }
  .star[aria-pressed="true"] svg { animation: pop .4s var(--ease); }
  .seg button, .tfs button { transition: background .25s var(--ease), color .2s; }
  .scrim { animation: fade .22s ease both; }
  .chartbox .sd { transition: cx .08s linear, cy .08s linear; }
  .toast { transition: opacity .25s, transform .35s var(--ease); }
  .bar i { transition: width .6s var(--ease); }
  .lbar i { transform-origin: left; animation: grow .7s var(--ease) both; }
}
@media (hover: hover) and (min-width: 900px) {
  .card:hover { box-shadow: 0 10px 30px -14px rgba(29,26,22,.25); transform: translateY(-2px); }
  .row:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
  .btn.primary:hover { box-shadow: 0 8px 22px -8px rgba(245,179,1,.7); transform: translateY(-1px); }
}

.tk { font: 600 11px/14px var(--sans); color: var(--muted); letter-spacing: .04em; margin-left: 4px; vertical-align: 1px; }
.row .nm b .tk { font-size: 11px; }


/* ================= Midnight glass layer ================= */
html, body { background: var(--ground); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 380px at 8% -4%, var(--aur1), transparent 70%), radial-gradient(560px 420px at 100% 6%, var(--aur2), transparent 70%), radial-gradient(520px 380px at 0% 100%, rgba(139,124,255,.14), transparent 70%); }
.card, .row.add .coin, .search, .field, .errbox, .metrics, .plan3 > div, .stats3 > div, .why, .jrow, .lrow.head { }
.card, .search, .errbox, .plan3 > div, .stats3 > div, .why, .metrics, .tabs3, .seg, .chip, .coin, .sheet, #nav, .suggest, .intro .art, .toast, .gauge-wrap {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.card, .search, .errbox, .plan3 > div, .stats3 > div, .why, .metrics { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 18px 40px -26px rgba(0,0,0,.55); }
.why { border-radius: 24px; padding: 6px 16px; }
.sheet { background: color-mix(in srgb, var(--card-solid) 88%, transparent); border: 1px solid var(--glass-line); }
.scrim { background: var(--scrim); }
.btn.primary, .str.Strong, .seg button[aria-pressed="true"], .tfs button[aria-pressed="true"], .chip[aria-pressed="true"], .intro .dots i.on, .prog .bar i { background: var(--grad); color: var(--on-gold); border-color: transparent; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { box-shadow: 0 8px 20px -10px rgba(92,225,255,.7); }
.btn.primary:hover { box-shadow: 0 12px 30px -10px rgba(92,225,255,.75); }
.btn.ghost, .chip, .seg { background: var(--glass); border: 1px solid var(--glass-line); color: var(--ink); }
.coin { background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--glass-line); }
.row { border-bottom-color: var(--line); }
.hero-num { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; }
.card.balance { padding: 22px; border-radius: 28px; }
.pill.up, .pill.down, .pill.flat, .pill.gold { border: 0; }
.read .headline b.up { color: var(--gain); } .read .headline b.down { color: var(--loss); }
.meter i { height: 12px; border-radius: 4px; background: rgba(255,255,255,.08); }
.meter i.on { background: var(--grad); }
.gauge { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--loss) 0, var(--loss) 30%, rgba(138,147,178,.55) 30%, rgba(138,147,178,.55) 70%, var(--gain) 70%, var(--gain) 100%); opacity: .95; }
.gauge i { border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gain) 40%, transparent), 0 2px 10px rgba(0,0,0,.5); }
.demo-note { background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--glass-line); }
.star[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold); filter: drop-shadow(0 0 6px rgba(92,225,255,.6)); }
.topbar .icon-btn, .hdr .icon-btn, .icon-btn { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.intro { background: var(--ground); }
.read .headline { font-family: var(--serif); letter-spacing: -.02em; }
@media (min-width: 900px) {
  #nav { left: 0; transform: none; bottom: 0; top: 0; width: 132px; border-radius: 0; border: 0; border-right: 1px solid var(--glass-line); padding: 22px 12px; flex-direction: column; justify-content: flex-start; gap: 10px; box-shadow: none; }
  #nav a { flex: 0 0 auto; width: 100%; flex-direction: column; height: auto; padding: 10px 0; gap: 4px; font-size: 12px; }
  #nav a:not([aria-current="page"]) { font-size: 12px; gap: 4px; }
  #nav .logo { display: flex; justify-content: center; margin-bottom: 12px; background: none !important; box-shadow: none !important; }
  #view { max-width: 1120px; padding-left: 168px; padding-right: 40px; padding-bottom: 60px; }
}

.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.stat { padding: 14px 14px 12px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat small { font: 700 10px/14px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stat b { font: 700 22px/28px var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font: 700 11px/15px var(--sans); color: var(--muted); } .stat span.up { color: var(--gain); } .stat span.down { color: var(--loss); }
@media (min-width: 900px) { .stat b { font-size: 30px; line-height: 36px; } .stat span { font-size: 12px; } }
body::before { background: radial-gradient(620px 460px at 6% -6%, var(--aur1), transparent 70%), radial-gradient(640px 480px at 100% 4%, var(--aur2), transparent 70%), radial-gradient(560px 420px at 0% 100%, rgba(139,124,255,.18), transparent 70%); }

/* ================= Dock (nav) ================= */
#nav { position: fixed; z-index: 30; left: 50%; right: auto; top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(372px, calc(100% - 20px)); display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 7px; border-radius: 36px; border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--card-solid) 55%, transparent); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); box-shadow: 0 24px 60px -22px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12); }
#nav .logo { display: none; }
#nav .glide { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 28px; background: var(--grad); opacity: 0; box-shadow: 0 10px 28px -8px rgba(92,225,255,.75), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .5s cubic-bezier(.3,1.25,.4,1), width .5s cubic-bezier(.3,1.25,.4,1), height .5s cubic-bezier(.3,1.25,.4,1), opacity .3s; pointer-events: none; }
#nav a[data-k] { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 0; width: 50px; height: 50px; border-radius: 26px; color: var(--muted); font: 800 12px/16px var(--sans); background: none; transition: color .25s, transform .25s cubic-bezier(.2,.8,.2,1); flex-direction: row; }
#nav a[data-k] i { display: grid; place-items: center; width: 26px; height: 26px; background: none !important; transition: transform .3s cubic-bezier(.3,1.5,.4,1); }
#nav a[data-k] svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nav a[data-k] span { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s cubic-bezier(.3,1,.4,1), opacity .25s, margin .3s; }
#nav a[aria-current="page"] { width: auto; padding: 0 16px 0 12px; color: var(--on-gold); background: none; }
#nav a[aria-current="page"] span { max-width: 90px; opacity: 1; margin-left: 6px; }
#nav a[aria-current="page"] i { animation: pop .45s cubic-bezier(.3,1.5,.4,1); }
@media (hover: hover) { #nav a[data-k]:not([aria-current]):hover { color: var(--ink); transform: translateY(-3px); } #nav a[data-k]:not([aria-current]):hover i { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(92,225,255,.7)); } }
#nav a:active { transform: scale(.92); }
@media (min-width: 900px) {
  #nav { left: 0; top: 0; bottom: 0; transform: none; width: 136px; border-radius: 0; border: 0; border-right: 1px solid var(--glass-line); padding: 24px 14px; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 8px; box-shadow: none; }
  #nav .logo { display: flex; justify-content: center; margin-bottom: 14px; }
  #nav .logo svg { width: 42px; height: 42px; filter: drop-shadow(0 6px 16px rgba(92,225,255,.5)); transition: transform .4s cubic-bezier(.3,1.5,.4,1); } #nav .logo:hover svg { transform: rotate(-8deg) scale(1.08); }
  #nav a[data-k], #nav a[aria-current="page"] { width: 100%; height: 48px; justify-content: flex-start; padding: 0 12px; gap: 10px; }
  #nav a[data-k] span { max-width: 90px; opacity: 1; margin: 0; font-size: 13px; }
  #nav a[data-k]:not([aria-current]) span { font-weight: 700; }
  #nav a[data-k]:not([aria-current]):hover { transform: translateX(3px); }
}

/* ================= Glass interactions ================= */
.card, .stat, .plan3 > div, .why, .row, .jrow { position: relative; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; }
.card::after, .stat::after, .plan3 > div::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 65%); }
@media (hover: hover) { .card:hover::after, .stat:hover::after, .plan3 > div:hover::after { opacity: 1; }
  .card, .stat, .plan3 > div { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; will-change: transform; }
  .card:hover, .stat:hover, .plan3 > div:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); border-color: rgba(92,225,255,.35); box-shadow: 0 26px 50px -24px rgba(92,225,255,.35), 0 18px 40px -26px rgba(0,0,0,.7); }
  .row:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); }
  .row:hover .coin { box-shadow: 0 0 0 3px rgba(92,225,255,.2), 0 8px 20px -6px rgba(92,225,255,.5); transform: scale(1.06); }
  .coin { transition: transform .3s cubic-bezier(.3,1.5,.4,1), box-shadow .3s; }
  .btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; pointer-events: none; }
  .btn.primary:hover::after { transform: translateX(120%); }
  .btn.primary:hover { transform: translateY(-2px); }
  .chip:hover:not([aria-pressed="true"]) { border-color: rgba(92,225,255,.45); color: var(--gold-text); transform: translateY(-1px); }
  .icon-btn:hover { border-color: rgba(92,225,255,.5); box-shadow: 0 0 18px -4px rgba(92,225,255,.6); }
  .star:hover svg { stroke: var(--gold); transform: scale(1.15) rotate(-8deg); } .star svg { transition: transform .3s cubic-bezier(.3,1.5,.4,1); } }
.btn.primary { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .65s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.12); } }
body::before { inset: -12%; animation: drift 22s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { body::before { animation: none; } #nav .glide { transition: none; } }
#view { padding-bottom: 130px; }
.statrow { margin-top: 14px; }
@media (min-width: 900px) {
  #nav { width: 164px; }
  #nav a[data-k] span { max-width: none; }
  #view { padding-left: 204px; }
}

.tag { font: 700 9px/12px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
.conf-chip { display: inline-flex; flex-direction: column; align-items: flex-start; margin-left: 12px; vertical-align: middle; font: 700 .5em/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.conf-chip small { font: 700 9px/12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.conf-chip em { font: 600 .55em/1 var(--sans); font-style: normal; color: var(--muted); margin-left: 3px; }
.row.idea .str { min-width: 62px; }
.dirword { font-weight: 700; } .row .nm span.dirword.up { color: var(--gain); } .row .nm span.dirword.down { color: var(--loss); }

.srow { display: grid; grid-template-columns: 1.5fr .9fr .9fr .8fr .9fr; gap: 6px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); font: 600 13px/18px var(--sans); font-variant-numeric: tabular-nums; }
.srow span { text-align: right; } .srow span.l { text-align: left; }
.srow.head { font: 700 10px/14px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .srow.head span:first-child { text-align: left; }
.srow.best { background: var(--gold-soft); border-radius: 14px; border-bottom-color: transparent; padding-left: 10px; padding-right: 10px; }
.srow em { font: 800 9px/12px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: var(--grad); color: var(--on-gold); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
@media (max-width: 420px) { .srow { font-size: 12px; grid-template-columns: 1.6fr .9fr .8fr .8fr .9fr; } .srow.head { font-size: 9px; } }

/* search dropdown must sit above the chips/segments below it and be readable */
.search { z-index: 30; }
.suggest { z-index: 31; background: #0b1024; background: color-mix(in srgb, var(--ground) 96%, #000); max-height: 62vh; overflow-y: auto; backdrop-filter: blur(18px); }
.suggest .xs { border-top: 1px solid var(--line); }

/* coin logos: image sits over the letter, which stays as the fallback */
.coin { position: relative; overflow: hidden; }
.coin i { font-style: normal; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; border-radius: inherit; padding: 0; }
.who .coin { width: 36px; height: 36px; border-radius: 18px; }
.who { gap: 10px; }

/* About card */
.about { margin-top: 18px; }
.about .adesc { margin: 8px 0 14px; color: var(--muted); font-size: 15px; line-height: 23px; }
.astats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.astats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.astats span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.astats b { font: 600 16px/22px var(--sans); font-variant-numeric: tabular-nums; }
.alinks { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.alinks a { color: var(--gold-text); font-weight: 600; font-size: 14px; }
.alinks .fine { margin-left: auto; }
.srow .rule { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ---- token check ---- */
.checkcta { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 20px; }
.checkcta .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--grad); flex-shrink: 0; }
.checkcta b { display: block; font-size: 16px; }
.checkcta small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 2px; }
.checkcta .go { margin-left: auto; font-size: 26px; color: var(--muted); }
.search.chk { padding-right: 8px; }
.search.chk svg { stroke: var(--gold-text); }
.chip.go { background: var(--grad); color: #06101c; font-weight: 700; border: 0; flex-shrink: 0; }
.verdict { margin-top: 4px; }
.vhead { display: flex; align-items: center; gap: 12px; }
.vhead b { font-size: 19px; }
.vbadge { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; }
.vbadge span { font: 700 24px/28px var(--sans); }
.vbadge small { color: var(--muted); font-size: 13px; }
.vbadge.down span { color: var(--loss); } .vbadge.up span { color: var(--gain); } .vbadge.warn span { color: #f5b301; } .vbadge.flat span { color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--glass); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter i.down { background: var(--loss); } .meter i.up { background: var(--gain); } .meter i.warn { background: #f5b301; } .meter i.flat { background: var(--muted); }
.flagrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.flagrow b { display: block; font-size: 15px; line-height: 20px; }
.flagrow p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.sev { flex-shrink: 0; min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 10px; font: 700 11px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; margin-top: 1px; }
.sev.critical { background: var(--loss); color: #fff; }
.sev.high { background: color-mix(in srgb, var(--loss) 28%, transparent); color: var(--loss); }
.sev.medium { background: rgba(245,179,1,.2); color: #f5b301; }
.sev.low { background: var(--glass); color: var(--muted); }
.goods { display: flex; flex-wrap: wrap; gap: 8px; }
.goods span { padding: 6px 12px; border-radius: 14px; font-size: 13px; color: var(--gain); background: color-mix(in srgb, var(--gain) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gain) 25%, transparent); }
.hrow { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hrow .hp { font-variant-numeric: tabular-nums; font-weight: 600; }
.tag.down { color: var(--loss); } .tag.up { color: var(--gain); } .tag.warn { color: #f5b301; }

/* ---- pulse, news, scenarios ---- */
.pulse { margin-top: 16px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcell span { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.pcell b { font: 700 19px/24px var(--sans); font-variant-numeric: tabular-nums; }
.pcell b small { font-size: 12px; font-weight: 600; }
.pcell > small { font-size: 12px; color: var(--muted); }
.pcell > small.up { color: var(--gain); } .pcell > small.down { color: var(--loss); }
.trend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.trend > span { font-size: 12px; color: var(--muted); margin-right: 2px; }
.nrow { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nrow b { display: block; font: 600 15px/21px var(--sans); }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.nmeta small { color: var(--muted); font-size: 12px; }
.nmeta em { font-style: normal; font: 700 10px/14px var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; background: var(--glass); color: var(--muted); border: 1px solid var(--glass-line); }
.nmeta em.ctag { color: var(--gold-text); }
.nmeta em.t-hack { color: var(--loss); } .nmeta em.t-regulation { color: #f5b301; } .nmeta em.t-etf { color: var(--gain); } .nmeta em.t-macro { color: #8bb4ff; }
.scen { margin-bottom: 14px; }
.nowlist { margin: 10px 0 8px; padding-left: 18px; color: var(--text, inherit); font-size: 15px; line-height: 23px; }
.rng { color: var(--muted); font-size: 14px; line-height: 21px; margin: 6px 0 0; }
.sc { padding: 12px 14px; border-radius: 16px; margin-top: 10px; background: var(--glass); border: 1px solid var(--glass-line); border-left-width: 3px; }
.sc.up { border-left-color: var(--gain); } .sc.down { border-left-color: var(--loss); }
.sc b { display: block; font-size: 15px; }
.sc small { display: block; color: var(--muted); font-size: 12.5px; line-height: 18px; margin-top: 2px; }
.sc p { margin: 8px 0 0; font-size: 14px; line-height: 21px; }
.sc.up, .sc.down { color: inherit; } .sc.up b { color: var(--gain); } .sc.down b { color: var(--loss); }

/* ---- Practice account ---- */
.lbl { display: block; margin: 14px 0 6px; font: 600 12px/16px var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.sheet .err { min-height: 18px; margin-top: 10px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip.on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.eq { padding: 18px; }
.eq small { color: var(--muted); display: block; font-size: 12px; }
.eq .big { display: block; font: 700 34px/40px var(--sans); letter-spacing: -.02em; margin: 2px 0 4px; }
.eqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.eqgrid b { display: block; font-size: 15px; margin-top: 2px; }
.prow { margin-top: 10px; padding: 14px; }
.ptop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pname { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.pname span, .pv, .tk-h span { display: flex; flex-direction: column; }
.pname small, .pv small, .tk-h small { color: var(--muted); font-size: 12px; }
.pv { text-align: right; }
.pv small.up { color: var(--gain, #2fd4a0); } .pv small.down { color: var(--loss); }
.pmeta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.prow .actions { margin-top: 12px; }
.prow .btn { height: 40px; font-size: 14px; }
.tk-h { display: flex; align-items: center; gap: 12px; }
.tk-h b { font-size: 18px; }
#tk-est { margin-top: 12px; }
.sheet [hidden] { display: none !important; }

/* ---- Home redesign ---- */
.bigbal { padding: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--card) 88%, #7cf0ff), var(--card) 55%, color-mix(in srgb, var(--card) 85%, #8b7bff)); }
.bigbal .hero-num { font-size: 44px; line-height: 50px; letter-spacing: -.03em; margin: 12px 0 6px; }
.favs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.favs::-webkit-scrollbar, .flash::-webkit-scrollbar { display: none; }
.ftile { flex: none; width: 142px; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; animation: tileIn .5s var(--ease, ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ftile .ft { display: flex; align-items: center; gap: 8px; } .ftile .ft b { font-size: 15px; }
.ftile .fp { font: 700 17px/22px var(--sans); margin-top: 6px; } .ftile .fc { font-size: 12px; font-weight: 600; }
.ftile .fs { margin-top: 4px; height: 26px; display: block; } .ftile .fs svg { width: 100%; height: 26px; }
.ftile .x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 12px; background: var(--ground); font-size: 16px; line-height: 22px; color: var(--loss); }
.addf { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); min-height: 112px; }
@keyframes tileIn { from { opacity: 0; transform: translateX(18px) scale(.97); } to { opacity: 1; transform: none; } }
.flash { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.fcard { flex: none; width: calc(100% - 44px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-height: 156px; padding: 18px; border-radius: 22px; color: inherit; text-decoration: none; border: 1px solid var(--line); background: linear-gradient(150deg, color-mix(in srgb, var(--card) 80%, var(--tc, #7cf0ff)), var(--card) 70%); }
.fcard b { font: 650 18px/24px var(--sans); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fcard small { color: var(--muted); font-size: 12px; }
.fk { align-self: flex-start; font: 700 11px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tc, #7cf0ff) 22%, transparent); color: var(--tc, var(--ink)); }
.fcard.t-hack { --tc: #ff5d6c; } .fcard.t-regulation { --tc: #ffb454; } .fcard.t-etf { --tc: #2fd4a0; } .fcard.t-macro { --tc: #8b9bff; } .fcard.t-stablecoin { --tc: #7cf0ff; } .fcard.t-listing { --tc: #c18bff; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; } .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; } .dots i.on { width: 20px; background: var(--ink); }
.fngcard { padding: 18px 18px 16px; }
.fngwrap { position: relative; max-width: 300px; margin: 0 auto; } .fng { width: 100%; display: block; }
.fng-bg, .fng-arc { fill: none; stroke-width: 12; stroke-linecap: round; } .fng-bg { stroke: var(--line); }
.fng-arc { stroke-dashoffset: 100; animation: arcIn 1.3s .15s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes arcIn { to { stroke-dashoffset: var(--v); } }
.fng-needle { transform-origin: 100px 100px; transform: rotate(-90deg); animation: needle 1.4s .15s cubic-bezier(.2,.9,.25,1.15) forwards; } .fng-needle line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
@keyframes needle { to { transform: rotate(var(--a)); } } .fng-hub { fill: var(--ink); }
.fngnum { text-align: center; display: flex; flex-direction: column; margin-top: 6px; } .fngnum b { font: 800 40px/44px var(--sans); letter-spacing: -.02em; } .fngnum span { font-size: 13px; font-weight: 600; color: var(--muted); }
.fngscale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 14px; }
.fngmeta { display: flex; justify-content: space-around; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; } .fngmeta small { display: block; color: var(--muted); font-size: 11px; } .fngmeta b { display: block; font-size: 15px; margin: 2px 0; }
@media (min-width: 760px) { .favs, .flash { margin: 0; padding-left: 0; padding-right: 0; } .fcard { width: 360px; } }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .fng-arc, .fng-needle, .ftile { animation-duration: .01s; } }

/* ================= Deep Blue Glass (reference pass) ================= */
:root {
  --ground: #020a1c; --card-solid: #0a1836; --line: rgba(140,180,255,.12); --ink: #EAF1FF; --muted: #A9BAE0;
  --gold: #6AAEFF; --gold-text: #8CC5FF; --gold-soft: rgba(90,160,255,.16); --on-gold: #021029; --violet: #7D8CFF;
  --grad: linear-gradient(120deg, #4C8DFF 0%, #6FE3FF 100%);
  --glass: rgba(110,165,255,.07); --glass-line: rgba(150,195,255,.19); --glass-blur: blur(26px) saturate(150%);
  --aur1: rgba(36,104,255,.46); --aur2: rgba(86,70,255,.22); --halo: rgba(88,150,255,.55); --orb: rgba(60,130,255,.20);
  --sheen: linear-gradient(155deg, rgba(70,130,255,.26) 0%, rgba(120,170,255,.07) 34%, rgba(255,255,255,.025) 100%);
}
:root[data-theme="light"] { --halo: transparent; --orb: transparent; --sheen: none; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] { --halo: transparent; --orb: transparent; --sheen: none; } }

body::before { background: radial-gradient(620px 460px at 4% -6%, var(--aur1), transparent 68%), radial-gradient(520px 420px at 104% 10%, var(--aur2), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(20,60,160,.18) 100%); }
/* glowing halo arc rising from the bottom, like the reference */
body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; left: 50%; bottom: -118vmax; width: 150vmax; height: 150vmax; margin-left: -75vmax; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--halo) 70%, white 30%); box-shadow: 0 0 70px 14px var(--halo), 0 0 180px 40px color-mix(in srgb, var(--halo) 40%, transparent), inset 0 0 120px 20px color-mix(in srgb, var(--halo) 55%, transparent);
  animation: halo 9s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .75; transform: translateY(0) scale(1); } 50% { opacity: 1; transform: translateY(-14px) scale(1.012); } }
html::before { content: ""; position: fixed; z-index: -1; pointer-events: none; width: 340px; height: 340px; border-radius: 50%; left: 55%; top: 22%; background: radial-gradient(circle, var(--orb), transparent 70%); filter: blur(10px); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-90px, -40px) scale(1); } to { transform: translate(110px, 160px) scale(1.25); } }

.card, .search, .errbox, .plan3 > div, .stats3 > div, .why, .metrics, .ftile, .fcard { background: var(--sheen), var(--glass); border: 1px solid var(--glass-line);
  box-shadow: 0 24px 50px -28px rgba(0,10,40,.9), inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.02); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.fcard { background: linear-gradient(150deg, color-mix(in srgb, var(--tc, #6AAEFF) 24%, transparent), rgba(255,255,255,.03) 60%), var(--glass); }
.bigbal { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, rgba(30,100,255,.62), transparent 58%), radial-gradient(90% 80% at 100% 100%, rgba(90,70,255,.28), transparent 60%), var(--glass); border-radius: 30px; }
.bigbal::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%); transform: translateX(-60%); animation: sheen 7s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-60%); } 38%, 100% { transform: translateX(60%); } }
.bigbal .hero-num { font-weight: 600; letter-spacing: -.04em; text-shadow: 0 0 36px rgba(110,170,255,.45); }
.seg, .seg.wide { background: rgba(4,14,40,.55); border: 1px solid var(--glass-line); }
.seg button[aria-pressed="true"], .tfs button[aria-pressed="true"] { background: linear-gradient(180deg, #2a62d8, #17408f); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px -10px rgba(60,130,255,.8); }
.chip[aria-pressed="true"], .chip.on { background: linear-gradient(180deg, #2a62d8, #17408f); color: #fff; border-color: rgba(150,195,255,.4); }
.btn.primary { background: var(--grad); box-shadow: 0 14px 34px -14px rgba(76,141,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.ftile, .fcard, .card, .row { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
@media (hover: hover) { .ftile:hover, .fcard:hover { transform: translateY(-4px); border-color: rgba(150,195,255,.4); box-shadow: 0 28px 60px -24px rgba(50,120,255,.65), inset 0 1px 0 rgba(255,255,255,.2); } }
.ftile:active, .fcard:active { transform: scale(.97); }
.favs .ftile:nth-child(odd) { animation: tileIn .5s both, bob 7s 1s ease-in-out infinite; animation-delay: calc(var(--i,0) * 70ms), calc(1s + var(--i,0) * 300ms); }
.favs .ftile:nth-child(even) { animation: tileIn .5s both, bob 8s 1.6s ease-in-out infinite reverse; animation-delay: calc(var(--i,0) * 70ms), calc(1s + var(--i,0) * 300ms); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.fng-arc { filter: drop-shadow(0 0 7px rgba(110,170,255,.55)); } .fng-needle line { filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.fngnum b { text-shadow: 0 0 28px currentColor; }
.dots i.on { background: var(--grad); box-shadow: 0 0 10px rgba(110,170,255,.7); }
#nav { background: color-mix(in srgb, #06142f 62%, transparent); border-color: rgba(150,195,255,.22); box-shadow: 0 26px 60px -22px rgba(0,8,40,.9), 0 0 0 1px rgba(255,255,255,.02), inset 0 1px 0 rgba(255,255,255,.16); }
.sheet { background: color-mix(in srgb, #071530 86%, transparent); border-color: rgba(150,195,255,.22); }
.coin { background: rgba(90,160,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { body::after, html::before, .bigbal::after, .favs .ftile { animation: none !important; } }

/* ================= Refraction pass: type, grain, neon line, pills ================= */
:root { --la: #8FE9FF; --lb: #7A8CFF; --bead: #EFFBFF; }
:root[data-theme="light"], :root[data-theme="system"] { }
:root[data-theme="light"] {
  --ground: #E9F1FF; --card-solid: #FFFFFF; --line: rgba(30,80,190,.12); --ink: #091330; --muted: #51628C;
  --gold: #1F6BFF; --gold-text: #1558E0; --gold-soft: rgba(31,107,255,.11); --on-gold: #FFFFFF;
  --grad: linear-gradient(120deg, #1F6BFF 0%, #14B8E6 100%);
  --glass: rgba(255,255,255,.55); --glass-line: rgba(40,100,220,.17); --aur1: rgba(60,140,255,.38); --aur2: rgba(150,120,255,.20);
  --halo: rgba(70,140,255,.34); --orb: rgba(90,160,255,.26); --sheen: linear-gradient(155deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.4) 100%);
  --la: #1F6BFF; --lb: #14B8E6; --bead: #FFFFFF; --scrim: rgba(10,25,70,.35); }
@media (prefers-color-scheme: light) { :root[data-theme="system"] {
  --ground: #E9F1FF; --card-solid: #FFFFFF; --line: rgba(30,80,190,.12); --ink: #091330; --muted: #51628C;
  --gold: #1F6BFF; --gold-text: #1558E0; --gold-soft: rgba(31,107,255,.11); --on-gold: #FFFFFF;
  --grad: linear-gradient(120deg, #1F6BFF 0%, #14B8E6 100%);
  --glass: rgba(255,255,255,.55); --glass-line: rgba(40,100,220,.17); --aur1: rgba(60,140,255,.38); --aur2: rgba(150,120,255,.20);
  --halo: rgba(70,140,255,.34); --orb: rgba(90,160,255,.26); --sheen: linear-gradient(155deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.4) 100%);
  --la: #1F6BFF; --lb: #14B8E6; --bead: #FFFFFF; --scrim: rgba(10,25,70,.35); } }

/* fine grain + faint blueprint grid */
html::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body::before { background-image: linear-gradient(rgba(130,180,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(130,180,255,.045) 1px, transparent 1px), radial-gradient(620px 460px at 4% -6%, var(--aur1), transparent 68%), radial-gradient(520px 420px at 104% 10%, var(--aur2), transparent 70%), linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--halo) 30%, transparent) 100%); background-size: 56px 56px, 56px 56px, auto, auto, auto; }

/* typography: big, light, two-tone */
.hdr .hi { font: 300 34px/40px var(--serif); letter-spacing: -.03em; } .hdr .eyebrow { letter-spacing: .02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.display { font: 300 40px/44px var(--serif); letter-spacing: -.035em; }
.bigbal .hero-num { font: 300 58px/62px var(--serif); letter-spacing: -.05em; }
.fngnum b { font-weight: 300; font-size: 52px; line-height: 54px; letter-spacing: -.04em; }
.sec h2 { font-weight: 600; letter-spacing: -.01em; }

/* neon equity line */
.nc-tabs { margin-top: 14px; } .nc-tabs button { font-size: 13px; padding: 8px 6px; }
.chartbox2 { position: relative; height: 150px; margin: 14px -6px 4px; touch-action: pan-y; cursor: crosshair; }
.nc { width: 100%; height: 100%; display: block; overflow: visible; }
.nc-grid { stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.nc-base { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-dasharray: 1 5; vector-effect: non-scaling-stroke; }
.nc-line, .nc-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ncDraw 1.5s .25s cubic-bezier(.3,.7,.2,1) forwards; }
.nc-line { stroke-width: 3.2; } .nc-glow { stroke-width: 11; opacity: .55; filter: blur(7px); }
@keyframes ncDraw { to { stroke-dashoffset: 0; } }
.nc-v { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .0; } .chartbox2:active .nc-v { opacity: 1; }
.bead { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; opacity: 0; animation: beadIn .5s 1.5s forwards;
  background: radial-gradient(circle at 35% 30%, #fff, var(--bead) 45%, var(--lb) 100%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lb) 28%, transparent), 0 0 22px 4px color-mix(in srgb, var(--lb) 70%, transparent); transition: left .08s linear, top .08s linear; }
.bead::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--lb); opacity: 0; animation: ping 2.6s 2s infinite; }
@keyframes beadIn { to { opacity: 1; } } @keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.nc-tip { position: absolute; top: -4px; z-index: 3; padding: 8px 12px; border-radius: 14px; pointer-events: none; display: flex; flex-direction: column; gap: 1px; white-space: nowrap;
  background: color-mix(in srgb, var(--card-solid) 78%, transparent); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 30px -12px rgba(0,10,50,.6); }
.nc-tip small { font-size: 11px; color: var(--gold-text); } .nc-tip b { font-size: 15px; } .nc-tip em { font-style: normal; font-size: 12px; font-weight: 600; }
.nc-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 0 24px; border: 1px dashed var(--glass-line); border-radius: 18px; }

/* pill rows with light icon tiles, capsule arrows */
.checkcta { border-radius: 999px; padding: 12px 14px 12px 12px; gap: 14px; align-items: center; }
.checkcta .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(160deg, #FFFFFF, #CFE3FF); color: #0A1A40; box-shadow: 0 8px 18px -8px rgba(60,130,255,.7), inset 0 1px 0 #fff; }
.checkcta b { font-weight: 600; font-size: 16px; } .checkcta small { color: var(--muted); }
.checkcta .go { margin-left: auto; width: 46px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #D6E7FF); color: #0A1A40; font-size: 20px; box-shadow: 0 6px 16px -8px rgba(60,130,255,.8); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.checkcta:hover .go { transform: translateX(4px); }
.prow { border-radius: 28px; }
.btn.ghost { border-radius: 999px; }
.btn.primary { border-radius: 999px; }
.edit { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--gold) 9%, transparent); width: fit-content; }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .nc-line, .nc-glow { animation-duration: .01s; } .bead { animation: none; opacity: 1; } .bead::after { display: none; } }
.nc-tip[hidden] { display: none; }
:root[data-theme="light"] .seg, :root[data-theme="light"] .seg.wide { background: rgba(255,255,255,.7); }
:root[data-theme="light"] .seg button { color: #3b4e7a; }
:root[data-theme="light"] #nav { background: rgba(255,255,255,.72); border-color: rgba(40,100,220,.2); box-shadow: 0 20px 50px -20px rgba(30,80,200,.35), inset 0 1px 0 #fff; }
:root[data-theme="light"] .sheet { background: rgba(250,252,255,.9); border-color: rgba(40,100,220,.2); }
:root[data-theme="light"] .coin { background: rgba(31,107,255,.1); }
:root[data-theme="light"] .nc-tip, :root[data-theme="light"] .btn.ghost, :root[data-theme="light"] .chip { background: rgba(255,255,255,.8); }
:root[data-theme="light"] .fcard { background: linear-gradient(150deg, color-mix(in srgb, var(--tc, #1F6BFF) 16%, #fff), rgba(255,255,255,.7) 65%); }
:root[data-theme="light"] .bigbal { background: radial-gradient(120% 90% at 0% 0%, rgba(40,110,255,.30), transparent 58%), radial-gradient(90% 80% at 100% 100%, rgba(140,110,255,.2), transparent 60%), rgba(255,255,255,.7); }
:root[data-theme="light"] .bigbal .hero-num { text-shadow: none; }
:root[data-theme="light"] html::after, :root[data-theme="light"]::after { opacity: .05; }
@media (prefers-color-scheme: light) {
:root[data-theme="system"] .seg, :root[data-theme="system"] .seg.wide { background: rgba(255,255,255,.7); }
:root[data-theme="system"] .seg button { color: #3b4e7a; }
:root[data-theme="system"] #nav { background: rgba(255,255,255,.72); border-color: rgba(40,100,220,.2); box-shadow: 0 20px 50px -20px rgba(30,80,200,.35), inset 0 1px 0 #fff; }
:root[data-theme="system"] .sheet { background: rgba(250,252,255,.9); border-color: rgba(40,100,220,.2); }
:root[data-theme="system"] .nc-tip, :root[data-theme="system"] .btn.ghost, :root[data-theme="system"] .chip { background: rgba(255,255,255,.8); }
:root[data-theme="system"] .fcard { background: linear-gradient(150deg, color-mix(in srgb, var(--tc, #1F6BFF) 16%, #fff), rgba(255,255,255,.7) 65%); }
:root[data-theme="system"] .bigbal { background: radial-gradient(120% 90% at 0% 0%, rgba(40,110,255,.30), transparent 58%), radial-gradient(90% 80% at 100% 100%, rgba(140,110,255,.2), transparent 60%), rgba(255,255,255,.7); }
:root[data-theme="system"] .bigbal .hero-num { text-shadow: none; } }
:root[data-theme="light"] .seg button[aria-pressed="true"], :root[data-theme="light"] .tfs button[aria-pressed="true"] { color: #fff; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] .seg button[aria-pressed="true"], :root[data-theme="system"] .tfs button[aria-pressed="true"] { color: #fff; } }

/* ================= Accounts, sign-in and passcode ================= */
body.locked #view, body.locked #nav, body.locked #sheet-root { visibility: hidden; }
.auth { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto; animation: authIn .5s cubic-bezier(.2,.8,.2,1); }
.auth.lock { background: color-mix(in srgb, var(--ground) 80%, transparent); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.a-card { position: relative; width: 100%; max-width: 400px; padding: 28px 22px 22px; border-radius: 32px; display: flex; flex-direction: column; gap: 12px; background: var(--sheen), var(--glass); border: 1px solid var(--glass-line);
  box-shadow: 0 40px 80px -30px rgba(0,10,50,.8), inset 0 1px 0 rgba(255,255,255,.18); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.a-card.wel { padding-top: 34px; }
.a-logo svg { width: 52px; height: 52px; filter: drop-shadow(0 8px 20px rgba(76,141,255,.6)); }
.a-big { margin: 14px 0 0; font: 300 46px/50px var(--serif); letter-spacing: -.045em; }
.a-h { margin: 6px 0 0; font: 300 30px/36px var(--serif); letter-spacing: -.035em; text-align: left; }
.a-sub { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 22px; }
.a-fine { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; text-align: center; }
.a-f { position: relative; display: block; }
.a-f input { width: 100%; height: 54px; border-radius: 18px; border: 1.5px solid var(--glass-line); background: color-mix(in srgb, var(--ground) 60%, transparent); padding: 0 48px 0 16px; font-size: 16px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.a-f input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.eye { position: absolute; right: 6px; top: 7px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); }
.strength { display: flex; gap: 6px; margin: -2px 2px 2px; } .strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.strength i.on.s1 { background: var(--loss); } .strength i.on.s2 { background: #ff9a4c; } .strength i.on.s3 { background: #f5c451; } .strength i.on.s4 { background: var(--gain); }
.a-err { min-height: 20px; color: var(--loss); font-size: 14px; line-height: 20px; } .a-err.shake, .pdots.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.a-switch { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.a-link { color: var(--gold-text); font-weight: 600; font-size: inherit; }
.a-back { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); }
.a-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-card form, form.a-card { padding-top: 66px; }
.a-card .btn.block { width: 100%; height: 54px; }
.a-card.pin { align-items: center; text-align: center; gap: 8px; padding-top: 30px; }
.a-card.pin .a-h { text-align: center; } .a-card.pin .a-sub { text-align: center; min-height: 22px; }
.a-av { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font: 600 26px/1 var(--serif); color: #fff; background: var(--grad); box-shadow: 0 14px 34px -12px rgba(76,141,255,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.pdots { display: flex; gap: 18px; margin: 14px 0 8px; } .pdots i { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid var(--muted); transition: all .2s cubic-bezier(.2,.8,.2,1); }
.pdots i.on { background: var(--grad); border-color: transparent; transform: scale(1.15); box-shadow: 0 0 14px rgba(110,170,255,.8); }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; margin: 8px 0; justify-content: center; }
.pk { width: 72px; height: 72px; border-radius: 50%; font: 300 28px/1 var(--serif); color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .15s, background .2s; }
.pk:active { transform: scale(.9); background: color-mix(in srgb, var(--gold) 28%, transparent); }
.a-foot { margin-top: 6px; min-height: 24px; font-size: 14px; color: var(--muted); }
@media (max-height: 640px) { .pad { gap: 8px 18px; } .pk { width: 60px; height: 60px; } .pad { grid-template-columns: repeat(3, 60px); } }
:root[data-theme="light"] .a-f input { background: rgba(255,255,255,.8); }
@media (prefers-color-scheme: light) { :root[data-theme="system"] .a-f input { background: rgba(255,255,255,.8); } }

/* ---- notifications ---- */
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.swrow span { display: flex; flex-direction: column; } .swrow b { font-size: 15px; } .swrow small { color: var(--muted); font-size: 12px; line-height: 17px; }
.swrow.sub { padding: 6px 0 12px; } .swrow.off { opacity: .4; pointer-events: none; } .field.mini { width: 110px; height: 40px; padding: 0 10px; font-size: 14px; }
.sw { flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .3s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sw[aria-checked="true"] { background: var(--grad); box-shadow: 0 0 16px -2px rgba(90,160,255,.7); } .sw[aria-checked="true"] i { transform: translateX(20px); }
.tgok { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; } .tgok b { color: var(--gain); } .tgok small { color: var(--muted); }
code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--glass); }
.pickrow { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 18px; text-align: left; background: var(--sheen), var(--glass); border: 1px solid var(--glass-line); transition: transform .2s, border-color .2s; }
.pickrow:active { transform: scale(.98); } .pickrow:hover { border-color: var(--gold); }
.pickrow span { display: flex; flex-direction: column; } .pickrow small { color: var(--muted); font-size: 12px; } .pickrow .pv { text-align: right; }
.pickrow small.up { color: var(--gain); } .pickrow small.down { color: var(--loss); }

/* ---- favourites: vertical list ---- */
.favlist { display: flex; flex-direction: column; gap: 10px; }
.frow { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; color: inherit; text-decoration: none; background: var(--sheen), var(--glass); border: 1px solid var(--glass-line);
  box-shadow: 0 18px 40px -28px rgba(0,10,40,.9), inset 0 1px 0 rgba(255,255,255,.14); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  animation: rowIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.frow:active { transform: scale(.985); } @media (hover: hover) { .frow:hover { transform: translateY(-2px); border-color: rgba(150,195,255,.4); } }
.frow .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; } .frow .nm b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .frow .nm small { color: var(--muted); font-size: 12px; }
.frow .fs { flex: none; width: 72px; height: 30px; } .frow .fs svg { width: 72px; height: 30px; display: block; }
.frow .px { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 84px; } .frow .px b { font-size: 15px; } .frow .px small { font-size: 12px; font-weight: 600; }
.frow .px small.up { color: var(--gain); } .frow .px small.down { color: var(--loss); }
.frow .x { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--loss-soft); color: var(--loss); font-size: 18px; line-height: 28px; }
.frow.addf { border-style: dashed; color: var(--muted); box-shadow: none; } .frow.addf .coin { background: none; border: 1.5px dashed var(--muted); color: var(--muted); }
@media (max-width: 360px) { .frow .fs { display: none; } }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .frow { animation: none; } }
.frow.addf { min-height: 0; justify-content: flex-start; align-items: center; }

/* ---- portfolio ---- */
.bigbal.tappable { cursor: pointer; } .bigbal.tappable:active { transform: scale(.99); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-text); font-weight: 600; font-size: 14px; text-decoration: none; } .back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pfhead { margin-top: 6px; }
.mvs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mv { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; color: inherit; text-decoration: none; background: var(--sheen), var(--glass); border: 1px solid var(--glass-line); flex-wrap: wrap; }
.mv > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; } .mv small { color: var(--muted); font-size: 11px; } .mv b { font-size: 15px; }
.mv .mvn { display: flex; flex-direction: column; width: 100%; } .mv.up .mvn b { color: var(--gain); } .mv.down .mvn b { color: var(--loss); }
.mv .coin { width: 34px; height: 34px; }
.alloc { padding: 16px; } .abar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; } .abar i { display: block; min-width: 3px; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.alegend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); } .alegend span { display: inline-flex; align-items: center; gap: 6px; } .alegend i { width: 9px; height: 9px; border-radius: 50%; }
.pfrow { margin-top: 10px; } .pfrow .nm { gap: 2px; } .pfrow .px small { line-height: 16px; }
.cbar { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; } .cbar i { display: block; height: 100%; border-radius: 2px; } .cbar i.up { background: var(--gain); } .cbar i.down { background: var(--loss); } .cbar i.flat { background: var(--muted); }
.sec .seg button { padding: 4px 12px; font-size: 12px; }

/* ---- tutorial ---- */
.tart { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle at 30% 25%, rgba(92,225,255,.28), rgba(139,123,255,.16) 60%, transparent 75%), var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 0 60px rgba(92,225,255,.18); animation: tpop .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tpop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.istep { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.irow { display: flex; justify-content: space-between; min-height: 40px; } .irow .skip { margin: 6px 0 0; }

.instcard { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; } .instcard > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .instcard small { color: var(--muted); font-size: 12px; }
.holdrow { gap: 8px; } .holdrow .nm { flex: 1; min-width: 0; } .holdrow .nm b { font-size: 14px; } .holdrow input.field { width: 84px; min-width: 0; flex: 0 0 84px; padding-left: 10px; padding-right: 10px; text-align: right; }
.btn.logout { background: transparent; color: var(--loss); border: 1px solid color-mix(in srgb, var(--loss) 45%, transparent); box-shadow: none; }

/* ================= Welcome (landing) page: always dark ================= */
.auth.land { display: block; padding: 0; background: #04060f; color: #F2F5FF; --ink: #F2F5FF; --muted: #8A93B2; --line: rgba(255,255,255,.10); --ground: #04060f; --card: rgba(255,255,255,.06); --on-gold: #05070F; --gold-text: #5CE1FF; scroll-behavior: smooth; overscroll-behavior: contain; overflow-x: hidden; }
.auth.land::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 85% 0%, rgba(139,124,255,.18), transparent 70%), radial-gradient(50% 40% at 0% 35%, rgba(92,225,255,.10), transparent 70%); }
.auth.land::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.auth.land .btn.ghost { background: rgba(255,255,255,.07); color: #F2F5FF; border: 1px solid rgba(255,255,255,.16); }
.lp { position: relative; max-width: 560px; margin: 0 auto; padding: 0 20px 40px; z-index: 1; }
.lp-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 0 12px; }
.lp-bar::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(#04060f 55%, transparent); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--sans, Manrope), sans-serif; letter-spacing: .3px; } .lp-brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(92,225,255,.8); }
.lp-nav { display: none; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 24px rgba(92,225,255,.12); }
.lp-nav button { padding: 7px 16px; border-radius: 999px; border: 0; background: none; color: #cdd8ff; font: 600 13px var(--sans, Manrope), sans-serif; cursor: pointer; } .lp-nav button:hover { background: rgba(255,255,255,.09); }
.lp-login { padding: 8px 16px; border-radius: 999px; font: 600 14px var(--sans, Manrope), sans-serif; color: #fff; background: linear-gradient(120deg, #3b6bff, #4cc8ff); border: 0; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(76,160,255,.9); }

.lp-hero { position: relative; padding-top: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
#lp-stars { position: absolute; z-index: -2; left: 50%; top: -70px; width: 100vw; height: 760px; transform: translateX(-50%); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.lp-beam { position: absolute; z-index: -1; left: 50%; top: -70px; width: 0; height: 520px; pointer-events: none; }
.lp-beam i { position: absolute; left: -170px; width: 340px; height: 100%; background: radial-gradient(55% 100% at 50% 100%, rgba(150,220,255,.5), rgba(110,190,255,.16) 55%, transparent 80%); filter: blur(14px); animation: lpBeam 5s ease-in-out infinite; }
.lp-beam b { position: absolute; left: -1px; width: 2px; height: 58%; background: linear-gradient(180deg, transparent, rgba(210,240,255,.55) 45%, transparent); opacity: .5; animation: lpBeam 5s ease-in-out infinite; }
@keyframes lpBeam { 50% { opacity: .55; } }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #cfe9ff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } .lp-pill i { width: 7px; height: 7px; border-radius: 50%; background: #5CE1FF; box-shadow: 0 0 10px #5CE1FF; animation: lpPulse 2s infinite; }
@keyframes lpPulse { 50% { opacity: .35; transform: scale(.7); } }
.lp-h1 { margin: 22px 0 0; font: 300 clamp(50px, 14vw, 92px)/.98 var(--serif, Manrope), sans-serif; letter-spacing: -.05em; }
.metal { background: linear-gradient(180deg, #ffffff 20%, #a9bdf2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lp-sub { margin: 18px 0 0; max-width: 440px; color: #aab3d4; font-size: 17px; line-height: 26px; }
.lp-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; } .lp-cta .btn { min-width: 150px; }
.lp-note { margin: 12px 0 0; color: #7d88ad; font-size: 13px; }

.lp-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-top: 10px; }
.lp-horizon { position: absolute; left: 50%; bottom: 8%; width: 150%; height: 46%; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(80% 100% at 50% 100%, rgba(76,150,255,.55), rgba(76,150,255,.12) 55%, transparent 75%); border-top: 1px solid rgba(160,220,255,.55); box-shadow: 0 -10px 40px -6px rgba(76,170,255,.55); -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); pointer-events: none; }
#lp-orb { position: relative; width: 100%; height: 100%; display: block; }
.lp-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 8px; border-radius: 14px; font-size: 12px; font-weight: 600; color: #e6f3ff; background: rgba(12,20,44,.62); border: 1px solid rgba(130,200,255,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: lpFloat 6s ease-in-out infinite; box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); }
.lp-tag .sp { width: 38px; height: 14px; } .sp.up { color: #2fe3a0; } .sp.dn { color: #ff5c7a; }
.cd { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #05070F; background: var(--grad); }
.lp-tag.t1 { left: 0; top: 18%; } .lp-tag.t2 { right: 0; top: 30%; animation-delay: -2s; } .lp-tag.t3 { left: 2%; bottom: 20%; animation-delay: -4s; } .lp-tag.t4 { right: 4%; bottom: 12%; animation-delay: -1s; }
@keyframes lpFloat { 50% { transform: translateY(-10px); } }

.lp-sec { padding: 64px 0 0; }
.lp-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #5CE1FF; margin-bottom: 10px; }
.lp-h2 { margin: 0; font: 300 clamp(30px, 8.5vw, 46px)/1.1 var(--serif, Manrope), sans-serif; letter-spacing: -.035em; }
.lp-p { margin: 14px 0 0; color: #aab3d4; font-size: 16px; line-height: 25px; }
#lp-app { text-align: center; } #lp-app .lp-p { max-width: 460px; margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); } .reveal.in { opacity: 1; transform: none; }

/* 3D phone */
.lp-3d { --rx: 8deg; --ry: -16deg; position: relative; height: 560px; margin: 26px auto 0; max-width: 520px; perspective: 1100px; }
.lp-3d::before { content: ""; position: absolute; left: 50%; top: 52%; width: 440px; height: 440px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(60,120,255,.4), rgba(92,225,255,.12) 45%, transparent 68%); filter: blur(10px); }
.ph { position: absolute; left: 50%; top: 10px; width: 262px; height: 530px; margin-left: -131px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); border-radius: 42px; padding: 10px; text-align: left; background: linear-gradient(145deg, #1b2750, #0a1022 55%); border: 1px solid rgba(150,200,255,.35); box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.6), 0 0 70px -10px rgba(76,150,255,.5), inset 0 1px 0 rgba(255,255,255,.28); }
.ph-notch { position: absolute; left: 50%; top: 16px; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #04060f; z-index: 2; }
.ph-in { position: relative; height: 100%; border-radius: 33px; overflow: hidden; padding: 46px 14px 14px; background: radial-gradient(120% 60% at 80% 0%, rgba(92,110,255,.35), transparent 60%), #070b1a; }
.ph-hi { display: flex; flex-direction: column; margin-bottom: 14px; } .ph-hi small { color: #7d88ad; font-size: 10px; } .ph-hi b { font: 300 20px/1.15 var(--serif, Manrope), sans-serif; }
.ph-card { padding: 14px; border-radius: 22px; background: linear-gradient(135deg, rgba(60,110,255,.55), rgba(110,90,255,.35)); border: 1px solid rgba(160,200,255,.3); }
.ph-card small { font-size: 10px; color: #bcd0ff; } .ph-num { font: 300 33px/1.1 var(--serif, Manrope), sans-serif; letter-spacing: -.03em; margin: 4px 0 8px; }
.ph-pill { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 10px; color: #2fe3a0; background: rgba(47,227,160,.14); }
.ph-bar { display: flex; gap: 3px; height: 8px; margin: 14px 2px; } .ph-bar i { display: block; border-radius: 4px; }
.ph-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-top: 8px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.ph-row > span:not(.cd) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .ph-row b { font-size: 12px; } .ph-row small { font-size: 10px; color: #7d88ad; white-space: nowrap; } .ph-row .sp { width: 40px; height: 14px; } .ph-row em { font-style: normal; font-size: 11px; font-weight: 700; } .ph-row .g { color: #2fe3a0; } .ph-row .r { color: #ff5c7a; }
.fl { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; max-width: 230px; padding: 11px 13px; border-radius: 18px; text-align: left; background: rgba(14,22,50,.72); border: 1px solid rgba(140,205,255,.38); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 50px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.14); will-change: transform; }
.fl b { display: block; font-size: 13px; } .fl small { display: block; font-size: 11px; line-height: 15px; color: #9fb0dc; margin-top: 1px; }
.fl-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #5CE1FF; background: rgba(92,225,255,.14); } .fl-ico svg { width: 18px; height: 18px; } .fl-ico.ok { color: #2fe3a0; background: rgba(47,227,160,.14); }
.fl { max-width: 196px; padding: 9px 11px; } .fl small { font-size: 10px; line-height: 14px; } .fl b { font-size: 12px; } .fl-ico { width: 28px; height: 28px; } .fl.f1 { left: -10px; top: 0; } .fl.f2 { right: -10px; top: 300px; } .fl.f3 { left: -10px; bottom: 6px; }
.lp-illus-note { margin: 8px 0 0; font-size: 11px; color: #5d6c9c; }

.lp-works { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; padding: 22px 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.lp-works span { width: 100%; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6c789f; } .lp-works b { font: 700 17px var(--sans, Manrope), sans-serif; color: #7e8bb5; letter-spacing: .02em; }

/* bento */
.lp-bento { display: grid; gap: 14px; margin-top: 24px; }
.bx { position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.11); opacity: 0; transform: translateY(20px); }
.reveal.in .bx { animation: lpUp .8s cubic-bezier(.2,.8,.2,1) forwards; } .reveal.in .bx:nth-child(2) { animation-delay: .08s; } .reveal.in .bx:nth-child(3) { animation-delay: .16s; } .reveal.in .bx:nth-child(4) { animation-delay: .24s; } .reveal.in .bx:nth-child(5) { animation-delay: .32s; } .reveal.in .bx:nth-child(6) { animation-delay: .4s; }
@keyframes lpUp { to { opacity: 1; transform: none; } }
.bx-t b { display: block; font-size: 18px; } .bx-t p { margin: 6px 0 16px; color: #98a3c8; font-size: 14px; line-height: 21px; }
.lp-chart { position: relative; padding: 8px 4px 0; } .lp-chart svg { width: 100%; height: 150px; display: block; }
.lp-line { stroke-dasharray: 1; stroke-dashoffset: 1; } .lp-area, .lp-dot, .lp-tip { opacity: 0; }
.reveal.in .lp-line { animation: lpDraw 2.2s .3s cubic-bezier(.4,0,.2,1) forwards; } .reveal.in .lp-area { animation: lpFade 1s 1.7s forwards; } .reveal.in .lp-dot { animation: lpFade .5s 2.3s forwards; } .reveal.in .lp-tip { animation: lpTip .7s 2.5s forwards; }
@keyframes lpDraw { to { stroke-dashoffset: 0; } } @keyframes lpFade { to { opacity: 1; } } @keyframes lpTip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-dot circle:first-child { transform-origin: 282px 24px; animation: lpPulse 2s 2.4s infinite; }
.lp-tip { position: absolute; left: 8px; top: 6px; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 13px; font-size: 12px; background: rgba(12,20,44,.85); border: 1px solid rgba(120,200,255,.35); } .lp-tip em { font-style: normal; color: #8fa0cc; }

.scan-h { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8fdcff; margin-bottom: 12px; } .scan-bar { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; } .scan-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--grad); border-radius: 2px; animation: lpScan 1.8s linear infinite; } @keyframes lpScan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.scan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .scan li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px; font-size: 13px; background: rgba(255,255,255,.04); opacity: 0; transform: translateX(-10px); }
.reveal.in .scan li { animation: lpIn .5s calc(.6s + var(--k) * .45s) forwards; } @keyframes lpIn { to { opacity: 1; transform: none; } }
.scan li em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; } .si { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; } .si svg { width: 14px; height: 14px; } .si.ok { color: #2fe3a0; background: rgba(47,227,160,.15); } .si.wn { color: #ffb84d; background: rgba(255,184,77,.15); } .scan li:has(.ok) em { color: #2fe3a0; } .scan li:has(.wn) em { color: #ffb84d; }
.scan-r { margin-top: 12px; font-size: 13px; color: #98a3c8; opacity: 0; } .reveal.in .scan-r { animation: lpFade .5s 2.6s forwards; } .scan-r b { color: #ffb84d; }

.don { display: flex; align-items: center; gap: 18px; } .don svg { width: 112px; height: 112px; flex: none; }
.ds { stroke-linecap: butt; opacity: 0; } .reveal.in .ds { animation: lpFade .6s forwards; } .reveal.in .ds:nth-of-type(3) { animation-delay: .3s; } .reveal.in .ds:nth-of-type(4) { animation-delay: .5s; } .reveal.in .ds:nth-of-type(5) { animation-delay: .7s; }
.don-l { display: grid; gap: 8px; font-size: 13px; color: #b6c2e6; } .don-l span { display: flex; align-items: center; gap: 8px; } .don-l i { width: 9px; height: 9px; border-radius: 50%; }

.tg { padding: 14px; border-radius: 18px; background: rgba(8,14,34,.7); border: 1px solid rgba(255,255,255,.08); min-height: 120px; position: relative; }
.tg-dots { display: flex; gap: 5px; padding: 8px 4px; } .tg-dots i { width: 7px; height: 7px; border-radius: 50%; background: #5d7bd1; animation: lpDot 1s infinite; } .tg-dots i:nth-child(2) { animation-delay: .15s; } .tg-dots i:nth-child(3) { animation-delay: .3s; } @keyframes lpDot { 50% { transform: translateY(-4px); opacity: .5; } }
.reveal.in .tg-dots { animation: lpGone .3s 1.4s forwards; } @keyframes lpGone { to { opacity: 0; height: 0; padding: 0; } }
.tg-msg { display: none; flex-direction: column; gap: 4px; } .reveal.in .tg-msg { display: flex; opacity: 0; animation: lpFade .5s 1.5s forwards; } .tg-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #5CE1FF; } .tg-h svg { width: 14px; height: 14px; } .tg-msg b { font-size: 14px; } .tg-msg small { font-size: 12px; line-height: 18px; color: #9fb0dc; }

.tk { display: grid; gap: 9px; } .tk-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: rgba(255,255,255,.06); } .tk-seg span { text-align: center; padding: 7px; font-size: 13px; font-weight: 600; border-radius: 10px; color: #8a97c2; } .tk-seg .on { color: #05070F; background: var(--grad); }
.tk-f { padding: 9px 12px; border-radius: 13px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); } .tk-f small { display: block; font-size: 10px; color: #7d88ad; } .tk-f b { font-size: 14px; } .tk-f.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .tk-f.two b:first-child { color: #2fe3a0; }
.tk-b { text-align: center; padding: 11px; border-radius: 14px; font-size: 14px; font-weight: 700; color: #05070F; background: var(--grad); position: relative; overflow: hidden; } .tk-b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: lpShine 3.2s 1s infinite; } @keyframes lpShine { to { transform: translateX(120%); } }
.tk-fee { text-align: center; color: #6c789f; font-size: 11px; }

.hub { position: relative; height: 130px; } .hub svg { width: 100%; height: 100%; } .hub-p { animation: lpPulse 3s infinite; transform-origin: 160px 60px; }
.hx { position: absolute; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #cfe9ff; background: rgba(12,20,44,.85); border: 1px solid rgba(130,200,255,.35); transform: translate(-50%, -50%); } .hx.h1 { left: 12.5%; top: 20%; } .hx.h2 { left: 12.5%; top: 80%; } .hx.h3 { left: 87.5%; top: 20%; } .hx.h4 { left: 87.5%; top: 80%; }

.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; } .lp-stats div { padding: 18px 6px; border-radius: 22px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); }
.lp-stats b { display: block; font: 300 clamp(34px, 10vw, 52px)/1 var(--serif, Manrope), sans-serif; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .lp-stats span { display: block; margin-top: 8px; font-size: 12px; line-height: 16px; color: #8a97c2; }
.lp-honest { padding: 28px 22px; border-radius: 30px; background: radial-gradient(90% 120% at 0% 0%, rgba(92,225,255,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); }
.lp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; } .lp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; color: #05070F; background: var(--grad); box-shadow: 0 0 22px rgba(92,225,255,.45); }
.lp-steps b { display: block; font-size: 16px; } .lp-steps p { margin: 3px 0 0; color: #98a3c8; font-size: 14px; line-height: 21px; }
.lp-final { position: relative; text-align: center; padding-bottom: 8px; isolation: isolate; } .lp-final .lp-cta { margin-top: 24px; } .lp-glow { position: absolute; z-index: -1; left: 50%; top: 20px; width: 520px; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(76,150,255,.45), transparent); filter: blur(20px); }
.lp-link { margin-top: 14px; background: none; border: 0; color: #8fdcff; font: 600 14px var(--sans, Manrope), sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lp-foot { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; color: #6c789f; font-size: 12px; line-height: 19px; }

@media (min-width: 760px) {
  .lp { max-width: 1040px; } .lp-nav { display: flex; } .lp-hero { padding-top: 44px; } .lp-sec { padding-top: 96px; }
  .lp-bento { grid-template-columns: repeat(6, 1fr); } .bx { grid-column: span 2; } .bx.wide { grid-column: span 4; } .bx:nth-child(1) { grid-column: span 4; } .bx:nth-child(2) { grid-column: span 2; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); } .lp-steps li { flex-direction: column; }
  .lp-3d { height: 640px; max-width: 760px; } .ph { transform-origin: center; } .fl { max-width: 230px; padding: 11px 13px; } .fl small { font-size: 11px; line-height: 15px; } .fl b { font-size: 13px; } .fl-ico { width: 34px; height: 34px; } .fl.f1 { left: 2%; top: 110px; } .fl.f2 { right: 0; top: 280px; } .fl.f3 { left: 8%; bottom: 60px; }
  .lp-h1 { font-size: 104px; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .reveal, .bx, .lp-line, .lp-area, .lp-dot, .lp-tip, .scan li, .scan-r, .ds, .tg-msg { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; } .tg-dots { display: none; } .tg-msg { display: flex !important; } .lp-tag, .lp-pill i, .lp-beam i, .lp-beam b { animation: none; } }

/* ================= v36: cinematic pass for the main app (same language as the welcome page) ================= */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 85% -5%, rgba(120,100,255,.22), transparent 70%), radial-gradient(60% 45% at -10% 30%, rgba(60,170,255,.14), transparent 70%), radial-gradient(50% 40% at 50% 110%, rgba(60,120,255,.18), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite alternate; }
@keyframes auroraDrift { to { transform: translate3d(0, -14px, 0) scale(1.04); opacity: .85; } }
body::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
#app { position: relative; z-index: 2; }
:root[data-theme="light"] body::before { opacity: .5; } :root[data-theme="light"] body::after { opacity: .03; }

.display, .hi { background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, #7aa7ff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hi .grad-text { -webkit-text-fill-color: transparent; }

.bigbal { background: radial-gradient(60% 55% at 50% -12%, rgba(160,225,255,.42), transparent 70%), radial-gradient(120% 90% at 0% 0%, rgba(30,100,255,.62), transparent 58%), radial-gradient(90% 80% at 100% 100%, rgba(90,70,255,.30), transparent 60%), var(--glass);
  box-shadow: 0 0 0 1px rgba(130,200,255,.28), 0 36px 80px -34px rgba(50,110,255,.85), 0 0 70px -24px rgba(92,225,255,.45), inset 0 1px 0 rgba(255,255,255,.22);
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .18s ease-out; will-change: transform; }
.bigbal .hero-num { text-shadow: 0 0 40px rgba(120,190,255,.6); }
.card, .frow, .news-card { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.frow:hover, .card.prow:hover { transform: translateY(-2px); border-color: rgba(120,200,255,.4); box-shadow: 0 18px 40px -22px rgba(60,140,255,.7); }
#nav { box-shadow: 0 18px 50px -12px rgba(0,0,0,.7), 0 0 44px -10px rgba(92,225,255,.4), inset 0 1px 0 rgba(255,255,255,.18); }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { body::before { animation: none; } .bigbal { transform: none !important; } }

/* ===== v39: settings sheet, grouped like a proper profile page ===== */
.sp-head { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #3b82f6) 22%, transparent), transparent 70%), var(--card); border: 1px solid var(--glass-line); }
.sp-av { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--sans, inherit); color: #fff; background: linear-gradient(135deg, #2f7bff, #8b5cf6); box-shadow: 0 8px 22px -8px rgba(60,120,255,.8); }
.sp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-who .field { padding: 6px 10px; font-weight: 700; font-size: 18px; background: transparent; border-color: transparent; }
.sp-who .field:focus { background: var(--card); border-color: var(--glass-line); }
.sp-who small { padding-left: 10px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #2f7bff; background: rgba(47,123,255,.14); }
.sheet .sp-group { margin-top: 20px; }
.sp-label { margin: 0 6px 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sp-card { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--glass-line); }
.sp-card > * + * { border-top: 1px solid var(--line); }
.sp-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; text-align: left; background: transparent; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; }
.sp-row:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sp-row i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #3b82f6; background: rgba(59,130,246,.14); }
.sp-row i svg { width: 19px; height: 19px; }
.sp-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-row b { font-weight: 600; font-size: 15.5px; }
.sp-row small { color: var(--muted); font-size: 13px; line-height: 18px; }
.sp-row em { flex: none; font-style: normal; font-size: 22px; color: var(--muted); }
.sp-row.danger b, .sp-row.danger i { color: var(--loss); } .sp-row.danger i { background: color-mix(in srgb, var(--loss) 14%, transparent); }
.sp-pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sp-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.sp-note { font-size: 13px; line-height: 19px; color: var(--muted); margin: 0; }
.sp-foot { margin: 18px 6px 0; font-size: 12.5px; line-height: 18px; color: var(--muted); text-align: center; }
.sheet { background: color-mix(in srgb, var(--ground) 95%, transparent); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
:root[data-theme="dark"] .sheet { background: rgba(7,19,44,.96); }

/* ===== v41: news, magazine layout (hero story + thumbnail list) ===== */
#n-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 14px calc(var(--pad) * -1) 4px; padding: 2px var(--pad) 8px; scrollbar-width: none; }
#n-chips::-webkit-scrollbar { display: none; }
#n-chips .chip { flex: none; }
.nhero { position: relative; display: block; margin-top: 12px; height: 232px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate;
  background: radial-gradient(90% 90% at 15% 0%, color-mix(in srgb, var(--tc) 55%, transparent), transparent 70%), linear-gradient(160deg, #0d2350, #07122b); box-shadow: 0 24px 50px -28px rgba(30,100,255,.7), 0 0 0 1px rgba(150,195,255,.2); }
.nhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,10,28,.05) 25%, rgba(4,10,28,.88)); }
.nh-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.nh-in b { font: 700 20px/26px var(--sans); text-shadow: 0 2px 14px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-in small { font-size: 12.5px; color: rgba(255,255,255,.78); }
.nh-tag { align-self: flex-start; font: 700 10.5px/14px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 75%, #000); color: #fff; font-style: normal; backdrop-filter: blur(6px); }
.nlist { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.nrow { display: flex; gap: 14px; align-items: stretch; padding: 12px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--card); text-decoration: none; color: var(--ink); }
.nth { position: relative; flex: none; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(100% 100% at 20% 0%, color-mix(in srgb, var(--tc) 60%, transparent), transparent 75%), linear-gradient(160deg, #123066, #08152f); }
.nth i { font: 700 28px var(--sans); font-style: normal; color: rgba(255,255,255,.85); }
.nth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nbody .ntopic { font: 700 10.5px/14px var(--sans); letter-spacing: .07em; text-transform: uppercase; font-style: normal; }
.nbody > b { font: 600 15px/20px var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nbody .nmeta { margin-top: auto; }
.nbody .nmeta em { padding: 1px 7px; }
.chip[aria-pressed="true"], .chip.on, :root[data-theme="light"] .chip[aria-pressed="true"], :root[data-theme="system"] .chip[aria-pressed="true"] { background: linear-gradient(180deg, #2f7bff, #1b4fc4) !important; color: #fff !important; border-color: transparent !important; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-motion="off"] .bigbal { transform: none !important; }
:root[data-motion="off"] .reveal, :root[data-motion="off"] .rise { opacity: 1 !important; transform: none !important; }
.why-more { margin-top: 18px; }
.why-more[open] > summary { margin-bottom: 8px; }
.a-legal { margin-top: 12px; font-size: 12.5px; line-height: 18px; color: var(--muted); text-align: center; }
.a-legal a { color: var(--gold-text); }
.holdrow.inv { flex-wrap: wrap; row-gap: 10px; }
.holdrow.inv .nm { flex: 1 1 100%; }
.holdrow.inv .chip { flex: 1; text-align: center; }

/* ===== v46: Home as a desktop dashboard (phones keep the single column) ===== */
.d-kpis { display: none; }
.dash > div { min-width: 0; }
.kpi .up { color: var(--gain); } .kpi .down { color: var(--loss); } .kpi i { font-style: normal; }
@media (min-width: 1100px) {
  #view:has(.dash) { max-width: 1480px; padding-left: 204px; padding-right: 48px; }
  .dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px 26px; align-items: start;
    grid-template-areas: "head head" "kpis kpis" "bal favs" "bal check" "news mkt"; }
  .d-head { grid-area: head; } .d-kpis { grid-area: kpis; } .d-bal { grid-area: bal; } .d-favs { grid-area: favs; } .d-check { grid-area: check; } .d-news { grid-area: news; } .d-mkt { grid-area: mkt; }
  .d-head .hdr { align-items: center; }
  .d-head .hi { font-size: 40px; line-height: 46px; }
  .d-head .hi br { display: none; } .d-head .hi .grad-text { margin-left: .25em; }
  .d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 18px; border-radius: 26px; border: 1px solid var(--glass-line);
    background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--k, #4b8dff) 30%, transparent), transparent 62%), var(--card);
    box-shadow: 0 26px 50px -34px color-mix(in srgb, var(--k, #4b8dff) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
  .kpi:hover { transform: translateY(-3px); box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--k, #4b8dff) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.14); }
  .kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--k, #4b8dff) 55%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
  .kpi small { font: 700 11px/14px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
  .kpi b { font: 500 34px/40px var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .kpi b em { font: 700 14px var(--sans); font-style: normal; color: var(--muted); letter-spacing: 0; }
  .kpi > span { font: 600 13px/18px var(--sans); color: var(--muted); }
  .d-bal .bigbal { min-height: 360px; }
  .d-bal .chartbox2 { height: 200px; }
  .d-bal .hero-num { font-size: 64px; line-height: 70px; }
  .d-favs .sec:first-child { margin-top: 0; } .d-news .sec:first-child, .d-mkt .sec:first-child { margin-top: 0; }
  .d-news .flash { margin: 0; }
  .d-mkt .fngcard { margin-top: 0; }
}
@media (min-width: 1500px) { .dash { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); } .kpi b { font-size: 38px; line-height: 44px; } }
@media (min-width: 1100px) {
  .dash { grid-template-rows: auto auto auto 1fr auto; }
  .d-bal { grid-row: 3 / 5; } .d-check { align-self: start; }
  .d-news .flash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; overflow: visible; padding: 0; }
  .d-news .fcard { width: auto; min-height: 150px; }
  .d-news .dots { display: none; }
}

/* ===== v47: dashboard motion and hover ===== */
@keyframes kpiIn { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); } }
@keyframes kpiGlow { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: .75; transform: scale(1.18); } }
@keyframes kpiSheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
.kpi, .fcard, .frow { position: relative; --mx: 50%; --my: 50%; }
.kpi::before, .fcard::before, .frow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,255,255,.16), transparent 62%); z-index: 0; }
.kpi:hover::before, .fcard:hover::before, .frow:hover::before { opacity: 1; }
@media (min-width: 1100px) {
  .d-kpis:not(.settled) .kpi { animation: kpiIn .75s cubic-bezier(.2,.8,.2,1) both; }
  .d-kpis:not(.settled) .kpi:nth-child(2) { animation-delay: .09s; } .d-kpis:not(.settled) .kpi:nth-child(3) { animation-delay: .18s; } .d-kpis:not(.settled) .kpi:nth-child(4) { animation-delay: .27s; }
  .kpi, .dash .fcard { transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease-out, box-shadow .3s, border-color .3s; will-change: transform; }
  .dash .kpi:hover, .dash .fcard:hover { --lift: -5px; border-color: color-mix(in srgb, var(--k, #6aa7ff) 60%, var(--glass-line)); }
  .kpi::after { animation: kpiGlow 5s ease-in-out infinite; }
  .kpi.k3::after { animation-duration: 3.2s; }
  .kpi:hover::after { opacity: .9; }
  .kpi > * { position: relative; z-index: 1; }
  .kpi small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--k, #4b8dff); box-shadow: 0 0 10px var(--k, #4b8dff); vertical-align: 1px; }
  .dash .frow { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s, background .25s; }
  .dash .frow:hover { transform: translateX(6px); border-color: rgba(120,200,255,.5); box-shadow: 0 16px 36px -22px rgba(60,140,255,.8); }
  .d-check .checkcta { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
  .d-check .checkcta:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(60,160,255,.8); }
  .d-bal .bigbal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); animation: kpiSheen 7s ease-in-out 1.2s infinite; }
}

/* ===== v48: contrast pass ===== */
:root { --fng-o: #ff9a5c; --fng-y: #f5b301; --fng-g: #9be15d; }
:root[data-theme="light"] { --fng-o: #B84A0B; --fng-y: #8F6300; --fng-g: #3C7A0E; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] { --fng-o: #B84A0B; --fng-y: #8F6300; --fng-g: #3C7A0E; } }
/* text that sits on the bright blue balance card and on the coloured KPI tiles */
.bigbal { --muted: #D3DFF7; }
.bigbal .eyebrow, .bigbal .meta, .bigbal .empty { color: #D3DFF7; }
.bigbal .edit { color: #fff; }
:root[data-theme="dark"] .kpi small, :root:not([data-theme]) .kpi small { color: #C2CFEC; }
.kpi > span { color: color-mix(in srgb, var(--ink) 78%, var(--ground)); }
:root[data-theme="light"] .bigbal { --muted: #34436E; } :root[data-theme="light"] .bigbal .eyebrow, :root[data-theme="light"] .bigbal .meta, :root[data-theme="light"] .bigbal .empty { color: #34436E; } :root[data-theme="light"] .bigbal .edit { color: var(--gold-text); }
:root[data-theme="light"] .fk, :root[data-theme="system"] .fk { color: color-mix(in srgb, var(--tc, #2a5bd7) 40%, #0b1020); }
:root[data-theme="light"] .pill.up, :root[data-theme="light"] .pill.down { font-weight: 700; }
.fngscale span, .fngmeta small, .pcell small, .sub, .fine, .nmeta small, .sp-sub, .sp-note, .frow small, .nh-in small { color: color-mix(in srgb, var(--ink) 74%, var(--ground)); }
:root[data-theme="light"] .tag, .tag { opacity: 1; }
.frow.addf b { color: color-mix(in srgb, var(--ink) 88%, var(--ground)); } .frow.addf small { color: color-mix(in srgb, var(--ink) 74%, var(--ground)); }

/* ===== v49: balance card with chart beside the number (desktop) ===== */
.bal-split { display: flex; flex-direction: column; }
.bs-l, .bs-r { display: contents; }
.bal-split .edit { order: 9; align-self: flex-start; }
.nc-note { order: 8; margin: 0 0 6px; font-size: 12px; color: color-mix(in srgb, var(--ink) 70%, var(--ground)); }
@media (min-width: 1100px) {
  .bal-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 8px 32px; align-items: stretch; margin-top: 8px; }
  .bs-l, .bs-r { display: flex; flex-direction: column; min-width: 0; }
  .bs-l { justify-content: center; gap: 6px; }
  .bs-l .hero-num { font-size: 54px; line-height: 60px; }
  .bs-r .chartbox2 { flex: 1; min-height: 210px; margin: 12px 0 2px; }
  .bs-r .nc-tabs { margin-top: 4px; }
  .d-bal .bigbal { min-height: 300px; }
  .nc-note { order: 0; margin: 0; text-align: right; }
}

/* v50: launch animation overlay */
#launch { position: fixed; inset: 0; z-index: 100000; background: #02030A; opacity: 1; transition: opacity .5s ease; cursor: pointer; touch-action: manipulation; }
#launch.out { opacity: 0; pointer-events: none; }
#launch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.launch-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.06); color: #B9C6E8; border: 1px solid rgba(180,200,255,.22); border-radius: 999px; padding: 8px 16px; font: 500 13px var(--sans, Manrope), sans-serif; opacity: 0; animation: lskip .4s .9s forwards; cursor: pointer; }
@keyframes lskip { to { opacity: 1; } }
html[data-motion="off"] #launch { display: none; }
.lp-brand svg { flex: none; filter: drop-shadow(0 4px 12px rgba(92,225,255,.45)); }

/* v53 */
[hidden] { display: none !important; }
.sp-row[disabled] { opacity: .75; cursor: default; }

/* logo wordmark */
.lp-brand { gap: 0; } .lp-brand .lp-wm { height: 30px; width: auto; display: block; filter: none; }
.lp-wm-wrap { display: flex; justify-content: center; padding: 6px 0 18px; } .lp-wm-big { width: min(86vw, 520px); height: auto; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .lp-wm-big * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }
/* desktop hero: copy on the left, the 3D logo on the right so it is the first thing seen */
@media (min-width: 960px) {
  .lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 24px; align-items: center; text-align: left; justify-items: start; min-height: min(760px, calc(100vh - 80px)); padding-top: 20px; }
  .lp-hero > :not(.lp-stage):not(canvas):not(.lp-beam) { grid-column: 1; }
  .lp-hero .lp-stage { grid-column: 2; grid-row: 1 / span 7; width: 100%; margin-top: 0; justify-self: center; }
  .lp-hero .lp-cta { justify-content: flex-start; }
  .lp-hero .lp-sub { margin-left: 0; margin-right: 0; max-width: 480px; }
  .lp-beam { left: 72%; }
}
