:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --bg-2: #131316;
  --bg-3: #18181c;
  --bg-4: #212329;
  --line: #212225;
  --line-2: #2a2b31;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #71717a;
  --accent: #86efac;
  --accent-ink: #052e16;
  --gain: #4ade80;
  --loss: #f87171;
  --hot: #f87171;
  --gold: #facc15;
  --blue: #60a5fa;
  --radius: 10px;
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: 56px 1fr;
  font-size: 14px;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Left rail */
body.rail-open { grid-template-columns: 216px 1fr; }
.rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 10px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-direction: column; }
body.rail-open .rail-top { flex-direction: row; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.rail-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-4); }
.rail-toggle:hover { background: var(--bg-4); color: var(--text); }
.rail-group { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.rail-top + .rail-group { border-top: 0; }
.rail-label { display: none; padding: 6px 10px 0; color: var(--text-4); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
body.rail-open .rail-label { display: block; }
body.rail-open .rail-label + .rail-group { border-top: 0; padding-top: 2px; }
.rail-btn {
  height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 9px;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--text-3);
  position: relative; text-decoration: none; font-size: 14px; white-space: nowrap;
}
.rail-btn svg { flex: none; }
.rail-btn > span, .rail-btn > em, .logo-text, .rail-create > span { display: none; }
body.rail-open .rail-btn { justify-content: flex-start; }
body.rail-open .rail-btn > span, body.rail-open .logo-text, body.rail-open .rail-create > span { display: inline; }
body.rail-open .rail-btn > em { display: inline-block; }
.rail-btn > em.new { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: #86efac22; color: var(--accent); font-size: 10px; font-style: normal; font-weight: 700; }
.rail-btn:hover, .rail-btn.active { background: var(--bg-4); color: var(--text); }
.rail-btn::after, .rail-create::after {
  content: attr(data-tip);
  position: absolute; left: 46px; top: 50%; transform: translateY(-50%);
  padding: 4px 8px; border-radius: 6px;
  background: var(--bg-4); color: var(--text); font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s;
  z-index: 30;
}
body:not(.rail-open) .rail-btn:hover::after, body:not(.rail-open) .rail-create:hover::after { opacity: 1; }
.rail-create {
  position: relative;
  height: 36px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.rail-create b { font-size: 22px; line-height: 1; }
.rail-spacer { flex: 1; }

/* App shell */
.app { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.promo {
  position: relative;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  height: 28px; font-size: 12px; color: var(--text-3); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.promo:hover { color: var(--text); }
.promo-close { position: absolute; right: 10px; top: 3px; border: 0; background: none; color: var(--text-3); font-size: 16px; }

.topbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.search {
  display: flex; align-items: center; gap: 8px;
  width: min(320px, 40vw); height: 34px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-2); color: var(--text-4); text-align: left;
}
.search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font: 11px/1 inherit; padding: 3px 5px; border-radius: 5px; background: var(--bg-4); color: var(--text-3); }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); color: var(--text-3);
}
.icon-btn:hover { color: var(--text); }
.topbar-spacer { flex: 1; }
.btn-primary {
  height: 34px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary.wide { width: 100%; height: 42px; }
.btn-ghost { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; }

/* Info bar */
.infobar { display: flex; align-items: center; gap: 12px; padding: 0 14px 8px; border-bottom: 1px solid var(--line); }
.infobar-modes { display: flex; gap: 2px; }
.mode {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent; color: var(--text-4);
}
.mode svg { width: 15px; height: 15px; }
.mode[aria-checked="true"] { background: var(--bg-4); color: var(--text); }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 22px; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; text-decoration: none; }
.tick b { color: var(--gain); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Columns */
.columns {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; padding: 8px;
}
@media (max-width: 1500px) { .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .columns > .col:nth-child(4) { display: none; } }
@media (max-width: 1100px) { .columns { grid-template-columns: 1fr 1fr; } .columns > .col:nth-child(3) { display: none; } }
@media (max-width: 720px) { .columns { grid-template-columns: 1fr; } .columns > .col:nth-child(2) { display: none; } }
.col {
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  overflow: hidden;
}
.col-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; }
.grip { color: var(--text-4); font-size: 10px; letter-spacing: -2px; cursor: grab; }
.col-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.chev { color: var(--text-4); font-size: 11px; }
.col-tools { margin-left: auto; display: flex; gap: 2px; }
.tool { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text-4); }
.tool:hover { background: var(--bg-4); color: var(--text); }
.col-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 10px 8px; }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-3); }
.seg button { height: 24px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 12px; }
.seg button[aria-checked="true"] { background: var(--bg-4); color: var(--text); }
.seg-small button { padding: 0 7px; }

/* Trending list */
.coin-list, .lb-list { list-style: none; margin: 0; padding: 0 4px 8px; overflow-y: auto; flex: 1; }
.coin {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 6px; border-radius: 9px; cursor: pointer;
}
.coin:hover { background: var(--bg-3); }
.avatar { position: relative; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0b0b0e; }
.avatar .chain {
  position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--bg-2); font-size: 7px; display: grid; place-items: center; color: #0b0b0e; font-weight: 800;
}
.coin-main { min-width: 0; }
.coin-top { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.coin-top .tk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-hot { padding: 1px 5px; border-radius: 4px; background: #f8717122; color: var(--hot); font-size: 10px; font-weight: 700; }
.verified { color: var(--gain); font-size: 12px; }
.coin-bot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.socials { color: var(--text-4); letter-spacing: 3px; font-size: 11px; }
.coin-right { text-align: right; font-variant-numeric: tabular-nums; }
.coin-right .mc { font-weight: 600; }
.pct { font-size: 12px; }
.up { color: var(--gain); }
.down { color: var(--loss); }
.flash-up { animation: flashUp .7s; }
.flash-down { animation: flashDown .7s; }
@keyframes flashUp { from { background: #4ade8026; } }
@keyframes flashDown { from { background: #f8717126; } }

/* Callouts */
.callouts { flex: 1; overflow-y: auto; padding: 0 10px 8px; }
.callout { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.callout.new { animation: slideIn .4s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }
.co-head { display: flex; align-items: center; gap: 8px; }
.pfp { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.co-name { font-weight: 600; }
.co-time { color: var(--text-4); font-size: 12px; }
.follow { margin-left: auto; height: 24px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: transparent; font-size: 12px; }
.follow.on { background: var(--bg-4); color: var(--text-3); }
.co-text { margin: 8px 0; color: var(--text-2); line-height: 1.45; }
.position {
  display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-3); cursor: pointer;
}
.position .avatar { width: 34px; height: 34px; font-size: 11px; }
.position .avatar .chain { display: none; }
.pos-col { text-align: right; font-variant-numeric: tabular-nums; }
.pos-col small { display: block; color: var(--text-4); font-size: 11px; }
.co-actions { display: flex; gap: 4px; margin-top: 8px; color: var(--text-4); }
.co-actions button { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: inherit; font-size: 12px; }
.co-actions button:hover { background: var(--bg-4); color: var(--text); }
.co-actions button.on { color: var(--accent); }
.co-actions svg { width: 15px; height: 15px; }
.load-more { margin: 6px 10px 10px; height: 32px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-3); color: var(--text-2); }

/* Leaderboard */
.lb-selects { display: flex; gap: 6px; }
.select { height: 26px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-3); font-size: 12px; color: var(--text-2); }
.lb-row { display: grid; grid-template-columns: 22px 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 9px; }
.lb-row:hover { background: var(--bg-3); }
.rank { color: var(--text-4); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.rank.top { color: var(--gold); font-weight: 700; }
.lb-row .pfp { width: 28px; height: 28px; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { color: var(--gain); font-variant-numeric: tabular-nums; }
.lb-sub { color: var(--text-4); font-size: 12px; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #000a; backdrop-filter: blur(3px); }
.overlay[hidden] { display: none; }
.modal { width: min(440px, 92vw); padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: 0 30px 80px #000c; }
.modal h3 { margin: 0 0 8px; font-size: 20px; text-align: center; }
.modal p { color: var(--text-3); line-height: 1.5; text-align: center; }
.modal small { display: block; margin-top: 12px; color: var(--text-4); font-size: 12px; text-align: center; }
.welcome { border-color: #86efac66; width: min(460px, 92vw); }
.welcome-art {
  position: relative; height: 200px; margin-bottom: 16px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1e3a2c, transparent 60%), radial-gradient(circle at 80% 80%, #3b2a5a, transparent 55%), #101418;
}
.orb { position: absolute; border-radius: 50%; filter: blur(1px); animation: bob 4s ease-in-out infinite; }
.o1 { width: 46px; height: 46px; left: 14%; top: 22%; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.o2 { width: 32px; height: 32px; right: 18%; top: 18%; background: linear-gradient(135deg, #a5b4fc, #6366f1); animation-delay: -1.3s; }
.o3 { width: 38px; height: 38px; right: 26%; bottom: 14%; background: linear-gradient(135deg, #f9a8d4, #db2777); animation-delay: -2.4s; }
.egg {
  position: absolute; left: 50%; bottom: 18px; width: 92px; height: 116px; transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: linear-gradient(160deg, #dcfce7, #4ade80 70%, #15803d);
  box-shadow: 0 16px 30px #0008, inset -8px -10px 0 #16a34a55;
}
.egg::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 44px; height: 14px;
  background: linear-gradient(135deg, transparent 33%, #0b0b0e 33% 45%, transparent 45%) 0 0 / 14px 14px repeat-x;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
.welcome-logo { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 30px #0008); }

.search-modal { padding: 10px; width: min(560px, 94vw); align-self: start; margin-top: 12vh; }
.search-modal input, .create input, .create textarea, .trade input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-3); color: var(--text); font: inherit; outline: none;
}
.search-modal input:focus, .create input:focus, .create textarea:focus, .trade input:focus { border-color: #86efac88; }
.search-results { max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.search-results .coin { grid-template-columns: 44px 1fr auto; }
.search-empty { padding: 16px; color: var(--text-4); text-align: center; }

.create { display: grid; gap: 12px; }
.create label { display: grid; gap: 6px; color: var(--text-3); font-size: 13px; }
.create .row { display: flex; justify-content: flex-end; gap: 8px; }

/* Drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 35; width: min(440px, 100vw);
  border-left: 1px solid var(--line-2); background: var(--bg-2); box-shadow: -30px 0 60px #0009;
  transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; padding: 16px;
}
.drawer.open { transform: none; }
.dr-head { display: flex; align-items: center; gap: 12px; }
.dr-head .avatar { width: 52px; height: 52px; font-size: 16px; }
.dr-title { font-size: 18px; font-weight: 700; }
.dr-sub { color: var(--text-4); font-size: 12px; font-family: ui-monospace, monospace; }
.dr-close { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--bg-4); }
.dr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { padding: 10px; border-radius: 10px; background: var(--bg-3); }
.stat small { display: block; color: var(--text-4); font-size: 11px; }
.stat b { font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 180px; border-radius: 10px; background: var(--bg-3); display: block; }
.bonding { margin: 14px 0; }
.bonding-top { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.bar { height: 10px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, var(--accent)); }
.trade { padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-3); }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.trade-tabs button { height: 34px; border: 0; border-radius: 8px; background: var(--bg-4); color: var(--text-3); font-weight: 600; }
.trade-tabs button.buy.on { background: var(--gain); color: var(--accent-ink); }
.trade-tabs button.sell.on { background: var(--loss); color: #3b0a0a; }
.quick { display: flex; gap: 6px; margin: 8px 0 10px; }
.quick button { flex: 1; height: 28px; border: 1px solid var(--line-2); border-radius: 7px; background: transparent; font-size: 12px; color: var(--text-2); }
.trade .est { color: var(--text-4); font-size: 12px; margin-bottom: 10px; }

/* Live data */
.live { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-4); white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 8px var(--gain); }
.live.bad::before { background: var(--loss); box-shadow: 0 0 8px var(--loss); }
.avatar, .pfp { overflow: visible; }
.avatar > img, .pfp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pfp { position: relative; }
.tick .pfp { width: 18px; height: 18px; }
.empty { padding: 18px 10px; color: var(--text-4); font-size: 13px; text-align: center; list-style: none; }
a.co-name, a.lb-name { color: inherit; text-decoration: none; }
a.co-name:hover, a.lb-name:hover { text-decoration: underline; }
a.follow { display: grid; place-items: center; color: inherit; text-decoration: none; }
.co-text { white-space: pre-wrap; word-break: break-word; }
.link { border: 0; padding: 0; background: none; color: var(--accent); font-size: 12px; }
.pos-coin { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.co-update { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--line-2); }
.co-update p { margin: 4px 0 0; color: var(--text-3); text-align: left; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.co-actions span { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; font-size: 12px; }
.lb-row .lb-sub { font-size: 11px; }
.dr-head .avatar.lg { flex: none; }
button.dr-sub { border: 0; padding: 0; background: none; cursor: pointer; }
.dr-desc { color: var(--text-3); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.dr-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dr-links a { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); font-size: 12px; text-decoration: none; }
.trade-link { display: grid; place-items: center; margin-top: 14px; text-decoration: none; }
.dr-note { display: block; margin-top: 10px; color: var(--text-4); font-size: 11px; text-align: center; }

/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; gap: 8px; }
.toast { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-4); box-shadow: 0 10px 30px #0008; animation: slideIn .25s; }

/* Pages */
.page-host { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.page-host > .columns { min-height: 0; }
.page { padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sec-title { margin: 8px 0 0; font-size: 16px; font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pills button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pills .ti { font-size: 11px; opacity: .8; }
.seg-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--bg-3); }
.seg-tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12px; }
.seg-tabs button.on { background: var(--bg-4); color: var(--text); }
.chip { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--bg-4); color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.up { background: #4ade801f; color: var(--gain); }
.chip.down { background: #f871711f; color: var(--loss); }
.block { display: block; }
.dim { color: var(--text-4); }
.pad { padding: 4px 2px 8px; }
.big { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.btn-ghost { color: var(--text-2); }
.btn-ghost.wide { width: 100%; height: 40px; margin-bottom: 8px; }
.gate { margin: 10vh auto; max-width: 460px; text-align: center; display: grid; gap: 12px; justify-items: center; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; background: var(--bg); color: var(--text-4); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.tbl .l { text-align: left; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl td.thesis { white-space: normal; max-width: 360px; color: var(--text-3); }
.tbl a { color: inherit; }
.coin-cell, .user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.coin-cell > span, .user-cell > span { display: grid; min-width: 0; text-align: left; }
.coin-cell b, .user-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.coin-cell small, .user-cell small { color: var(--text-4); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.coin-cell:hover b, .user-cell:hover b { text-decoration: underline; }
.avatar.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 8px; }
.avatar.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; flex: none; }
.avatar.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 16px; flex: none; }
.avatar.xl { width: 100%; height: 100%; min-height: 64px; min-width: 64px; border-radius: 12px; font-size: 20px; }
.avatar.xs .chain, .avatar.sm .chain { width: 12px; height: 12px; font-size: 6px; border-width: 1.5px; }
.user-cell .pfp { width: 28px; height: 28px; }
.pfp.xl { width: 84px; height: 84px; border: 4px solid var(--bg); }
.stack { display: inline-flex; }
.stack .avatar { margin-right: -6px; border: 2px solid var(--bg); }
.stack .avatar .chain { display: none; }
.spark { width: 110px; height: 30px; display: block; }
.ath { display: flex; align-items: center; gap: 8px; }
.ath-bar { width: 70px; height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.ath-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, var(--accent)); }
.ath small { color: var(--text-3); font-size: 12px; }
.star { border: 0; background: none; color: var(--text-4); font-size: 15px; }
.star.on { color: var(--gold); }

/* Explore grid */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.coin-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: inherit; text-decoration: none; }
.coin-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.cc-img { width: 110px; height: 110px; }
.cc-img .avatar .chain { width: 18px; height: 18px; font-size: 9px; }
.cc-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.cc-top { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.cc-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-top small { color: var(--text-4); }
.cc-mc { font-weight: 600; display: flex; gap: 8px; }
.cc-mc span { font-size: 12px; font-weight: 500; }
.coin-card p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Tiles + panels */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tiles.small { grid-template-columns: repeat(5, 1fr); margin-bottom: 10px; }
.tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); display: grid; gap: 4px; }
.tile small { color: var(--text-4); font-size: 12px; }
.tile b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tiles.small .tile b { font-size: 16px; }
.tile span { color: var(--text-3); font-size: 12px; }
.panel { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col .panel { max-height: 640px; overflow: auto; }
.side-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.side-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.side-row > b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; }
.side-row .user-cell, .side-row .coin-cell { flex: 1; }

/* Leaderboard page */
.lb-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.lb-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero { display: grid; grid-template-columns: 220px 1fr 320px; gap: 18px; padding: 14px; border: 1px solid #86efac33; border-radius: 16px; background: radial-gradient(circle at 0 0, #14532d55, transparent 50%), var(--bg-2); }
.hero-art { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-3); min-height: 150px; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-body { display: grid; gap: 6px; align-content: center; }
.hero-body h2 { margin: 0; font-size: 22px; }
.hero-body p { margin: 0; color: var(--text-3); }
.hero-prize { font-size: 34px; font-weight: 800; color: var(--accent); }
.badge { justify-self: start; padding: 3px 8px; border-radius: 6px; background: var(--bg-4); color: var(--text-2); font-size: 11px; font-weight: 600; }
.hero-winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: center; }
.hero-winners li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.bc, .mini-callout { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); display: grid; gap: 8px; cursor: pointer; }
.bc:hover, .mini-callout:hover { border-color: var(--line-2); }
.bc-head { display: flex; align-items: center; gap: 8px; }
.bc-head .user-cell, .bc-head .coin-cell { flex: 1; }
.bc p, .mini-callout p { margin: 0; color: var(--text-2); line-height: 1.4; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.bc-coin { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--bg-3); font-size: 12px; }
.mini-callout .co-actions { margin: 0; }

/* Live page */
.live-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.lh-main { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; background: var(--bg-3); color: inherit; text-decoration: none; }
.lh-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-over { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, #000d); display: grid; gap: 6px; }
.lh-over h2 { margin: 0; font-size: 24px; }
.lh-coin { display: flex; align-items: center; gap: 8px; }
.lh-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.live-card { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.lc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.lc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-pill { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 5px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; }
.lh-over .live-pill { position: static; justify-self: start; }
.viewers { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 5px; background: #000a; font-size: 11px; }
.lh-over .viewers { position: static; justify-self: start; }
.lc-body { display: flex; gap: 8px; align-items: flex-start; }
.lc-body > div { display: grid; min-width: 0; }
.lc-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lc-body small { color: var(--text-4); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-body .mc { color: var(--accent); }

/* GO */
.go-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.go-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.go-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.go-head p { margin: 4px 0 0; }
.bounty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.bounty { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: inherit; text-decoration: none; }
.bounty:hover { border-color: var(--line-2); }
.bounty-top { display: flex; align-items: center; gap: 10px; }
.bounty-top > div { display: grid; }
.bounty-top small { color: var(--text-4); font-size: 11px; }
.reward { margin-left: auto; padding: 4px 9px; border-radius: 8px; background: #86efac1f; color: var(--accent); font-weight: 700; }
.bounty h3 { margin: 0; font-size: 15px; }
.bounty p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.4; }
.bounty-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-4); font-size: 12px; align-items: center; }

/* Holder rewards */
.hr-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hr-card { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: inherit; text-decoration: none; }
.hr-card > div { display: grid; min-width: 0; }
.hr-card small { color: var(--text-4); font-size: 12px; }
.hr-card-v { grid-column: 1 / -1; }
.hr-card-v b { font-size: 20px; }
.pager { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.pager button { width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }

/* $PUMP */
.pt-hero { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.pt-hero .avatar { width: 64px; height: 64px; }
.pt-hero p { margin: 4px 0 0; }
.pt-chart { width: 100%; height: 220px; display: block; }

/* Coin page */
.coin-page { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
body.no-panels .coin-page { grid-template-columns: minmax(0, 1fr) 340px; }
body.no-panels .coin-page > .side-col.left, body.no-panels .profile-page > .side-col.left { display: none; }
.coin-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cp-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cp-name { display: flex; align-items: baseline; gap: 8px; font-size: 18px; }
.cp-name a { color: var(--text-3); text-decoration: none; font-size: 14px; }
.cp-sub { display: flex; gap: 10px; align-items: center; color: var(--text-4); font-size: 12px; flex-wrap: wrap; }
.cp-sub a { color: var(--text-2); }
.cp-nums { display: flex; gap: 22px; align-items: flex-end; }
.cp-nums > div { display: grid; text-align: right; }
.cp-nums small { color: var(--text-4); font-size: 11px; }
.cp-nums span { font-size: 12px; }
.chart-bar { display: flex; justify-content: space-between; }
.cp-chart { width: 100%; height: 420px; display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.trade-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.tb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tb-tabs button { height: 34px; border: 0; border-radius: 8px; background: var(--bg-4); color: var(--text-3); font-weight: 600; }
.tb-tabs button.on { background: var(--gain); color: var(--accent-ink); }
.tb-input { display: flex; justify-content: space-between; padding: 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-3); color: var(--text-4); }
.tb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tb-quick span { padding: 6px 0; border: 1px solid var(--line-2); border-radius: 7px; text-align: center; color: var(--text-3); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stat-grid > div { padding: 8px 4px; border-radius: 8px; background: var(--bg-3); display: grid; }
.stat-grid small { color: var(--text-4); font-size: 11px; }
.bs { margin-top: 12px; display: grid; gap: 6px; font-size: 12px; }
.bs-bar { height: 6px; border-radius: 99px; background: var(--loss); overflow: hidden; }
.bs-bar span { display: block; height: 100%; background: var(--gain); }
.bs-row { display: flex; justify-content: space-between; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 13px; }
.kv dt { color: var(--text-4); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.coin-page .side-col.left, .profile-page .side-col { position: sticky; top: 0; max-height: calc(100vh - 140px); overflow-y: auto; }

/* Profile */
.profile-page { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.profile-center { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-banner { height: 160px; border-radius: 14px; background: linear-gradient(135deg, #14532d, #1e1b4b) center / cover; }
.pf-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; margin-top: -48px; padding: 0 14px; }
.pf-head h1 { margin: 52px 0 2px; font-size: 22px; }
.pf-head p { margin: 8px 0 0; color: var(--text-2); white-space: pre-wrap; }
.pf-head .btn-ghost { margin-top: 56px; }
.pf-counts { display: flex; gap: 16px; margin-top: 6px; color: var(--text-3); font-size: 13px; }
.pf-counts b { color: var(--text); }
.pf-value { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pf-chart { width: 100%; height: 200px; display: block; }

/* Callout page */
.callout-page { display: grid; grid-template-columns: minmax(0, 760px) 360px; gap: 18px; justify-content: center; align-items: start; }
.co-thread { display: flex; flex-direction: column; gap: 10px; }
.callout.co-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.callout.co-card .co-text { font-size: 16px; }
.co-call .coin-cell b { white-space: nowrap; }
.co-media { margin: 8px 0; position: relative; max-height: 520px; border-radius: 12px; overflow: hidden; }
.co-media img, video.co-media { width: 100%; max-height: 520px; object-fit: contain; background: #000; display: block; }
.co-call { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-3); }
.co-call > div { display: grid; text-align: right; }
.co-call small { color: var(--text-4); font-size: 11px; }
.callout-page .panel { display: grid; gap: 10px; }

.search-label { padding: 8px 8px 2px; color: var(--text-4); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.search-results .lb-row { cursor: pointer; }
.tick .avatar.xs { width: 18px; height: 18px; }
.tick .avatar .chain { display: none; }
a.position { color: inherit; text-decoration: none; }
.co-text[data-href] { cursor: pointer; }
@media (max-width: 1500px) {
  .coin-page { grid-template-columns: minmax(0, 1fr) 320px; }
  .coin-page > .side-col.left, .profile-page > .side-col.left { display: none; }
  .profile-page { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero { grid-template-columns: 180px 1fr; }
  .hero-winners { display: none; }
}
