/* ==========================================================================
   runup — Solana launchpad screener
   Dark terminal theme · single stylesheet · no build step
   ========================================================================== */
@property --sbw { syntax: "<length>"; inherits: true; initial-value: 224px; }
:root {
  --bg: #0b0c0e;
  --bg2: #0e0f12;
  --panel: #121317;
  --panel2: #17181d;
  --panel3: #1e2026;
  --hover: #23252c;
  --line: #1c1e23;
  --line2: #272a31;
  --line3: #33363e;
  --text: #eceef2;
  --text2: #c4c8d0;
  --muted: #8b909a;
  --dim: #5f646e;
  --up: #4ade80;
  --up-soft: rgba(74, 222, 128, 0.12);
  --down: #f87171;
  --down-soft: rgba(248, 113, 113, 0.12);
  --accent: #86efac;
  --accent-hi: #a7f3c4;
  --accent-ink: #04210f;
  --amber: #fbbf24;
  --blue: #7cb7ff;
  --violet: #b9a2ff;
  --sbw: 224px;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { scrollbar-width: thin; scrollbar-color: var(--line3) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #474b55; }
::-webkit-scrollbar-track { background: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.r { text-align: right; }
.up, .cell-up, .chg-up { color: var(--up); }
.down, .cell-down, .chg-down { color: var(--down); }
.chg-flat { color: var(--muted); }
.fine { font-size: 11.5px; color: var(--dim); }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 400;
  background: var(--accent); color: var(--accent-ink); padding: 9px 16px;
  border-radius: var(--r); font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------- boot screen ---------------- */
.boot {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #10131a 0%, var(--bg) 70%);
  transition: opacity .55s var(--ease), visibility .55s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot.is-done .boot-inner { transform: scale(.96) translateY(-6px); filter: blur(2px); }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; transition: transform .55s var(--ease), filter .55s; }
.boot-tile { fill: var(--accent); transform-origin: 32px 32px; animation: bootTile .6s var(--ease-out) both; }
.boot-line { fill: none; stroke: var(--accent-ink); stroke-width: 5.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: bootDraw .7s .25s var(--ease) forwards; }
.boot-dot { fill: var(--accent-ink); transform-origin: 48px 22px; transform: scale(0); animation: bootPop .35s .85s var(--ease-out) forwards; }
.boot-word { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; opacity: 0; animation: fadeUp .5s .5s var(--ease-out) forwards; }
.boot-bar { width: 120px; height: 2px; background: var(--line2); border-radius: 2px; overflow: hidden; opacity: 0; animation: fadeIn .3s .6s forwards; }
.boot-bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 2px; animation: bootBar 1.1s .6s var(--ease) infinite; }
@keyframes bootTile { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bootDraw { to { stroke-dashoffset: 0; } }
@keyframes bootPop { 60% { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes bootBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

body.is-booting .shell, body.is-booting .sidebar { opacity: 0; }
.shell, .sidebar { transition: opacity .6s var(--ease); }
body.is-ready .sidebar { animation: slideRight .7s var(--ease-out) both; }
body.is-ready .topbar { animation: fadeDown .6s .05s var(--ease-out) both; }
body.is-ready .stats-bar .stat-box { animation: fadeUp .6s var(--ease-out) both; }
body.is-ready .stats-bar .stat-box:nth-child(2) { animation-delay: .05s; }
body.is-ready .stats-bar .stat-box:nth-child(3) { animation-delay: .1s; }
body.is-ready .stats-bar .stat-box:nth-child(4) { animation-delay: .15s; }
body.is-ready .board-toolbar { animation: fadeUp .6s .15s var(--ease-out) both; }
@keyframes slideRight { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s, transform .12s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--panel2); border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { background: var(--panel3); border-color: var(--line3); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: var(--panel2); }
.btn-accent, .btn-acid { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-accent:hover, .btn-acid:hover { background: var(--accent-hi); box-shadow: 0 0 0 4px rgba(134, 239, 172, .12); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-connected { background: var(--panel2); border-color: rgba(134, 239, 172, .35); color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r); flex-shrink: 0;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line3); background: var(--panel3); }
.icon-btn.is-spinning .ico { animation: spin .8s linear infinite; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2);
  color: var(--muted); font-size: 12px; font-weight: 600; transition: all .18s var(--ease);
}
.chip-btn .ico { width: 13px; height: 13px; }
.chip-btn:hover { color: var(--text); border-color: var(--line3); }
.chip-btn[disabled] { opacity: .5; pointer-events: none; }
.chip-btn[disabled] .ico { animation: spin .8s linear infinite; }

/* segmented control */
.seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r);
}
.seg > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 7px;
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.seg > button .ico { width: 14px; height: 14px; }
.seg > button:hover { color: var(--text); }
.seg > button.is-active { background: var(--panel3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line3); }
.seg.slim { padding: 2px; }
.seg.slim > button { height: 24px; padding: 0 9px; font-size: 12px; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; position: relative; flex-shrink: 0;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------------- sidebar ---------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  width: var(--sbw);
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; }
.brand-mark { display: inline-grid; place-items: center; }
.brand-mark svg rect { fill: var(--accent); }
.brand-mark svg path { fill: none; stroke: var(--accent-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-size: 20px; font-weight: 700; letter-spacing: -0.035em; }
.side-caption {
  font-size: 11px; font-weight: 600; color: var(--dim);
  padding: 18px 10px 6px;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 10px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.side-link .ico { width: 17px; height: 17px; }
.side-link:hover { color: var(--text); background: var(--panel); }
.side-link.is-active { color: var(--text); background: var(--panel2); }
.side-link.is-active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
  animation: fadeIn .25s var(--ease);
}
.side-link.is-active .ico { color: var(--accent); }
.side-link-accent .ico { color: var(--accent); }
.side-badge {
  margin-left: auto; font-size: 11px; font-family: var(--mono); font-weight: 500;
  background: var(--panel3); color: var(--muted); border-radius: 6px; padding: 1px 7px;
}
.side-foot { margin-top: auto; padding-top: 18px; }
.side-net {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  font-size: 13px; font-weight: 600;
}
.side-net small { display: block; font-size: 11px; color: var(--dim); font-weight: 500; }
.side-net .live-dot { margin-left: auto; }
.net-ico {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #0d1411 url(pump.svg) center / 20px no-repeat; border: 1px solid var(--line);
}
.net-ico .ico { width: 16px; height: 16px; }
.nav-scrim { display: none; }

/* collapsible sidebar (desktop) */
body { transition: --sbw .35s var(--ease-out); }
.sidebar { width: var(--sbw); overflow-x: hidden; }
.side-link .lbl, .brand-word, .side-caption, .side-badge, .side-net > span:not(.net-ico) { transition: opacity .2s var(--ease); white-space: nowrap; }
.side-collapse { width: 100%; margin-bottom: 8px; }
.side-collapse .ico { transition: transform .35s var(--ease-out); }
@media (min-width: 861px) {
  body.side-collapsed { --sbw: 68px; }
  body.side-collapsed .side-link .lbl, body.side-collapsed .brand-word, body.side-collapsed .side-badge,
  body.side-collapsed .side-net > span:not(.net-ico), body.side-collapsed .side-net .live-dot { opacity: 0; pointer-events: none; width: 0; overflow: hidden; }
  body.side-collapsed .side-caption { opacity: 0; height: 18px; padding: 0; }
  body.side-collapsed .side-link { padding: 0 13px; gap: 0; }
  body.side-collapsed .side-brand { padding-left: 6px; padding-right: 0; gap: 0; }
  body.side-collapsed .side-net { padding: 6px; border-color: transparent; background: transparent; justify-content: center; gap: 0; }
  body.side-collapsed .side-collapse .ico { transform: rotate(180deg); }
}

/* ---------------- shell / topbar ---------------- */
.shell { margin-left: var(--sbw); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 75;
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 20px;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-toggle, .mobile-brand { display: none; }
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
#searchInput {
  width: 100%; height: 38px; padding: 0 40px 0 38px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r);
  color: var(--text); font-size: 13.5px;
  transition: border-color .18s, background .18s, box-shadow .2s;
}
#searchInput::-webkit-search-cancel-button { display: none; }
#searchInput:hover { border-color: var(--line3); }
#searchInput:focus { outline: none; border-color: rgba(134, 239, 172, .5); background: var(--panel2); box-shadow: 0 0 0 4px rgba(134, 239, 172, .08); }
#searchInput::placeholder { color: var(--dim); }
.search-kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border: 1px solid var(--line2); border-radius: 5px; padding: 0 6px; line-height: 18px;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  width: 100%; max-height: 60vh; overflow-y: auto;
  background: var(--panel2); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: popIn .18s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
.sr-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border-radius: var(--r);
  text-align: left; transition: background .15s;
}
.sr-item:hover, .sr-item:focus-visible { background: var(--panel3); }
.sr-item img { width: 30px; height: 30px; border-radius: 50%; background: var(--panel3); flex-shrink: 0; object-fit: cover; }
.sr-sym { font-weight: 700; font-size: 13px; }
.sr-name { font-size: 11.5px; color: var(--muted); }
.sr-price { margin-left: auto; font-family: var(--mono); font-size: 12px; flex-shrink: 0; text-align: right; }
.sr-price small { display: block; margin-top: 2px; color: var(--dim); font-size: 10.5px; }
.sr-empty { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------------- movers ---------------- */
.movers-strip {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.movers-track { display: flex; gap: 6px; padding: 8px 12px; width: max-content; animation: marquee 70s linear infinite; }
.movers-strip:hover .movers-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mover-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px 0 4px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line);
  white-space: nowrap; flex-shrink: 0;
  transition: border-color .18s, background .18s;
}
.mover-chip:hover { border-color: var(--line3); background: var(--panel2); }
.mover-chip img { width: 20px; height: 20px; border-radius: 50%; background: var(--panel3); object-fit: cover; }
.mover-sym { font-size: 12.5px; font-weight: 600; }
.mover-pct { font-family: var(--mono); font-size: 12px; }

/* ---------------- stats ---------------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 20px 0; }
.stat-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat-box > span { font-size: 12px; font-weight: 500; color: var(--muted); }
.stat-box > b { font-size: 22px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-box-status > b { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; letter-spacing: 0; padding-top: 4px; }
.stat-box-status > b em { font-style: normal; color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-box-status small { font-size: 11.5px; color: var(--dim); }
.stat-box-status small i { font-style: normal; font-family: var(--mono); }

/* ---------------- featured strip ---------------- */
.boosted-strip {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 20px 0; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; animation: fadeUp .5s var(--ease-out);
}
.boosted-label {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--accent);
  padding: 4px 9px; border-radius: 6px; background: rgba(134, 239, 172, .1);
}
.boosted-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.boosted-track::-webkit-scrollbar { display: none; }
.bcard {
  position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 36px; padding: 0 12px 0 6px; border-radius: var(--r);
  background: var(--panel2); border: 1px solid var(--line2); cursor: pointer; overflow: hidden;
  transition: border-color .18s, transform .18s var(--ease);
}
.bcard:hover { border-color: var(--line3); transform: translateY(-1px); }
.bcard img:not(.boost-banner) { width: 24px; height: 24px; border-radius: 50%; background: var(--panel3); position: relative; }
.boost-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; }
.bcard-sym { position: relative; font-size: 13px; font-weight: 700; }
.bcard-tier { position: relative; font-size: 10.5px; color: var(--muted); }
.bcard-price { display: none; }

/* ---------------- board ---------------- */
.board-section { padding: 18px 20px 8px; flex: 1; }
.board-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tool-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.tool-label { font-size: 12px; color: var(--dim); padding: 0 6px 0 8px; }
.tool-select {
  height: 36px; padding: 0 30px 0 12px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b909a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line2); border-radius: var(--r);
  color: var(--text); font-size: 12.5px; font-weight: 500;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: border-color .18s;
}
.tool-select:hover { border-color: var(--line3); }
.tool-select:focus { outline: none; border-color: rgba(134, 239, 172, .5); }
.tool-select option { background: var(--panel2); }
.filter-summary { font-size: 12px; color: var(--dim); margin: 0 2px 10px; }

.table-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); overflow-x: auto;
}
.board { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1040px; }
.board thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel); text-align: left;
  padding: 11px 12px; font-size: 11.5px; font-weight: 500; color: var(--dim);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.board th.c-num, .board td.c-num { text-align: right; }
.board th.col-active { color: var(--text2); }
.board tbody tr { cursor: pointer; transition: background .15s var(--ease); }
.board tbody tr:hover { background: var(--panel2); }
.board tbody tr:focus-visible { outline: none; background: var(--panel3); }
.board td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.board tbody tr:last-child td { border-bottom: 0; }
.board td.c-num { font-family: var(--mono); font-size: 12.5px; color: var(--text2); }
.board td.c-mcap { color: var(--text); font-weight: 600; }
.board td.col-active { background: rgba(255, 255, 255, .012); }
.rank-cell { display: flex; align-items: center; gap: 6px; color: var(--dim); font-family: var(--mono); font-size: 12px; height: 100%; }
.c-rank { width: 60px; }
.board td.c-rank { padding-top: 0; padding-bottom: 0; vertical-align: middle; }
.board td.c-rank .rank-cell { min-height: 52px; }
.watch-btn {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px;
  color: var(--dim); transition: color .18s, background .18s, transform .2s var(--ease-out);
}
.watch-btn .ico { width: 14px; height: 14px; }
.watch-btn:hover { color: var(--text); background: var(--panel3); }
.watch-btn.saved { color: var(--amber); }
.watch-btn.saved:active, .watch-btn:active { transform: scale(.82); }
.token-cell { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.token-avatar { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.token-avatar::before {
  content: attr(data-i); position: absolute; inset: 0; border-radius: 9px; display: grid; place-items: center;
  background: var(--panel3); color: var(--muted); font-weight: 700; font-size: 13px;
}
.token-avatar img { position: relative; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--panel3); }
.chain-badge {
  position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: #0d1411 url(pump.svg) center / 11px no-repeat; border: 2px solid var(--panel);
}
.board tbody tr:hover .chain-badge { border-color: var(--panel2); }
.token-text { display: flex; flex-direction: column; min-width: 0; }
.token-line { display: flex; align-items: center; gap: 6px; }
.token-sym { font-weight: 700; font-size: 13.5px; }
.token-quote { font-size: 11px; color: var(--dim); }
.token-name { font-size: 12px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.venue-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 1px 6px; border-radius: 5px;
  color: var(--accent); background: rgba(134, 239, 172, .1);
}
.chg-pill { font-family: var(--mono); font-size: 12.5px; }
.board-note { font-size: 12px; color: var(--dim); margin: 10px 2px 0; }
.empty-cell, .skeleton-cell { padding: 48px 16px !important; text-align: center; color: var(--muted); font-family: var(--font) !important; white-space: normal !important; }

/* row entrance */
.board tbody tr.row-in { animation: rowIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flash-up { animation: flashUp 1.1s var(--ease); }
.flash-down { animation: flashDown 1.1s var(--ease); }
@keyframes flashUp { 0% { background: rgba(74, 222, 128, .18); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(248, 113, 113, .18); } 100% { background: transparent; } }

/* skeletons */
.sk-row td { padding: 12px !important; border-bottom: 1px solid var(--line); }
.sk, .sk-line {
  display: block; height: 30px; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel2) 0%, var(--panel3) 40%, var(--panel2) 80%);
  background-size: 300% 100%; animation: shimmer 1.4s linear infinite;
}
.sk-line { height: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------------- advertise ---------------- */
.enhance-section { padding: 36px 20px 20px; }
.enhance-inner {
  display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 32px;
  padding: 32px; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(134, 239, 172, .07), transparent 60%),
    var(--panel);
}
.section-kicker { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.section-title { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; max-width: 520px; }
.section-sub { color: var(--muted); margin-top: 12px; max-width: 520px; }
.enhance-points { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.enhance-points li { position: relative; padding-left: 24px; color: var(--text2); font-size: 13.5px; }
.enhance-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(134, 239, 172, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' stroke='%2386efac' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.enhance-price { margin-top: 26px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; font-family: var(--mono); }
.enhance-price span { color: var(--accent); }
.enhance-price small { display: block; font-family: var(--font); font-size: 12.5px; color: var(--dim); letter-spacing: 0; font-weight: 500; }
.enhance-panel {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column;
}
.panel-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.package-chip { font-size: 11.5px; font-family: var(--mono); color: var(--accent); background: rgba(134, 239, 172, .1); padding: 3px 8px; border-radius: 6px; }
.banner-preview {
  aspect-ratio: 3 / 1; border-radius: var(--r); border: 1px dashed var(--line3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--panel) center/cover no-repeat; margin-bottom: 14px; transition: background .3s;
}
.banner-preview span { font-size: 12px; font-weight: 600; color: var(--muted); }
.banner-preview strong { font-size: 11px; font-weight: 500; color: var(--dim); }
.field-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text2); margin: 10px 0 6px; }
.field-label span { color: var(--dim); font-weight: 500; }
.field {
  width: 100%; padding: 10px 12px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line2); color: var(--text); font-size: 13px;
  transition: border-color .18s, box-shadow .2s;
}
textarea.field { resize: vertical; min-height: 72px; }
.field:focus { outline: none; border-color: rgba(134, 239, 172, .5); box-shadow: 0 0 0 4px rgba(134, 239, 172, .07); }
.field::placeholder { color: var(--dim); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.field-hint { font-size: 11.5px; margin-top: 6px; }
.field-hint.is-ok { color: var(--up); }
.field-hint.is-err { color: var(--down); }
.boost-status { margin-top: 10px; font-size: 12.5px; padding: 10px 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); color: var(--text2); }
.boost-status.is-ok { border-color: rgba(74, 222, 128, .35); color: var(--up); }
.boost-status.is-err { border-color: rgba(248, 113, 113, .35); color: var(--down); }
#retryPayment { margin-top: 8px; }
.panel-fine { font-size: 11.5px; color: var(--dim); margin-top: 10px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 20px 28px; font-size: 12px; color: var(--dim);
  border-top: 1px solid var(--line); margin-top: 20px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }

/* ---------------- modal base ---------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 7, .72); backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease); }
.modal-card { position: relative; animation: modalIn .35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-sm {
  width: min(400px, calc(100vw - 32px)); padding: 24px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.modal-sm .modal-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .18s, color .18s; }
.modal-sm .modal-x:hover { background: var(--panel3); color: var(--text); }
.wd-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.wd-sub { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.wallet-opt {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2);
  font-weight: 600; transition: border-color .18s, background .18s;
}
.wallet-opt .ico { margin-left: auto; color: var(--dim); }
.wallet-opt:hover { border-color: var(--line3); background: var(--panel3); }
.phantom-dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #ab9ff2, #534bb1); }
.wallet-detail { margin-top: 14px; display: grid; gap: 8px; }
.wd-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wd-row span { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 600; transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--r); font-size: 13px; font-weight: 500;
  background: var(--panel3); border: 1px solid var(--line3); color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  animation: toastIn .3s var(--ease-out);
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================================
   Token page
   ========================================================================== */
.token-modal { align-items: stretch; justify-content: stretch; background: var(--bg); z-index: 70; inset: 60px 0 0 var(--sbw); }
.token-shell {
  width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden;
  background: var(--bg);
  animation: pageIn .45s var(--ease-out);
}
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.token-modal.is-closing .token-shell { animation: pageOut .22s var(--ease) forwards; }
@keyframes pageOut { to { opacity: 0; transform: translateY(8px); } }

.tp-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px;
  background: rgba(11, 12, 14, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tp-back {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; flex-shrink: 0;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2);
  font-size: 13px; font-weight: 600; color: var(--text2); transition: all .18s var(--ease);
}
.tp-back:hover { background: var(--panel3); color: var(--text); }
.tp-back:hover .ico { transform: translateX(-2px); }
.tp-back .ico { transition: transform .2s var(--ease); }
.chart-trending { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.chart-trending-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; padding: 0 4px; }
.chart-trending-label .ico { width: 14px; height: 14px; color: var(--accent); }
.chart-trending-arrow {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--muted); transition: background .18s, color .18s;
}
.chart-trending-arrow .ico { width: 14px; height: 14px; }
.chart-trending-arrow:hover { background: var(--panel2); color: var(--text); }
.chart-trending-list {
  display: flex; overflow: hidden; min-width: 0; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
}
.ct-track { display: flex; gap: 6px; padding-right: 6px; width: max-content; animation: marquee 60s linear infinite; }
.ct-dup { display: contents; }
.chart-trending-list:hover .ct-track, .chart-trending-list:focus-within .ct-track { animation-play-state: paused; }
.chart-trending-list::-webkit-scrollbar { display: none; }
.chart-trending-coin {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 30px; padding: 0 10px 0 4px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 12.5px; white-space: nowrap; transition: border-color .18s, background .18s;
}
.chart-trending-coin:hover { border-color: var(--line3); background: var(--panel2); }
.chart-trending-coin.is-active { border-color: rgba(134, 239, 172, .45); background: rgba(134, 239, 172, .06); }
.chart-trending-coin img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--panel3); }
.chart-trending-coin strong { font-weight: 600; }
.chart-trending-coin span:last-child { font-family: var(--mono); font-size: 11.5px; }
.chart-trending-rank { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-left: 4px; }
.chart-trending-empty { font-size: 12px; color: var(--dim); padding: 0 6px; }

.token-page-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  max-width: 1680px; margin: 0 auto;
}
.token-workspace { min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.token-sidebar { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.token-workspace > *, .token-sidebar > * { animation: fadeUp .5s var(--ease-out) both; }
.token-workspace > :nth-child(2), .token-sidebar > :nth-child(3) { animation-delay: .05s; }
.token-workspace > :nth-child(3), .token-sidebar > :nth-child(4) { animation-delay: .1s; }
.token-workspace > :nth-child(n+4), .token-sidebar > :nth-child(n+5) { animation-delay: .15s; }

/* hero */
.coin-hero { display: flex; align-items: center; gap: 14px; padding: 4px 2px 6px; min-width: 0; }
.coin-hero-image { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--panel3); flex-shrink: 0; box-shadow: 0 0 0 1px var(--line2); }
.coin-hero-identity { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.coin-hero-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.coin-hero-name strong { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-hero-venue {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px;
  color: var(--accent); background: rgba(134, 239, 172, .1); white-space: nowrap;
}
.coin-hero-venue.is-plain { color: var(--muted); background: var(--panel2); }
.coin-hero-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.coin-hero-sub small { font-size: 12.5px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px;
  border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2);
  font-family: var(--mono); font-size: 11.5px; color: var(--text2); transition: border-color .18s, color .18s;
}
.ca-chip .ico { width: 12px; height: 12px; color: var(--dim); }
.ca-chip:hover { border-color: var(--line3); color: var(--text); }
.ca-chip.is-copied { border-color: rgba(134, 239, 172, .45); color: var(--accent); }
.social-links { display: inline-flex; gap: 4px; }
.social-links a {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); transition: color .18s, border-color .18s;
}
.social-links a .ico { width: 13px; height: 13px; }
.social-links a:hover { color: var(--text); border-color: var(--line3); }
.coin-hero-dev {
  font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: rgba(251, 191, 36, .1); color: var(--amber);
}
.coin-hero-pump { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); transition: color .18s; }
.coin-hero-pump .ico { width: 12px; height: 12px; }
.coin-hero-pump:hover { color: var(--text); }
.coin-hero-metrics { display: flex; gap: 22px; align-items: flex-end; flex-shrink: 0; }
.coin-hero-metrics span { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.coin-hero-metrics b { font-size: 15px; font-weight: 600; color: var(--text); font-family: var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coin-hero-metrics .m-main b { font-size: 24px; font-weight: 700; }

/* chart card */
.chart-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.runup-chart-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.runup-chart-toolbar .seg { background: transparent; border-color: transparent; }
.tb-sep { width: 1px; height: 18px; background: var(--line2); margin: 0 4px; }
.runup-chart-toolbar::-webkit-scrollbar { display: none; }
.runup-chart-toolbar > * { flex-shrink: 0; }
.tb-right { margin-left: auto; padding-left: 8px; display: flex; align-items: center; gap: 6px; }
.runup-chart-text-button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: color .18s, background .18s;
}
.runup-chart-text-button .ico { width: 15px; height: 15px; }
.runup-chart-text-button:hover { color: var(--text); background: var(--panel2); }
.runup-chart-text-button.is-active { color: var(--accent); }
.runup-chart-refresh { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: color .18s, background .18s; }
.runup-chart-refresh:hover { color: var(--text); background: var(--panel2); }
.runup-chart-refresh.is-spinning .ico { animation: spin .8s linear infinite; }
.runup-chart-stage { display: flex; height: clamp(380px, 56vh, 620px); }
.runup-chart-rail {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 6px;
  border-right: 1px solid var(--line); flex-shrink: 0;
}
.runup-chart-rail button {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  color: var(--dim); transition: color .18s, background .18s;
}
.runup-chart-rail button:hover { color: var(--text); background: var(--panel2); }
.runup-chart-rail button.is-active { color: var(--accent); background: rgba(134, 239, 172, .08); }
.runup-chart-rail .ico { width: 17px; height: 17px; }
.chart-embed { position: relative; flex: 1; min-width: 0; }
.chart-local { position: absolute; inset: 0; }
#localChart { position: absolute; inset: 0; }
.chart-legend {
  position: absolute; top: 10px; left: 12px; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; max-width: calc(100% - 100px);
}
.chart-legend-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.chart-legend-title b { font-weight: 600; color: var(--text); }
.chart-legend-title span { font-size: 11.5px; color: var(--muted); }
.chart-ohlc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-ohlc em { font-style: normal; color: var(--dim); margin-right: 3px; }
.chart-ohlc .o-up { color: var(--up); }
.chart-ohlc .o-down { color: var(--down); }
.chart-local-status {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6;
  font-size: 12px; color: var(--muted); background: rgba(18, 19, 23, .92);
  border: 1px solid var(--line2); border-radius: 99px; padding: 5px 12px; white-space: nowrap;
  pointer-events: none;
}
.chart-local-status:empty { display: none; }
.chart-loader { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: grid; place-items: center; }
.chart-loader[hidden] { display: none; }
.chart-loader span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.chart-empty-action {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: rgba(18, 19, 23, .85);
}
.chart-empty-action[hidden] { display: none; }
.chart-empty-action strong { font-size: 14px; }
.chart-empty-action span { font-size: 12.5px; color: var(--muted); max-width: 320px; }
.chart-empty-action button { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; height: 32px; padding: 0 14px; border-radius: var(--r); background: var(--panel3); border: 1px solid var(--line3); font-size: 12.5px; font-weight: 600; }
.chart-empty-action button:hover { background: var(--hover); }
.runup-chart-bottom {
  display: flex; justify-content: space-between; padding: 7px 12px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim);
}
.chart-watermark { font-weight: 700; letter-spacing: -0.02em; color: var(--line3); }

/* largest trades strip */
.trade-pulse { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.trade-pulse-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.trade-pulse-head strong { font-size: 13px; font-weight: 600; }
.trade-pulse-head small { font-size: 11.5px; color: var(--dim); }
.trade-pulse-items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.trade-pulse-items::-webkit-scrollbar { display: none; }
.trade-pulse-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 32px; padding: 0 10px 0 4px; border-radius: 99px;
  background: var(--panel2); border: 1px solid var(--line2); font-size: 12px;
  transition: border-color .18s, transform .18s var(--ease);
  animation: fadeUp .4s var(--ease-out) both;
}
.trade-pulse-chip:hover { border-color: var(--line3); transform: translateY(-1px); }
.trade-pulse-chip i { width: 24px; height: 24px; border-radius: 50%; background-size: cover; box-shadow: 0 0 0 2px var(--up); }
.trade-pulse-chip.sell i { box-shadow: 0 0 0 2px var(--down); }
.trade-pulse-chip span { font-family: var(--mono); font-weight: 600; }
.trade-pulse-chip.buy span { color: var(--up); }
.trade-pulse-chip.sell span { color: var(--down); }
.trade-pulse-chip strong { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(251, 191, 36, .14); color: var(--amber); }
.trade-pulse-chip em { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.trade-pulse-empty { font-size: 12.5px; color: var(--dim); }

/* sub nav + panels */
.token-subnav {
  display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line);
  position: relative; margin-top: 4px;
}
.token-subnav > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .18s;
}
.token-subnav > button:hover { color: var(--text); }
.token-subnav > button.is-active { color: var(--text); }
.token-subnav > button::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.token-subnav > button.is-active::after { transform: scaleX(1); }
.tab-count { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--panel2); border-radius: 5px; padding: 0 6px; }
.subnav-right { margin-left: auto; display: flex; gap: 4px; }
.subnav-right > * {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .18s, background .18s;
}
.subnav-right .ico { width: 14px; height: 14px; }
.subnav-right > *:hover { color: var(--text); background: var(--panel2); }
.detail-panel { animation: fadeIn .3s var(--ease); }
.trades-heading, .dev-heading, .holders-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
#tradesStatus, #holdersStatus { font-size: 12px; color: var(--dim); }
#holdersStatus { margin-bottom: 10px; }
.dev-heading h3 { font-size: 14px; font-weight: 600; }
.dev-heading p { font-size: 12px; color: var(--dim); }
.trades-wrap, .holders-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: auto; max-height: 560px; }
.trades-table, .holders-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.trades-table th, .holders-table th {
  position: sticky; top: 0; z-index: 1; background: var(--panel);
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--dim);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.trades-table td, .holders-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trades-table tbody tr, .holders-table tbody tr { transition: background .15s; }
.trades-table tbody tr:hover, .holders-table tbody tr:hover { background: var(--panel2); }
.trades-table tbody tr:last-child td, .holders-table tbody tr:last-child td { border-bottom: 0; }
.trades-table th.r, .holders-table th.r { text-align: right; }
.trades-table td.r, .holders-table td.r { text-align: right; font-family: var(--mono); font-size: 12px; }
.trades-table tr.is-new { animation: rowIn .45s var(--ease-out) both; }
.trades-table td.trade-buy { color: var(--up); }
.trades-table td.trade-sell { color: var(--down); }
.trades-table tr.t-buy td.usd { color: var(--up); }
.trades-table tr.t-sell td.usd { color: var(--down); }
.type-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.type-pill.buy { color: var(--up); background: var(--up-soft); }
.type-pill.sell { color: var(--down); background: var(--down-soft); }
.trade-dev { margin-left: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 5px; border-radius: 4px; background: rgba(251, 191, 36, .14); color: var(--amber); vertical-align: 1px; }
.acct { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text2); }
.acct i { width: 22px; height: 22px; border-radius: 50%; background-size: cover; flex-shrink: 0; }
a.acct:hover { color: var(--text); }
.txn-link { color: var(--dim); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; transition: color .18s, background .18s; }
.txn-link .ico { width: 13px; height: 13px; }
.txn-link:hover { color: var(--text); background: var(--panel3); }
.dev-empty, .holders-empty { text-align: center; color: var(--dim); padding: 32px 12px !important; white-space: normal !important; }

.dev-identity { font-size: 12.5px; color: var(--text2); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.dev-identity a { color: var(--accent); font-family: var(--mono); }
.dev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.dev-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.dev-stats span { display: block; font-size: 11.5px; color: var(--dim); }
.dev-stats strong { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.dev-scope { font-size: 11.5px; color: var(--dim); margin-bottom: 10px; }
.dev-wallet-settings { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.dev-wallet-settings label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
.dev-wallet-settings > div { display: flex; gap: 6px; flex-wrap: wrap; }
.dev-wallet-settings input { flex: 1; min-width: 200px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line2); font-family: var(--mono); font-size: 12px; }
.dev-wallet-settings input:focus { outline: none; border-color: rgba(134, 239, 172, .5); }
.dev-wallet-settings button { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--panel3); border: 1px solid var(--line3); font-size: 12.5px; font-weight: 600; }
.dev-wallet-settings button:hover { background: var(--hover); }
.dev-wallet-settings small { display: block; margin-top: 8px; font-size: 11px; color: var(--dim); }

.holders-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.holders-summary div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; min-width: 120px; }
.holders-summary span { display: block; font-size: 11.5px; color: var(--dim); }
.holders-summary strong { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.holder-share { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.holder-bar-track { width: 64px; height: 4px; border-radius: 4px; background: var(--panel3); overflow: hidden; }
.holder-bar { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; animation: growX .7s var(--ease-out) both; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.holders-table td .acct { vertical-align: middle; }
.holder-label { vertical-align: middle; margin-left: 8px !important; font-family: var(--font); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-left: 2px; }
.holder-label.creator { color: var(--amber); background: rgba(251, 191, 36, .12); }
.holder-label.curve { color: var(--blue); background: rgba(124, 183, 255, .12); }
.holder-label.pool { color: var(--muted, #9ca3af); background: rgba(255, 255, 255, .07); }
.holder-label.you { color: var(--violet); background: rgba(185, 162, 255, .12); }
.text-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.text-link .ico { width: 13px; height: 13px; }
.text-link:hover { color: var(--text); }

/* sidebar cards */
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.side-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.side-card-head h4 { font-size: 13.5px; font-weight: 600; }
.profile-banner { aspect-ratio: 3 / 1; border-radius: var(--r-lg); background: var(--panel2) center/cover no-repeat; border: 1px solid var(--line); }
.tm-head { display: flex; align-items: center; gap: 10px; }
.tm-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--panel3); }
.tm-title { min-width: 0; flex: 1; }
.tm-sym { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.tm-sym > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.tm-pair { color: var(--dim); font-weight: 500; font-size: 12px; }
.rank-chip { font-style: normal; font-size: 10.5px; font-family: var(--mono); color: var(--accent); background: rgba(134, 239, 172, .1); padding: 1px 6px; border-radius: 5px; margin-left: 4px; }
.tm-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-price-box { text-align: right; }
.tm-price { font-family: var(--mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-change { font-family: var(--mono); font-size: 12px; }
.tm-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.tm-actions .btn { height: 34px; padding: 0 8px; font-size: 12.5px; }
.tm-actions .btn .ico { width: 14px; height: 14px; }
.btn-watch.saved { color: var(--amber); border-color: rgba(251, 191, 36, .35); }

.tm-changes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.tm-changes div {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
  border-radius: var(--r); background: var(--panel2); border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.tm-changes div.is-active { border-color: var(--line3); background: var(--panel3); }
.tm-changes span { font-size: 11px; color: var(--dim); }
.tm-changes b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.flow-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.flow-labels { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.flow-labels span { color: var(--muted); }
.flow-labels span.up b { color: var(--up); }
.flow-labels span.down b { color: var(--down); }
.flow-labels b { font-family: var(--mono); font-weight: 600; margin-right: 3px; }
.tm-flow-track { display: flex; gap: 3px; height: 5px; }
.tm-flow-track span { height: 100%; border-radius: 4px; transition: width .8s var(--ease-out); min-width: 3px; }
.tm-flow-track span:first-child { background: var(--up); }
.tm-flow-track span:last-child { background: var(--down); }
.flow-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); }
.flow-foot b { color: var(--text2); font-family: var(--mono); font-weight: 500; }
.tm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tm-stats div { padding: 8px 10px; border-radius: var(--r); background: var(--panel2); }
.tm-stats span { display: block; font-size: 11px; color: var(--dim); }
.tm-stats b { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pool-pair { font-size: 11.5px; color: var(--dim); }
.pool-pair b { color: var(--text2); font-weight: 600; }
.token-meta { display: flex; flex-direction: column; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); }
.meta-row b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.meta-row code { font-size: 11.5px; color: var(--text2); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; transition: color .18s; }
.meta-row code:hover { color: var(--accent); }
.ath-meter { margin-top: 12px; }
.ath-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-bottom: 6px; }
.ath-labels b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.ath-track { height: 6px; border-radius: 6px; background: var(--panel3); overflow: hidden; }
.ath-track span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #3fbf73, var(--accent)); transition: width 1s var(--ease-out); }

.token-info p { font-size: 13px; color: var(--text2); line-height: 1.55; word-break: break-word; }
.token-info p:empty { display: none; }
.token-info .fine { margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.token-profile { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.token-profile small { width: 100%; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.token-profile p { width: 100%; font-size: 13px; color: var(--text2); }
.token-profile a { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--panel2); }
.token-profile a:hover { color: var(--text); }
.promo-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(134, 239, 172, .07), transparent 60%), var(--panel); }
.promo-card > div { flex: 1; min-width: 0; }
.promo-card strong { display: block; font-size: 13px; }
.promo-card span { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .token-page-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .coin-hero-metrics { gap: 14px; }
}
@media (max-width: 1100px) {
  .token-page-layout { grid-template-columns: 1fr; }
  .token-workspace { border-right: 0; }
  .token-sidebar { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .profile-banner { grid-column: 1 / -1; }
  .coin-hero { flex-wrap: wrap; }
  .coin-hero-metrics { width: 100%; justify-content: space-between; padding-top: 6px; }
  .coin-hero-metrics span { align-items: flex-start; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .enhance-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .token-modal { inset: 60px 0 0 0; }
  .sidebar { z-index: 190; width: 224px; transform: translateX(-100%); transition: transform .35s var(--ease-out); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  body.nav-open .sidebar { transform: none; }
  body.is-ready .sidebar { animation: none; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 185; background: rgba(0, 0, 0, .55); animation: fadeIn .25s; }
  .nav-scrim[hidden] { display: none; }
  .shell { margin-left: 0; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; flex-shrink: 0; }
  .nav-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); color: var(--text2); flex-shrink: 0; }
  .nav-toggle:hover { background: var(--panel2); }
  .topbar { padding: 0 12px; gap: 8px; }
  .top-bp { display: none; }
  .search-kbd { display: none; }
  .board-section, .stats-bar { padding-left: 12px; padding-right: 12px; }
  .boosted-strip { margin-left: 12px; margin-right: 12px; }
  .tool-right { margin-left: 0; }
  .token-sidebar { grid-template-columns: 1fr; }
  .chart-trending-label { display: none; }
}
@media (max-width: 560px) {
  .topbar-right .btn span { display: none; }
  .topbar-right .btn { padding: 0 10px; }
  .stats-bar { gap: 8px; }
  .stat-box { padding: 12px; }
  .stat-box > b { font-size: 18px; }
  .board-toolbar { gap: 8px; }
  .feed-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .feed-tabs > button { flex-shrink: 0; }
  .age-tabs .tool-label { display: none; }
  .mobile-brand { font-size: 0; gap: 0; }
  .tool-right { width: 100%; }
  .age-tabs { width: 100%; justify-content: space-between; }
  .tool-select { flex: 1 1 30%; min-width: 0; }
  .token-workspace, .token-sidebar { padding-left: 10px; padding-right: 10px; }
  .coin-hero-name strong { font-size: 19px; }
  .coin-hero-metrics .m-main b { font-size: 19px; }
  .coin-hero-metrics b { font-size: 13px; }
  .runup-chart-rail { display: none; }
  .runup-chart-stage { height: 380px; }
  .tb-right { margin-left: 0; }
  .tb-sep { display: none; }
  .subnav-right > * span, .subnav-right #shareToken { font-size: 0; gap: 0; }
  .enhance-inner { padding: 18px; }
  .section-title { font-size: 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .tp-back span { display: none; }
  .tp-back { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .movers-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 1w / 1m columns (shown only when that window is selected) ---------- */
.board .c-long { display: none; }
.board.show-long .c-long { display: table-cell; }
.long-sk { display: inline-block; width: 54px; height: 10px; vertical-align: middle; }

.board.show-long th, .board.show-long td { padding-left: 8px; padding-right: 8px; }
.board.show-long .token-name { max-width: 140px; }

/* ---------- market cap in blue; other numbers stay neutral ---------- */
.board td.c-mcap { color: #60a5fa; }
.board thead th.c-mcap { color: color-mix(in srgb, #60a5fa 75%, var(--dim)); }

/* coin page banner: right column, under the price card */
.tp-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.tp-banner-image { aspect-ratio: 3 / 1; width: 100%; background: center / cover no-repeat; animation: fadeIn .5s var(--ease); }
.tp-banner.is-empty .tp-banner-image {
  aspect-ratio: auto; height: 76px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .015) 12px 24px);
}
.tp-banner-edit {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(11, 12, 14, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); color: var(--text);
  opacity: 0; transition: opacity .2s, background .2s, border-color .2s;
}
.tp-banner:hover .tp-banner-edit, .tp-banner-edit:focus-visible, .tp-banner.is-empty .tp-banner-edit { opacity: 1; }
.tp-banner.is-empty .tp-banner-edit { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); }
.tp-banner-edit:hover { background: rgba(30, 32, 38, .92); border-color: rgba(134, 239, 172, .45); }
.owner-only { display: none !important; }
body.is-owner .owner-only { display: inline-flex !important; }

/* owner sign-in + banner editor */
.owner-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); transition: color .18s; }
.owner-link .ico { width: 13px; height: 13px; }
.owner-link:hover { color: var(--text); }
body.is-owner .owner-link { color: var(--accent); }
.owner-form { display: grid; gap: 10px; }
.owner-signout { margin-top: 8px; }
.wd-sub code { font-size: 12px; color: var(--text2); }
.modal-md { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.bn-drop {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 1; margin-bottom: 8px;
  border: 1px dashed var(--line3); border-radius: var(--r); cursor: pointer;
  background: var(--panel) center / cover no-repeat; transition: border-color .18s, background-color .18s;
}
.bn-drop:hover, .bn-drop.is-over { border-color: rgba(134, 239, 172, .55); background-color: var(--panel2); }
.bn-drop-empty { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bn-drop.has-image .bn-drop-empty { opacity: 0; }
.bn-drop.has-image:hover .bn-drop-empty { opacity: 1; background: rgba(11, 12, 14, .75); padding: 6px 10px; border-radius: 8px; color: var(--text); }
.bn-days { width: 100%; }
.bn-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.bn-actions .btn-accent { margin-left: auto; min-width: 110px; }
.bn-remove { color: var(--down); }
@media (max-width: 560px) {
}

/* ==========================================================================
   Advertise page (#promote) and boosts
   ========================================================================== */
body.page-promote .stats-bar,
body.page-promote #boostedStrip,
body.page-promote #board { display: none; }
.bp-page { padding: 28px 20px 10px; animation: fadeUp .5s var(--ease-out) both; }
.bp-hero { max-width: 760px; margin-bottom: 22px; }
.bp-title { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; }
.bp-tabs { margin-top: 20px; }
.bp-tabs > button { height: 34px; padding: 0 14px; font-size: 13px; }
.bp-pane { animation: fadeIn .3s var(--ease); }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.bp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.bp-side { display: grid; gap: 14px; }
.bp-side h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.bp-side .enhance-points { margin-top: 0; }
.bp-pane[data-pane="listing"] .enhance-inner { margin-top: 0; }

.pb-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line2); font-size: 12.5px; animation: fadeIn .25s; }
.pb-preview img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--panel3); }
.pb-preview div { flex: 1; min-width: 0; }
.pb-preview b { display: block; font-size: 14px; }
.pb-preview small { color: var(--muted); }
.pb-preview.is-err { color: var(--down); }
.pb-packs-label { margin-top: 18px; }
.pb-packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pb-pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 14px;
  border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); text-align: center;
  transition: border-color .2s, background .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.pb-pack:hover { border-color: var(--line3); transform: translateY(-2px); }
.pb-pack.is-active { border-color: rgba(134, 239, 172, .6); background: rgba(134, 239, 172, .06); box-shadow: 0 0 0 3px rgba(134, 239, 172, .1); }
.pb-pack em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; white-space: nowrap; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.pb-pack.is-gold em { background: linear-gradient(90deg, #fcd34d, #f59e0b); color: #2a1a00; }
.pb-amount { display: inline-flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.pb-amount .ico { width: 18px; height: 18px; color: var(--amber); }
.pb-pack.is-gold .pb-amount { color: #fcd34d; }
.pb-pack b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.pb-pack small { font-size: 10.5px; color: var(--dim); }
.pb-pay { margin-top: 16px; height: 42px; font-size: 14px; }
.pb-top { display: grid; gap: 4px; }
.pb-top-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; transition: background .15s; }
.pb-top-row:hover { background: var(--panel2); }
.pb-top-row img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: var(--panel3); }
.pb-top-row b { flex: 1; font-size: 13px; }
.pb-top-rank { width: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* boost badge (board rows, coin page, leaderboard) */
.boost-badge {
  display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px 0 4px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1;
  color: var(--amber); background: rgba(251, 191, 36, .12); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .25);
}
.boost-badge .ico { width: 12px; height: 12px; }
.boost-badge.is-gold { color: #2a1a00; background: linear-gradient(90deg, #fcd34d, #f59e0b); box-shadow: 0 0 12px rgba(251, 191, 36, .35); }
.coin-hero-name .boost-badge { height: 22px; font-size: 12px; }
.promo-card .btn .ico { width: 14px; height: 14px; }
@media (max-width: 1100px) {
  .bp-grid { grid-template-columns: 1fr; }
  .pb-packs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .bp-page { padding: 18px 12px 6px; }
  .bp-title { font-size: 26px; }
  .pb-packs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- payment page (#pay/CODE) ---------- */
.pay-steps { display: flex; gap: 8px; margin-bottom: 14px; }
.pay-steps span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--dim); }
.pay-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel3); color: var(--muted); }
.pay-steps .now { color: var(--text); border-color: rgba(134, 239, 172, .4); }
.pay-steps .now b { background: var(--accent); color: var(--accent-ink); }
.pay-steps .done { color: var(--text2); }
.pay-steps .done b { background: rgba(134, 239, 172, .15); color: var(--accent); }
.pay-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); margin-bottom: 6px; }
.pay-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); animation: ping-soft 1.8s var(--ease) infinite; }
.pay-status div { flex: 1; min-width: 0; }
.pay-status strong { display: block; font-size: 14px; }
.pay-status small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-status.st-live i, .pay-status.st-ended i { background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); animation: none; }
.pay-status.st-review i { background: var(--blue); box-shadow: 0 0 0 4px rgba(124, 183, 255, .15); }
.pay-status.st-expired i, .pay-status.st-rejected i { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); animation: none; }
@keyframes ping-soft { 50% { box-shadow: 0 0 0 7px rgba(251, 191, 36, .05); } }
.pay-timer { font-family: var(--mono); font-size: 12px; color: var(--amber); white-space: nowrap; }
.pay-copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line2); }
.pay-copy code, .pay-copy b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--text); }
.pay-copy button { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--panel3); border: 1px solid var(--line3); font-size: 12px; font-weight: 600; transition: background .18s; }
.pay-copy button:hover { background: var(--hover); }
.pay-amount b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.pay-amount b span { font-size: 14px; color: var(--muted); }
.pay-card .panel-fine { margin-top: 6px; }
.pay-open { margin-top: 12px; }
.pay-confirm { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pay-confirm .field-label { margin-top: 0; }
.pay-tx a { color: var(--accent); }
.pay-lines { margin-top: 12px; display: grid; }
.pay-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pay-lines div:last-child { border-bottom: 0; }
.pay-lines span { color: var(--muted); }
.pay-lines b { font-weight: 500; text-align: right; }
.pay-missing h3 { margin-bottom: 6px; }
.pay-missing a { color: var(--accent); }
@media (max-width: 560px) { .pay-steps span { padding-right: 10px; font-size: 11.5px; } }
.bp-grid > *, .bp-side, .bp-card { min-width: 0; }
.pay-lines b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "Enhance token info" offer in the coin page banner slot */
.tp-enhance {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left;
  background: radial-gradient(120% 140% at 0% 0%, rgba(134, 239, 172, .1), transparent 60%), var(--panel);
  transition: background .25s;
}
.tp-banner.is-empty { border-style: dashed; border-color: var(--line3); }
.tp-banner.is-empty .tp-banner-image { display: none; }
.tp-enhance:hover { background: radial-gradient(120% 140% at 0% 0%, rgba(134, 239, 172, .16), transparent 65%), var(--panel2); }
.tp-enhance-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(134, 239, 172, .12); color: var(--accent); }
.tp-enhance-ico .ico { width: 18px; height: 18px; }
.tp-enhance-text { flex: 1; min-width: 0; }
.tp-enhance-text b { display: block; font-size: 13.5px; color: var(--text); }
.tp-enhance-text small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tp-enhance-go { color: var(--dim); transition: transform .2s var(--ease-out), color .2s; }
.tp-enhance:hover .tp-enhance-go { transform: translateX(3px); color: var(--accent); }

/* live token preview on the Enhanced token info tab */
.enh-preview { margin-top: 22px; max-width: 560px; padding: 16px; border-radius: 16px; background: rgba(11, 12, 14, .55); border: 1px solid var(--line2); animation: fadeUp .4s var(--ease-out) both; }
.enh-head { display: flex; align-items: center; gap: 12px; }
.enh-head img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: var(--panel3); box-shadow: 0 0 0 1px var(--line2); flex-shrink: 0; }
.enh-id { min-width: 0; flex: 1; }
.enh-id > div { display: flex; align-items: center; gap: 7px; }
.enh-id b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.enh-id small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.enh-id code { display: block; font-size: 11px; color: var(--dim); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enh-sk-logo { width: 54px; height: 54px; border-radius: 14px; }
.enh-sk-banner { height: auto; aspect-ratio: 3 / 1; margin-top: 14px; border-radius: 12px; }
.enh-note { margin-top: 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--text2); background: rgba(134, 239, 172, .07); border: 1px solid rgba(134, 239, 172, .2); }
.enh-note.is-warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .25); color: var(--amber); }
.enh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.enh-stats div { padding: 8px 10px; border-radius: 10px; background: var(--panel2); }
.enh-stats span { display: block; font-size: 11px; color: var(--dim); }
.enh-stats b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.enh-stats b.mc { color: #60a5fa; }
.enh-stats b.chg-up { color: var(--up); }
.enh-stats b.chg-down { color: var(--down); }
.enh-preview-label { margin: 16px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--dim); }
.enh-banner { aspect-ratio: 3 / 1; border-radius: 12px; background: var(--panel2) center / cover no-repeat; border: 1px solid var(--line2); transition: background-image .3s; }
.enh-banner.is-empty { display: grid; place-items: center; border-style: dashed; border-color: var(--line3); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .015) 12px 24px); }
.enh-banner.is-empty span { font-size: 12px; color: var(--dim); }
.enh-profile { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.enh-profile small { font-size: 10.5px; font-weight: 700; color: var(--accent); }
.enh-profile p { font-size: 13px; color: var(--text2); margin-top: 4px; word-break: break-word; }
.enh-profile p.is-placeholder { color: var(--dim); }
.enh-profile div { display: flex; gap: 6px; margin-top: 8px; }
.enh-profile div:empty { display: none; }
.enh-profile a { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--panel2); }
@media (max-width: 560px) { .enh-stats { grid-template-columns: repeat(2, 1fr); } }

/* clickable banner upload on the Enhanced token info form */
.banner-preview.is-drop { position: relative; cursor: pointer; overflow: hidden; background-size: cover; background-position: center; transition: border-color .2s, background-color .2s; }
.banner-preview.is-drop:hover, .banner-preview.is-drop.is-over, .banner-preview.is-drop:focus-visible { border-color: rgba(134, 239, 172, .6); background-color: var(--panel2); }
.bp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 12px; }
.bp-empty .ico { width: 22px; height: 22px; color: var(--accent); margin-bottom: 2px; }
.bp-empty > span { font-size: 13px; font-weight: 600; color: var(--text2); }
.bp-empty strong { font-size: 11px; font-weight: 500; color: var(--dim); }
.bp-change { position: absolute; right: 8px; bottom: 8px; display: none; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(11, 12, 14, .78); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); }
.bp-change .ico { width: 14px; height: 14px; }
.banner-preview.has-image { border-style: solid; }
.banner-preview.has-image .bp-empty { display: none; }
.banner-preview.has-image .bp-change { display: inline-flex; opacity: 0; transition: opacity .2s; }
.banner-preview.has-image:hover .bp-change, .banner-preview.has-image:focus-visible .bp-change { opacity: 1; }
.bp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bp-progress i { display: block; height: 100%; width: 40%; background: var(--accent); animation: bootBar 1s var(--ease) infinite; }
.banner-preview.is-uploading { filter: saturate(.7); }
#bannerFileHint { margin: -6px 0 6px; }

/* Pay with Phantom + QR */
.pay-phantom { height: 46px; font-size: 14.5px; margin-top: 14px; gap: 10px; background: #ab9ff2; color: #1c1530; }
.pay-phantom:hover { background: #bcb2f6; box-shadow: 0 0 0 4px rgba(171, 159, 242, .15); }
.pay-phantom .phantom-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #fff, #e3ddff); box-shadow: inset 0 0 0 1px rgba(28, 21, 48, .15); }
#payPhantomMsg { margin-top: 8px; }
.pay-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; font-size: 11.5px; color: var(--dim); }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.pay-qr-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); }
.pay-qr { width: 112px; height: 112px; flex-shrink: 0; padding: 6px; border-radius: 10px; background: #fff; }
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pay-qr-text { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pay-qr-text b { font-size: 13px; color: var(--text); }
.pay-qr-text a { color: var(--accent); margin-top: 2px; }
@media (max-width: 560px) { .pay-qr-row { flex-direction: column; align-items: flex-start; } }

/* Advertise tab in the feed tabs: accent colour so it stands out */
.feed-tabs .feed-tab.feed-tab-promo { color: var(--accent); }
.feed-tabs .feed-tab.feed-tab-promo:hover { color: var(--accent-hi, var(--accent)); }
