/* HAUL ─ styles */

:root {
  --bg: #0a0c0b;
  --bg-2: #0e1110;
  --surface: #131715;
  --surface-2: #191e1b;
  --surface-3: #212723;
  --line: #222824;
  --line-2: #2e3530;
  --text: #f1f5ef;
  --muted: #8d978f;
  --faint: #5f6862;
  --accent: #c6ff3a;
  --accent-ink: #0a0c0b;
  --accent-text: #c6ff3a;
  --accent-soft: rgba(198, 255, 58, 0.1);
  --up: #3ee089;
  --down: #ff5d6c;
  --warn: #ffb547;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --top-h: 64px;
  --tape-h: 34px;
  --tabbar-h: 0px;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f3f5ef;
  --bg-2: #eceee7;
  --surface: #ffffff;
  --surface-2: #f4f6f0;
  --surface-3: #e8ebe3;
  --line: #e2e6dc;
  --line-2: #d3d8cc;
  --text: #121512;
  --muted: #5b645d;
  --faint: #8b938c;
  --accent: #c6ff3a;
  --accent-ink: #0a0c0b;
  --accent-text: #3f7a00;
  --accent-soft: rgba(120, 190, 0, 0.12);
  --up: #0f9d58;
  --down: #e5334b;
  --shadow: 0 18px 50px rgba(20, 30, 20, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* utilities */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.center { text-align: center; }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent-text); }
.text { color: var(--text); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pad { padding: 18px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(28px, 4vw, 40px); }
.h-md { font-size: clamp(22px, 3vw, 28px); }
.h-sm { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hl { color: var(--accent-text); }
[hidden] { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.btn-accent:hover { background: #d4ff63; border-color: transparent; }
.btn-light { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 700; }
.btn-light:hover { opacity: 0.9; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-dark { background: #0a0c0b; color: #f1f5ef; border-color: transparent; }
.btn-sell { background: var(--down); color: #fff; }
.btn-sell:hover { background: var(--down); opacity: 0.9; }
.btn.loading, .wallet-btn.loading, .quick-buy.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after, .wallet-btn.loading::after, .quick-buy.loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: spin 0.7s linear infinite;
}
.btn-accent.loading::after { border-color: var(--accent-ink) transparent var(--accent-ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; font-size: 18px; color: var(--muted); flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-weight: 600; white-space: nowrap; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }
.tag-up { background: rgba(62, 224, 137, 0.12); color: var(--up); }
.chip { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); white-space: nowrap; }
.chip.up { background: rgba(62, 224, 137, 0.12); }
.chip.down { background: rgba(255, 93, 108, 0.12); }

/* ─── top bar ─────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1320px; margin: 0 auto; height: var(--top-h); padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#theme-toggle .i-moon { display: none; }
[data-theme='light'] #theme-toggle .i-sun { display: none; }
[data-theme='light'] #theme-toggle .i-moon { display: block; }
.account-pill { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.account-pill small { color: var(--muted); font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: var(--accent-ink); flex: none; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }

/* ticker tape */
.tape { height: var(--tape-h); overflow: hidden; border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-track { display: flex; width: max-content; height: 100%; animation: tape var(--tape-duration, 60s) linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.tape-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.tape-item b { font-weight: 700; }
.tape-img { width: 18px; height: 18px; border-radius: 5px; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

.paper-banner { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 7px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; }
.paper-banner strong { color: var(--warn); }
.paper-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }

/* ─── layout ─────────────────────────────────────────── */
main { flex: 1; width: 100%; outline: none; }
main.page-in > * { animation: pageIn 0.28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.page-in > * { animation: none; } }
.page { max-width: 1120px; margin: 0 auto; padding: 32px 20px 64px; }
.page.wide { max-width: 1320px; }
.page.narrow { max-width: 860px; }
.page-head { margin-bottom: 24px; display: grid; gap: 6px; }
.page-head.center { justify-items: center; text-align: center; }
.section { max-width: 1320px; margin: 0 auto; padding: 36px 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }

/* ─── home ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 82% 10%, rgba(198, 255, 58, 0.13), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(62, 224, 137, 0.07), transparent 70%);
}
.hero-glow::after { content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 64px 20px 56px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 13px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 22px; }
.pulse, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.6); animation: pulse 1.8s infinite; flex: none; }
.live-dot { background: var(--up); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(198, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 58, 0); } }
.hero-title { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

/* CA box + X link */
.ca-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; max-width: 640px; }
.ca-box { flex: 1 1 340px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 6px 0 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px transparent; }
.ca-box:hover { border-color: var(--faint); }
.ca-label { flex: none; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; background: var(--accent); color: var(--accent-ink); border-radius: 11px; height: 40px; padding: 0 12px; display: grid; place-items: center; }
.ca-value { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-empty .ca-value { font-family: var(--font); color: var(--muted); font-size: 14px; }
.ca-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 11px; border: 0; background: var(--surface-3); font-weight: 700; font-size: 14px; }
.ca-copy:hover { background: var(--line-2); }
.ca-copy svg { font-size: 16px; }
.ca-copy.copied { background: var(--accent); color: var(--accent-ink); }
.x-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 700; transition: transform 0.12s, opacity 0.15s; }
.x-btn:hover { opacity: 0.9; }
.x-btn:active { transform: scale(0.97); }
.x-icon { width: 18px; height: 18px; stroke: none; }

.hero-feed { box-shadow: var(--shadow); overflow: hidden; }
.feed { display: grid; padding: 4px 8px 10px; min-height: 300px; align-content: start; }
.feed-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
.feed-row:hover { background: var(--surface-2); }
.feed-row .coin-img { border-radius: 10px; }
.feed-text { display: grid; min-width: 0; }
.feed-top { display: flex; gap: 10px; justify-content: space-between; min-width: 0; }
.feed-top b { font-weight: 700; white-space: nowrap; }
.feed-top b:first-child { overflow: hidden; text-overflow: ellipsis; }
.feed-top b.up { color: var(--up); }
.feed-top b.down { color: var(--down); }
.feed-sub { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats-strip { max-width: 1320px; margin: 0 auto; padding: 28px 20px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.stat-val { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.stat-val.sk { width: 60%; height: 28px; }
.stat-label { font-size: 13px; color: var(--muted); }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.coin-card { display: grid; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; }
.coin-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sk-card { min-height: 170px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.coin-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.coin-card-id { display: grid; min-width: 0; }
.coin-card-id b { font-size: 17px; }
.coin-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-card-stats div { display: grid; font-size: 13px; }
.coin-card-stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.coin-card-progress { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.coin-img { border-radius: 14px; object-fit: cover; background: var(--surface-3); flex: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.step { padding: 22px; display: grid; gap: 8px; align-content: start; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--accent-text); }
.step h3 { font-size: 19px; }

.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); }
.band p { opacity: 0.75; margin-top: 6px; font-weight: 500; }

/* progress */
.progress { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; min-width: 60px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--up), var(--accent)); transition: width 0.4s ease; }
.progress.done span { background: var(--accent); }
.progress-label { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* skeletons */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 10px; }
.sk-img { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.sk-line { height: 14px; flex: 1; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── segmented controls ─────────────────────────────── */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 600; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.seg-sm button { height: 28px; padding: 0 11px; font-size: 13px; }

/* ─── trade board ─────────────────────────────────────── */
.board-head { grid-template-columns: auto 1fr; align-items: center; }
.board-tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.search-box, .quick-box { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.search-box svg { color: var(--faint); font-size: 16px; }
.search-box input { border: 0; background: transparent; outline: none; width: 220px; }
.quick-box input { width: 64px; border: 0; background: transparent; outline: none; font-weight: 700; text-align: right; }
.seg-cols { display: none; margin-bottom: 12px; }
.board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.paused-pill { position: absolute; z-index: 3; top: -14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--warn); color: #1a1200; opacity: 0; pointer-events: none; transition: opacity 0.2s; white-space: nowrap; }
.board.paused .paused-pill { opacity: 1; }
.board-col { overflow: hidden; }
.board-col-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px 8px; }
.board-col-head .h-sm { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; }
.board-col-head .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.board-col-head .faint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list { padding: 4px 8px 10px; max-height: calc(100vh - 260px); min-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.board-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.board-row:hover { background: var(--surface-2); }
.board-link { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.board-main { display: grid; gap: 3px; min-width: 0; }
.board-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.board-line > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.board-line > span.up, .board-line > span.down { flex: none; }
.board-meta { justify-content: flex-start; }
.quick-buy { height: 34px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font-weight: 700; font-size: 13px; white-space: nowrap; }
.quick-buy:hover { opacity: 0.88; }
.flash { animation: flash 0.9s ease; }
.flash-down { animation-name: flashDown; }
@keyframes flash { 0% { background: rgba(62, 224, 137, 0.18); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255, 93, 108, 0.16); } 100% { background: transparent; } }

.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; }
.empty-mark { width: 44px; height: 44px; border-radius: 14px; border: 2px dashed var(--line-2); margin-bottom: 4px; }
.empty h3 { font-size: 16px; }
.empty .btn { margin-top: 8px; }

/* ─── launch ─────────────────────────────────────────── */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.launch-form { padding: 22px; display: grid; gap: 18px; }
.launch-top { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
.img-drop { position: relative; width: 128px; height: 128px; border-radius: 22px; border: 1.5px dashed var(--line-2); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color 0.15s; }
.img-drop:hover, .img-drop.drag { border-color: var(--accent); }
.img-drop.has-img { border-style: solid; }
.img-drop-empty { display: grid; justify-items: center; gap: 6px; color: var(--faint); }
.img-drop-empty svg { font-size: 30px; }
.img-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.launch-id { display: grid; gap: 12px; align-content: center; }
.field { display: grid; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field em { font-style: normal; font-weight: 500; margin-left: 6px; }
.field input, .field textarea, .share-row input, .chip-input input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 15px; font-weight: 500; outline: none; transition: border-color 0.15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .share-row input:focus, .chip-input input:focus { border-color: var(--accent); }
input.invalid { border-color: var(--down) !important; }
.input-prefix, .input-suffix { position: relative; display: flex; align-items: center; }
.input-prefix b { position: absolute; left: 14px; color: var(--faint); }
.input-prefix input { padding-left: 28px; text-transform: uppercase; }
.input-suffix b { position: absolute; right: 12px; color: var(--faint); }
.input-suffix input { padding-right: 28px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.icon-field { position: relative; }
.icon-field > svg { position: absolute; left: 14px; top: 15px; color: var(--faint); font-size: 16px; }
.icon-field .x-icon { width: 15px; height: 15px; top: 15.5px; }
.icon-field input { padding-left: 40px; }
.block { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.block-head p { margin-top: 2px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 38px; gap: 8px; align-items: center; }
.share-row input { font-family: var(--mono); font-size: 13px; }
.share-row .input-suffix input { font-family: var(--font); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; }
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip-input { position: relative; display: inline-flex; align-items: center; }
.chip-input input { height: 36px; width: 120px; border-radius: 999px; padding-right: 40px; font-size: 14px; }
.chip-input span { position: absolute; right: 12px; font-size: 12px; color: var(--faint); font-weight: 600; }
.launch-preview { display: grid; gap: 12px; position: sticky; top: calc(var(--top-h) + var(--tape-h) + 20px); }
.preview-card { padding: 18px; display: grid; gap: 12px; }
.preview-desc { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preview-links { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-links .x-icon { width: 11px; height: 11px; }
.note { padding: 18px; }
.note ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* ─── coin page ─────────────────────────────────────────── */
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.coin-main, .coin-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.coin-side { position: sticky; top: calc(var(--top-h) + var(--tape-h) + 16px); }
.coin-head { padding: 18px; display: grid; gap: 16px; }
.coin-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.coin-names { display: grid; min-width: 0; }
.coin-ticker { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-price { display: grid; justify-items: end; }
.price-big { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); font-variant-numeric: tabular-nums; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); }
.mini-stat span { font-size: 12.5px; color: var(--muted); }
.mini-stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-stat em { font-style: normal; }
.curve-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.curve-line .progress { min-width: 120px; }
.chart-card { padding: 12px 12px 6px; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 10px; flex-wrap: wrap; }
.chart { height: 400px; width: 100%; }
.tabs-card { overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-body { min-height: 200px; }
.table { display: grid; font-size: 14px; }
.tr { display: grid; grid-template-columns: minmax(0, 1.4fr) 0.6fr 0.8fr 1fr 0.9fr 0.6fr; gap: 10px; padding: 10px 18px; align-items: center; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
a.tr:hover { background: var(--surface-2); }
.tr.th { font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 12px; padding-bottom: 8px; }
.tr-3 { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
.tr-4 { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 0.8fr; }
.coin-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-cell .coin-img { border-radius: 8px; }
.holder-list { display: grid; padding: 6px 0; }
.holder-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 1fr 64px; gap: 12px; align-items: center; padding: 9px 18px; font-size: 14px; }
.holder-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.holder-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.trade-panel { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.trade-top { display: flex; gap: 10px; align-items: center; }
.seg-trade { flex: 1; }
.seg-trade button { flex: 1; height: 40px; font-size: 15px; }
.trade-panel[data-mode='buy'] .seg-trade button.on { background: var(--accent); color: var(--accent-ink); }
.trade-panel[data-mode='sell'] .seg-trade button.on { background: var(--down); color: #fff; }
.slip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slip-row .chip-btn { height: 30px; padding: 0 11px; font-size: 13px; }
.pay-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pay-label { display: flex; justify-content: space-between; gap: 8px; }
.pay-input { display: flex; align-items: center; gap: 10px; }
.pay-input input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--display); font-weight: 700; font-size: 30px; }
.pay-input input::-webkit-outer-spin-button, .pay-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-input input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.pay-unit { flex: none; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets .chip-btn { height: 32px; padding: 0; font-size: 13px; background: var(--surface-3); border-color: transparent; }
.get-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.get-line b { font-variant-numeric: tabular-nums; text-align: right; }
.quote-meta { padding: 0 4px; min-height: 18px; margin-top: -6px; }
.paper-note { margin-top: -4px; }

.fees-card { overflow: hidden; }
.fees-total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 18px 10px; }
.fees-total b { font-family: var(--display); font-size: 22px; color: var(--accent-text); }
.fee-list { display: grid; }
.fee-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.fee-row .avatar { grid-row: span 2; }
.fee-who { display: grid; min-width: 0; }
.fee-who b, .fee-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-earned { font-variant-numeric: tabular-nums; }
.fee-sub { grid-column: 2 / -1; }
.fees-card > .btn { margin: 4px 18px 16px; width: calc(100% - 36px); }

.about-card { padding-bottom: 12px; }
.about-desc { padding: 0 18px 12px; overflow-wrap: anywhere; white-space: pre-line; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.tag-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.tag-link:hover { border-color: var(--line-2); }
.tag-link .x-icon { width: 13px; height: 13px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px; border-top: 1px solid var(--line); }
.addr-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-family: var(--mono); font-size: 13px; color: var(--text); padding: 4px 6px; border-radius: 8px; }
.addr-copy:hover { background: var(--surface-2); }

/* ─── earn / profile ─────────────────────────────────────── */
.earn-hero { display: grid; justify-items: center; gap: 18px; padding-top: 72px; padding-bottom: 96px; }
.earn-hero .eyebrow { margin-bottom: 0; }
.earn-hero .hero-sub { margin: 0 auto; }
.earn-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; margin-bottom: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface) 40%, var(--accent-soft)); }
.earn-summary > div { display: grid; gap: 4px; }
.earn-big { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.earn-list { display: grid; }
.earn-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.earn-row .num { display: grid; }
.earn-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.earn-coin > div { display: grid; }
.page.narrow > .card + .card { margin-top: 16px; }
.profile-head { display: flex; align-items: center; gap: 16px; padding: 20px; flex-wrap: wrap; }
.profile-id { display: grid; gap: 4px; justify-items: start; flex: 1; min-width: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.profile-stats .mini-stat { padding: 16px 18px; }
.username-form { padding: 18px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }

/* ─── modal / toasts ─────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadeIn 0.18s ease; }
.modal { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; padding: 28px 24px 22px; display: grid; gap: 12px; box-shadow: var(--shadow); animation: popIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.modal h2 { font-family: var(--display); font-size: 22px; text-align: center; }
.modal > p.muted { text-align: center; margin-bottom: 6px; }
.modal-logo { margin: 0 auto 4px; border-radius: 14px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); font-size: 20px; line-height: 1; }
.wallet-list { display: grid; gap: 8px; }
.wallet-btn { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 15px; width: 100%; text-align: left; }
.wallet-btn:hover { border-color: var(--line-2); }
.wallet-btn .tag { margin-left: auto; }
.wallet-ico { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.wallet-phantom { background: linear-gradient(135deg, #ab9ff2, #6e56cf); }
.wallet-solflare { background: linear-gradient(135deg, #ffd43b, #fc7227); }
.wallet-backpack { background: linear-gradient(135deg, #ff6b6b, #e33e3e); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.sign-note { margin-top: 4px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(8px); } }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--down); color: #fff; }

/* ─── footer / tab bar ─────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 28px 20px 36px; display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footer-brand { display: grid; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; }

.tabbar { display: none; }
.notfound { padding-top: 96px; display: grid; justify-items: center; gap: 16px; }
.notfound .display { font-size: 96px; color: var(--accent-text); }

/* ─── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .coin-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 44px; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .launch-preview { position: static; }
  .coin-layout { grid-template-columns: minmax(0, 1fr); }
  .coin-side { position: static; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board-col { display: none; }
  .board[data-active='new'] .board-col[data-col='new'],
  .board[data-active='soon'] .board-col[data-col='soon'],
  .board[data-active='bonded'] .board-col[data-col='bonded'] { display: block; }
  .seg-cols { display: flex; }
  .seg-cols button { flex: 1; }
  .board-list { max-height: none; min-height: 200px; }
  .board-head { grid-template-columns: minmax(0, 1fr); }
  .board-tools { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --top-h: 58px; --tabbar-h: 68px; }
  .nav, .hide-sm { display: none !important; }
  .topbar-inner { padding: 0 16px; gap: 12px; }
  .page, .section { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 22px; }
  .hero-inner { padding: 36px 16px 40px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .ca-box { flex-basis: 100%; }
  .x-btn { flex: 1; justify-content: center; }
  .stats-strip { padding: 20px 16px 4px; gap: 8px; }
  .stat { padding: 14px; }
  .band { padding: 26px; }
  .band .btn { width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .launch-top { grid-template-columns: 104px minmax(0, 1fr); }
  .img-drop { width: 104px; height: 104px; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .tr { grid-template-columns: minmax(0, 1.4fr) 0.7fr 0.9fr 0.6fr; padding: 10px 14px; }
  .tr-3 { grid-template-columns: minmax(0, 1fr) 1fr 0.8fr; }
  .tr-4 { grid-template-columns: minmax(0, 1.3fr) 1fr 1fr 0.7fr; }
  .chart { height: 300px; }
  .coin-id { grid-template-columns: auto minmax(0, 1fr); }
  .coin-price { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .earn-row { grid-template-columns: minmax(0, 1fr) auto; }
  .earn-row .num:nth-of-type(2) { display: none; }
  .profile-stats { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .holder-row { grid-template-columns: 24px minmax(0, 1fr) 60px; }
  .holder-bar { display: none; }

  .tabbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: var(--tabbar-h);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; color: var(--faint); font-size: 11px; font-weight: 600; }
  .tabbar a svg { font-size: 22px; }
  .tabbar a.active { color: var(--text); }
  .tabbar .tab-launch { width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); place-items: center; margin: 0 auto; }
  .tabbar .tab-launch svg { font-size: 24px; stroke-width: 2.4; }
  .tabbar .tab-launch.active { color: var(--accent-ink); }
}

@media (max-width: 400px) {
  .account-pill .bal small { display: none; }
  .ca-label { padding: 0 9px; }
  .ca-copy .copy-label { display: none; }
}

.hero-copy, .hero-feed { min-width: 0; }

/* Phones/tablets: put the trade panel right under the coin header. */
@media (max-width: 960px) {
  .coin-layout { display: flex; flex-direction: column; gap: 16px; }
  .coin-main, .coin-side { display: contents; }
  .coin-head { order: 1; }
  .trade-panel { order: 2; }
  .chart-card { order: 3; }
  .tabs-card { order: 4; }
  .fees-card { order: 5; }
  .about-card { order: 6; }
}

/* ─── admin ─────────────────────────────────────────── */
.admin-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.admin-card { padding: 20px; display: grid; gap: 14px; }
.admin-card + .admin-card { margin-top: 16px; }
.admin-card .field em { margin-left: 0; font-size: 12.5px; }
.admin-card #ca { font-family: var(--mono); font-size: 14px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── site token strip (under the CA box) ─────────────────────────── */
.token-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; max-width: 640px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ts-stat { display: grid; gap: 1px; }
.ts-stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ts-stat b { font-variant-numeric: tabular-nums; font-size: 16px; }
.ts-wait { flex: 1; min-width: 160px; }
.ts-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 720px) { .ts-actions { margin-left: 0; width: 100%; } .ts-actions .btn { flex: 1; } }

/* ─── empty market (day one) ─────────────────────────── */
.feed-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 56px 20px; }
.feed-empty .live-dot { margin-bottom: 8px; }
.feed-empty .btn { margin-top: 10px; }
.first-coin { grid-template-columns: auto minmax(0, 1fr); align-items: center; border-style: dashed; }
.first-coin:hover { border-color: var(--accent); }
.first-plus { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.first-coin b { font-size: 17px; }
