@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #05070b;
  --bg-elev: #0c1016;
  --surface: #12161d;
  --surface-2: #181d26;
  --line: #222833;
  --text: #f3f5f7;
  --muted: #8b93a0;
  --faint: #5c6570;
  --accent: #1EA7FF;
  --accent-bright: #00D9FE;
  --up: #3dd68c;
  --down: #ff5c6a;
  --warn: #e7b04a;
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 66px;
  --dock-h: 52px;
  --header-h: 52px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
html { height: 100%; }
body { min-height: 100%; padding-bottom: calc(var(--tabbar-h) + var(--dock-h) + var(--safe-b) + 12px); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(30, 167, 255, 0.28); color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -40px; z-index: 80; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
  padding: 0 16px;
  background: rgba(5, 7, 11, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand picture { display: block; line-height: 0; flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #05070b;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.14em; }
.desk-nav { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.x-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; padding: 4px 6px; border-radius: 999px;
}
.x-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.x-link svg { display: block; }
.live-dot {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--up); border: 1px solid rgba(61, 214, 140, 0.35);
  border-radius: 999px; padding: 2px 7px;
}

/* ---------- hero (banner2) ---------- */
.hero {
  position: relative;
  height: 104px;
  overflow: hidden;
  background: #000;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 72px;
  background: linear-gradient(to bottom, rgba(5,7,11,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
.disclaimer-line {
  margin: 0 16px 6px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- carousel ---------- */
.carousel-wrap { padding: 4px 0 10px; }
.carousel-label {
  margin: 0 16px 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.carousel {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 0 16px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 10px 12px;
  color: inherit;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 78px;
}
.tile:hover { background: var(--surface-2); }
.tile .tk { font-weight: 700; font-size: 15px; }
.tile .px { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.tile .sub { font-size: 12px; color: var(--muted); }

/* ---------- pills ---------- */
.pills {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 4px;
  -webkit-overflow-scrolling: touch;
}
.pills::-webkit-scrollbar { display: none; }
.pills button, .pill-link {
  appearance: none; border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
.pills button[aria-pressed="true"], .pills button.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #041018;
}
.toolbar-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 8px; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
  appearance: none; background: transparent; border: 0;
  color: var(--faint); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px;
}
.view-toggle button[aria-pressed="true"] { color: var(--text); }

/* ---------- list rows ---------- */
.list { padding: 0 8px 8px; }
.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px minmax(92px, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 14px;
  color: inherit;
  min-height: 68px;
  content-visibility: auto;
  contain-intrinsic-size: 68px;
  contain: layout style;
}
.row:hover { background: rgba(255,255,255,0.03); }
.av, .av-fallback {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: #1a2028; flex-shrink: 0;
}
.av-fallback {
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.id { min-width: 0; }
.id-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ticker { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--faint); text-transform: uppercase;
  white-space: nowrap;
}
.flag-hot { color: var(--warn); }
.flag-avoid { color: var(--down); }
.flag-new { color: var(--accent-bright); }
.flag-nv { color: var(--warn); font-weight: 600; letter-spacing: 0.02em; }
.id-sub { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quote { text-align: right; }
.price { display: block; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; line-height: 1.2; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; margin-top: 3px; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.na, .na { color: var(--faint); font-weight: 500; }
.tri { font-size: 9px; line-height: 1; }

.score-ring {
  width: 32px; height: 32px; position: relative;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: var(--text);
}
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-ring.na-ring { color: var(--faint); }

/* cards (secondary) */
.grid { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0 16px 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 14px 16px;
  color: inherit;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px 12px;
  align-items: center;
}
.card .id { grid-column: 2; }
.card .quote { grid-column: 3; }
.card .score-ring { grid-column: 3; grid-row: 2; justify-self: end; }
.card .id-sub { grid-column: 2; }


/* ---------- token detail ---------- */
.back { display: inline-flex; margin: 8px 16px 0; color: var(--muted); font-size: 13px; }
.token-head { padding: 8px 16px 16px; display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.token-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.token-head .name { color: var(--muted); font-size: 14px; margin-top: 2px; }
.token-head .quote .price { font-size: 22px; }
.token-head .chg { font-size: 14px; }
.addr-line { padding: 0 16px 12px; font-size: 12px; color: var(--faint); word-break: break-all; }
.addr-line button { background: none; border: 0; color: var(--accent); cursor: pointer; margin-left: 8px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.links-row a, .links-row button {
  appearance: none;
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
  background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.stats .cell { background: var(--bg); padding: 14px 16px; }
.stats .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.stats .v { margin-top: 4px; font-size: 15px; font-weight: 600; }
.panel {
  margin: 0 16px 12px;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}
.panel h2 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.factor { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.factor:first-of-type { border-top: 0; }
.factor .ex { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.disclaimer { margin: 12px 0 0; font-size: 12px; color: var(--faint); line-height: 1.45; }

/* Fomo-inspired token detail */
.token-page { padding-bottom: 8px; }
[data-panel][hidden] { display: none !important; }
.token-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 16px 0; gap: 12px;
}
.token-nav .back { margin: 0; }
.watch-inline {
  appearance: none; border: 0; background: none;
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 6px 0; border-radius: 8px;
}
.watch-inline:hover { color: var(--text); }
.watch-inline.is-on { color: var(--accent-bright); }
.token-head { padding: 10px 16px 12px; align-items: center; }
.token-head h1 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.token-head .ident { min-width: 0; }
.token-head .name-row {
  display: flex; align-items: center; gap: 4px; margin-top: 2px; min-width: 0;
}
.token-head .name {
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.token-head .flags { margin-left: 4px; flex-shrink: 0; }
.token-head .quote { text-align: right; }
.token-head .quote .price { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; display: block; }
.copy-btn {
  appearance: none; border: 0; background: none; color: var(--muted);
  padding: 4px; cursor: pointer; display: inline-flex; align-items: center;
  border-radius: 6px; flex-shrink: 0; line-height: 0;
}
.copy-btn:hover, .copy-btn.copied { color: var(--accent-bright); }

.token-tabs {
  display: flex; gap: 22px;
  padding: 0 16px;
  margin: 4px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.token-tabs button {
  appearance: none; background: none; border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 12px 0 10px; margin-bottom: -1px; cursor: pointer;
}
.token-tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

.token-sec { padding: 14px 16px 6px; }
.token-sec h2 {
  margin: 0 0 6px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  text-transform: none; color: var(--text);
}
.token-sec .lede, .token-desc {
  margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55;
}
.token-desc.na { color: var(--faint); }

.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 0; font-size: 14px;
}
.kv-row .k { color: var(--muted); flex: 0 1 auto; white-space: nowrap; }
.kv-row .dots {
  flex: 1 1 auto; min-width: 10px;
  border-bottom: 1px dotted rgba(255,255,255,0.16);
  transform: translateY(-4px);
}
.kv-row .v {
  color: var(--text); font-weight: 600; flex: 0 0 auto;
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.kv-row .v.na, .kv-row .na { color: var(--faint); font-weight: 500; }
.kv-note { font-size: 12px; color: var(--faint); padding: 0 0 8px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.sec-head h2 { margin: 0; }
.tf-pills { display: flex; gap: 14px; justify-content: flex-end; margin: 0; }
.tf-pills button {
  appearance: none; background: none; border: 0;
  color: var(--faint); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer; padding: 4px 0;
}
.tf-pills button.is-on { color: var(--text); }

.tx-block { padding: 6px 0 14px; }
.tx-pair {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 650;
}
.tx-pair .na { color: var(--faint); font-weight: 500; }
.tx-bar {
  display: flex; gap: 4px; height: 6px; margin-top: 8px;
  border-radius: 99px; overflow: hidden;
}
.tx-bar .buy { background: var(--up); border-radius: 99px; height: 100%; min-width: 0; }
.tx-bar .sell { background: var(--down); border-radius: 99px; height: 100%; min-width: 0; }
.tx-bar.empty { background: rgba(255,255,255,0.06); }

.link-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.link-pills a {
  appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.10);
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.link-pills a:hover { background: var(--surface-2); }
.link-pills svg { flex-shrink: 0; }

.radar-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  margin: 0 16px 8px;
}
.radar-card .radar-metrics { min-width: 0; }
.radar-card .score-ring { width: 52px; height: 52px; }
.radar-card .score-ring svg { width: 52px; height: 52px; }
.radar-card .score-ring .num { font-size: 13px; }
.radar-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.radar-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.radar-title .lbl { font-size: 15px; font-weight: 700; }
.radar-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.watch-sticky { display: none; }
.watch-sticky.is-on { color: var(--accent-bright); border-color: rgba(0, 217, 254, 0.28); }
.watch-sticky:hover { background: #161b24; }

@media (min-width: 1024px) {
  .token-page { max-width: 960px; margin: 0 auto; padding: 8px 0 32px; }
  .token-nav, .token-head, .token-tabs, .token-sec, .radar-card { padding-left: 0; padding-right: 0; }
  .radar-card { margin-left: 0; margin-right: 0; }
  .token-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 64px;
    align-items: start;
  }
  .token-overview .token-sec { padding-left: 0; padding-right: 0; }
  .token-overview .token-sec:nth-child(1),
  .token-overview .token-sec:nth-child(2) { grid-column: 1; }
  .token-overview .token-sec:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; padding-top: 18px; }
  .watch-sticky { display: none; }
  .token-head h1 { font-size: 26px; }
  .token-head .quote .price { font-size: 24px; }
  #panel-radar .token-sec svg { width: min(420px, 100%); height: auto; }
}


.bottom-scrim { display: none; }
@media (max-width: 1023px) {
  .bottom-scrim {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + var(--dock-h) + var(--safe-b) + 28px);
    background: linear-gradient(to top, #05070b 0%, #05070b 74%, rgba(5,7,11,0));
    z-index: 39;
    pointer-events: none;
  }
}

/* ---------- chrome: search + tab bar ---------- */
.search-dock {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  z-index: 40;
  display: flex;
  background: #10141b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0 16px;
  height: 46px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 -18px 24px 8px rgba(5,7,11,0.92);
}
.search-dock input {
  flex: 1; border: 0; background: transparent; height: 46px;
  color: var(--text); min-width: 0;
}
.search-dock input::placeholder { color: var(--faint); }
.search-panel {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 62px);
  z-index: 41;
  background: rgba(18, 22, 29, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  max-height: 50vh; overflow: auto;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.search-hit { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: inherit; }
.search-hit:hover { background: rgba(255,255,255,0.04); }
.search-msg, .search-empty { padding: 12px; color: var(--muted); font-size: 13px; }

.tabbar {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(8px + var(--safe-b));
  z-index: 40;
  height: 58px;
  display: flex; justify-content: space-around; align-items: center;
  background: #10141b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  padding: 0 6px;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint); font-size: 10px; font-weight: 600;
}
.tabbar a.is-active { color: var(--accent-bright); }
.tabbar svg { display: block; }

.empty, .error-box, .loading {
  margin: 16px; padding: 28px 16px; text-align: center; color: var(--muted);
}
.error-box { text-align: left; background: var(--surface); border-radius: 16px; }
.error-box h2 { margin: 0 0 8px; color: var(--text); font-size: 16px; }
.btn {
  appearance: none; border: 0; background: var(--accent); color: #041018;
  border-radius: 999px; height: 40px; padding: 0 16px; font-weight: 700; cursor: pointer;
}
.input-row { display: flex; gap: 8px; padding: 0 16px 16px; }
.input-row input {
  flex: 1; height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}

.compare-grid { display: grid; gap: 12px; padding: 0 16px; }
.page-pad { padding: 12px 16px 0; }
.page-pad h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.page-pad .lede { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }


/* live updates, charts, skeletons, link rows */
.flash-up, .flash-down { border-radius: 6px; }
.flash-up { animation: flashUp 0.85s ease; }
.flash-down { animation: flashDown 0.85s ease; }
@keyframes flashUp {
  0% { background-color: rgba(61, 214, 140, 0.34); }
  100% { background-color: transparent; }
}
@keyframes flashDown {
  0% { background-color: rgba(255, 92, 106, 0.34); }
  100% { background-color: transparent; }
}

.live-toast {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(420px, calc(100% - 32px));
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.live-toast[hidden] { display: none !important; }
.live-toast button {
  appearance: none; border: 0; background: none;
  color: var(--accent-bright); font-weight: 650; cursor: pointer; margin-left: 8px;
}

.skel-row { pointer-events: none; }
.skel-av, .skel-lines i, .skel-quote i, .skel-block, .chart-skel, .skel-pill {
  background: linear-gradient(90deg, #12161d 0%, #1b212b 45%, #12161d 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}
.skel-av { width: 40px; height: 40px; border-radius: 50%; }
.skel-lines { display: flex; flex-direction: column; gap: 8px; }
.skel-lines i { display: block; height: 10px; width: 70%; }
.skel-lines i:last-child { width: 46%; height: 8px; }
.skel-quote { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.skel-quote i { display: block; height: 10px; width: 64px; }
.skel-block { min-width: 140px; height: 92px; border-radius: 16px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.link-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.link-scroll a { flex: 0 0 auto; }
@media (min-width: 1024px) {
  .link-scroll { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
}

.chart-box {
  height: 180px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.chart-box svg { width: 100%; height: 100%; display: block; }
.chart-box .na-chart {
  height: 100%; display: grid; place-items: center;
  color: var(--faint); font-size: 13px;
}
.chart-skel { position: absolute; inset: 0; border-radius: 16px; }

.av { background-color: #1a2028; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .top, .search-dock, .tabbar { backdrop-filter: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 24px; }
  .tabbar, .search-dock { display: none; }
  .top { height: 60px; padding: 0 28px; }
  .brand-mark { width: 36px; height: 36px; }
  .desk-nav { display: flex; gap: 4px; margin-left: 20px; }
  .desk-nav a {
    color: var(--muted); font-size: 13px; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
  }
  .desk-nav a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
  .hero { height: 240px; }
  .hero-fade { height: 100px; }
  .main { max-width: 1120px; margin: 0 auto; }
  #hero-slot .disclaimer-line {
    max-width: 1120px;
    margin: 8px auto 0;
    padding: 0;
  }
  #hero-slot { display: block; }
  .carousel, .pills, .toolbar-row, .disclaimer-line, .list { }
  .pills, .disclaimer-line, .carousel-label, .toolbar-row { padding-left: 0; padding-right: 0; }
  .carousel { padding-left: 0; padding-right: 0; }
  .list { padding-left: 0; padding-right: 0; }
  .page-pad, .back, .token-head, .addr-line, .links-row, .panel, .input-row { }
  /* desktop search in header */
  .top { gap: 16px; }
  .search-desktop { display: flex; }
}

/* show a desktop search field via a clone? JS will move or we add a header form visually
   We'll inject .top-search on desktop in CSS by making a second input...
   Simpler: on desktop, un-fix the search-dock and place it in the header visually with CSS. */
@media (min-width: 1024px) {
  .search-dock {
    display: flex;
    position: fixed;
    top: 10px;
    left: 58%;
    right: auto;
    transform: translateX(-50%);
    width: min(400px, 30vw);
    max-width: 420px;
    height: 40px;
    bottom: auto;
    margin: 0;
    z-index: 50;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border-color: rgba(255,255,255,0.08);
  }
  .search-dock input { height: 40px; }
  .search-panel {
    position: fixed;
    top: 56px;
    left: 58%;
    right: auto;
    transform: translateX(-50%);
    width: min(400px, 30vw);
    max-width: 420px;
    bottom: auto;
    z-index: 51;
    max-height: 60vh;
  }
  .x-handle { display: inline; }
}

@media (max-width: 720px) {
  .x-handle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

.table-wrap { margin: 0 16px; overflow: auto; border-radius: 16px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--faint); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
table.data td { vertical-align: middle; }
.right { text-align: right !important; }
.token-cell { display: flex; align-items: center; gap: 10px; color: inherit; }

/* ---------- v3 price chart ---------- */
.tchart { padding: 4px 16px 6px; }
.tchart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.tchart-bar.is-disabled .tchart-ivs, .tchart-bar.is-disabled .tchart-type { opacity: 0.35; pointer-events: none; }
.tchart-ivs {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
  overflow-x: auto; scrollbar-width: none;
}
.tchart-ivs::-webkit-scrollbar { display: none; }
.tchart-ivs button, .tchart-type button {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--faint); font: 700 12px/1 var(--font); letter-spacing: 0.01em;
  padding: 7px 10px; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
  font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.tchart-ivs button:hover, .tchart-type button:hover { color: var(--muted); }
.tchart-ivs button.is-on { color: var(--text); background: rgba(255,255,255,0.09); }
.tchart-type { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(255,255,255,0.05); }
.tchart-type button { padding: 5px 8px; display: grid; place-items: center; }
.tchart-type button[aria-pressed="true"] { color: var(--text); background: rgba(255,255,255,0.09); }

.tchart-box {
  position: relative; height: 300px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(30,167,255,0.05) 0%, rgba(0,0,0,0) 60%), var(--bg-elev);
  border: 1px solid rgba(255,255,255,0.05);
  contain: layout paint;
}
.tchart-canvas { position: absolute; inset: 46px 0 0 0; }
.tchart-legend {
  position: absolute; left: 12px; right: 12px; top: 8px; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; min-height: 36px;
}
.tchart-legend .lg-top { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.tchart-legend .lg-price { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.tchart-legend .lg-chg { font-size: 12px; font-weight: 700; color: var(--muted); }
.tchart-legend .lg-chg.up { color: var(--up); }
.tchart-legend .lg-chg.down { color: var(--down); }
.tchart-legend .lg-time { font-size: 11px; color: var(--faint); margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.tchart-legend .lg-ohlc { display: flex; gap: 10px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tchart-legend .lg-ohlc em { font-style: normal; color: var(--faint); margin-right: 3px; }
.num { font-variant-numeric: tabular-nums; }

.tchart-state { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--bg-elev); }
.tchart-state[hidden] { display: none; }
.tchart-skel { position: absolute; inset: 44px 72px 34px 14px; display: flex; align-items: flex-end; gap: 6%; }
.tchart-skel i {
  flex: 1; border-radius: 3px;
  background: linear-gradient(90deg, #12161d 0%, #1d2430 45%, #12161d 100%); background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.tchart-skel i:nth-child(1) { height: 34%; } .tchart-skel i:nth-child(2) { height: 46%; } .tchart-skel i:nth-child(3) { height: 40%; }
.tchart-skel i:nth-child(4) { height: 58%; } .tchart-skel i:nth-child(5) { height: 52%; } .tchart-skel i:nth-child(6) { height: 66%; }
.tchart-skel i:nth-child(7) { height: 60%; } .tchart-skel i:nth-child(8) { height: 72%; } .tchart-skel i:nth-child(9) { height: 64%; }
.tchart-skel i:nth-child(10) { height: 80%; } .tchart-skel i:nth-child(11) { height: 70%; } .tchart-skel i:nth-child(12) { height: 76%; }
.tchart-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 28px; max-width: 360px; }
.tchart-msg strong { font-size: 14px; color: var(--text); }
.tchart-msg span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tchart-retry {
  appearance: none; margin-top: 6px; border: 1px solid rgba(255,255,255,0.1); background: var(--surface);
  color: var(--accent-bright); font: 650 12px/1 var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.tchart-progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; overflow: hidden;
}
.tchart-progress::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: tchartProg 0.9s ease-in-out infinite;
}
.tchart-progress[hidden] { display: none; }
@keyframes tchartProg { 0% { left: -30%; } 100% { left: 100%; } }
.tchart-note { margin: 8px 2px 0; font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.tchart-note a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.18); }
.tchart-note .warn { color: #e0b252; }

@media (min-width: 1024px) {
  .tchart { padding: 6px 0 10px; }
  .tchart-box { height: 420px; }
  .tchart-legend .lg-price { font-size: 16px; }
  .tchart-legend .lg-ohlc { font-size: 11.5px; gap: 14px; }
  .tchart-legend .lg-time { margin-left: 12px; }
  .tchart-legend .lg-top { justify-content: flex-start; }
}

/* ===================== v4: accounts, profiles, theses ===================== */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.grow { flex: 1; }
.no-scroll { overflow: hidden; }
.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 13px; }
.linkish.plain { color: var(--muted); font-weight: 500; font-size: 14px; }
.linkish.plain b { color: var(--text); font-weight: 700; }
.linkish.danger, .danger { color: var(--down) !important; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; height: 48px; font-size: 15px; }
.btn-ghost {
  appearance: none; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; height: 38px; padding: 0 16px; font-weight: 650; cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-mini {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(30,167,255,.35);
  background: rgba(30,167,255,.1); color: var(--accent-bright); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn-mini.danger { border-color: rgba(255,92,106,.35); background: rgba(255,92,106,.08); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent-bright); border: 1px solid rgba(0,217,254,.3); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }

/* header account */
.acct-slot { display: inline-flex; }
.acct-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--text); color: #05070b; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.acct-btn { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,217,254,.35); }
@media (max-width: 420px) { .x-link .x-handle { display: none; } }

/* avatars */
.uav { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex-shrink: 0; background: #1a2028; color: #fff; font-weight: 750; }
.tav { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a2028; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); }

/* star */
.star-btn {
  appearance: none; border: 0; background: transparent; color: var(--faint); cursor: pointer;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; padding: 0;
}
.star-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.star-btn.is-on { color: #ffcc4d; }
.star-btn.inline { width: 24px; height: 24px; margin-left: auto; }
.star-btn.small svg { width: 16px; height: 16px; }
.row { grid-template-columns: 44px minmax(0, 1fr) 32px minmax(84px, auto) 30px; gap: 8px; padding-right: 2px; }
@media (max-width: 380px) { .row .score-ring { display: none; } .row { grid-template-columns: 44px minmax(0,1fr) minmax(80px,auto) 30px; } }

/* toast */
.s-toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px); bottom: calc(var(--tabbar-h) + var(--dock-h) + var(--safe-b) + 22px);
  background: #1b222c; color: var(--text); border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); text-align: center;
}
.s-toast.show { opacity: 1; transform: translate(-50%, 0); }
.s-toast.err { border-color: rgba(255,92,106,.4); }
@media (min-width: 1024px) { .s-toast { bottom: 28px; } }

/* auth */
.auth { display: flex; justify-content: center; padding: 20px 16px 32px; }
.auth-card { width: 100%; max-width: 420px; text-align: center; }
.auth-logo { border-radius: 50%; margin: 8px auto 12px; display: block; box-shadow: 0 0 40px rgba(30,167,255,.25); }
.auth h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card > .muted { margin: 0 0 18px; font-size: 14px; }
.oauth { display: grid; gap: 10px; margin-top: 4px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px;
  font-weight: 650; font-size: 15.5px; text-decoration: none;
}
.oauth-btn.apple { background: #fff; color: #000; }
.oauth-btn.google { background: #12161d; color: var(--text); border: 1px solid #2a313d; }
.oauth-btn:active { transform: scale(.99); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
.fine { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.form { display: grid; gap: 14px; text-align: left; }
.form label, .form .field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.form .lbl { font-size: 13px; font-weight: 650; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .users-head input, .tok-pick input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 16px; padding: 12px 14px; font-weight: 450; outline: none;
}
.form textarea { resize: vertical; min-height: 110px; line-height: 1.45; font-family: inherit; }
.form input:focus, .form textarea:focus, .tok-pick input:focus { border-color: rgba(30,167,255,.6); box-shadow: 0 0 0 3px rgba(30,167,255,.15); }
.handle-in { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding-left: 12px; }
.handle-in span { color: var(--faint); font-weight: 600; }
.handle-in input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 4px !important; }
.hint { font-weight: 500; color: var(--faint); font-size: 12px; }
.hint.ok { color: var(--up); } .hint.bad { color: var(--down); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; font-size: 12.5px !important; line-height: 1.45; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-err { color: var(--down); font-size: 13px; margin: 0; background: rgba(255,92,106,.08); border: 1px solid rgba(255,92,106,.25); border-radius: 10px; padding: 8px 12px; text-align: left; }

/* profile (Fomo-style) */
.profile { max-width: 760px; margin: 0 auto; padding-bottom: 20px; }
.pf-banner { position: relative; height: 160px; overflow: hidden; background: #0b1018; }
.pf-banner img, .pf-banner picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,11,.15), rgba(5,7,11,0) 40%, rgba(5,7,11,.55)); pointer-events: none; }
.pf-top-btns { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; }
.glass-btn {
  appearance: none; border: 1px solid rgba(255,255,255,.14); width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center; color: #fff; cursor: pointer; text-decoration: none;
  background: rgba(10,14,20,.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass-btn:hover { background: rgba(10,14,20,.65); }
.pf-head { padding: 0 16px; position: relative; }
.pf-av-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -44px; position: relative; z-index: 3; }
.pf-av .uav { border: 4px solid var(--bg); box-sizing: content-box; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.pf-cta { padding-bottom: 6px; }
.pf-cta .btn { height: 36px; min-width: 104px; }
.pf-cta .btn.is-following { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pf-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; line-height: 1.2; }
.pf-handle { color: var(--muted); font-size: 15px; margin-top: 2px; }
.pf-bio { margin: 10px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-line; word-wrap: break-word; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-follow { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pf-follow .dot { color: var(--faint); }
.pf-stats { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13.5px; }
.pf-stats li { display: inline-flex; align-items: center; gap: 6px; }
.pf-stats li b { color: var(--text); }
.pf-stats a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.bullc { color: var(--up); font-weight: 650; } .bearc { color: var(--down); font-weight: 650; margin-left: 6px; }
.pf-tabs { display: flex; gap: 4px; margin: 18px 0 0; padding: 0 12px; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); background: rgba(5,7,11,.96); z-index: 5; }
.pf-tabs button {
  appearance: none; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14.5px; padding: 13px 10px 12px; cursor: pointer; position: relative;
}
.pf-tabs button[aria-selected="true"] { color: var(--text); }
.pf-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--accent-bright); }
.pf-tabs .cnt { color: var(--faint); font-weight: 600; font-size: 12px; margin-left: 2px; }
.pf-new { padding: 14px 16px 0; display: flex; justify-content: flex-end; }
.pf-new .btn { height: 36px; display: inline-flex; align-items: center; }
#pf-panel { padding: 4px 0 0; }

/* activity */
.activity { list-style: none; margin: 0; padding: 4px 16px; }
.activity li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 14px; line-height: 1.4; }
.activity time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ai { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface); color: var(--muted); }
.ai.bull { color: var(--up); background: rgba(61,214,140,.1); } .ai.bear { color: var(--down); background: rgba(255,92,106,.1); }
.ai.like { color: #ff7a9a; background: rgba(255,122,154,.1); } .ai.fol { color: var(--accent-bright); background: rgba(0,217,254,.1); }

/* tracking */
.trk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.trk-head p { margin: 2px 0 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--muted); flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { width: 42px; height: 24px; border-radius: 999px; background: #2a313d; position: relative; transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.trk-list { padding: 0 8px; }
.trk-row { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "id q" "act act"; gap: 8px 10px; align-items: center; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.trk-id { grid-area: id; display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.trk-names { display: grid; min-width: 0; }
.trk-names b { font-size: 16px; }
.trk-names .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-q { grid-area: q; text-align: right; display: grid; justify-items: end; }
.trk-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
@media (min-width: 640px) {
  .trk-row { grid-template-columns: minmax(0,1fr) 120px auto; grid-template-areas: "id q act"; }
}

/* thesis cards */
.thesis { margin: 10px 12px; padding: 14px 14px 10px; background: var(--surface); border: 1px solid rgba(255,255,255,.05); border-radius: 18px; }
.th-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-author { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.th-names { display: grid; min-width: 0; line-height: 1.25; }
.th-names b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-names .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stance { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; letter-spacing: .01em; }
.stance.bull { color: var(--up); background: rgba(61,214,140,.12); }
.stance.bear { color: var(--down); background: rgba(255,92,106,.12); }
.th-token { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 4px 10px 4px 4px; background: var(--surface-2); border-radius: 999px; color: var(--text); font-size: 13px; max-width: 100%; }
.th-token .mono { font-size: 11px; }
.th-hz { color: var(--accent-bright); font-size: 11px; font-weight: 700; border-left: 1px solid var(--line); padding-left: 7px; }
.th-title { margin: 10px 0 4px; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.th-body { margin: 0; color: #d6dbe1; font-size: 14.5px; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.th-body.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.th-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin: 12px 0 0; padding: 10px; background: rgba(0,0,0,.25); border-radius: 12px; }
.th-metrics div { min-width: 0; }
.th-metrics dt { font-size: 10.5px; color: var(--faint); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.th-metrics dd { margin: 3px 0 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-metrics dd .chg { margin-top: 0; font-size: 13px; }
.favor { display: block; font-size: 10.5px; font-weight: 650; margin-top: 1px; }
.favor.yes { color: var(--up); } .favor.no { color: var(--down); }
.th-src { margin: 6px 2px 0; font-size: 11px; color: var(--faint); }
.th-actions { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.act { appearance: none; background: none; border: 0; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 8px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.act:hover { background: rgba(255,255,255,.05); color: var(--text); }
.act.like.is-on { color: #ff6b8b; }
.more-btn { display: block; margin: 12px auto; }

/* feed + compose */
.feed, .compose, .admin { max-width: 760px; margin: 0 auto; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 16px 6px; }
.feed-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.feed-head p { margin: 4px 0 0; }
.feed-head .btn { display: inline-flex; align-items: center; flex-shrink: 0; }
.compose { padding: 0 16px 24px; }
.compose-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 16px; }
.compose-head h1 { margin: 0; font-size: 22px; }
.compose-head .glass-btn { background: var(--surface); }
.seg, .chips { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend, .chips legend { font-size: 13px; font-weight: 650; color: var(--muted); padding: 0; margin-bottom: 6px; width: 100%; }
.seg-opt, .chip { position: relative; cursor: pointer; display: block !important; }
.seg-opt { flex: 1; }
.seg-opt input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 750; font-size: 15px; color: var(--muted); }
.seg-opt.bull input:checked + span { color: var(--up); border-color: rgba(61,214,140,.55); background: rgba(61,214,140,.1); }
.seg-opt.bear input:checked + span { color: var(--down); border-color: rgba(255,92,106,.55); background: rgba(255,92,106,.1); }
.chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--muted); }
.chip input:checked + span { color: var(--text); border-color: rgba(0,217,254,.55); background: rgba(0,217,254,.1); }
.seg-opt input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tok-sugg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.sugg { appearance: none; width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; text-align: left; color: var(--text); }
.sugg:hover { background: var(--surface-2); }
.tok-names { display: grid; min-width: 0; font-weight: 500; color: var(--text); }
.tok-names .muted, .tok-names .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-chosen { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid rgba(0,217,254,.35); border-radius: 12px; color: var(--text); font-weight: 500; }
.tok-chosen .linkish { grid-column: 1 / -1; justify-self: start; }
.tok-px { display: grid; justify-items: end; font-weight: 700; }
.pad { padding: 12px; }
.ref-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); background: rgba(30,167,255,.07); border: 1px solid rgba(30,167,255,.2); border-radius: 12px; padding: 10px 12px; }

/* token page theses */
.token-theses { padding: 6px 0 12px; }
.tt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.tt-head h2 { margin: 0; font-size: 17px; }

/* sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .15s ease; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: #0e1218; border: 1px solid rgba(255,255,255,.07); border-radius: 22px 22px 0 0; padding-bottom: calc(16px + var(--safe-b)); animation: up .2s ease; }
@media (min-width: 720px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: #0e1218; z-index: 2; border-bottom: 1px solid rgba(255,255,255,.05); }
.sheet-head .glass-btn { width: 32px; height: 32px; background: var(--surface); }
.sheet-body { padding: 12px 16px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; border-bottom: 1px solid rgba(255,255,255,.04); }
.user-row span { display: grid; } .user-row .muted { font-size: 13px; }
.edit-media { position: relative; margin-bottom: 44px; }
.edit-banner { position: relative; height: 120px; border-radius: 14px; overflow: hidden; background: #0b1018; }
.edit-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-av { position: absolute; left: 14px; bottom: -38px; }
.edit-av .uav { border: 4px solid #0e1218; box-sizing: content-box; }
.up-btn { position: absolute; width: auto !important; height: 30px !important; border-radius: 999px !important; padding: 0 12px; font-size: 12px; font-weight: 700; right: 10px; bottom: 10px; }
.edit-av .up-btn { right: -18px; bottom: -4px; padding: 0 9px; }
.acct-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.acct-more summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.acct-more .btn-ghost { margin-top: 10px; }
.acct-more .linkish { display: block; margin: 14px auto 4px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); } to { transform: none; } }

/* admin */
.admin { max-width: 1120px; padding-bottom: 24px; }
.admin h2 { font-size: 17px; margin: 22px 16px 8px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 8px 16px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.kpi { background: var(--surface); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.kpi b { font-size: 22px; letter-spacing: -.02em; }
.adm-grid { display: grid; gap: 8px; padding: 8px 16px; }
@media (min-width: 900px) { .adm-grid { grid-template-columns: 2fr 1fr; } }
.panel-card { background: var(--surface); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 14px; }
.bars { width: 100%; height: 90px; margin-top: 10px; display: block; }
.bars .b { fill: var(--accent); } .bars .z { fill: #232a35; }
.bars-x { display: flex; justify-content: space-between; margin-top: 4px; }
.methods { list-style: none; padding: 0; margin: 10px 0 0; }
.methods li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 14px; }
.reports { padding: 0 16px; display: grid; gap: 8px; }
.report { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(255,92,106,.2); }
.report p { margin: 4px 0 0; color: #d6dbe1; }
.row-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.users-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 16px 8px; }
.users-head h2 { margin: 0; }
.users-head input { max-width: 280px; padding: 9px 12px; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 16px; border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.users-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.users-table th { text-align: left; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 10px 12px; background: var(--surface); }
.users-table td { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
.status { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.status.active { color: var(--up); background: rgba(61,214,140,.1); } .status.suspended { color: var(--down); background: rgba(255,92,106,.1); }

/* add-to-home-screen hint */
.a2hs {
  position: fixed; left: 12px; right: 12px; z-index: 95; bottom: calc(var(--tabbar-h) + var(--dock-h) + var(--safe-b) + 18px);
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px;
  background: rgba(20,25,33,.97); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: up .25s ease;
}
.a2hs img { border-radius: 50%; flex-shrink: 0; }
.a2hs-t { display: grid; font-size: 12.5px; line-height: 1.35; color: var(--muted); flex: 1; min-width: 0; }
.a2hs-t b { color: var(--text); font-size: 13.5px; }
.a2hs-x { appearance: none; background: none; border: 0; color: var(--faint); width: 30px; height: 30px; cursor: pointer; font-size: 14px; flex-shrink: 0; }
@media (min-width: 1024px) { .a2hs { left: auto; right: 24px; bottom: 24px; max-width: 380px; } }

/* desktop tweaks */
@media (min-width: 1024px) {
  .pf-banner { height: 240px; border-radius: 0 0 20px 20px; }
  .pf-head { padding: 0 24px; }
  .pf-av-row { margin-top: -56px; }
  .pf-av .uav { width: 112px !important; height: 112px !important; font-size: 46px !important; }
  .pf-tabs { top: 60px; }
  .thesis { margin: 12px 0; }
  .feed-head, .compose, .pf-new { padding-left: 0; padding-right: 0; }
  .auth { padding-top: 48px; }
  .search-dock { left: 63%; width: min(360px, 25vw); }
  .desk-nav { margin-left: 12px; }
  .desk-nav a { padding: 6px 10px; }
}

/* ---------- v5: photo/banner editor ---------- */
.media-btns { display: grid; gap: 8px; margin: 0 0 12px; }
.media-row { display: flex; align-items: center; gap: 8px; }
.media-row > span { flex: 1; font-weight: 700; font-size: 14px; color: var(--text); }
.media-row label.btn-mini { cursor: pointer; }
.crop { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 14px; background: rgba(255,255,255,.02); }
.crop-frame { display: grid; place-items: center; background: #070a0f; border-radius: 12px; overflow: hidden; padding: 10px; }
.crop-frame canvas { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.crop[data-kind="avatar"] .crop-frame canvas { width: 200px; height: 200px; border-radius: 50%; }
.crop[data-kind="banner"] .crop-frame canvas { width: 100%; aspect-ratio: 3 / 1; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 2px 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.crop-zoom input { flex: 1; accent-color: var(--accent-bright); }
.crop-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.crop-actions .btn, .crop-actions .btn-ghost { width: auto; padding: 0 18px; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- v5: Founder badge (assigned by admins only) ---------- */
.founder-badge {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  color: #1a1204; padding: 4px 8px 4px 5px; border-radius: 999px;
  background: linear-gradient(135deg, #fff1b8 0%, #f5c84c 38%, #d99a1e 70%, #f7d774 100%);
  box-shadow: 0 0 0 1px rgba(255,214,102,.45), 0 2px 10px rgba(245,180,40,.28);
}
.founder-badge svg { color: #1a1204; flex-shrink: 0; }
.founder-badge svg path:first-child { fill: #1a1204; }
.founder-badge svg path:last-child { stroke: #f7d774; }
.founder-badge.sm { font-size: 10px; padding: 2px 6px 2px 3px; gap: 3px; margin-left: 5px; }
.th-nm { display: flex; align-items: center; min-width: 0; }
.th-nm b { min-width: 0; }
.pf-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.uav-ring.founder {
  display: inline-grid; place-items: center; border-radius: 50%; padding: 2px; flex-shrink: 0;
  background: conic-gradient(from 210deg, #fff1b8, #f5c84c, #c98a12, #f7d774, #fff1b8);
  box-shadow: 0 0 12px rgba(245,190,60,.35);
}
.uav-ring.founder > .uav { border: 2px solid var(--bg); box-sizing: content-box; }
.pf-av .uav-ring.founder { padding: 3px; box-shadow: 0 0 0 1px rgba(255,214,102,.35), 0 0 26px rgba(245,190,60,.45), 0 6px 20px rgba(0,0,0,.4); }
.pf-av .uav-ring.founder > .uav { border-width: 3px; box-shadow: none; }
.profile.is-founder .pf-head::before {
  content: ""; position: absolute; inset: -40px 0 auto 0; height: 240px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 70% at 18% 20%, rgba(245,196,76,.16), transparent 70%), radial-gradient(50% 60% at 85% 0%, rgba(255,230,150,.07), transparent 70%);
}
.profile.is-founder .pf-head > * { position: relative; z-index: 1; }
.profile.is-founder .pf-av-row { z-index: 3; }
.profile.is-founder .pf-banner { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, rgba(247,215,116,0), rgba(247,215,116,.9), rgba(247,215,116,0)) 1; }
.media-btns + .crop[hidden] + .fine, .crop + .fine { margin-bottom: 14px; }

/* ---------- v6: mobile chrome — search moves under the header, safe areas ---------- */
:root { --safe-t: env(safe-area-inset-top, 0px); }
.search-toggle { display: none; }
@media (max-width: 1023px) {
  .top { padding-top: var(--safe-t); height: calc(var(--header-h) + var(--safe-t)); }
  .pf-tabs { top: calc(var(--header-h) + var(--safe-t)); }
  :root { --dock-h: 0px; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); }
  .bottom-scrim { height: calc(var(--tabbar-h) + var(--safe-b) + 22px); }
  .search-toggle {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; padding: 0;
  }
  body.search-open .search-toggle { color: var(--accent-bright); border-color: rgba(0,217,254,.35); }
  .search-dock { display: none; }
  body.search-open .search-dock {
    display: flex; top: calc(var(--header-h) + var(--safe-t) + 8px); bottom: auto; left: 12px; right: 12px; z-index: 46;
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
    border-color: rgba(0,217,254,.25);
  }
  .search-panel { top: calc(var(--header-h) + var(--safe-t) + 62px); bottom: auto; left: 12px; right: 12px; max-height: min(60vh, 520px); z-index: 47; }
  .x-link .x-handle { display: none; }
}
@media (max-width: 360px) { .x-link { display: none; } }

/* ---------- v6: tracking skeleton ---------- */
.skel { display: block; background: linear-gradient(90deg, #12161d 0%, #1b212b 45%, #12161d 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; border-radius: 7px; }
.trk-row.is-loading { pointer-events: none; }
.trk-row.is-loading .trk-id { display: flex; align-items: center; gap: 12px; }
.trk-row.is-loading .trk-names { gap: 7px; }
.skel-t { width: 74px; height: 13px; }
.skel-s { width: 120px; height: 10px; }
.skel-p { width: 78px; height: 13px; margin-bottom: 7px; }
.skel-c { width: 52px; height: 11px; }

/* ---------- v6: thesis metrics without an entry price ---------- */
.th-metrics.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
/* v6: transaction window label */
.tx-window { margin: 0 0 10px; font-size: 13px; color: var(--muted, #9aa4b2); display: flex; align-items: center; gap: 8px; }
.tx-win-tag { font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: rgba(45,212,255,.14); color: #7fe3ff; border: 1px solid rgba(45,212,255,.35); }
/* v6: /search page */
.search-page { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; box-sizing: border-box; }
.sp-form { display: flex; gap: 8px; margin: 4px 0 14px; }
.sp-form input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; padding: 0 14px; font-size: 16px; }
.sp-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #9aa4b2); margin: 18px 0 6px; }
.sp-list .user-row { display: flex; align-items: center; gap: 12px; }
.sp-list .sp-px { margin-left: auto; }
.search-all .ticker { color: #7fe3ff; }
