/* FUNNEL. light by default, dark on request or by system preference. */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f2;
  --bg3: #ececE8;
  --card: #ffffff;
  --line: #e6e6e2;
  --line2: #efefeb;
  --fg: #0c0c0d;
  --fg2: #57574f;
  --fg3: #8c8c85;
  --accent: #3edc86;
  --accent2: #2bc873;
  --accent-ink: #052712;
  --accent-soft: #e5f9ee;
  --up: #16a34a;
  --down: #e5484d;
  --down-soft: #fdecec;
  --warn: #b7791f;
  --dot: #dcdcd7;
  --shadow: 0 1px 2px rgba(12, 12, 13, .04), 0 8px 24px rgba(12, 12, 13, .06);
  --shadow-lg: 0 2px 6px rgba(12, 12, 13, .05), 0 24px 60px rgba(12, 12, 13, .10);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1232px;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --bg2: #151517; --bg3: #1e1e21; --card: #101012; --line: #242427; --line2: #1b1b1e;
    --fg: #f3f3f0; --fg2: #a6a69f; --fg3: #6e6e68; --accent-soft: #0f2a1b; --down-soft: #2a1314; --dot: #26262a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --bg2: #151517; --bg3: #1e1e21; --card: #101012; --line: #242427; --line2: #1b1b1e;
  --fg: #f3f3f0; --fg2: #a6a69f; --fg3: #6e6e68; --accent-soft: #0f2a1b; --down-soft: #2a1314; --dot: #26262a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--fg2); }
.faint { color: var(--fg3); }
.up { color: var(--up); }
.down { color: var(--down); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; flex-shrink: 0; }
.brand .mark { width: 54px; height: 28px; border-radius: 99px; background: var(--accent); display: grid; place-items: center; }
.brand .mark svg { width: 34px; height: 16px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 99px; color: var(--fg2); font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--bg2); }
.nav a.on { color: var(--fg); font-weight: 500; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg2); transition: color .15s, border-color .15s, background .15s; background: var(--card); }
.iconbtn:hover { color: var(--fg); border-color: var(--fg3); }
.iconbtn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
.netpill { white-space: nowrap; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: #fff4db; color: #8a5a00; border: 1px solid #f3dfae; }
:root[data-theme="dark"] .netpill { background: #2a2111; color: #e8b75c; border-color: #4a3816; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .netpill { background: #2a2111; color: #e8b75c; border-color: #4a3816; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn.green { background: var(--accent); color: var(--accent-ink); }
.btn.green:hover { background: var(--accent2); }
.btn.soft { background: var(--bg2); color: var(--fg); }
.btn.soft:hover { background: var(--bg3); }
.btn.line { border-color: var(--line); background: var(--card); }
.btn.line:hover { border-color: var(--fg3); }
.btn.dark { background: var(--fg); color: var(--bg); }
.btn.big { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; height: 48px; font-size: 15.5px; }
.btn[disabled], .btn.off { opacity: .55; pointer-events: none; }
.btn .plus { width: 22px; height: 22px; border-radius: 99px; background: var(--fg); color: var(--bg); display: grid; place-items: center; margin-left: -8px; }
.btn .plus svg { width: 12px; height: 12px; }
.btn.block.gray { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.spin { width: 16px; height: 16px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes rot { to { transform: rotate(1turn); } }

.wbtn { position: relative; }
.wmenu { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.wmenu button, .wmenu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; text-align: left; }
.wmenu button:hover, .wmenu a:hover { background: var(--bg2); }
.wmenu .wdot { width: 10px; height: 10px; border-radius: 99px; }
.wmenu .sub { padding: 8px 12px 6px; font-size: 12px; color: var(--fg3); }

/* ---------- hero ---------- */
.hero { padding-top: 84px; padding-bottom: 48px; }
.hero .grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; background: var(--accent-soft); color: #127a3d; font-size: 12.5px; font-weight: 500; }
:root[data-theme="dark"] .pill { color: #6fe6a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill { color: #6fe6a5; } }
.pill.off { background: var(--bg2); color: var(--fg2); }
.pill i { width: 7px; height: 7px; border-radius: 99px; background: var(--up); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: ping 2s infinite; }
.pill.off i { background: var(--fg3); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
h1.big { font-size: clamp(42px, 6.2vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 650; margin: 26px 0 26px; }
h1.big span { display: block; color: #6b6b64; }
:root[data-theme="dark"] h1.big span { color: #8a8a83; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1.big span { color: #8a8a83; } }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--fg2); max-width: 540px; margin: 0 0 30px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 22px 52px; padding-bottom: 6px; }
.kpis b { display: block; font: 600 26px/1.15 var(--mono); letter-spacing: -.02em; margin-top: 7px; }

/* ---------- intent visualizer ---------- */
.viz { position: relative; border: 1px solid var(--line); border-radius: 4px; background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 14px 14px; height: 440px; overflow: hidden; }
.viz svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viz .wire { fill: none; stroke: var(--line); stroke-width: 1.2; transition: stroke .35s; }
:root[data-theme="dark"] .viz .wire { stroke: #2c2c30; }
.viz .wire.hot { stroke: var(--accent); stroke-width: 2.6; }
.viz .flow { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.viz .cols { position: absolute; left: 0; right: 0; top: 30px; display: grid; grid-template-columns: 22% 31% 13% 16% 18%; padding: 0 34px; }
.viz .cols span { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg2); white-space: nowrap; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; font-size: 14px; width: 182px; transition: border-color .3s, box-shadow .3s; }
.chip b { font-weight: 600; }
.chip .tok { flex-shrink: 0; }
.chip .led { margin-left: auto; width: 6px; height: 6px; border-radius: 99px; background: var(--dot); transition: background .3s; }
.chip.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip.hot .led { background: var(--accent); }
.ibox { position: absolute; width: 222px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; overflow: hidden; }
.ibox .h { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line2); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--fg2); }
.tag { font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: var(--bg2); color: var(--fg2); }
.tag.go { background: var(--accent); color: var(--accent-ink); }
.ibox .pair { display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.ibox .pair .out { color: var(--up); }
.ibox .bids { padding: 4px 12px 10px; display: grid; gap: 7px; }
.bid { display: grid; grid-template-columns: 16px 52px 1fr 34px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg2); }
.bid .bar { height: 4px; border-radius: 9px; background: var(--bg2); overflow: hidden; }
.bid .bar i { display: block; height: 100%; width: 0; background: var(--fg2); border-radius: 9px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.bid.win .bar i { background: var(--accent); }
.bid.win { color: var(--fg); }
.bid .v { text-align: right; font-family: var(--mono); font-size: 10.5px; }
.bid.win .v { color: var(--up); }
.ibox .f { display: flex; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--line2); font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--fg3); text-transform: uppercase; }
.solver { position: absolute; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; white-space: nowrap; }
.solver i { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; }
.solver em { font-style: normal; font-weight: 500; color: var(--fg3); font-size: 11px; font-family: var(--mono); }
.solver.win { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.solver.win em { color: var(--up); }
.settle { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s; }
.settle b { font-size: 15px; font-weight: 600; display: block; line-height: 1.1; }
.settle small { font: 500 9px/1 var(--mono); letter-spacing: .1em; color: var(--fg3); }
.settle.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.mbox { position: absolute; width: 176px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.mbox .h { display: flex; justify-content: space-between; align-items: center; padding: 10px 11px; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--fg2); border-bottom: 1px solid var(--line2); }
.mbox .who { display: flex; gap: 8px; align-items: center; padding: 11px 11px 0; }
.mbox .who b { font-size: 13.5px; display: block; line-height: 1.15; }
.mbox .who small { font-size: 10.5px; color: var(--fg2); }
.mbox svg { display: block; width: 100%; height: 58px; }
.mbox .cv { display: flex; align-items: center; gap: 8px; padding: 8px 11px 10px; border-top: 1px solid var(--line2); font: 500 9px/1 var(--mono); color: var(--fg3); letter-spacing: .08em; }
.mbox .cv .track { flex: 1; height: 4px; background: var(--bg2); border-radius: 9px; overflow: hidden; }
.mbox .cv .track i { display: block; height: 100%; background: var(--up); border-radius: 9px; transition: width .8s; }
.mbox .cv b { font: 600 11.5px/1 var(--mono); color: var(--up); }
.live-coin { position: absolute; display: flex; align-items: center; gap: 9px; font: 600 12.5px/1 var(--sans); transition: transform .4s, opacity .4s; }
.live-coin .av { width: 38px; height: 38px; }
.live-coin.hot .av { box-shadow: 0 0 0 3px var(--accent); }
.viz .cap { position: absolute; left: 34px; bottom: 14px; font: 500 10px/1 var(--mono); letter-spacing: .06em; color: var(--fg3); }

/* ---------- tokens and avatars ---------- */
.tok { position: relative; display: inline-block; width: 20px; height: 20px; flex-shrink: 0; }
.tok img, .tok .ph { width: 100%; height: 100%; border-radius: 99px; }
.tok .ph { display: grid; place-items: center; color: #fff; font: 700 9px/1 var(--sans); }
.tok > .tb { position: absolute; right: -9px; bottom: -4px; font: 700 6.5px/1 var(--mono); padding: 2px 3px; border-radius: 4px; background: var(--fg); color: var(--bg); letter-spacing: .02em; white-space: nowrap; }
.av { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg2); flex-shrink: 0; }
.av.round { border-radius: 99px; }
.av.ph { display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--fg3); border: 1px dashed var(--line); background: transparent; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; height: 38px; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker .run { display: inline-flex; gap: 34px; padding-left: 34px; animation: tick 60s linear infinite; }
.ticker:hover .run { animation-play-state: paused; }
.ticker .it { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); }
.ticker .it b { color: var(--fg); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-top: 72px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-h h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 650; margin: 0; line-height: 1.1; }
.sec-h p { margin: 6px 0 0; color: var(--fg2); }
.page-h { padding: 56px 0 26px; }
.page-h h1 { font-size: 44px; letter-spacing: -.04em; font-weight: 650; margin: 8px 0 10px; line-height: 1.05; }
.page-h p { margin: 0; color: var(--fg2); max-width: 600px; font-size: 15px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.seg { display: inline-flex; padding: 4px; background: var(--bg2); border-radius: 99px; }
.seg button { padding: 7px 18px; border-radius: 99px; font-size: 14px; color: var(--fg2); transition: background .15s, color .15s, box-shadow .15s; }
.seg button.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); font-weight: 500; }
.seg button small { font-family: var(--mono); color: var(--fg3); margin-left: 4px; font-size: 12px; }
.sel { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 34px 0 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--fg2); background: var(--card); cursor: pointer; }
.sel b { color: var(--fg); font-weight: 600; margin-left: 6px; }
.sel select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.sel::after { content: ''; position: absolute; right: 15px; top: 17px; width: 6px; height: 6px; border-right: 1.5px solid var(--fg2); border-bottom: 1.5px solid var(--fg2); transform: rotate(45deg); }
.search { margin-left: auto; position: relative; width: 290px; max-width: 100%; }
.search input { width: 100%; height: 42px; border-radius: 99px; border: 1px solid transparent; background: var(--bg2); padding: 0 40px 0 40px; outline: none; font-size: 14px; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--line); background: var(--card); }
.search svg { position: absolute; left: 15px; top: 14px; width: 14px; height: 14px; color: var(--fg3); }
.search kbd { position: absolute; right: 12px; top: 11px; font: 500 11px/1 var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; color: var(--fg3); background: var(--card); }

/* ---------- coin cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ccard { border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s, transform .2s; min-width: 0; }
.ccard:hover { border-color: #cfcfca; box-shadow: var(--shadow); }
:root[data-theme="dark"] .ccard:hover { border-color: #3a3a3f; }
.ccard .hd { display: flex; gap: 13px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.ccard .hd .t { min-width: 0; flex: 1; }
.ccard .hd b { display: block; font: 700 16px/1.2 var(--mono); letter-spacing: -.01em; }
.ccard .hd small { display: block; color: var(--fg2); font-size: 13px; margin-top: 4px; }
.ccard .hd .k { align-self: flex-start; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--fg2); }
.ccard .bd { padding: 16px 16px 0; }
.ccard .pr { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; min-height: 76px; }
.ccard .pr .p { font: 700 22px/1.2 var(--mono); letter-spacing: -.02em; margin-top: 8px; white-space: nowrap; }
.ccard .pr .c { font: 500 12.5px/1 var(--mono); margin-top: 8px; display: block; }
.ccard .pr svg { width: 136px; height: 56px; flex-shrink: 0; }
.ccard .st { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-top: 14px; }
.ccard .st > div { padding: 11px 12px; }
.ccard .st > div:nth-child(odd) { border-right: 1px solid var(--line); }
.ccard .st > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.ccard .st span { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--fg2); text-transform: uppercase; }
.ccard .st b { display: block; font: 600 13.5px/1.2 var(--mono); margin-top: 9px; }
.curve-row { display: flex; justify-content: space-between; margin: 16px 0 8px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); }
.curve-row b { color: var(--up); font-weight: 600; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; height: 6px; }
.segs i { background: var(--bg2); position: relative; overflow: hidden; }
.segs i::after { content: ''; position: absolute; inset: 0; width: var(--f, 0%); background: var(--up); }
.ccard .ft { margin-top: 16px; border-top: 1px solid var(--line); padding: 13px 16px; display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--mono); color: var(--fg2); }
.ccard .ft .arr { margin-left: auto; color: var(--fg2); transition: transform .2s; }
.ccard:hover .ft .arr { transform: translateX(3px); color: var(--fg); }
.route { display: flex; align-items: center; gap: 6px; }
.route .dots { width: 70px; height: 8px; position: relative; background-image: radial-gradient(var(--fg3) .8px, transparent 1px); background-size: 5px 8px; background-position: center; opacity: .8; }
.route .dots i { position: absolute; top: 1.5px; width: 14px; height: 5px; border-radius: 9px; background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 5px); animation: slide 2.4s linear infinite; }
@keyframes slide { from { left: 0; } to { left: calc(100% - 14px); } }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 56px 24px; text-align: center; color: var(--fg2); }
.empty h3 { margin: 0 0 6px; color: var(--fg); font-size: 18px; letter-spacing: -.02em; }
.empty p { margin: 0 0 18px; }
.skel { background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- how it works ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.steps4 > div { padding: 26px 22px 30px; }
.steps4 > div + div { border-left: 1px solid var(--line); }
.steps4 .n { font: 600 13px/1 var(--mono); color: var(--up); }
.steps4 h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.steps4 p { margin: 0; color: var(--fg2); font-size: 14px; line-height: 1.65; }

/* ---------- footer ---------- */
.foot { margin-top: 110px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; align-items: center; gap: 12px; height: 86px; font-size: 14px; color: var(--fg2); flex-wrap: wrap; }
.foot b { color: var(--fg); font-weight: 650; letter-spacing: -.02em; }
.foot nav { margin-left: auto; display: flex; gap: 18px; }
.foot nav a:hover { color: var(--fg); }

/* ---------- forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 16px; }
.field { display: block; min-width: 0; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field > span small { font-weight: 400; color: var(--fg2); }
.input { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus-within { border-color: var(--fg3); box-shadow: 0 0 0 3px var(--bg2); }
.input input, .input textarea { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; font-size: 14.5px; }
.input input::placeholder, textarea::placeholder { color: var(--fg3); }
.input.mono input { font-family: var(--mono); font-size: 13.5px; }
.input.area { height: auto; padding: 12px 14px; align-items: stretch; }
.input.area textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.input.locked { background: var(--bg2); color: var(--fg2); }
.input .pre { color: var(--fg2); font-family: var(--mono); }
.input .suf { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg2); flex-shrink: 0; }
.input.bad { border-color: var(--down); }
.hint { font-size: 12.5px; color: var(--fg2); margin-top: 8px; }
.hint.bad { color: var(--down); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sep { height: 1px; background: var(--line); margin: 22px 0; }
.err-box { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--down-soft); color: var(--down); font-size: 13.5px; }
.note-box { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--bg2); color: var(--fg2); font-size: 13.5px; }

/* ---------- launch ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.imgpick { width: 108px; height: 108px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--bg2); display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--fg2); cursor: pointer; position: relative; overflow: hidden; flex-shrink: 0; transition: border-color .15s; }
.imgpick:hover { border-color: var(--fg3); }
.imgpick svg { width: 20px; height: 20px; margin: 0 auto 6px; display: block; }
.imgpick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgpick.bad { border-color: var(--down); }
.coin-top { display: flex; gap: 16px; }
.coin-top .fields { flex: 1; display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-content: start; min-width: 0; }
.coin-top .fields .hint { grid-column: 1 / -1; margin-top: -2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips button { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); font: 500 12px/1.2 var(--mono); color: var(--fg2); }
.chips button:hover, .chips button.on { border-color: var(--fg); color: var(--fg); }
.devbuy { max-width: 220px; }
.paygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.paygrid button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px 11px; border-radius: 12px; border: 1.5px solid transparent; font-size: 12px; font-weight: 500; transition: background .15s, border-color .15s; }
.paygrid button:hover { background: var(--bg2); }
.paygrid button.on { border-color: var(--fg); background: var(--card); }
.paygrid .tok { width: 26px; height: 26px; }
.pay-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.pay-h small { font-family: var(--mono); color: var(--fg2); font-weight: 400; font-size: 12px; }
.sticky { position: sticky; top: 76px; }
.quote { background: var(--bg2); border-radius: 14px; padding: 16px; }
.quote .r1 { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg2); }
.quote .amt { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font: 650 28px/1.2 var(--sans); letter-spacing: -.02em; min-height: 36px; }
.quote .amt small { font-size: 15px; font-weight: 500; color: var(--fg2); margin-top: 6px; }
.quote .amt .tok { width: 24px; height: 24px; }
.quote .sub { font-size: 12.5px; color: var(--fg2); line-height: 1.6; }
.quote .sub b { color: var(--fg); font-weight: 500; }

/* ---------- launch status ---------- */
.lstat { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.lhead { display: flex; gap: 16px; align-items: center; }
.lhead .av { width: 64px; height: 64px; border-radius: 12px; }
.lhead h1 { font-size: 32px; letter-spacing: -.035em; margin: 0; font-weight: 650; line-height: 1.1; }
.lhead .s { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: var(--bg2); color: var(--fg2); }
.badge.go { background: var(--accent-soft); color: #127a3d; }
.badge.bad { background: var(--down-soft); color: var(--down); }
.badge.work { background: #fff4db; color: #8a5a00; }
:root[data-theme="dark"] .badge.go { color: #6fe6a5; }
:root[data-theme="dark"] .badge.work { background: #2a2111; color: #e8b75c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.go { color: #6fe6a5; } :root:not([data-theme="light"]) .badge.work { background: #2a2111; color: #e8b75c; } }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 26px 0 20px; }
.stepper > div { position: relative; padding-top: 22px; font-size: 13px; color: var(--fg3); }
.stepper > div::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper > div::after { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); }
.stepper > div.done { color: var(--fg); }
.stepper > div.done::before { background: var(--up); }
.stepper > div.done::after { background: var(--up); border-color: var(--up); }
.stepper > div.now { color: var(--fg); font-weight: 500; }
.stepper > div.now::after { border-color: var(--up); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); animation: ping 1.6s infinite; }
.stepper > div.stop::after { border-color: var(--down); background: var(--down); }
.stepper small { display: block; font: 500 11px/1.4 var(--mono); color: var(--fg3); margin-top: 2px; }
.deposit { display: grid; grid-template-columns: 1fr 168px; gap: 22px; align-items: start; }
.qr { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.big-amt { font: 650 30px/1.15 var(--sans); letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-amt .tok { width: 28px; height: 28px; }
.copyline { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 12px; padding: 4px 4px 4px 14px; font: 500 13px/1.4 var(--mono); min-width: 0; }
.copyline span { overflow-wrap: anywhere; flex: 1; min-width: 0; padding: 8px 0; }
.copyline button { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font: 500 12.5px/1 var(--sans); }
.copyline button:hover { border-color: var(--fg3); }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--fg2); flex-shrink: 0; }
.kv b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv b.mono { font-size: 12.5px; }
.kv a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.kv a:hover { text-decoration-color: var(--fg); }
.working { display: flex; gap: 14px; align-items: center; padding: 22px; border-radius: 14px; background: var(--bg2); }
.working .spin { width: 22px; height: 22px; color: var(--up); }
.working b { display: block; font-size: 16px; }
.working p { margin: 2px 0 0; color: var(--fg2); font-size: 13.5px; }
.liveb { text-align: center; padding: 26px 10px 8px; }
.liveb .av { width: 84px; height: 84px; border-radius: 16px; margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--accent-soft); }
.liveb h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.liveb p { margin: 0 auto 20px; color: var(--fg2); max-width: 420px; }
.sim { margin-top: 14px; padding: 12px 14px; border: 1px dashed #e9c46a; border-radius: 12px; background: #fffbf0; font-size: 13px; color: #6b4e00; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sim button { padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid #ecd9a4; font-size: 12.5px; font-weight: 500; color: #6b4e00; }
.sim button:hover { border-color: #b7791f; }
:root[data-theme="dark"] .sim { background: #1f1a0d; border-color: #5a4614; color: #e8c46a; }
:root[data-theme="dark"] .sim button { background: #2a2311; border-color: #5a4614; color: #e8c46a; }

/* ---------- coin page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--fg2); font-size: 14px; margin: 30px 0 16px; }
.back:hover { color: var(--fg); }
.cpage { border: 1px solid var(--line); background: var(--card); }
.cphead { display: flex; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cphead .av { width: 48px; height: 48px; }
.cphead .t { min-width: 0; }
.cphead .t1 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cphead .t1 b { font: 700 22px/1.1 var(--mono); }
.cphead .t1 span { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--fg2); text-transform: uppercase; }
.cphead .t2 { display: flex; align-items: center; gap: 12px; margin-top: 7px; font-size: 13px; color: var(--fg2); flex-wrap: wrap; }
.cphead .t2 .ca { font-family: var(--mono); font-size: 12.5px; }
.cphead .t2 button { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--fg3); text-transform: uppercase; }
.cphead .t2 button:hover { color: var(--fg); }
.cphead .t2 a svg { width: 13px; height: 13px; display: block; }
.cphead .px { margin-left: auto; display: flex; align-items: flex-end; gap: 18px; text-align: right; }
.cphead .px .label { font-size: 10px; }
.cphead .px b { display: block; font: 700 32px/1.1 var(--mono); letter-spacing: -.03em; margin-top: 4px; }
.cphead .px .ch { font: 600 17px/1 var(--mono); }
.cpstats { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--line); }
.cpstats > div { padding: 14px 12px; border-right: 1px solid var(--line); min-width: 0; }
.cpstats > div:last-child { border-right: 0; }
.cpstats b { display: block; font: 600 14px/1.2 var(--mono); margin-top: 9px; white-space: nowrap; }
.cpstats .label { font-size: 10px; }
.cpbody { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.cpmain { border-right: 1px solid var(--line); min-width: 0; }
.chartbar { display: flex; justify-content: flex-end; gap: 10px; padding: 12px; }
.tfs { display: inline-flex; background: var(--bg2); padding: 3px; border-radius: 4px; }
.tfs button { font: 500 11px/1 var(--mono); padding: 7px 10px; border-radius: 3px; color: var(--fg2); }
.tfs button.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.chart { height: 420px; position: relative; }
.chart .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg3); font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.tbls { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.tbls > div { min-width: 0; }
.tblh { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tblh span { color: var(--fg2); font-weight: 500; }
table.t { width: 100%; border-collapse: collapse; font: 500 11.5px/1.2 var(--mono); }
table.t th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .1em; color: var(--fg2); padding: 11px 9px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
table.t td { padding: 11px 9px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t .r { text-align: right; }
table.t tr.new td { animation: flash 1.6s; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.tscroll { max-height: 360px; overflow: auto; }
.hbar { display: inline-block; width: 64px; height: 5px; background: var(--bg2); vertical-align: middle; margin-right: 10px; border-radius: 9px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--fg); }
.side .blk { border-bottom: 1px solid var(--line); }
.side .blk:last-child { border-bottom: 0; }
.side .bh { display: flex; justify-content: space-between; padding: 14px 12px; border-bottom: 1px solid var(--line2); font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.side .bh span { color: var(--fg2); font-weight: 500; }
.side .bb { padding: 14px 12px; }
.rtmap { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 4px; text-align: center; padding: 12px 6px 6px; }
.rtmap .n .tok, .rtmap .n .av { width: 34px; height: 34px; margin: 0 auto; border-radius: 99px; }
.rtmap .n b { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; margin-top: 9px; text-transform: uppercase; }
.rtmap .n small { display: block; font: 500 9.5px/1.3 var(--mono); color: var(--fg3); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.rtmap .ln { width: 46px; margin-top: 16px; position: relative; height: 4px; background-image: radial-gradient(var(--fg3) .8px, transparent 1px); background-size: 5px 4px; }
.rtmap .ln i { position: absolute; top: 0; width: 12px; height: 4px; background: var(--accent); border-radius: 9px; animation: slide 2s linear infinite; }
.rtmap .ln em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 500 9.5px/1 var(--mono); color: var(--fg2); white-space: nowrap; font-style: normal; }
.perf > div { display: grid; grid-template-columns: 36px 1fr 74px; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line2); font: 500 12px/1 var(--mono); }
.perf > div:last-child { border-bottom: 0; }
.perf .pb { height: 8px; background: var(--bg2); position: relative; }
.perf .pb::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.perf .pb i { position: absolute; top: 0; bottom: 0; }
.perf .v { text-align: right; }
.press .bar { display: flex; height: 8px; background: var(--bg2); }
.press .bar i:first-child { background: var(--up); }
.press .bar i:last-child { background: #e57373; }
.press .lg { display: flex; justify-content: space-between; margin-top: 12px; font: 500 12px/1.6 var(--mono); }
.dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line2); font: 500 12px/1.3 var(--mono); }
.dl > div:last-child { border-bottom: 0; }
.dl > div > span:first-child { color: var(--fg3); letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; flex-shrink: 0; }
.dl > div > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dl a:hover { text-decoration: underline; }
.trade-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.trade-cta .btn { height: 40px; }
.segs.big { height: 8px; }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10px/1 var(--mono); color: var(--fg3); }

/* ---------- swap ---------- */
.swapbg { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 16px 16px; border-bottom: 1px solid var(--line); padding-bottom: 60px; }
.swap-h { text-align: center; padding: 50px 0 28px; }
.swap-h h1 { font-size: 46px; letter-spacing: -.04em; font-weight: 650; margin: 0 0 8px; }
.swap-h p { color: var(--fg2); margin: 0; }
.swapcard { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-lg); }
.sbox { background: var(--bg2); border-radius: 16px; padding: 16px 16px 14px; }
.sbox + .flip + .sbox { margin-top: 0; }
.sbox .l { font-size: 14px; color: var(--fg2); }
.sbox .r { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 650 36px/1.1 var(--sans); letter-spacing: -.03em; }
.sbox .amtout { flex: 1; min-width: 0; font: 650 36px/1.1 var(--sans); letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbox .u { font-size: 13px; color: var(--fg2); }
.tokbtn { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); flex-shrink: 0; }
.tokbtn:hover { border-color: var(--fg3); }
.tokbtn .tok { width: 26px; height: 26px; }
.tokbtn b { display: block; font-size: 15px; line-height: 1.1; text-align: left; }
.tokbtn small { display: block; font-size: 11px; color: var(--fg2); text-align: left; }
.tokbtn svg { width: 12px; height: 12px; color: var(--fg2); margin-left: 4px; }
.flip { display: grid; place-items: center; height: 8px; position: relative; z-index: 2; }
.flip button { width: 36px; height: 36px; border-radius: 10px; background: var(--card); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--fg2); }
.flip button:hover { color: var(--fg); }
.flip svg { width: 15px; height: 15px; }
.sinfo { padding: 14px 12px 4px; }
.sinfo .kv > div { padding: 7px 0; border: 0; font-size: 13.5px; }
.sinfo .est { font-size: 11.5px; color: var(--fg3); margin: 6px 0 2px; }
.sform { padding: 6px 12px 12px; display: grid; gap: 14px; }
.sform .field > span { font-size: 13px; margin-bottom: 6px; }
.swap-foot { text-align: center; color: var(--fg2); font-size: 13px; max-width: 480px; margin: 22px auto 0; line-height: 1.6; }
.modal-bg { position: fixed; inset: 0; background: rgba(10, 10, 12, .38); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; max-height: min(640px, 92vh); display: flex; flex-direction: column; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; animation: pop .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; font-weight: 600; }
.modal .ms { padding: 0 18px 10px; }
.modal .ms .input { height: 42px; }
.modal .chainrow { display: flex; gap: 6px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.modal .chainrow button { flex-shrink: 0; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--fg2); }
.modal .chainrow button.on { border-color: var(--fg); color: var(--fg); }
.modal .ml { overflow-y: auto; padding: 0 8px 10px; border-top: 1px solid var(--line2); }
.modal .ml button { display: flex; width: 100%; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-align: left; }
.modal .ml button:hover { background: var(--bg2); }
.modal .ml .tok { width: 30px; height: 30px; }
.modal .ml b { display: block; font-size: 14.5px; }
.modal .ml small { display: block; font-size: 12px; color: var(--fg2); }
.modal .ml .px { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--fg2); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 34px; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 13.5px; padding-bottom: 20px; }
.toc .label { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--fg2); border-left: 1px solid var(--line); }
.toc a.sub { padding-left: 24px; font-size: 13px; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-left: 2px solid var(--up); padding-left: 11px; font-weight: 500; }
.toc a.sub.on { padding-left: 23px; }
.doc { max-width: 780px; min-width: 0; }
.doc h1 { font-size: 42px; letter-spacing: -.04em; font-weight: 650; margin: 8px 0 14px; line-height: 1.05; }
.doc h2 { font-size: 26px; letter-spacing: -.03em; font-weight: 650; margin: 64px 0 14px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; letter-spacing: -.01em; font-weight: 600; margin: 32px 0 8px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--fg2); line-height: 1.75; font-size: 15px; }
.doc p b, .doc li b { color: var(--fg); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 12.5px; background: var(--bg2); padding: 2px 6px; border-radius: 5px; color: var(--fg); }
.doc .lead { font-size: 17px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.doc th { text-align: left; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--line2); color: var(--fg2); vertical-align: top; }
.doc td:first-child { color: var(--fg); font-weight: 500; }
.doc .tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; }
.doc .tw table { margin: 0; }
.doc .tw tr:last-child td { border-bottom: 0; }
.callout { border-radius: 14px; padding: 14px 16px; background: var(--accent-soft); color: #0d5c2e; font-size: 14px; line-height: 1.65; margin: 18px 0; }
:root[data-theme="dark"] .callout { color: #8eeab9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout { color: #8eeab9; } }
.callout.warn { background: #fff7e6; color: #7a5300; }
:root[data-theme="dark"] .callout.warn { background: #2a2111; color: #e8c46a; }
.doc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.doc .two > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.doc .two b { display: block; margin-bottom: 6px; }
.doc .two p { margin: 0; font-size: 14px; }
.qs { counter-reset: q; list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.qs li { counter-increment: q; position: relative; padding: 0 0 0 40px; }
.qs li::before { content: counter(q); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 99px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 600 12px/1 var(--mono); }
.flowd { display: flex; align-items: stretch; gap: 0; margin: 20px 0; overflow-x: auto; padding-bottom: 4px; }
.flowd .n { flex: 1; min-width: 118px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); }
.flowd .n b { display: block; font-size: 13.5px; }
.flowd .n small { color: var(--fg2); font-size: 12px; line-height: 1.4; display: block; margin-top: 4px; }
.flowd .a { flex: 0 0 26px; display: grid; place-items: center; color: var(--fg3); }
.lifecycle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.lifecycle code { padding: 6px 10px; border-radius: 99px; }
.lifecycle .arr { color: var(--fg3); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--fg2); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--fg); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s; }
.toast.bad { background: var(--down); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpstats { grid-template-columns: repeat(4, 1fr); }
  .cpstats > div:nth-child(4) { border-right: 0; }
  .cpstats > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .viz { transform-origin: top left; }
}
@media (max-width: 980px) {
  .nav, .top .right .hide-m { display: none; }
  .menu-btn { display: grid; }
  .nav.open { display: flex; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; gap: 2px; }
  .nav.open a { padding: 11px 10px; font-size: 15px; }
  .hero .grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 36px; }
  .launch-grid, .lstat { grid-template-columns: 1fr; }
  .launch-grid .sticky { position: static; order: -1; }
  .cpbody { grid-template-columns: 1fr; }
  .cpmain { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .steps4 > div:nth-child(3) { border-left: 0; }
  .steps4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; }
  .brand .mark { width: 46px; }
  .brand .name, .netpill { display: none; }
  .hero { padding-top: 48px; padding-bottom: 36px; }
  .kpis { grid-template-columns: repeat(2, auto); }
  .cards { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; }
  .tbls { grid-template-columns: 1fr; }
  .tbls > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cpstats { grid-template-columns: repeat(2, 1fr); }
  .cpstats > div { border-bottom: 1px solid var(--line); }
  .cpstats > div:nth-child(even) { border-right: 0; }
  .cpstats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .cphead .px { margin-left: 0; width: 100%; justify-content: space-between; text-align: left; }
  .row2 { grid-template-columns: 1fr; }
  .coin-top { flex-direction: column; }
  .coin-top .fields { grid-template-columns: 1fr 120px; }
  .paygrid { grid-template-columns: repeat(4, 1fr); }
  .deposit { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .stepper { font-size: 11px; }
  .stepper > div { font-size: 11.5px; }
  .stepper small { display: none; }
  .steps4 { grid-template-columns: 1fr; }
  .steps4 > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .page-h h1, .swap-h h1, .doc h1 { font-size: 34px; }
  .sbox input, .sbox .amtout { font-size: 30px; }
  .foot .wrap { height: auto; padding: 22px 16px; }
  .foot nav { margin-left: 0; width: 100%; }
  .doc .two { grid-template-columns: 1fr; }
  .chart { height: 300px; }
  .filters .sel { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
