/* Vaulted. Two looks in one sheet:
   .H  the home page: a night sea under a low moon (web/sea.js draws it), the mark, one line, two pills.
   .A  the app: dark bento cards, a pill nav with a white active pill, big light figures with grey decimals, a
       sea-glass gradient hero card, teal for the floor. */
:root {
  --bg: #0a0b0d; --panel: #141518; --panel-2: #1b1c20; --panel-3: #23252a;
  --line: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.1); --line-3: rgba(255,255,255,.16);
  --text: #f2f4f5; --mute: rgba(242,244,245,.56); --dim: rgba(242,244,245,.34);
  --floor: #6ee7d4; --floor-2: #2dd4bf; --floor-ink: #04241f; --red: #ff8a8a; --gold: #f5d48a;
  --sea: linear-gradient(158deg, #4fa79b 0%, #8ed4c7 24%, #d9f3ee 52%, #f1fbf8 64%, #acdfd5 85%, #6fbfb1 100%);
  --deep: linear-gradient(150deg, #10302f 0%, #0d1c22 45%, #111318 100%);
  --r: 22px; --r-s: 16px; --r-xs: 12px;
  --out: cubic-bezier(.16,1,.3,1); --in: cubic-bezier(.55,0,.75,.2); --spring: cubic-bezier(.34,1.42,.64,1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; font-size: 14px; line-height: 1.45; }
body:not(.on-home) { background: radial-gradient(90% 420px at 50% -160px, rgba(64,160,150,.16), rgba(64,160,150,0) 70%), var(--bg); background-repeat: no-repeat; min-height: 100vh; }
body.on-home { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--floor); outline-offset: 2px; }
svg { display: block; }

/* ---------------------------------------------------------------- the mark */
.mark { display: inline-block; width: 26px; height: 26px; flex: none; }
.mark svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 600; font-size: 13.5px; letter-spacing: -.005em; white-space: nowrap; transition: transform .25s var(--out), background-color .2s, opacity .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; }
.btn-white { background: #fff; color: #0a0b0d; }
.btn-white:hover { background: #e9f4f2; }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--panel-3); color: var(--text); }
.btn-dark:hover { background: #2c2e34; }
.btn-floor { background: var(--floor); color: var(--floor-ink); }
.btn-floor:hover { background: #8ff0e0; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; height: 46px; font-size: 14.5px; }
.btn[disabled], .btn.is-off { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--panel-2); color: var(--text); border: 0; transition: background-color .2s; }
.icon-btn:hover { background: var(--panel-3); }
.icon-btn svg { width: 14px; height: 14px; }
.chip-ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 12.5px; transition: background-color .2s; }
.chip-ca b { font-weight: 700; color: var(--text); }
.chip-ca span { color: var(--text); font-variant-numeric: tabular-nums; }
.chip-ca:hover { background: var(--panel-3); }
.chip-net { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); color: var(--mute); font-weight: 500; font-size: 12.5px; }
.chip-net i { width: 6px; height: 6px; border-radius: 50%; background: var(--floor); box-shadow: 0 0 0 3px rgba(110,231,212,.16); }
.chip-net.is-demo i { background: var(--gold); box-shadow: 0 0 0 3px rgba(245,212,138,.16); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.tag.up { color: var(--floor); }
.tag.down { color: var(--red); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel-2); }
.seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-size: 12px; font-weight: 600; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: #0a0b0d; }
.go { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); flex: none; transition: background-color .2s, transform .3s var(--out); }
.go:hover { background: rgba(255,255,255,.16); transform: rotate(45deg); }
.go svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- the home page */
.H { position: fixed; inset: 0; background: #03070b; color: #fff; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.H-sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: 0; transform: scale(1.05); transition: opacity 1.4s ease, transform 2.6s var(--out); }
.H.is-in .H-sea { opacity: 1; transform: scale(1); }
.H-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(3,6,10,.7) 0%, rgba(3,6,10,.15) 14%, rgba(3,6,10,0) 30%, rgba(3,6,10,0) 64%, rgba(3,6,10,.32) 86%, rgba(3,6,10,.85) 100%),
  radial-gradient(ellipse 46% 36% at 50% 44%, rgba(3,6,10,.46), rgba(3,6,10,0) 72%); }
.H-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 28px; }
.H-left { display: flex; align-items: center; gap: 40px; }
.H-brand .mark { width: 30px; height: 30px; }
.H-nav { display: flex; gap: 30px; }
.H-nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.86); transition: color .2s; }
.H-nav a:hover { color: #fff; }
.H-right { display: flex; align-items: center; gap: 10px; }
.H .chip-ca { background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.H-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px 6vh; }
.H-mark { display: block; width: 64px; height: 64px; margin-bottom: 26px; filter: drop-shadow(0 6px 24px rgba(160,230,220,.28)); opacity: 0; transform: translateY(14px) scale(.92); transition: opacity 1s ease .5s, transform 1.2s var(--out) .5s; }
.H-mark svg { width: 100%; height: 100%; }
.H-title { margin: 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.H-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.H-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--out); }
.H-sub { max-width: 470px; margin: 22px auto 0; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.8); opacity: 0; transform: translateY(10px); transition: opacity .9s ease 1.05s, transform 1s var(--out) 1.05s; }
.H-cta { display: flex; gap: 10px; margin-top: 30px; opacity: 0; transform: translateY(10px); transition: opacity .9s ease 1.25s, transform 1s var(--out) 1.25s; }
.H.is-in .H-mark, .H.is-in .H-sub, .H.is-in .H-cta { opacity: 1; transform: none; }
.H.is-in .H-title .w > span { transform: none; }
.H-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 28px 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12.5px; color: rgba(255,255,255,.5); }
.H-foot .btn svg { width: 13px; height: 13px; }
.H.is-out { opacity: 0; transition: opacity .45s ease; }

/* ---------------------------------------------------------------- the app shell */
.A { min-height: 100vh; display: flex; flex-direction: column; }
.A-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 24px; background: linear-gradient(180deg, rgba(10,11,13,.92), rgba(10,11,13,.72) 70%, rgba(10,11,13,0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.A-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; justify-self: start; }
.A-brand .mark { width: 26px; height: 26px; }
.A-nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.A-nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--mute); transition: color .25s; }
.A-nav a:hover { color: var(--text); }
.A-nav a.on { color: #0a0b0d; }
.A-nav a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.A-pill { position: absolute; z-index: 0; top: 4px; left: 4px; height: 34px; width: 0; border-radius: 999px; background: #fff; transition: transform .5s var(--out), width .5s var(--out), opacity .2s; opacity: 0; }
.A-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.A-view { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 8px 24px 40px; outline: none; }
.A-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px 24px 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.A-foot nav { display: flex; gap: 18px; }
.A-foot nav a:hover { color: var(--text); }
.A-brand-sm { font-size: 13.5px; color: var(--mute); }
.A-brand-sm .mark { width: 20px; height: 20px; }
.A-foot-note { margin-left: auto; }

/* ---------------------------------------------------------------- cards */
.card { position: relative; background: var(--panel); border-radius: var(--r); padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.card-t { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.005em; }
.card-t small { font-weight: 500; color: var(--dim); font-size: 11.5px; margin-left: 4px; }
.card-k { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.card-k2 { font-size: 11px; color: var(--dim); font-weight: 500; margin-bottom: 2px; }
.rise { animation: rise .9s var(--out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.fade { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* big light figures with grey decimals */
.fig { font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig .d { color: var(--dim); }
.fig sup, .fig .u { font-size: .3em; font-weight: 600; letter-spacing: 0; vertical-align: top; position: relative; top: .25em; margin-left: .25em; color: var(--mute); }
.fig sub, .num sub { font-size: .62em; vertical-align: -.18em; letter-spacing: 0; }
.fig-xl { font-size: 64px; }
.fig-l { font-size: 40px; }
.fig-m { font-size: 30px; }
.fig-s { font-size: 22px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--floor); }
.down { color: var(--red); }
.muted { color: var(--mute); }
.dim { color: var(--dim); }

/* avatars */
.av { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-3); color: var(--mute); font-weight: 700; font-size: 13px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-lg { width: 46px; height: 46px; border-radius: 13px; font-size: 17px; }
.av-xl { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }

/* ---------------------------------------------------------------- overview (the bento) */
.ov { display: grid; grid-template-columns: 300px minmax(0,1fr) 352px; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stat { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; }
.stat .fig { margin-top: 18px; }
.hero { min-height: 212px; background: var(--sea); color: #0b1416; box-shadow: none; overflow: hidden; display: flex; flex-direction: column; }
.hero .card-t { color: #0b1416; font-size: 15px; }
.hero .fig { font-size: 78px; margin-top: 22px; color: #0b1416; }
.hero .fig .d { color: rgba(11,20,22,.38); }
.hero .fig sup { color: rgba(11,20,22,.6); }
.hero .go { background: rgba(255,255,255,.55); color: #0b1416; }
.hero .go:hover { background: #fff; }
.hero .tag { background: rgba(255,255,255,.66); color: #0b1416; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.hero-spark { width: 46%; max-width: 300px; height: 52px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.split > div { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 118px; }
.split > div + div { background: var(--panel-2); }
.split .fig { margin-top: 16px; }
.split-one { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; margin: 10px 0 6px; }
.gauge svg { width: 220px; height: 118px; }
.gauge-v { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; }
.gauge-v .fig { font-size: 34px; }
.gauge-k { font-size: 11.5px; color: var(--dim); text-align: center; margin-top: -4px; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); }
.legend li i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.legend li b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.newest { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.newest .av { width: 38px; height: 38px; transition: transform .3s var(--out); }
.newest a:hover .av { transform: translateY(-2px); }
.newest .plus { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); transition: background-color .2s, color .2s; }
.newest .plus:hover { background: var(--panel-3); color: var(--text); }
.newest .plus svg { width: 16px; height: 16px; }
.chart-card { min-height: 360px; display: flex; flex-direction: column; }
.chart-card .chart { flex: 1; min-height: 240px; margin-top: 10px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .ax { fill: var(--dim); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--mute); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; }
.feed { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); animation: fade .5s ease both; }
.feed li:first-child { border-top: 0; }
.feed .t { flex: 1; min-width: 0; }
.feed .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .t span { font-size: 11.5px; color: var(--dim); }
.feed .v { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed .v span { display: block; font-size: 11px; font-weight: 600; color: var(--floor); }
.feed .v span.out { color: var(--gold); }
.feed-empty { padding: 26px 0; text-align: center; color: var(--dim); font-size: 13px; }
.activity { flex: 1; min-height: 480px; }
.strong { background: var(--deep); box-shadow: inset 0 0 0 1px rgba(110,231,212,.12); min-height: 190px; display: flex; flex-direction: column; }
.strong .fig { margin-top: 6px; }
.strong-k { font-size: 12.5px; color: var(--mute); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; margin: 6px -20px -8px; padding: 0 20px 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 980px; }
.tbl th { text-align: right; font-weight: 500; font-size: 11.5px; color: var(--dim); padding: 10px 10px; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td { text-align: right; padding: 11px 10px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl tbody tr { cursor: pointer; transition: background-color .2s; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.025); }
.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell b { display: block; font-weight: 600; font-size: 13.5px; color: var(--text); }
.coin-cell > span > span { font-size: 11.5px; color: var(--dim); }
.fvp { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar { position: relative; width: 70px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--floor); }
.spark { width: 96px; height: 28px; display: inline-block; }
.empty { padding: 40px 0; text-align: center; color: var(--dim); }

/* ---------------------------------------------------------------- page heads */
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; margin: 6px 0 22px; }
.page-h h1 { margin: 0; font-size: 48px; line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.page-h p { margin: 8px 0 0; font-size: 17px; color: var(--mute); max-width: 760px; letter-spacing: -.01em; }
.page-stats { display: flex; gap: 36px; }
.page-stats .card-k2 { font-size: 11.5px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search { position: relative; width: 300px; max-width: 100%; }
.search input { width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; border: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); outline: none; }
.search input:focus { box-shadow: inset 0 0 0 1px var(--line-3); }
.search svg { position: absolute; left: 13px; top: 12px; width: 14px; height: 14px; fill: none; stroke: var(--dim); stroke-width: 1.6; }

/* ---------------------------------------------------------------- coin page */
.coin-h { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin: 4px 0 20px; }
.coin-id { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 280px; }
.coin-id h1 { margin: 0; font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.coin-id p { margin: 8px 0 0; font-size: 18px; color: var(--mute); letter-spacing: -.01em; }
.coin-id p a { color: var(--mute); }
.coin-stats { display: flex; gap: 34px; align-items: flex-start; }
.coin-stats .meter { width: 160px; }
.meter .fig-s { font-size: 22px; }
.meter-bar { position: relative; height: 5px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.08); }
.meter-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--floor); }
.meter-bar i.w { background: #fff; }
.meter-bar em { position: absolute; top: -5px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--floor); transform: translateX(-4px); }
.meter-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cg { display: grid; grid-template-columns: 230px minmax(0,1fr) 350px; gap: 12px; }
.mini { min-height: 128px; display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.ring { width: 44px; height: 44px; flex: none; }
.ring text { fill: var(--text); font-size: 10px; font-weight: 600; }
.bars6 { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.bars6 i { width: 7px; border-radius: 3px; background: rgba(255,255,255,.12); }
.bars6 i.on { background: var(--floor); }
.price-card { min-height: 420px; display: flex; flex-direction: column; }
.price-card .card-h { flex-wrap: wrap; row-gap: 10px; }
.price-card .chart { flex: 1; min-height: 300px; margin-top: 12px; }
.trade { display: flex; flex-direction: column; }
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--panel-2); }
.tabs3 button { height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-weight: 600; font-size: 13.5px; transition: background-color .2s, color .2s; }
.tabs3 button.on { background: #fff; color: #0a0b0d; }
.field-k { display: flex; justify-content: space-between; margin: 16px 0 7px; font-size: 12px; color: var(--mute); }
.amount { display: flex; align-items: center; height: 54px; padding: 0 16px; border-radius: var(--r-s); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.amount:focus-within { box-shadow: inset 0 0 0 1px var(--line-3); }
.amount input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.amount input::placeholder { color: var(--dim); }
.amount span { font-size: 12px; font-weight: 600; color: var(--mute); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.presets button { height: 30px; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--mute); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.presets button:hover { background: var(--panel-3); color: var(--text); }
.rows { margin: 16px 0 14px; display: grid; gap: 8px; font-size: 12.5px; }
.rows div { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.rows b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rows b.up { color: var(--floor); }
.trade-note { margin: 10px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.45; }
.pos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 12px; }
.pos .card-k2 { font-size: 11.5px; }
.pos b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pos b.up { color: var(--floor); }
.cg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.splitbar { display: flex; height: 34px; margin-top: 14px; border-radius: 10px; overflow: hidden; font-size: 11.5px; font-weight: 600; }
.splitbar span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.splitbar .a { background: var(--floor); color: var(--floor-ink); }
.splitbar .b { background: var(--panel-3); color: var(--mute); flex: 1; }
.prose { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); }
.prose b { color: var(--text); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tiles div { padding: 11px 12px; border-radius: var(--r-xs); background: var(--panel-2); }
.tiles b { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.formula { margin-top: 10px; padding: 11px 13px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.formula b { color: var(--text); }
.addr { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.addr button { border: 0; background: none; padding: 0; color: var(--dim); }
.addr button:hover { color: var(--text); }

/* ---------------------------------------------------------------- launch */
.lg { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 12px; align-items: start; }
.form { padding: 22px; }
.f-row { display: grid; grid-template-columns: 1fr 150px; gap: 12px; }
.f { display: block; margin-bottom: 16px; }
.f > span:not(.amount) { display: block; margin-bottom: 7px; font-size: 12px; color: var(--mute); font-weight: 500; }
.f input, .f textarea { width: 100%; padding: 0 14px; height: 46px; border-radius: var(--r-xs); border: 0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); outline: none; transition: box-shadow .2s; }
.f textarea { height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.f input:focus, .f textarea:focus { box-shadow: inset 0 0 0 1px var(--line-3); }
.f input::placeholder, .f textarea::placeholder { color: var(--dim); }
.f .amount { height: 50px; border-radius: var(--r-xs); }
.f .amount input { box-shadow: none; background: transparent; height: auto; padding: 0; font-size: 20px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-xs); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s; }
.drop:hover, .drop.over { box-shadow: inset 0 0 0 1px var(--line-3); }
.drop .av { width: 52px; height: 52px; border-radius: 12px; }
.drop b { display: block; font-size: 13px; font-weight: 600; }
.drop span { font-size: 11.5px; color: var(--dim); }
.more { margin: -4px 0 14px; }
.more summary { cursor: pointer; font-size: 12.5px; color: var(--mute); font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+ '; }
.more[open] summary::before { content: '– '; }
.more .f-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.form-note { margin: 12px 0 0; font-size: 12px; color: var(--dim); line-height: 1.5; }
.form-err { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-xs); background: rgba(255,138,138,.08); color: var(--red); font-size: 12.5px; }
.preview { background: var(--deep); box-shadow: inset 0 0 0 1px rgba(110,231,212,.12); min-height: 170px; display: flex; flex-direction: column; }
.preview .fig { margin-top: 4px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { padding: 11px 12px; border-radius: var(--r-xs); background: var(--panel-2); font-size: 11.5px; color: var(--dim); }
.steps li b { display: block; color: var(--mute); font-size: 12px; margin-bottom: 2px; }
.steps li.done { background: rgba(110,231,212,.08); }
.steps li.done b { color: var(--floor); }
.steps li.now { box-shadow: inset 0 0 0 1px rgba(110,231,212,.5); }
.steps li.now b { color: var(--text); }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--floor); animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- portfolio */
.connect-card { padding: 46px 20px; text-align: center; }
.connect-card p { margin: 8px auto 18px; color: var(--mute); max-width: 380px; }

/* ---------------------------------------------------------------- modal, toasts */
.modal-bg { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,5,8,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease both; }
.modal { width: 100%; max-width: 380px; padding: 20px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,.5); animation: rise .5s var(--out) both; }
.modal h2 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-h { display: flex; align-items: center; justify-content: space-between; }
.wallets { display: grid; gap: 8px; margin-top: 16px; }
.wallets button, .wallets a { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-s); background: var(--panel-2); font-weight: 600; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.wallets button:hover, .wallets a:hover { box-shadow: inset 0 0 0 1px rgba(110,231,212,.5); }
.wallets small { color: var(--dim); font-weight: 500; }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 999px; background: #fff; color: #0a0b0d; font-size: 13px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: rise .45s var(--out) both; max-width: min(560px, 92vw); text-align: center; }
.toast.bad { background: #ffdede; color: #4a0b0b; }
.menu { position: absolute; right: 24px; top: 58px; z-index: 30; min-width: 220px; padding: 8px; border-radius: var(--r-s); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px rgba(0,0,0,.5); animation: rise .35s var(--out) both; }
.menu button, .menu a { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 13px; color: var(--text); }
.menu button:hover, .menu a:hover { background: var(--panel-2); }
.menu .k { padding: 8px 12px 6px; font-size: 11px; color: var(--dim); }

.boot-fail { position: fixed; z-index: 99; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); padding: 20px; border-radius: var(--r); background: #fff; color: #0a0b0d; display: grid; gap: 8px; font-size: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.boot-fail code { font-family: var(--mono); font-size: 11.5px; color: #555; word-break: break-word; }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1180px) {
  .ov { grid-template-columns: 1fr 1fr; }
  .ov > .col:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .cg { grid-template-columns: 1fr 1fr; }
  .cg > .col:first-child { order: 2; }
  .cg > .price-card { grid-column: 1 / -1; order: 1; }
  .cg > .col:last-child { order: 3; }
}
@media (max-width: 900px) {
  .A-top { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .A-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; overflow-x: auto; max-width: 100%; }
  .A-right { grid-column: 2; grid-row: 1; }
  .A-right .chip-net, .A-right [data-x] { display: none; }
  .A-view { padding: 6px 16px 32px; }
  .lg { grid-template-columns: 1fr; }
  .cg2 { grid-template-columns: 1fr; }
  .page-h h1 { font-size: 38px; }
  .coin-id h1 { font-size: 38px; }
}
@media (max-width: 680px) {
  .ov, .cg { grid-template-columns: 1fr; }
  .ov > .col, .cg > * { grid-column: auto !important; }
  .pair, .split { grid-template-columns: 1fr; }
  .split > div + div { background: var(--panel); border-top: 1px solid var(--line); }
  .hero .fig { font-size: 56px; }
  .H-top { padding: 16px; }
  .H-left { gap: 20px; }
  .H-nav { gap: 16px; }
  .H-nav a { font-size: 13px; }
  .H .chip-ca { display: none; }
  .H-foot { padding: 14px 16px 18px; }
  .H-cta { flex-direction: column; width: 100%; max-width: 300px; }
  .page-stats { gap: 18px; flex-wrap: wrap; }
  .coin-stats { gap: 18px; flex-wrap: wrap; }
  .coin-stats .meter { width: 140px; }
  .f-row, .more .f-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .A-foot-note { margin-left: 0; }
  .A-top .chip-ca { display: none; }
  .A-nav { scrollbar-width: none; }
  .A-nav::-webkit-scrollbar { display: none; }
  .A-nav a { padding: 0 12px; gap: 0; font-size: 13px; }
  .A-nav a svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
