/* Layout: calm fintech column. Centered hero, product dashboard as the hero image, sections stack on a 1180px grid. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --sunk: #f2f2f7;
  --ink: #1b1c2b;
  --muted: #6b6d80;
  --line: #e4e4ee;
  --violet: #5b5bf0;
  --violet-ink: #ffffff;
  --violet-soft: #ececfe;
  --lav-a: #cdb8ff;
  --lav-b: #a98fff;
  --lav-c: #dfa6f3;
  --lav-d: #7a5cff;
  --zec: #e8a317;
  --zec-soft: #fdf3dc;
  --cobalt: #5b5bf0;
  --coral: #ef4f7a;
  --good: #1f9d63;
  --house: #a3a5b8;
  --on-accent: #ffffff;
  --phone-ink: #f4f5fb;
  --shadow: 0 1px 2px rgba(27, 28, 43, .05), 0 10px 30px -12px rgba(27, 28, 43, .16);
  --shadow-lg: 0 1px 2px rgba(27, 28, 43, .06), 0 40px 80px -30px rgba(60, 50, 140, .35);

  --display: Geist, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: Geist, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1180px;
  --r: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(var(--gutter), calc((100% - 1240px) / 2));
  transition: background .3s, box-shadow .3s;
}
.bar.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo { width: 27px; height: 22px; fill: var(--ink); flex: none; overflow: visible; }
.logo .lm-a, .logo .lm-b { transition: transform .45s var(--ease); }
.bar .logo .lm-a { animation: lmA 1s .1s var(--ease) both; }
.bar .logo .lm-b { animation: lmB 1s .2s var(--ease) both; }
@keyframes lmA { from { transform: translateX(-60px); opacity: 0; } }
@keyframes lmB { from { transform: translateX(60px); opacity: 0; } }
.brand:hover .logo .lm-a { transform: translateX(-8px); }
.brand:hover .logo .lm-b { transform: translateX(8px); }
.word { font: 600 13px/1 var(--body); letter-spacing: .22em; }
.nav { display: flex; align-items: center; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav > a, .dd-btn { text-decoration: none; color: var(--ink); font-size: 14px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background .2s; }
.nav > a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { background: var(--sunk); }
.chev { width: 14px; height: 14px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 290px; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 8px; display: grid; animation: ddIn .2s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translate(-50%, -6px); } }
.dd-menu a { text-decoration: none; padding: 10px 12px; border-radius: 10px; display: grid; gap: 2px; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--sunk); }
.dd-menu b { font-weight: 500; font-size: 14px; }
.dd-menu span { font-size: 13px; color: var(--muted); }
.bar-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; font-weight: 500; padding: 11px 20px; font-size: 14px; white-space: nowrap; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--violet); color: var(--violet-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 12px -4px color-mix(in srgb, var(--violet) 60%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--violet) 88%, var(--ink)); }
.btn-soft { background: color-mix(in srgb, var(--surface) 60%, var(--sunk)); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn-soft:hover { background: var(--surface); }
.btn-text { background: none; color: var(--ink); padding: 8px 12px; }
.btn-text:hover { background: var(--sunk); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xs { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-buy { background: #ef4f7a; color: #fff; padding: 9px 14px; font-size: 13px; }
.btn-buy:hover { background: #fff; color: #1b1c2b; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sunk); }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); display: flex; align-items: center; gap: 8px; }
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin: 0; font-size: clamp(40px, 5.6vw, 72px); text-wrap: balance; }
.display.sm { font-size: clamp(30px, 4vw, 48px); }
.display .line { display: block; }
.h2 { font: 500 clamp(28px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.sub { color: var(--muted); max-width: 56ch; margin: 12px 0 0; }
.fine { font-size: 13px; color: var(--muted); max-width: 72ch; margin: 14px 0 0; }
.fine.wide { margin-top: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
.dot.live { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
  background:
    radial-gradient(55% 45% at 50% 105%, var(--lav-d), transparent 72%),
    radial-gradient(75% 60% at 50% 100%, var(--lav-b), transparent 72%),
    radial-gradient(50% 50% at 8% 80%, var(--lav-c), transparent 70%),
    radial-gradient(50% 50% at 92% 75%, var(--lav-a), transparent 70%),
    radial-gradient(70% 40% at 50% 0%, #e9e0ff, transparent 72%),
    radial-gradient(35% 30% at 0% 30%, #efe3ff, transparent 70%),
    radial-gradient(35% 30% at 100% 30%, #efe3ff, transparent 70%),
    var(--bg);
  border-radius: 0 0 28px 28px; overflow: hidden;
}
.hero-in { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .line { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .line:nth-child(2) { animation-delay: .1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 52ch; margin: 18px auto 28px; }
.quick { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.quick-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; background: color-mix(in srgb, var(--surface) 75%, transparent); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); width: min(420px, 100%); transition: box-shadow .2s; }
.quick-field:focus-within { box-shadow: 0 0 0 2px var(--violet); }
.quick-field .dollar { color: var(--muted); font-size: 14px; }
.quick-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; padding: 8px 0; }
.quick-field input:not(:placeholder-shown) { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.quick-err { color: var(--coral); font-size: 14px; margin: 12px 0 0; }

/* ---------- dashboard ---------- */
.app-wrap { max-width: 1040px; margin: clamp(40px, 5vw, 64px) auto 0; animation: appIn 1.1s .25s var(--ease) both; }
@keyframes appIn { from { opacity: 0; transform: translateY(40px); } }
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); min-height: 440px; overflow: hidden; font-size: 13px; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; background: color-mix(in srgb, var(--sunk) 45%, var(--surface)); }
.coin-switch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.coin-switch:hover { background: var(--sunk); }
.cs-av { width: 24px; height: 24px; border-radius: 7px; background: #2d9a55; color: #fff; display: grid; place-items: center; font: 600 10px var(--body); flex: none; }
.cs-name { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav { display: grid; gap: 2px; }
.app-nav button { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); text-align: left; font-size: 13px; transition: background .15s, color .15s; }
.app-nav .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.app-nav button:hover { background: var(--sunk); color: var(--ink); }
.app-nav button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.app-side-foot { margin: auto 0 0; font-size: 10px; color: var(--muted); padding: 0 8px; }
.app-main { padding: 14px 22px 22px; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-search { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); background: var(--sunk); border-radius: 8px; padding: 7px 10px; font-size: 12px; min-width: 0; }
.app-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-search .ic { width: 14px; height: 14px; }
.app-h { font: 500 20px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.view { animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.chips button { border: 0; background: var(--sunk); color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.chips button[aria-selected="true"] { background: var(--violet); color: var(--violet-ink); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.card { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 16px; background: var(--surface); min-width: 0; }
.card-k { margin: 0; color: var(--muted); font-size: 12px; }
.big { margin: 4px 0 0; font-size: 26px; letter-spacing: -.02em; }
.big.sm { font-size: 20px; }
.big .of { font-size: 14px; color: var(--muted); }
.delta { margin: 2px 0 0; font-size: 12px; color: var(--good); }
.delta.neg { color: var(--coral); }
.chart { position: relative; height: 170px; margin-top: 12px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .area { fill: url(#gArea); }
.chart .stroke { fill: none; stroke: var(--violet); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .cursor { stroke: var(--muted); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .dotp { fill: var(--surface); stroke: var(--violet); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 11px; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.meter { height: 6px; background: var(--sunk); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; width: 0; background: var(--violet); border-radius: 6px; transition: width .6s var(--ease); }
.kv { margin: 14px 0 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
.tbl .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.new td { animation: rowIn 1.2s var(--ease); }
@keyframes rowIn { from { background: var(--violet-soft); } }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.pill.buy { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.pill.sell { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.pill.rend { background: var(--violet-soft); color: var(--violet); }
.payout { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.set-list { display: grid; gap: 0; padding: 4px 16px; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; }
.sw + .sw { border-top: 1px solid var(--line); }
.sw span { display: grid; gap: 2px; }
.sw b { font-weight: 500; }
.sw small { color: var(--muted); font-size: 12px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.sw input:checked + i { background: var(--violet); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 2px solid var(--violet); outline-offset: 2px; }

/* how */
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.step:nth-child(2) { transition-delay: .08s; } .step:nth-child(3) { transition-delay: .16s; }
.step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 22px; }
.step-n { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.step h3 { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.step p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* example reel section */
.reel-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.reel-copy { min-width: 0; }
.reel-copy .sub + .sub { margin-top: 14px; }
.hero-phone { position: relative; justify-self: center; width: 100%; max-width: 300px; }
.phone { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 100%; border-radius: 34px; overflow: hidden; background: #111; box-shadow: 0 0 0 8px #1b1c2b, var(--shadow-lg); color: var(--phone-ink); }
.phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-top { position: absolute; top: 16px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(10, 12, 24, .55); backdrop-filter: blur(6px); }
.chip.ghost { background: rgba(255, 255, 255, .16); }
.caption { position: absolute; left: 16px; right: 38%; bottom: 132px; margin: 0; min-height: 3em; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.caption .w { display: inline-block; animation: pop .3s var(--ease) both; }
.caption .w.hot { color: #ffd84d; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.reel-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 18px; background: linear-gradient(transparent, rgba(6, 8, 18, .85)); }
.progress { height: 3px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; width: 0; background: #fff; }
.reel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reel-name { margin: 0; font-weight: 600; }
.reel-sub { margin: 0; font-size: 10px; opacity: .75; }
.btn-buy { background: #ff4a6b; color: #fff; padding: 9px 14px; font-size: 13px; }
.btn-buy:hover { background: #fff; color: #10142a; }
.floaty { position: absolute; font-size: 12px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.f1 { left: -34px; top: 24%; }
.f2 { right: -26px; top: 58%; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* tape */
.tape { overflow: hidden; border-block: 1px solid var(--line); padding: 12px 0; background: var(--surface); }
.tape-track { display: flex; gap: 40px; width: max-content; animation: tape 40s linear infinite; font: 500 13px var(--mono); color: var(--muted); }
.tape-track span b { color: var(--ink); font-weight: 500; }
.tape-track .up { color: var(--cobalt); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 0; }
.sec-head { margin-bottom: 36px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.row > div { min-width: 0; }

.reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .reveal.below { opacity: .001; transform: translateY(28px); }


/* calc + pit */
.split-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.calc, .pit { background: var(--surface); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); min-width: 0; }
.pit { transition-delay: .1s; }
.calc-label { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 12px; font-weight: 500; }
.calc-label output { color: var(--cobalt); }
input[type="range"] { width: 100%; accent-color: var(--cobalt); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.calc-grid div { background: var(--sunk); border-radius: 10px; padding: 14px 16px; }
.calc-grid dt { font-size: 13px; color: var(--muted); }
.calc-grid dd { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 26px); }
.pit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pit-meter { margin: 0; font-size: 22px; }
.pit-btns { display: flex; gap: 8px; }
.jar { position: relative; height: 300px; margin-top: 18px; border-radius: 12px; background: var(--sunk); overflow: hidden; }
.jar canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.jar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: color-mix(in srgb, var(--coral) 18%, transparent); transition: height .5s var(--ease); }
.jar-hint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; margin: 0; color: var(--muted); font-size: 14px; z-index: 2; pointer-events: none; transition: opacity .3s; }
.pit-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pit-foot b { color: var(--ink); }
.reel-pop { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font: 600 14px var(--body); animation: reelPop 1.6s var(--ease) forwards; pointer-events: none; white-space: nowrap; }
@keyframes reelPop { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%); } }

/* formats */
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fmt {
  position: relative; background: var(--surface); border-radius: var(--r); padding: 18px; min-height: 150px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.fmt:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fmt-sw { width: 38px; height: 38px; border-radius: 10px; margin-bottom: auto; display: grid; place-items: center; font: 700 16px var(--display); color: #fff; }
.fmt h3 { margin: 16px 0 0; font: 700 18px/1.15 var(--display); letter-spacing: -.02em; }
.fmt p { margin: 0; font-size: 13px; color: var(--muted); }
.fmt .tag { position: absolute; top: 16px; right: 16px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.fmt.last .tag { background: var(--sunk); color: var(--muted); }
.fmt.next { background: var(--ink); color: var(--bg); transform: translateY(-3px); box-shadow: var(--shadow); }
.fmt.next p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.fmt.next .tag { background: var(--coral); color: #fff; }
.fmt.scan { background: var(--sunk); }

/* feed */
.feed-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 0 14px; color: var(--muted); min-width: 0; }
.search input { border: 0; background: transparent; outline: none; padding: 10px 0; width: 180px; min-width: 0; color: var(--ink); }
.tabs { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.sample-note { margin: -20px 0 20px; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.coin {
  background: var(--surface); border-radius: var(--r); padding: 16px; display: grid; gap: 14px;
  animation: cardIn .5s var(--ease) both; transition: box-shadow .3s, transform .3s var(--ease);
}
.coin:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.coin.flash { animation: flash 1s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes flash { 0% { box-shadow: 0 0 0 2px var(--coral); } 100% { box-shadow: 0 0 0 2px transparent; } }
.coin-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; font: 800 18px var(--display); color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-id { min-width: 0; }
.coin-id h3 { margin: 0; font: 700 18px/1.15 var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.coin-line { margin: 0; font-size: 14px; color: var(--muted); min-height: 2.9em; overflow-wrap: anywhere; }
.coin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.coin-stats dt { font-size: 11px; color: var(--muted); }
.coin-stats dd { margin: 2px 0 0; font-size: 14px; }
.meter { height: 4px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--coral); transition: width .6s var(--ease); }
.meter-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -8px; }
.badge-new { font: 500 10px var(--mono); background: var(--cobalt); color: var(--on-accent); padding: 3px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; letter-spacing: .06em; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* cta + footer */
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter); display: grid; gap: 28px; justify-items: start; }
.cta .display { max-width: 16ch; }
.foot { border-top: 1px solid var(--line); padding: 28px var(--gutter) 36px; display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; flex: 1 1 280px; }
.foot-nav { display: flex; gap: 20px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(8, 10, 22, .5); backdrop-filter: blur(4px); animation: fade .25s both; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); animation: up .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.lf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld > label:first-child { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.count { font-weight: 400; color: var(--muted); }
.fld input:not([type="file"]), .pre { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); outline: none; transition: border-color .2s; }
.fld input:not([type="file"]):focus, .pre:focus-within { border-color: var(--cobalt); }
.fld input[aria-invalid="true"], .pre.bad { border-color: var(--coral) !important; }
.pre { display: flex; gap: 4px; align-items: center; }
.pre input { border: 0 !important; padding: 0 !important; background: transparent !important; text-transform: uppercase; font-family: var(--mono); }
.pre span { color: var(--muted); }
.drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; cursor: pointer; color: var(--muted); font-size: 14px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--cobalt); background: var(--bg); }
.drop span { display: flex; align-items: center; gap: 8px; }
.drop img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.launch-done p { color: var(--muted); margin: 0 0 20px; }
.lic { white-space: pre-wrap; font-size: 12px; line-height: 1.6; background: var(--sunk); padding: 16px; border-radius: 10px; margin: 0; overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); animation: up .3s var(--ease) both; max-width: calc(100% - 32px); }

/* mobile menu */
.menu-btn { display: none; }
.mobile-menu { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 8px; display: grid; gap: 2px; animation: ddIn2 .2s var(--ease); }
@keyframes ddIn2 { from { opacity: 0; transform: translateY(-6px); } }
.mobile-menu a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--sunk); }
.mobile-menu .btn { margin-top: 6px; }

/* zcash section */
.zec-sec { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.zec-copy, .zec-board { min-width: 0; }
.zec-sec .eyebrow { color: var(--zec); }
.zec-sec .eyebrow .ic { width: 16px; height: 16px; }
.zec-points { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.zec-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.zec-points .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--zec-soft); color: #9a6a00; stroke-width: 1.8; }
.zec-points b { color: var(--ink); font-weight: 500; }
.zec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.zec-board { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); padding: 20px; }
.zec-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.zec-total { margin: 0; font-size: 22px; }
.zec-list { list-style: none; margin: 0; padding: 0; display: grid; }
.zec-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.zec-list li.new { animation: rowIn 1.2s var(--ease); }
.zec-list .who { min-width: 0; }
.zec-list .who b { font-weight: 500; }
.zec-list .who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zec-list .amt-v { font-family: var(--mono); }
.zbadge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--zec-soft); color: #9a6a00; }
.zbadge .ic { width: 16px; height: 16px; }
.zbadge.t { background: var(--sunk); color: var(--muted); }
.pill.shield { background: var(--zec-soft); color: #8a5d00; }
.pill.transp { background: var(--sunk); color: var(--muted); }

/* coin card zec line */
.coin-tips { margin: -4px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.coin-tips .ic { width: 14px; height: 14px; color: var(--zec); }
.coin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-zec { background: var(--zec-soft); color: #7a5200; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zec) 45%, transparent); }
.btn-zec:hover { background: var(--zec); color: #1b1c2b; }
.btn-zec .ic { width: 15px; height: 15px; }
.btn-zec[disabled] { opacity: .45; cursor: not-allowed; }

/* dashboard tips */
.tip-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.addr-card { display: grid; gap: 6px; align-content: start; justify-items: start; }
.addr { margin: 0; font-size: 11px; line-height: 1.45; word-break: break-all; color: var(--ink); }
.addr-card .addr { max-height: 3em; overflow: hidden; }
.tbl td.memo { color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tip modal */
.modal-card.tip-card { width: min(760px, 100%); }
.tip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tip-form, .tip-pay { min-width: 0; }
.lbl { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.amt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.amt button, .seg2 button { border: 0; background: var(--sunk); border-radius: 10px; padding: 9px 6px; cursor: pointer; font: 500 14px var(--mono); transition: background .15s, color .15s; }
.amt button[aria-checked="true"], .seg2 button[aria-checked="true"] { background: var(--violet); color: var(--violet-ink); }
.tip-usd { margin: -4px 0 16px; font-size: 13px; color: var(--muted); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg2 button { font-family: var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg2 .ic { width: 15px; height: 15px; }
.pool-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 14px; }
textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); outline: none; font: inherit; font-size: 14px; resize: vertical; min-height: 64px; }
textarea:focus { border-color: var(--violet); }
textarea[aria-invalid="true"], .fld input[aria-invalid="true"] { border-color: var(--coral); }
.tip-pay { background: var(--sunk); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 184px; height: 184px; margin: 0 auto 6px; display: grid; place-items: center; }
.qr canvas, .qr img { width: 164px; height: 164px; image-rendering: pixelated; }
.qr .qr-fallback { font-size: 12px; color: var(--muted); text-align: center; }
.demo-warn { margin: 0; font-size: 12px; color: #9a3412; background: #fff1e6; border-radius: 8px; padding: 6px 10px; }
.tip-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-btns .ic, .addr-card .ic { width: 14px; height: 14px; }
.uri summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.uri code { display: block; font-size: 11px; word-break: break-all; margin-top: 6px; color: var(--ink); }
.hint { font-size: 12px; color: var(--muted); }
.hint.ok { color: var(--good); }
.hint.bad { color: var(--coral); }

/* flat cards with hairline edges */
.calc, .pit, .fmt, .coin, .search, .tabs { box-shadow: 0 0 0 1px var(--line); }
.fmt:hover, .coin:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fmt.next { background: var(--violet); color: var(--violet-ink); box-shadow: var(--shadow); }
.fmt.next p { color: color-mix(in srgb, var(--violet-ink) 78%, transparent); }
.fmt.next .tag { background: var(--violet-ink); color: var(--violet); }
.modal-card.narrow { width: min(420px, 100%); }
.modal-card .fld { margin-bottom: 14px; }
.cta { justify-items: center; text-align: center; background: radial-gradient(60% 70% at 50% 100%, var(--lav-a), transparent 72%), radial-gradient(40% 50% at 20% 90%, var(--lav-c), transparent 70%); border-radius: 28px 28px 0 0; }
.cta .display { margin-inline: auto; }


/* ---------- render queue ---------- */
.queue { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; margin-bottom: 16px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-head .card-k { display: flex; align-items: center; gap: 8px; }
.queue-head .ic, .hero .btn-soft .ic { width: 14px; height: 14px; }
.queue-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.queue-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; animation: cardIn .4s var(--ease) both; }
.queue-list .qa { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font: 600 10px var(--body); }
.queue-list .qt { min-width: 0; }
.queue-list .qt b { font-weight: 500; }
.queue-list .qt small { color: var(--muted); }
.qbar { height: 4px; background: var(--sunk); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.qbar span { display: block; height: 100%; width: 0; background: var(--violet); }
.queue-list li.done .qbar span { background: var(--good); }
.queue-list .qs { font: 500 12px var(--mono); color: var(--muted); }
.queue-list li.done .qs { color: var(--good); }
.queue-empty { color: var(--muted); font-size: 13px; }
.queue-note { margin-top: 10px; font-size: 12px; }

/* sparkline + watch on coin cards */
.spark { width: 100%; height: 34px; display: block; }
.spark path.l { fill: none; stroke: var(--violet); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark path.a { fill: color-mix(in srgb, var(--violet) 12%, transparent); }
.coin-top { cursor: pointer; border-radius: 10px; }
.coin-top:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.avatar { position: relative; }
.avatar .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 16, 50, .45); opacity: 0; transition: opacity .2s; }
.avatar .play .ic { width: 18px; height: 18px; fill: #fff; stroke: #fff; }
.coin-top:hover .avatar .play, .coin-top:focus-visible .avatar .play { opacity: 1; }
.coin-top h3 { transition: color .2s; }
.coin-top:hover h3 { color: var(--violet); }
.coin.mini { animation: none; box-shadow: 0 0 0 1px var(--line); gap: 8px; }
.coin.mini .coin-line { min-height: 0; }
.lf-preview { margin-bottom: 16px; }

/* coin burst */
.burst { position: fixed; z-index: 80; width: 14px; height: 14px; border-radius: 50%; background: var(--violet); pointer-events: none; display: grid; place-items: center; color: #fff; font: 700 8px var(--mono); animation: burst .9s var(--ease) forwards; }
.burst.z { background: var(--zec); color: #1b1c2b; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; } }

/* toast action */
.toast { display: flex; align-items: center; gap: 12px; }
.toast button { border: 0; background: var(--violet); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }

/* ---------- reel player ---------- */
.modal.player .modal-bg { background: rgba(12, 8, 30, .82); backdrop-filter: blur(10px); }
.player-in { position: relative; display: grid; justify-items: center; gap: 10px; animation: up .35s var(--ease) both; }
.pl-stage { position: relative; height: min(78vh, 700px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); border-radius: 24px; overflow: hidden; background: #111; color: #f4f5fb; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); touch-action: none; user-select: none; }
.pl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-stage.swap { animation: plSwap .45s var(--ease); }
@keyframes plSwap { from { transform: translateY(var(--from, 40px)); opacity: .2; } }
.pl-id { min-width: 0; }
.pl-id .reel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-acts { display: flex; gap: 6px; }
.pl-nav { display: flex; align-items: center; gap: 14px; }
.pl-count { color: #d8d4f5; font-size: 13px; margin: 0; }
.pl-hint { margin: 0; color: #b7b1e0; font-size: 12px; text-align: center; }
.icon-btn.light { color: #fff; background: rgba(255,255,255,.12); }
.icon-btn.light:hover { background: rgba(255,255,255,.24); }
.player .modal-x { position: absolute; top: -6px; right: -52px; z-index: 2; }
.pl-like { position: absolute; inset: 0; pointer-events: none; }
.pl-like i { position: absolute; font-style: normal; font-size: 64px; color: #ff4f86; transform: translate(-50%, -50%); animation: likePop .9s var(--ease) forwards; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
@keyframes likePop { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -140%) scale(.9); opacity: 0; } }
@media (max-width: 560px) { .player .modal-x { right: 4px; top: 4px; } .pl-stage { height: min(72vh, 640px); } }


/* ---------- decoration ---------- */
.progress-top { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 40; background: linear-gradient(90deg, var(--violet), var(--lav-c)); }
.hero > *:not(.hero-deco) { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--violet) 16%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%); }
.wm { position: absolute; fill: color-mix(in srgb, var(--violet) 9%, transparent); }
.wm1 { width: 420px; height: 340px; left: -120px; top: 120px; transform: rotate(-8deg); animation: drift 18s ease-in-out infinite; }
.wm2 { width: 360px; height: 290px; right: -100px; top: 40px; transform: rotate(10deg); animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 50% { translate: 0 -24px; } }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 14s ease-in-out infinite; }
.o1 { width: 260px; height: 260px; background: var(--lav-b); left: 12%; top: 38%; }
.o2 { width: 200px; height: 200px; background: var(--lav-c); right: 14%; top: 30%; animation-delay: -5s; }
.o3 { width: 320px; height: 180px; background: var(--lav-a); left: 40%; top: 5%; animation-delay: -9s; }
.app-wrap { position: relative; }
.app { position: relative; }
.app::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.9), color-mix(in srgb, var(--violet) 40%, transparent) 60%, rgba(255,255,255,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
.float-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fchip { position: absolute; display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 0 0 1px var(--line), var(--shadow); white-space: nowrap; animation: chipIn 4.2s var(--ease) forwards; }
.fchip i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 700 10px var(--mono); color: #fff; font-style: normal; }
.fchip b { font-weight: 600; }
.fchip.left { right: calc(100% + 16px); } .fchip.right { left: calc(100% + 16px); }
@keyframes chipIn { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }

.stats { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border-radius: var(--r); padding: 20px 22px; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--lav-a) 35%, var(--surface))); box-shadow: 0 0 0 1px var(--line); }
.stat-v { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.stat-v.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { color: var(--violet); transform: translateY(-2px); } }
.stat-k { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stats-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 45%, var(--line)), var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--body); color: var(--violet); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); animation: viewIn .3s var(--ease); }

.foot { display: grid; gap: 28px; padding: 48px max(var(--gutter), calc((100% - 1180px) / 2)) 36px; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; }
.foot-brand p { margin: 12px 0 0; font-size: 14px; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.foot-col p { margin: 0 0 4px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-col a, .linkish { text-decoration: none; color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.foot-col a:hover, .linkish:hover { color: var(--violet); }
.foot-legal { margin: 0; font-size: 12px; border-top: 1px solid var(--line); padding-top: 20px; }


/* ---------- header boxes: wallet + X ---------- */
.box-btn { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -8px rgba(27, 28, 43, .3); transition: box-shadow .2s, transform .2s var(--ease), background .2s; white-space: nowrap; }
.box-btn:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 55%, var(--line)), 0 8px 18px -10px rgba(91, 91, 240, .45); transform: translateY(-1px); }
.box-btn .ic { width: 17px; height: 17px; }
.x-btn { width: 38px; padding: 0; }
.x-btn .ic { width: 16px; height: 16px; }
.wallet-btn.on { background: var(--violet-soft); color: var(--violet); }
.wallet-btn .wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.wallet-sub { margin: 0 0 18px; font-size: 14px; }
.wlist { display: grid; gap: 6px; margin-bottom: 16px; }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--sunk); cursor: pointer; text-align: left; font-size: 15px; text-decoration: none; color: var(--ink); transition: background .15s, box-shadow .15s; }
.wopt:hover, .wopt:focus-visible { background: var(--surface); box-shadow: 0 0 0 1px var(--violet); }
.wopt[aria-busy="true"] { opacity: .7; cursor: progress; }
.wopt b { flex: 1; font-weight: 500; }
.wopt small { font-size: 12px; color: var(--muted); }
.wopt small.ok { color: var(--good); font-weight: 500; }
.wicon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 13px var(--body); flex: none; overflow: hidden; }
.wicon img { width: 100%; height: 100%; object-fit: cover; }
.wconn { display: flex; gap: 12px; align-items: center; background: var(--sunk); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.wconn > div { min-width: 0; }
.wconn b { font-weight: 500; }
#walletOn .btn-block { margin-top: 14px; }


/* ---------- splash screen ---------- */
.splash { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .6s var(--ease), visibility .6s; }
.splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 100%, rgba(122, 92, 255, .45), transparent 70%), radial-gradient(30% 30% at 15% 90%, rgba(223, 166, 243, .25), transparent 70%); }
.splash.out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.out .splash-in { transform: scale(1.06); }
.splash-in { position: relative; display: grid; justify-items: center; gap: 18px; transition: transform .6s var(--ease); }
.splash-logo { width: 120px; height: 97px; fill: #fff; overflow: visible; }
.splash-logo .sa { animation: spA 1s .1s var(--ease) both; }
.splash-logo .sb { animation: spB 1s .25s var(--ease) both; }
@keyframes spA { from { transform: translateX(-140px); opacity: 0; } }
@keyframes spB { from { transform: translateX(140px); opacity: 0; } }
.splash-word { margin: 6px 0 0; font: 600 18px var(--body); letter-spacing: .42em; padding-left: .42em; animation: fadeUp .8s .7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.splash-bar { width: 180px; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; animation: fadeUp .6s .9s var(--ease) both; }
.splash-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b8bff, #dfa6f3); transition: width .3s linear; }
.splash-tag { margin: 0; font: 500 12px var(--mono); color: #a9a6d0; letter-spacing: .06em; animation: fadeUp .6s 1s var(--ease) both; min-height: 1.4em; }
.splash-skip { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; margin: 0; font-size: 12px; color: #6f6c95; }
body.splashing { overflow: hidden; }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; z-index: 45; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-radius: 18px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); animation: up .5s var(--ease) both; }
.cookie-txt { flex: 1; min-width: 0; }
.cookie-txt p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cookie-txt .cookie-h { color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.cookie-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-modal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sw input:disabled + i { opacity: .55; }
.sw:has(input:disabled) { cursor: default; }
@media (max-width: 760px) { .cookie { flex-direction: column; align-items: stretch; gap: 12px; } .cookie-acts { justify-content: stretch; } .cookie-acts .btn { flex: 1; } }

.qa, .fchip i, .cs-av { overflow: hidden; }
.qa img, .fchip i img, .cs-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- live / demo mode ---------- */
.sim-tag { font: 500 10px var(--mono); letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; background: var(--sunk); color: var(--muted); margin-left: 6px; }
.trade-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.trade-head .h3 { margin: 0; }
.trade-head .fine { margin: 2px 0 0; }
.avatar.sm { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 15px var(--body); overflow: hidden; flex: none; }
.avatar.sm img { width: 100%; height: 100%; object-fit: cover; }
.trade-tabs { margin-bottom: 14px; }
.trade-tabs button[aria-selected="true"] { background: var(--violet); color: var(--violet-ink); }
.trade-kv { margin: 6px 0 14px; }
#trQuick { margin: -2px 0 8px; }
#plVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.pl-stage .reel-top, .pl-stage .caption, .pl-stage .reel-bottom, .pl-stage .pl-like { z-index: 1; }
.pl-stage.has-video .caption { display: none; }
.queue-list li.indet .qbar span { width: 35% !important; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.feed-empty-live { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.feed-empty-live .btn { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) { .fchip.left { right: auto; left: 214px; top: auto !important; bottom: 18px; } .fchip.right { display: none; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 960px) {
  .reel-sec, .split-sec { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-phone { max-width: 280px; }
  .ov-grid, .zec-sec, .tip-grid { grid-template-columns: minmax(0, 1fr); }
  .tip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addr-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .wm { opacity: .5; }
  .fchip { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; gap: 8px; }
  .app-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .app-nav button { flex: none; }
  .app-side-foot, .coin-switch { display: none; }
  .app-main { padding: 12px 14px 16px; }
  .tbl-wrap { overflow-x: auto; }
  .f1 { left: -8px; } .f2 { right: -8px; }
  .feed-tools, .search { width: 100%; }
  .search input { width: 100%; }
  .tabs { overflow-x: auto; max-width: 100%; }
}
@media (max-width: 640px) {
  .wallet-btn span { display: none; }
  .wallet-btn { width: 38px; padding: 0; }
  .wallet-btn .wdot { position: absolute; margin: -22px -22px 0 0; }
  .wallet-btn { position: relative; }
}
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .btn-text { display: none; }
  .quick-field { width: 100%; }
  .quick .btn-soft { width: 100%; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .lf-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs button { padding: 7px 10px; font-size: 13px; }
  .app-top .btn { display: none; }
  .bar-actions .btn-primary { display: none; }
  .tip-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
}
.side-card .meter span { background: var(--violet); }
