:root {
  --bg-deep: #02041a;
  --bg: #050826;
  --surface-1: #0a0f33;
  --surface-2: #10173f;
  --surface-3: #18204f;
  --border: #1d2760;
  --border-strong: #34449a;
  --ink: #eef2ff;
  --muted: #9aa5d8;
  --subtle: #6974a8;
  --cyan: #45d8ff;
  --blue: #3d7dff;
  --violet: #a46cff;
  --gold: #ffb43c;
  --gold-ink: #ffd681;
  --success: #3fe3a2;
  --danger: #ff5f7e;
  --tint-cyan: rgba(69, 216, 255, .1);
  --tint-violet: rgba(164, 108, 255, .12);
  --tint-gold: rgba(255, 180, 60, .12);
  --tint-success: rgba(63, 227, 162, .12);
  --tint-danger: rgba(255, 95, 126, .12);
  --brand: linear-gradient(120deg, #45d8ff 0%, #5f8bff 48%, #a46cff 100%);
  --brand-gold: linear-gradient(120deg, #ffe39a 0%, #ffb43c 55%, #ff8a2b 100%);
  --curve: linear-gradient(90deg, #45d8ff, #8a6bff 60%, #ffb43c);
  --glow-cyan: 0 0 0 1px rgba(69, 216, 255, .35), 0 8px 40px -8px rgba(69, 216, 255, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.up { color: var(--success); }
.down { color: var(--danger); }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #000; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before, .backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff9, transparent 60%),
    radial-gradient(1px 1px at 120px 80px, #9cf8, transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent 60%),
    radial-gradient(1px 1px at 60px 210px, #ffd68199, transparent 60%),
    radial-gradient(1px 1px at 260px 40px, #c6b1ff99, transparent 60%);
  background-size: 300px 260px;
  opacity: .5;
}
.backdrop::after { background-size: 470px 410px; opacity: .35; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .12; } }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(120px); opacity: .22; }
.blob.cyan { background: #1f6dff; top: -30vmax; left: -20vmax; animation: drift 26s ease-in-out infinite alternate; }
.blob.violet { background: #7b3dff; bottom: -35vmax; right: -25vmax; animation: drift 32s ease-in-out infinite alternate-reverse; }
.blob.gold { background: #ff9a2b; width: 30vmax; height: 30vmax; top: 30%; left: 45%; opacity: .07; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }

/* ---------- Header ---------- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(29, 39, 96, .7);
  background: rgba(2, 4, 26, .78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.appbar-in { max-width: 1600px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 18px rgba(69, 216, 255, .35); transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.1); }
.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand-name em { font-style: normal; background: var(--brand-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillnav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); background: rgba(10, 15, 51, .7); border-radius: 999px; }
.pillnav a, .pillnav button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.pillnav a:hover, .pillnav button:hover { color: var(--ink); }
.pillnav a.on { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pillnav a.on svg { color: var(--cyan); }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 40px; width: 280px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(10, 15, 51, .8); color: var(--muted); transition: border-color .2s, color .2s; }
.searchbtn:hover { border-color: rgba(69, 216, 255, .5); color: var(--ink); }
.searchbtn:hover svg { color: var(--cyan); }
.searchbtn .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbtn kbd { margin-left: auto; display: flex; gap: 2px; }
kbd, .kbd { font: 500 11px/18px var(--font-mono); padding: 0 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 5px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-brand { background: var(--brand); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 40, .4); box-shadow: 0 6px 24px -6px rgba(95, 139, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-brand:hover:not(:disabled) { box-shadow: 0 8px 34px -4px rgba(95, 139, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-gold { background: var(--brand-gold); color: #1a0d00; box-shadow: 0 6px 24px -6px rgba(255, 160, 50, .6); }
.btn-ghost { border: 1px solid var(--border); background: rgba(10, 15, 51, .6); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(69, 216, 255, .5); background: var(--tint-cyan); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-1); color: var(--ink); transition: border-color .2s, background .2s; }
.iconbtn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

/* dropdown */
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: rgba(10, 15, 51, .97); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -12px #000c; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--muted); text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-2); color: var(--ink); }
.dd-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.dd-menu .dd-left { left: 0; right: auto; }

/* ---------- Layout ---------- */
main { max-width: 1600px; margin: 0 auto; padding: 24px 24px 64px; min-height: calc(100vh - 64px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font: 700 32px/1.1 var(--font-display); letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.net { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(10, 15, 51, .6); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.card { background: linear-gradient(180deg, rgba(16, 23, 63, .82), rgba(10, 15, 51, .82)); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 14px; font: 600 15px/1.3 var(--font-display); display: flex; align-items: center; gap: 8px; }
h2.sec { margin: 0; font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); min-height: 520px; display: flex; align-items: center; isolation: isolate; box-shadow: 0 30px 80px -40px rgba(95, 139, 255, .6); }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-deep); }
.hero-slide { position: absolute; inset: -3%; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease; will-change: opacity, transform; }
.hero-slide.on { opacity: 1; animation: kenburns 7.4s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(var(--kx, 0), var(--ky, 0)); } to { transform: scale(1.02) translate(0, 0); } }
.hero-dots { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.hero-cap { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #dfe6ff; padding: 6px 10px; border-radius: 999px; background: rgba(2, 4, 26, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); transition: opacity .4s; }
.hero-dots button { position: relative; width: 26px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-dots button i { position: absolute; inset: 0; width: 0; background: var(--brand-gold); border-radius: inherit; }
.hero-dots button.on i { animation: dotfill var(--dur, 7s) linear forwards; }
.hero-dots button.done i { width: 100%; }
@keyframes dotfill { to { width: 100%; } }
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-orbs i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--cyan); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-420px) scale(1.2); opacity: 0; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 4, 26, .96) 0%, rgba(2, 4, 26, .82) 34%, rgba(2, 4, 26, .15) 62%, rgba(2, 4, 26, .05) 100%), linear-gradient(0deg, rgba(2, 4, 26, .85), transparent 40%); }
.hero-copy { padding: 48px; max-width: 620px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255, 180, 60, .45); background: rgba(255, 180, 60, .1); color: var(--gold-ink); }
.chip img { width: 18px; height: 18px; border-radius: 50%; }
.hero h1 { margin: 18px 0 14px; font: 700 clamp(36px, 5vw, 60px)/1.02 var(--font-display); letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(100deg, #8ee9ff, #6f9bff 45%, #c79bff 75%, #ffd681); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 0 26px; font-size: 16px; color: #c4cdf0; max-width: 500px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.ca-row { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2, 4, 26, .65); font-size: 13px; max-width: 100%; }
.ca-row b { color: var(--gold); font-family: var(--font-mono); }
.ca-row code { font-family: var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { padding: 16px 18px; }
.stat span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stat b { display: block; margin-top: 6px; font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; }

/* ---------- Live tape ---------- */
.tape { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; overflow: hidden; }
.tape-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--cyan); white-space: nowrap; flex-shrink: 0; }
.tape-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.4s infinite; }
.tape-track { flex: 1; display: flex; gap: 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.tape-item { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1); font-size: 12px; white-space: nowrap; flex-shrink: 0; animation: tapeIn .45s var(--ease-spring); }
.tape-item img { width: 24px; height: 24px; border-radius: 50%; }
.tape-item.buy { border-color: rgba(63, 227, 162, .35); }
.tape-item.sell { border-color: rgba(255, 95, 126, .35); }
@keyframes tapeIn { from { transform: translateX(-30px) scale(.8); opacity: 0; } }

/* ---------- King / spotlight ---------- */
.spot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 28px; }
.king { position: relative; overflow: hidden; display: flex; gap: 20px; padding: 22px; align-items: center; transition: border-color .2s; }
.king:hover { border-color: rgba(255, 180, 60, .6); }
.king::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(500px 200px at 0% 0%, rgba(255, 180, 60, .14), transparent 70%); }
.king .av { width: 104px; height: 104px; border-radius: 22px; }
.king-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.king h3 { margin: 6px 0 2px; font: 700 24px/1.15 var(--font-display); }
.king .kv { display: flex; gap: 22px; margin: 12px 0; flex-wrap: wrap; }
.kv div span { display: block; font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.kv div b { font: 600 16px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.howmini { padding: 22px; display: grid; gap: 12px; }
.howmini .step { display: flex; gap: 12px; align-items: flex-start; }
.howmini .n { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tint-cyan); color: var(--cyan); font: 700 13px var(--font-mono); }
.howmini .step b { display: block; font-weight: 600; }
.howmini .step span { color: var(--muted); font-size: 13px; }

/* ---------- Board ---------- */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 14px; }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: rgba(10, 15, 51, .7); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tabs button .ct { font: 500 11px var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--subtle); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cats::-webkit-scrollbar { display: none; }
.cats button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1); color: var(--muted); font-size: 13px; white-space: nowrap; transition: all .2s; }
.cats button:hover { color: var(--ink); border-color: var(--border-strong); }
.cats button.on { color: var(--ink); border-color: rgba(69, 216, 255, .55); background: var(--tint-cyan); }
.select { height: 36px; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa5d8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center no-repeat; appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer; }
.seg { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); }
.seg button { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 7px; color: var(--subtle); }
.seg button.on { background: var(--surface-3); color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.coin { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: transform .25s var(--ease-spring), border-color .2s, box-shadow .2s; }
.coin:hover { transform: translateY(-3px); border-color: rgba(69, 216, 255, .5); box-shadow: 0 16px 40px -18px rgba(69, 216, 255, .5); }
.coin.flash-buy { animation: flashBuy .9s; }
.coin.flash-sell { animation: flashSell .9s; }
@keyframes flashBuy { 20% { box-shadow: 0 0 0 1px var(--success), 0 0 30px -6px var(--success); } }
@keyframes flashSell { 20% { box-shadow: 0 0 0 1px var(--danger), 0 0 30px -6px var(--danger); } }
.coin-top { display: flex; gap: 12px; align-items: flex-start; }
.av { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; object-fit: cover; background: var(--surface-3); }
.coin-id { min-width: 0; flex: 1; }
.coin-name { display: flex; align-items: baseline; gap: 6px; font: 600 16px/1.25 var(--font-display); }
.coin-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk { font: 500 12px var(--font-mono); color: var(--cyan); flex-shrink: 0; }
.coin-meta { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--subtle); }
.coin-meta .badge { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.badge.grad { background: var(--tint-gold); color: var(--gold); }
.badge.hot { background: var(--tint-danger); color: #ff8aa0; }
.badge.new { background: var(--tint-cyan); color: var(--cyan); }
.badge.snipe { background: var(--tint-violet); color: #c6a6ff; }
.star { position: relative; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--subtle); transition: color .2s, background .2s, transform .3s var(--ease-spring); }
.star:hover { background: var(--surface-3); color: var(--gold); }
.star.on { color: var(--gold); }
.star.on svg { fill: var(--gold); }
.star:active { transform: scale(1.3); }
.coin-desc { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.coin-stats { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: end; }
.coin-stats span { display: block; font-size: 11px; color: var(--subtle); }
.coin-stats b { font: 600 14px var(--font-display); font-variant-numeric: tabular-nums; }
.chg { font: 600 12px var(--font-mono); padding: 3px 7px; border-radius: 7px; }
.chg.up { background: var(--tint-success); }
.chg.down { background: var(--tint-danger); }
.curve-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.curve-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--curve); background-size: 300px 100%; transition: width .6s ease; box-shadow: 0 0 12px rgba(69, 216, 255, .5); }
.curve-bar.done i { background: var(--brand-gold); }
.curve-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); background-size: 60px 100%; animation: shimmer 2s linear infinite; }
@keyframes shimmer { from { background-position: -60px 0; } to { background-position: 300px 0; } }
.curve-lbl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--subtle); }
.curve-lbl b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

/* list view */
.list { display: grid; gap: 0; overflow: hidden; }
.row { display: grid; grid-template-columns: 36px minmax(200px, 2fr) 1fr 1fr 1fr 90px 1.4fr 40px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.row:hover { background: rgba(24, 32, 79, .5); }
.row.hd { font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; }
.row.hd:hover { background: none; }
.row .av { width: 36px; height: 36px; border-radius: 10px; }
.row .cell-coin { display: flex; gap: 10px; align-items: center; min-width: 0; }
.row .num { font: 500 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--subtle); margin-bottom: 10px; }
.empty h3 { justify-content: center; color: var(--ink); }

/* ---------- Coin page ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.coin-hd { display: flex; gap: 16px; align-items: center; padding: 20px; flex-wrap: wrap; }
.coin-hd .av { width: 72px; height: 72px; border-radius: 18px; }
.coin-hd > div { min-width: 0; }
.coin-hd h1 { margin: 0; overflow-wrap: anywhere; font: 700 26px/1.15 var(--font-display); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coin-hd .px { margin-left: auto; text-align: right; }
.coin-hd .px b { display: block; font: 700 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.links { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.links a, .links button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--muted); font-size: 12px; }
.links a:hover, .links button:hover { color: var(--ink); border-color: var(--border-strong); }
.chart-card { margin-top: 16px; padding: 16px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.chart-wrap { position: relative; height: 340px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.kpis div { background: var(--surface-1); padding: 12px 14px; }
.kpis span { display: block; font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.kpis b { font: 600 16px var(--font-display); font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(29, 39, 96, .6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(24, 32, 79, .45); }
.table .r { text-align: right; }
.table-scroll { overflow-x: auto; }
.trow-new { animation: rowIn .6s; }
@keyframes rowIn { from { background: rgba(69, 216, 255, .15); } }
.addr { font-family: var(--font-mono); color: var(--muted); }
.addr:hover { color: var(--cyan); }

.trade { padding: 16px; position: sticky; top: 80px; }
.trade .tabs { width: 100%; }
.trade .tabs button { flex: 1; justify-content: center; }
.trade .tabs button.on.buy { background: var(--tint-success); color: var(--success); box-shadow: inset 0 0 0 1px rgba(63, 227, 162, .4); }
.trade .tabs button.on.sell { background: var(--tint-danger); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 95, 126, .4); }
.amt { margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.amt:focus-within { border-color: rgba(69, 216, 255, .5); box-shadow: var(--glow-cyan); }
.amt input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 600 22px var(--font-display); }
.amt .unit { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.quick button { height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.quick button:hover { color: var(--ink); border-color: var(--border-strong); }
.quote { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(2, 4, 26, .5); border: 1px dashed var(--border); font-size: 13px; margin-bottom: 12px; }
.quote div { display: flex; justify-content: space-between; gap: 10px; }
.quote span { color: var(--subtle); }
.side-stack { display: grid; gap: 16px; }
.feeflow { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 10px 0; }
.feeflow i { display: block; height: 100%; }
.legend { display: grid; gap: 6px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; }

/* ---------- Launch wizard ---------- */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stepper { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-1); color: var(--subtle); text-align: left; transition: all .2s; }
.stepper .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); font: 600 12px var(--font-mono); flex-shrink: 0; }
.stepper b { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.stepper small { font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper div { min-width: 0; }
.stepper.on { border-color: rgba(69, 216, 255, .55); background: var(--tint-cyan); }
.stepper.on .n { background: var(--brand); border-color: transparent; color: #fff; }
.stepper.on b { color: var(--ink); }
.stepper.done .n { background: var(--tint-success); border-color: rgba(63, 227, 162, .5); color: var(--success); }
.form { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.form h2 { margin: 0; font: 700 20px var(--font-display); }
.form .hint { margin: -14px 0 0; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; }
.field > label, .field > .lbl { font-weight: 600; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.field > label small, .field > .lbl small { font-weight: 400; color: var(--subtle); }
.field .help { font-size: 12px; color: var(--subtle); }
.field .err { font-size: 12px; color: var(--danger); display: none; }
.field.bad .err { display: block; }
.field.bad .input { border-color: rgba(255, 95, 126, .6); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--subtle); }
.input:focus { border-color: rgba(69, 216, 255, .55); box-shadow: var(--glow-cyan); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input-ic { position: relative; }
.input-ic svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.input-ic .input { padding-left: 38px; }
.drop { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--border-strong); background: rgba(2, 4, 26, .5); cursor: pointer; transition: border-color .2s, background .2s; }
.field > .drop { justify-content: flex-start; flex-wrap: nowrap; align-items: center; gap: 18px; font-weight: 400; font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--cyan); background: var(--tint-cyan); }
.drop .thumb { width: 96px; height: 96px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; color: var(--subtle); overflow: hidden; flex-shrink: 0; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .thumb svg { width: 28px; height: 28px; }
.drop b { display: block; }
.drop span { font-size: 12px; color: var(--subtle); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-1); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--border-strong); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.opt span { display: block; margin-top: 4px; font-size: 12px; color: var(--subtle); }
.opt:has(input:checked) { border-color: rgba(69, 216, 255, .6); background: var(--tint-cyan); box-shadow: inset 0 0 0 1px rgba(69, 216, 255, .3); }
.opt:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.opt:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; height: 34px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1); color: var(--muted); font-size: 13px; transition: all .2s; }
.chips span:hover { color: var(--ink); }
.chips input:checked + span { color: var(--ink); border-color: rgba(69, 216, 255, .6); background: var(--tint-cyan); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--cyan); height: 24px; }
.range-val { font: 600 20px var(--font-display); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-1); cursor: pointer; }
.switch b { display: block; font-size: 14px; }
.switch span { font-size: 12px; color: var(--subtle); }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease-spring), background .2s; }
.switch input:checked { background: var(--brand); border-color: transparent; }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.split { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2, 4, 26, .5); }
.split .srow { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.split .srow b { text-align: right; font-family: var(--font-mono); font-weight: 500; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border); padding-top: 20px; }
.review { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.review div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.review div:last-child { border-bottom: 0; }
.review span { color: var(--subtle); }
.review b { font-weight: 500; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--cyan); flex-shrink: 0; }
.preview { position: sticky; top: 80px; display: grid; gap: 12px; }
.preview .label { font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; background: var(--tint-cyan); border: 1px solid rgba(69, 216, 255, .3); color: #bfeeff; }
.callout.gold { background: var(--tint-gold); border-color: rgba(255, 180, 60, .35); color: var(--gold-ink); }
.callout svg { margin-top: 2px; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pod { padding: 20px; display: flex; gap: 14px; align-items: center; position: relative; overflow: hidden; }
.pod .medal { position: absolute; top: 14px; right: 16px; font: 700 34px/1 var(--font-display); opacity: .2; }
.pod.p1 { border-color: rgba(255, 180, 60, .55); background: linear-gradient(160deg, rgba(255, 180, 60, .14), rgba(10, 15, 51, .85) 60%); }
.pod.p2 { border-color: rgba(69, 216, 255, .4); }
.pod.p3 { border-color: rgba(164, 108, 255, .4); }
.pod .av { width: 52px; height: 52px; }
.pod span { display: block; font-size: 12px; color: var(--subtle); }
.pod b { font: 700 20px var(--font-display); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); font: 600 12px var(--font-mono); color: var(--muted); }
.rank.r1 { background: var(--tint-gold); color: var(--gold); }
.rank.r2 { background: var(--tint-cyan); color: var(--cyan); }
.rank.r3 { background: var(--tint-violet); color: #c6a6ff; }
.cell-coin { display: flex; align-items: center; gap: 10px; }
.cell-coin .av { width: 32px; height: 32px; border-radius: 9px; }
.ident { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Docs ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.doc-step { padding: 20px; }
.doc-step .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-cyan); color: var(--cyan); margin-bottom: 14px; }
.doc-step .ic svg { width: 20px; height: 20px; }
.doc-step h3 { margin-bottom: 6px; }
.doc-step p { margin: 0; color: var(--muted); font-size: 13px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--subtle); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.token-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; align-items: center; position: relative; overflow: hidden; }
.token-card .logo-big { width: 220px; height: 220px; border-radius: 32px; box-shadow: 0 0 60px rgba(69, 216, 255, .35); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.token-card h2 { margin: 0 0 8px; font: 700 34px/1.1 var(--font-display); }
.util { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.util div { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2, 4, 26, .5); font-size: 13px; color: var(--muted); }
.util div b { display: block; color: var(--ink); font-size: 14px; }
.util svg { color: var(--gold); margin-top: 2px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(1, 2, 14, .72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: 100%; max-width: 420px; padding: 22px; border-radius: 20px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #10173f, #0a0f33); box-shadow: 0 40px 100px -20px #000; transform: translateY(12px) scale(.98); transition: transform .25s var(--ease-spring); max-height: calc(100vh - 32px); overflow: auto; }
.modal.open .modal-box { transform: none; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-hd h3 { margin: 0; font: 700 19px var(--font-display); display: flex; align-items: center; gap: 10px; }
.modal-hd h3 img { width: 30px; height: 30px; border-radius: 8px; }
.modal p.sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-1); font-weight: 600; text-align: left; transition: border-color .2s, background .2s; }
.wallets button:hover { border-color: rgba(69, 216, 255, .55); background: var(--tint-cyan); }
.wallets .wl { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; }
.wallets em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--subtle); font-weight: 500; }
.wallets em.det { color: var(--success); }
.cmdk .modal-box { max-width: 600px; padding: 0; align-self: start; margin-top: 10vh; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.cmdk-in input { flex: 1; height: 56px; border: 0; outline: 0; background: none; font-size: 16px; }
.cmdk-list { max-height: 420px; overflow: auto; padding: 6px; }
.cmdk-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.cmdk-list a.sel, .cmdk-list a:hover { background: var(--surface-3); }
.cmdk-list .av { width: 36px; height: 36px; border-radius: 10px; }
.cmdk-list .grow { flex: 1; min-width: 0; }
.stages { display: grid; gap: 10px; margin: 16px 0; }
.stages div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--subtle); }
.stages div.on { color: var(--ink); }
.stages div.ok { color: var(--success); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--cyan); animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(16, 23, 63, .97); box-shadow: 0 16px 40px -10px #000; font-size: 13px; max-width: 360px; animation: toastIn .35s var(--ease-spring); pointer-events: auto; }
.toast.out { animation: toastOut .25s forwards; }
.toast img { width: 26px; height: 26px; border-radius: 7px; }
@keyframes toastIn { from { transform: translateY(16px) scale(.95); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); background: rgba(2, 4, 26, .7); }
.foot { max-width: 1600px; margin: 0 auto; padding: 36px 24px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a { color: var(--muted); }
.foot li a:hover { color: var(--ink); }
.foot p { color: var(--muted); font-size: 13px; max-width: 360px; }
.foot-bottom { max-width: 1600px; margin: 0 auto; padding: 16px 24px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); }

/* ---------- Mobile nav ---------- */
.mnav { display: none; }

@media (max-width: 1280px) {
  .searchbtn { width: 40px; padding: 0; justify-content: center; }
  .searchbtn .t, .searchbtn kbd { display: none; }
  .pillnav .xl { display: none; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .coin-layout, .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .trade, .preview { position: static; }
  .spot-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 36px minmax(160px, 2fr) 1fr 1fr 80px 1.2fr 40px; }
  .row .c-vol { display: none; }
}
@media (max-width: 860px) {
  .pillnav, .appbar .launch-btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .token-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .token-card .logo-big { width: 160px; height: 160px; }
  .util { text-align: left; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: rgba(2, 4, 26, .94); backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--subtle); }
  .mnav a.on { color: var(--cyan); }
  .mnav .mlaunch span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; margin-top: -18px; box-shadow: 0 8px 24px -6px rgba(95, 139, 255, .8); }
  .mnav .mlaunch span svg { width: 20px; height: 20px; }
  body { padding-bottom: 64px; }
  .toasts { bottom: 80px; right: 16px; left: 16px; }
  .row { grid-template-columns: 1fr auto; }
  .row > :not(.cell-coin):not(.c-mc) { display: none; }
  .row.hd { display: none; }
}
@media (max-width: 640px) {
  .appbar-in { padding: 0 16px; gap: 10px; }
  .brand-name { font-size: 17px; }
  main { padding: 16px 16px 48px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; height: 230px; }
  .hero-dots { top: 196px; bottom: auto; right: 14px; }
  .hero-cap { display: none; }
  .hero::before { background: linear-gradient(0deg, rgba(2, 4, 26, 1) 40%, rgba(2, 4, 26, 0) 60%); }
  .hero-copy { padding: 4px 20px 24px; }
  .hero-ctas .btn { flex: 1; }
  .stat { padding: 14px; }
  .stat b { font-size: 20px; }
  .king { flex-direction: column; align-items: flex-start; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper { padding: 10px; justify-content: center; }
  .stepper div { display: none; }
  .form { padding: 18px; }
  .drop { flex-direction: column; text-align: center; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .chart-wrap { height: 240px; }
  .coin-hd .px { margin-left: 0; text-align: left; width: 100%; }
  .doc-grid { grid-template-columns: 1fr; }
  .util { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 26px; }
  .split .srow { grid-template-columns: 90px 1fr 46px; }
  .connect-t { display: none; }
  .form-nav .btn { flex: 1; white-space: normal; height: auto; min-height: 44px; padding: 8px 12px; text-align: center; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ---------- Shooting stars ---------- */
.shoot { position: absolute; width: 140px; height: 1.5px; background: linear-gradient(90deg, #fff, rgba(69, 216, 255, .6), transparent); border-radius: 99px; opacity: 0; transform: rotate(-28deg); animation: shoot 9s ease-in infinite; }
.shoot::before { content: ""; position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(150, 220, 255, .9); }
.shoot.s1 { top: 12%; left: 70%; animation-delay: 1s; }
.shoot.s2 { top: 30%; left: 95%; animation-delay: 4.5s; }
.shoot.s3 { top: 6%; left: 40%; animation-delay: 7.5s; animation-duration: 11s; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 10% { opacity: 0; translate: -520px 280px; } 100% { opacity: 0; translate: -520px 280px; } }

/* ---------- Page banners ---------- */
.page-banner { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; border: 1px solid var(--border); min-height: 220px; padding: 32px; margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 30px 70px -45px rgba(95, 139, 255, .7); }
.page-banner .pb-img { position: absolute; inset: -4%; z-index: -2; background-size: cover; background-repeat: no-repeat; animation: kenburns 14s ease-out forwards; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 4, 26, .92) 0%, rgba(2, 4, 26, .6) 45%, rgba(2, 4, 26, .1) 100%), linear-gradient(0deg, rgba(2, 4, 26, .8), transparent 60%); }
.page-banner .eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.page-banner h1 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1.05 var(--font-display); letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.page-banner p { margin: 8px 0 0; color: #c9d2f5; max-width: 560px; }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 14px; }
.gallery-head p { margin: 4px 0 0; color: var(--muted); }
.bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); cursor: zoom-in; isolation: isolate; transform-style: preserve-3d; transition: transform .35s var(--ease-spring), border-color .25s, box-shadow .25s; padding: 0; text-align: left; }
.tile:first-child { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(2, 4, 26, .9), rgba(2, 4, 26, .1) 55%, transparent); transition: opacity .3s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 45%); opacity: 0; transition: opacity .3s; }
.tile:hover { border-color: rgba(69, 216, 255, .6); box-shadow: 0 24px 60px -24px rgba(69, 216, 255, .55); }
.tile:hover::before { opacity: 1; }
.tile:hover img { transform: scale(1.08); filter: saturate(1.15); }
.tile-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; transform: translateZ(30px); }
.tile-cap b { display: block; font: 700 19px/1.2 var(--font-display); color: #fff; text-shadow: 0 2px 16px #000; }
.tile-cap span { display: block; font-size: 13px; color: #c9d2f5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s, margin .35s; }
.tile:hover .tile-cap span, .tile:focus-visible .tile-cap span { max-height: 60px; opacity: 1; margin-top: 4px; }
.tile:first-child .tile-cap b { font-size: 26px; }
.tile .zoom { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(2, 4, 26, .55); border: 1px solid rgba(255, 255, 255, .15); color: #fff; opacity: 0; transform: scale(.8); transition: all .25s var(--ease-spring); backdrop-filter: blur(6px); }
.tile:hover .zoom { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: rgba(1, 2, 14, .94); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; padding: 60px 70px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 16px; box-shadow: 0 40px 120px -20px rgba(95, 139, 255, .5); transform: scale(.96); transition: transform .35s var(--ease-spring), opacity .25s; }
.lightbox.open img { transform: none; }
.lightbox img.swap { opacity: 0; transform: scale(.98); }
.lightbox figcaption { text-align: center; }
.lightbox figcaption b { font: 700 20px var(--font-display); display: block; }
.lightbox figcaption span { color: var(--muted); font-size: 14px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: rgba(16, 23, 63, .8); color: #fff; transition: background .2s, border-color .2s; }
.lb-btn:hover { border-color: var(--cyan); background: var(--tint-cyan); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-count { position: absolute; top: 22px; left: 22px; font: 500 13px var(--font-mono); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; margin-top: 44px; border-radius: 24px; border: 1px solid rgba(255, 180, 60, .35); min-height: 360px; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.cta .pb-img { position: absolute; inset: -4%; z-index: -2; background: url("assets/launchpad.webp") center 30%/cover no-repeat; transition: transform .2s linear; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 100%, rgba(2, 4, 26, .25), rgba(2, 4, 26, .85)), linear-gradient(0deg, rgba(2, 4, 26, .7), transparent 50%); }
.cta h2 { margin: 0 0 10px; font: 700 clamp(30px, 5vw, 54px)/1.05 var(--font-display); letter-spacing: -.03em; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.cta p { margin: 0 auto 24px; max-width: 520px; color: #d3dbfb; font-size: 16px; }
.cta .hero-ctas { justify-content: center; }
.cta-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.cta-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; background: rgba(2, 4, 26, .6); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.cta-pills svg { color: var(--gold); }

/* ---------- Modal art ---------- */
.modal-art { margin: -22px -22px 16px; height: 120px; background-size: cover; background-position: center 35%; border-radius: 20px 20px 0 0; position: relative; }
.modal-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #10173f, transparent 70%); border-radius: inherit; }
.token-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10, 15, 51, .96) 30%, rgba(10, 15, 51, .7)), url("assets/crystal.webp") center/cover; }
.token-card > * { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .tile:first-child { grid-row: auto; grid-column: span 2; }
  .tile:nth-child(4) { grid-column: span 2; }
  .tile .zoom { opacity: 1; transform: none; }
  .tile-cap span { max-height: 60px; opacity: 1; margin-top: 4px; }
  .lightbox { padding: 56px 10px 90px; }
  .lb-btn.lb-prev, .lb-btn.lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 640px) {
  .page-banner { min-height: 200px; padding: 22px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .tile:first-child, .tile:nth-child(4) { grid-column: auto; }
  .cta { padding: 40px 18px; }
}

/* ---------- Real-data coin page ---------- */
.chart-wrap.embed { height: 460px; border-radius: 12px; overflow: hidden; background: #0b0f1e; border: 1px solid var(--border); }
.chart-wrap.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.chgs { display: flex; gap: 6px; flex-wrap: wrap; }
.chgs .chg { font-size: 12px; }
.trade h3 { margin: 0 0 14px; }
.trade-links { display: grid; gap: 8px; }
.bs { margin-top: 16px; }
.bs-lbl { display: flex; justify-content: space-between; font: 600 12px var(--font-mono); margin-bottom: 6px; }
.bs-bar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; }
.bs-bar i { display: block; height: 100%; }
.tape-item .mono { color: var(--ink); }
@media (max-width: 640px) { .chart-wrap.embed { height: 380px; } }
.chart-wrap { position: relative; }
.chart-wrap canvas { cursor: crosshair; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: rgba(5, 8, 38, .4); border-radius: 12px; }
.chart-tip { position: absolute; top: 10px; display: none; min-width: 160px; padding: 8px 10px; border-radius: 10px; background: rgba(10, 15, 51, .95); border: 1px solid var(--border-strong); font: 500 11px/1.6 var(--font-mono); pointer-events: none; }
.chart-tip b { display: block; font-family: var(--font-body); color: var(--ink); }
.chart-tip span { display: block; color: var(--muted); }
.chart-tip i { font-style: normal; }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.chart-foot a { display: inline-flex; align-items: center; gap: 4px; }
