/* fund-portal — the investor site at fund.zcc-express.com. Same tokens as the desk (web/public/v2/app.css). */
:root {
  --bg: #f5f5f7; --surface: #fff; --surface-2: #fbfbfd; --surface-3: #f2f2f5;
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b;
  --hair: rgba(0,0,0,.08); --hair-2: rgba(0,0,0,.14); --track: rgba(0,0,0,.065);
  --accent: #0071e3; --accent-hover: #0077ed; --accent-fill: rgba(0,113,227,.10);
  --up: #0a8a43; --up-fill: rgba(52,199,89,.14); --up-mark: #34c759;
  --down: #d7263d; --down-fill: rgba(255,59,48,.12); --down-mark: #ff453a;
  --warn: #b25e00; --warn-fill: rgba(255,159,10,.14);
  --font: "DM Sans", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Noto Sans Thai", monospace;
  --r-card: 22px; --r-sm: 14px; --r-xs: 10px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.05), 0 18px 44px rgba(0,0,0,.10);
  --ease: cubic-bezier(.22,.61,.36,1); --spring: cubic-bezier(.32,.72,0,1);
  --max: 1160px; --gutter: 24px; --pad: 30px; --gap: 20px; --nav-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
svg { display: block; }
code { font: 13px var(--mono); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,.35); border-radius: 8px; }
::selection { background: rgba(0,113,227,.18); }
[hidden] { display: none !important; }
.num, .tab { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .dim { color: var(--text-2); } .faint { color: var(--text-3); }
.cap { font-size: 13px; color: var(--text-2); } .cap2 { font-size: 12.5px; color: var(--text-3); }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: rgba(251,251,253,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.nav-in { max-width: calc(var(--max) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; } .brand img { width: 30px; height: 30px; transition: transform .5s var(--spring); } .brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { color: var(--text-2); font-weight: 500; }
.seg { position: relative; display: flex; gap: 2px; padding: 3px; margin: 0 auto; background: rgba(0,0,0,.045); border-radius: var(--r-pill); }
.seg a { position: relative; z-index: 1; padding: 6px 15px; border-radius: var(--r-pill); color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s var(--ease); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current="page"] { color: var(--text); }
.seg-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.04); transition: transform .45s var(--spring), width .45s var(--spring); }
.nav-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0071e3, #34c759); }

/* ── buttons, chips ──────────────────────────────────────────────────── */
.btn { appearance: none; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-pill);
  padding: 9px 18px; font: 500 14px var(--font); cursor: pointer; white-space: nowrap; color: var(--text); background: rgba(0,0,0,.05);
  transition: background .15s, transform .12s var(--ease), box-shadow .2s; text-decoration: none !important; }
.btn:hover { background: rgba(0,0,0,.085); } .btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(0,113,227,.28); }
.btn.tint { background: var(--accent-fill); color: var(--accent); }
.btn.lg { padding: 13px 26px; font-size: 16px; } .btn.sm { padding: 6px 13px; font-size: 13px; } .btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip.up { background: var(--up-fill); color: var(--up); } .chip.down { background: var(--down-fill); color: var(--down); }
.chip.warn { background: var(--warn-fill); color: var(--warn); } .chip.acc { background: var(--accent-fill); color: var(--accent); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* ── layout ──────────────────────────────────────────────────────────── */
main { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 110px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: 1 / -1; }
.sec { margin-top: 48px; } .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 4px 18px; flex-wrap: wrap; }
.sec-h h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.page-head { margin: 8px 4px 28px; } .page-head h1 { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.page-head p { margin: 8px 0 0; font-size: 17px; color: var(--text-2); }
.card { position: relative; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--pad); min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-t { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 0; } .card-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.lift { transition: transform .35s var(--spring), box-shadow .35s var(--ease); } .lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hr { height: 1px; background: var(--hair); margin: 20px 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: 0; overflow: hidden; }
.hero-main { padding: 30px 36px 26px; min-width: 0; }
.hero-side { padding: 30px 36px 28px; border-left: 1px solid var(--hair); background: var(--surface-2); display: flex; flex-direction: column; min-width: 0; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin-bottom: 20px; }
.lbl { font-size: 15px; color: var(--text-2); margin-bottom: 2px; }
.display { font-size: clamp(46px, 7.4vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.display .unit, .big .unit { font-size: .3em; font-weight: 500; color: var(--text-2); letter-spacing: -.005em; margin-left: 10px; }
.delta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; min-height: 26px; }
.delta { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta-p { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; font-size: 14px; background: rgba(0,0,0,.05); }
.delta.up .delta-p { background: var(--up-fill); } .delta.down .delta-p { background: var(--down-fill); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.foot b { font-weight: 500; color: var(--text-2); }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin: 0 10px; opacity: .6; }
.big { font-size: 46px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 12px; }
.big .unit { font-size: 17px; }
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 20px; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kpi-l { font-size: 13px; color: var(--text-2); margin-bottom: 4px; } .kpi-v { font-size: 22px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-s { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.meter { margin-top: auto; } .meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; } .meter-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.meter-bar { position: relative; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0071e3, #40a0ff); width: 0; transition: width 1.1s var(--spring); }
.in .meter-bar i, .meter-bar.in i { width: var(--w); }

/* ── chart ───────────────────────────────────────────────────────────── */
.chart { position: relative; margin: 20px -6px 0 -4px; height: 150px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .area { opacity: 0; transition: opacity .9s var(--ease) .5s; }
.chart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .base { stroke: rgba(0,0,0,.16); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart.in .line { animation: draw 1.4s var(--ease) forwards; } .chart.in .area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .end { opacity: 0; transition: opacity .3s 1.3s; } .chart.in .end { opacity: 1; }
.chart .endpulse { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite 1.6s; opacity: 0; }
@keyframes ring { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.chart .hov { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.18); pointer-events: none; opacity: 0; transition: opacity .15s; }
.chart .hdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--accent); pointer-events: none; opacity: 0; transition: opacity .15s; }
.chart .tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: rgba(29,29,31,.92); color: #fff;
  font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.chart.hover .hov, .chart.hover .hdot, .chart.hover .tip { opacity: 1; }
.chart-empty { display: grid; place-items: center; height: 150px; margin-top: 20px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-3); font-size: 13px; }

/* ── tiles, lists ────────────────────────────────────────────────────── */
.tile { display: flex; flex-direction: column; min-height: 210px; }
.tile-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tile-h h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tile-big { font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.022em; font-variant-numeric: tabular-nums; }
.tile-note { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ico-b { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-fill); color: var(--accent); flex: none; }
.ico-b svg { width: 22px; height: 22px; } .ico-b.up { background: var(--up-fill); color: var(--up); } .ico-b.warn { background: var(--warn-fill); color: var(--warn); }
.countdown { display: flex; gap: 10px; margin-top: 4px; }
.countdown div { flex: 1; text-align: center; padding: 12px 6px; border-radius: var(--r-sm); background: var(--surface-3); }
.countdown b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--text-2); }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); }
.act li:first-child { border-top: 0; padding-top: 2px; }
.act .ai { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.act .ai svg { width: 18px; height: 18px; } .act .ai.in { background: var(--up-fill); color: var(--up); } .act .ai.out { background: var(--accent-fill); color: var(--accent); }
.act .at { min-width: 0; flex: 1; } .act .at b { display: block; font-weight: 500; font-size: 14.5px; } .act .at span { font-size: 12.5px; color: var(--text-3); }
.act .av { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12.5px; padding: 0 12px 10px; white-space: nowrap; }
td { padding: 13px 12px; border-top: 1px solid var(--hair); vertical-align: middle; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr { transition: background .15s; } tbody tr:hover td { background: var(--surface-2); }
.tbl { overflow-x: auto; margin: 0 -12px; }
.empty { display: grid; place-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.empty svg { width: 34px; height: 34px; color: var(--text-3); opacity: .7; }
dl.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
dl.kv dt, dl.kv dd { padding: 12px 0; border-top: 1px solid var(--hair); margin: 0; font-size: 14.5px; }
dl.kv dt { color: var(--text-2); padding-right: 18px; } dl.kv dd { text-align: right; font-weight: 500; }
dl.kv dt:first-of-type, dl.kv dd:first-of-type { border-top: 0; }

/* ── deposit / forms ─────────────────────────────────────────────────── */
.addr { display: flex; align-items: center; gap: 10px; background: var(--surface-3); border-radius: var(--r-sm); padding: 12px 14px; margin: 8px 0; }
.addr code { flex: 1; word-break: break-all; font-size: 13.5px; }
.qr { width: 188px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair), var(--shadow); flex: none; }
.qr svg { width: 100%; height: auto; }
.dep { display: flex; gap: 28px; align-items: flex-start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { position: relative; padding: 0 0 22px 52px; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 4px 12px rgba(0,113,227,.25); }
.steps li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 2px; width: 1.5px; background: linear-gradient(var(--accent-fill), var(--hair)); }
.steps li:last-child { padding-bottom: 0; } .steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; } .steps span { font-size: 14px; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; } .field label { font-size: 13px; color: var(--text-2); }
.input, select.input { width: 100%; min-height: 48px; border: 1px solid var(--hair-2); background: #fff; border-radius: 13px; padding: 11px 14px; font: 15.5px var(--font); color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.14); }
.input.mono { font-family: var(--mono); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.flash { border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 20px; font-weight: 500; display: flex; gap: 10px; align-items: center; animation: drop .5s var(--spring); }
.flash.ok { background: var(--up-fill); color: var(--up); } .flash.err { background: var(--down-fill); color: var(--down); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ── landing ─────────────────────────────────────────────────────────── */
.land { position: relative; }
.glow { position: absolute; inset: -140px -10% auto; height: 620px; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(40% 50% at 20% 30%, rgba(0,113,227,.28), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(52,199,89,.22), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, rgba(175,82,222,.16), transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.05); } }
.land-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 28px 4px 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.land-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; margin: 18px 0 14px; }
.grad { background: linear-gradient(95deg, #0071e3 10%, #34c759 60%, #0a8a43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-hero p.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.feat .ico-b { margin-bottom: 16px; } .feat h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; } .feat p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.foot-site { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--text-3); }

/* ── auth ────────────────────────────────────────────────────────────── */
.auth { max-width: 460px; margin: 6vh auto 0; }
.auth .card { padding: 36px 34px; text-align: center; }
.auth-logo { width: 76px; height: 76px; margin: 0 auto 16px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.auth h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 8px; }
.auth p { color: var(--text-2); margin: 0 0 6px; }
.auth form { text-align: left; margin-top: 18px; }
.auth .alt { margin-top: 22px; font-size: 14px; color: var(--text-2); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font-size: 12.5px; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* ── members: tabbed panels ──────────────────────────────────────────── */
.tabs-on [data-panel] { display: none; }
.tabs-on [data-panel].on { display: block; animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.tabbar { display: none; }

/* ── motion ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: var(--r-pill);
  background: rgba(29,29,31,.92); color: #fff; font-size: 14px; font-weight: 500; transition: opacity .25s, transform .35s var(--spring); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; } .chart .line { stroke-dashoffset: 0; } .chart .area, .chart .end { opacity: 1; }
}

/* ── phones ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 16px; --pad: 20px; --gap: 14px; --nav-h: 52px; }
  .hero, .land-hero { grid-template-columns: 1fr; }
  .hero-main, .hero-side { padding: 22px 20px; } .hero-side { border-left: 0; border-top: 1px solid var(--hair); }
  .s4, .s5, .s6, .s7, .s8 { grid-column: 1 / -1; }
  .seg.members { display: none; } .who .nm { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 64px; padding: 6px;
    border-radius: 26px; background: rgba(251,251,253,.82); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    box-shadow: 0 10px 34px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; color: var(--text-3);
    font-size: 10.5px; font-weight: 500; transition: color .2s, background .3s var(--spring); }
  .tabbar a:hover { text-decoration: none; } .tabbar svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-fill); }
  main { padding-top: 22px; }
  .dep { flex-direction: column; align-items: center; } .qr { width: 200px; }
  .display { font-size: 52px; } .big { font-size: 40px; }
  .page-head h1 { font-size: 32px; }
  .split { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .kpi-v { font-size: 18px; }
  .land-nav-links { display: none; }
  .countdown b { font-size: 24px; }
}
.chart i.end, .chart i.endpulse { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none; }
.chart i.endpulse { opacity: 0; }
.chart.in i.endpulse { animation: ring 2.4s ease-out infinite 1.6s; }
/* active tab: the pill sits on the link itself (no measured indicator to go stale) */
.seg-ind { display: none; }
.seg a { transition: color .2s var(--ease), background .3s var(--spring), box-shadow .3s var(--ease); }
.seg a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.04); }
.side-kv { margin: 0 0 18px; }
.side-kv dt, .side-kv dd { padding: 9px 0; font-size: 14px; }
@media (max-width: 900px) { .nav-r form { display: none; } }

/* ── guest nav: readable links on wide screens, a menu on phones ─────── */
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); color: var(--text); font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .2s var(--ease); }
.nav-links a:hover { background: rgba(0,0,0,.055); text-decoration: none; }
.nav-links svg { width: 14px; height: 14px; color: var(--text-2); }
.menu { position: relative; display: none; }
.menu summary { list-style: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(0,0,0,.05); transition: background .2s; -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary { background: rgba(0,0,0,.1); }
.menu-sheet { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 24px)); padding: 8px; border-radius: 20px; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  transform-origin: top right; animation: menu-in .28s var(--spring); z-index: 40; }
@keyframes menu-in { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.menu-sheet a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--text); font-size: 15.5px; font-weight: 500; }
.menu-sheet a:hover, .menu-sheet a:active { background: var(--surface-3); text-decoration: none; }
.menu-sheet a svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.menu-sheet a svg:last-child:not(:first-child) { width: 15px; height: 15px; margin-left: auto; }
.menu-sheet a.pri { background: var(--accent); color: #fff; margin-top: 6px; } .menu-sheet a.pri svg { color: #fff; }
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .menu { display: block; }
  .nav-in { gap: 10px; }
  .brand { font-size: 16px; } .brand img { width: 28px; height: 28px; }
}
@media (max-width: 360px) { .brand span { display: none; } }

/* ── deposit networks ────────────────────────────────────────────────── */
.netpick { display: flex; flex-wrap: wrap; gap: 6px; }
.net { appearance: none; border: 1px solid var(--hair-2); background: var(--surface); color: var(--text); border-radius: var(--r-pill); padding: 0 14px; min-height: 36px;
  font: 500 13.5px var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .12s var(--ease); }
.net:hover { border-color: var(--accent); } .net:active { transform: scale(.96); }
.net.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.netinfo { margin: 12px 0 16px; min-height: 18px; }
.js .netpane { display: none; } .js .netpane.on { display: block; animation: panel-in .35s var(--ease) both; }
.netpane + .netpane { margin-top: 18px; } .js .netpane + .netpane { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.addwal { margin-top: 16px; } .addwal summary { list-style: none; cursor: pointer; } .addwal summary::-webkit-details-marker { display: none; }
.addwal[open] summary { margin-bottom: 4px; }
@media (max-width: 900px) { .net { min-height: 40px; } }

/* ── public getting-started guide ───────────────────────────────────── */
.guide-kicker { display: block; margin-bottom: 4px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guide-shell { padding: 30px; }
.wallet-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wallet-intro h3, .guide-columns h3, .join-flow h3 { margin: 0 0 7px; font-size: 19px; font-weight: 600; }
.wallet-intro p, .wallet-guide-head p { max-width: 68ch; margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.safe-pill { flex: none; padding: 7px 12px; border-radius: var(--r-pill); color: var(--up); background: var(--up-fill); font-size: 12.5px; font-weight: 600; }
.wallet-picks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.wallet-pick { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px 15px; border: 1px solid var(--hair); border-radius: 16px; color: var(--text); background: var(--surface-2); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.wallet-pick:hover { border-color: rgba(0,113,227,.28); box-shadow: 0 8px 22px rgba(0,0,0,.06); transform: translateY(-2px); text-decoration: none; }
.wallet-pick img { width: 44px; height: 44px; flex: none; object-fit: contain; border-radius: 12px; background: #fff; }
.wallet-pick span { display: flex; flex-direction: column; min-width: 0; }
.wallet-pick b { font-size: 15px; } .wallet-pick small { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-pick svg { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--accent); }
.guide-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.guide-list { list-style: none; padding: 0; margin: 13px 0 0; counter-reset: g; }
.guide-list li { position: relative; padding: 0 0 16px 38px; counter-increment: g; }
.guide-list li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-fill); font-size: 11px; font-weight: 700; }
.guide-list b, .guide-list span { display: block; } .guide-list b { font-size: 14px; } .guide-list span { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.network-list { margin-top: 13px; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.network-list>div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--hair); font-size: 13px; }
.network-list>div:first-child { border-top: 0; } .network-list span { color: var(--text-2); }
.guide-alert { margin-top: 10px; padding: 10px 12px; border-radius: 10px; color: var(--warn); background: var(--warn-fill); font-size: 12.5px; }
.wallet-real { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(220px,.75fr); align-items: center; gap: 22px; margin: 28px 0 0; padding: 16px; border: 1px solid var(--hair); border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.wallet-real img { display: block; width: 100%; max-height: 270px; object-fit: cover; object-position: center; border-radius: 12px; }
.wallet-real figcaption b, .wallet-real figcaption span { display: block; } .wallet-real figcaption b { font-size: 15px; } .wallet-real figcaption span { margin-top: 5px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.join-flow { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--hair); }
.join-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.join-steps>div { display: flex; gap: 10px; padding: 13px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--hair); }
.join-steps>div>b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 11px; }
.join-steps span, .join-steps strong { display: block; } .join-steps strong { margin-bottom: 2px; font-size: 13.5px; } .join-steps span { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.guide-danger { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; padding: 15px 16px; border-radius: 14px; color: var(--down); background: var(--down-fill); }
.guide-danger>span { width: 24px; height: 24px; flex: none; } .guide-danger svg { width: 24px; height: 24px; }
.guide-danger b { display: block; font-size: 14px; } .guide-danger p { margin: 2px 0 0; color: #8c2430; font-size: 12.5px; }
.guide-cta { margin-top: 20px; }
@media (max-width: 900px) {
  .guide-shell { padding: 22px 20px; }
  .wallet-intro { display: block; } .safe-pill { display: inline-flex; margin-top: 12px; }
  .wallet-picks, .guide-columns, .join-steps { grid-template-columns: 1fr; }
  .wallet-real { grid-template-columns: 1fr; }
  .guide-columns { gap: 22px; } .wallet-pick { min-height: 72px; }
}
