/* ─────────────────────────────────────────────────────────────────────────
   Base SZN — strict hierarchy
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:       #080c14;
  --blue:     #0052FF;
  --cyan:     #00d4aa;
  --red:      #ff3b5c;
  --amber:    #ffb800;
  --text:     #e8ecf4;
  --text-2:   #c8cdd8;
  --muted:    #5a6480;
  --surface:  rgba(255,255,255,0.03);
  --border:   rgba(255,255,255,0.06);
  --hover:    rgba(255,255,255,0.025);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow: hidden;
}

button {
  font-family: inherit; color: inherit; background: none; border: 0;
  cursor: pointer; padding: 0;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ─── ZONE 1 · Ticker ────────────────────────────────────────────────── */
.ticker {
  height: 28px;
  background: #0a0e18;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  overflow: hidden;
  position: relative;
}
.ticker-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 0 16px;
  border-right: 1px solid var(--border);
  height: 100%;
  flex-shrink: 0;
}
.ticker-brand .brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,212,170,0.55);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(1);   opacity: 1;   box-shadow: 0 0 0 0 rgba(0,212,170,0.55); }
  50%  { transform: scale(1.3); opacity: 0.6; box-shadow: 0 0 0 5px rgba(0,212,170,0); }
  100% { transform: scale(1);   opacity: 1;   box-shadow: 0 0 0 0 rgba(0,212,170,0); }
}
.ticker-window {
  flex: 1; overflow: hidden; position: relative;
  height: 100%; display: flex; align-items: center;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-content {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  padding: 0 24px;
}
.ticker-content em {
  font-style: normal;
  color: rgba(255,255,255,0.18);
  margin: 0 10px;
}
.ticker-content b {
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── GRID ───────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-rows: 340px 1fr;
  height: calc(100vh - 28px - 22px); /* minus ticker + footer */
  transition: opacity 300ms ease;
}
.grid.refreshing { opacity: 0.4; }

.hero, .data {
  display: grid;
  padding: 16px;
  gap: 12px;
  min-height: 0;
}
.hero {
  grid-template-columns: 40fr 35fr 25fr;
  height: 340px;
}
.data {
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 0;
}

/* ─── CARD ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
  padding: 16px;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-sub {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── FEAR & GREED ───────────────────────────────────────────────────── */
.fg-card { padding: 16px; }
.fg-gauge-zone {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 0 4px;
}
.gauge {
  width: 100%; height: 100%;
  max-width: 320px;
  max-height: 180px;
  display: block;
}
.gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 20;
  stroke-linecap: round;
}
.gauge-arc {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 502.655; /* π × 160 */
  stroke-dashoffset: 502.655;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22,.61,.36,1);
}
.gauge-needle {
  transform-origin: 180px 180px;
  transform: rotate(-90deg);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.gauge-needle line {
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
}
.gauge-needle circle {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 2;
}
.gauge-text {
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  text-align: center;
  pointer-events: none;
}
.gauge-text { pointer-events: none; }
.gauge-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 56px;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
  transition: color 120ms ease;
}
.gauge-num:hover { color: var(--cyan); }
.gauge-lbl {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 4px;
  cursor: pointer;
  pointer-events: auto;
  border-bottom: 1px dotted transparent;
  display: inline-block;
}
.gauge-lbl:hover { border-bottom-color: currentColor; }

/* ── F&G info overlay ───────────────────────────────────────────────── */
.fg-card { position: relative; }
.fg-info {
  display: none;
  position: absolute;
  left: 16px; right: 16px;
  top: 44px;
  max-height: calc(100% - 56px);
  max-width: 340px;
  margin: 0 auto;
  background: #0d1321;
  border: 1px solid rgba(0,82,255,0.3);
  border-radius: 8px;
  padding: 16px;
  z-index: 20;
  overflow-y: auto;
  scrollbar-width: none;
}
.fg-info::-webkit-scrollbar { width: 0; }
.fg-info.show { display: block; }
.fg-info-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fg-info-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
}
.fg-info-close {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.fg-info-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.fg-info-row {
  display: grid;
  grid-template-columns: 1fr 28px 30px;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fg-info-row:last-child { border-bottom: 0; }
.fg-info-row .nm {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.fg-info-row .wt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  text-align: right;
}
.fg-info-row .sc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--cyan);
  text-align: right;
}
.fg-info-row .desc {
  grid-column: 1 / -1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500; font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.fg-comps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 6px;
  flex-shrink: 0;
}
.fg-comps li {
  display: grid;
  grid-template-columns: 1fr 36px 22px;
  align-items: center;
  gap: 8px;
}
.fg-comps .nm {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fg-comps .bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.fg-comps .bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan));
  transition: width 0.8s ease;
}
.fg-comps .sc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─── VOLUME ─────────────────────────────────────────────────────────── */
.vol-card { padding: 16px; }
.vol-chart-wrap {
  flex: 1; min-height: 0;
  position: relative;
}
#volChart {
  width: 100%; height: 100%;
  display: block;
  cursor: crosshair;
}
.vol-tooltip {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 8px;
  pointer-events: none;
  opacity: 0; transition: opacity 100ms ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text);
  white-space: nowrap;
  z-index: 10;
  transform: translate(-50%, -100%);
  border-radius: 2px;
}
.vol-tooltip.show { opacity: 1; }
.vol-tooltip .vt-date {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.dex-pills {
  display: flex; gap: 6px;
  margin-top: 10px;
  justify-content: center;
  flex-shrink: 0;
}
.dex-pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.dex-pill b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0;
}

/* ─── STATS ──────────────────────────────────────────────────────────── */
.stats-card { padding: 6px 16px; }
.stats-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  height: 100%; justify-content: space-between;
}
.stats-list li {
  padding: 8px 0;
  display: flex; flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-list li:last-child { border-bottom: 0; }
.stats-list b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stats-list span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── COL CARD (zone 3) ──────────────────────────────────────────────── */
.col-card { padding: 16px; }
.scrollable {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollable::-webkit-scrollbar { width: 0; height: 0; }

.sub-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 14px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ─── FEED ───────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; }
.tab {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.tab:hover { color: var(--text-2); }
.tab.active {
  color: var(--text); font-weight: 600;
  border-bottom-color: var(--blue);
}
.sent-strip {
  margin-bottom: 12px;
  flex-shrink: 0;
}
.sent-bar, .xs-bar {
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}
.xs-bar { height: 8px; }
.sb { display: block; height: 100%; transition: width 0.8s ease; }
.sb.pos { background: var(--cyan); }
.sb.neu { background: #3a4258; }
.sb.neg { background: var(--red); }
.sent-line {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0;
}

/* ── Trending pills (above feed) ──────────────────────────────────── */
.trending {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.trend-pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  height: 22px;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(0,82,255,0.1);
  border: 1px solid rgba(0,82,255,0.2);
  color: #4d8aff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
}
.trend-pill:hover {
  background: rgba(0,82,255,0.2);
  color: var(--text);
}
.trend-pill .cnt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  opacity: 0.7;
}
.trend-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.trend-pill.active .cnt { color: rgba(255,255,255,0.85); opacity: 1; }
.trend-pill .clear {
  margin-left: 2px;
  font-weight: 700;
  opacity: 0.85;
}

/* ── Ticker mentions inside feed ──────────────────────────────────── */
.ticker-mention {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0 1px;
  border-radius: 2px;
  transition: background 100ms ease;
}
.ticker-mention:hover { background: rgba(0,82,255,0.18); }

.feed {
  list-style: none; margin: 0 -16px; padding: 0;
  flex: 1; min-height: 0;
}
.feed li {
  padding: 8px 16px;
  transition: background 100ms ease;
}
.feed li:nth-child(odd) { background: rgba(255,255,255,0.015); }
.feed li:hover { background: var(--hover); }
.feed-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
}
.src-pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 2px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}
.src-pill.tg { background: var(--blue); }
.src-pill.x  { background: #3a4258; }
.src-pill.fc { background: #6b5cff; }
.feed .text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed .meta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.feed .meta .t {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  margin-left: 4px;
}
.empty {
  padding: 24px 12px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── MOVERS ─────────────────────────────────────────────────────────── */
.movers {
  list-style: none; margin: 0 -16px; padding: 0;
  flex: 1; min-height: 0;
}
.movers li {
  height: 48px;
  padding: 4px 16px;
  display: grid;
  grid-template-columns: 16px 1fr auto 48px 28px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  transition: background 100ms ease;
}
.movers li:hover { background: var(--hover); }
.movers .idx {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.movers .sym-wrap {
  grid-row: 1;
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0;
  cursor: pointer;
}
.movers .sym-wrap:hover .sym {
  color: var(--blue);
  text-decoration: underline;
}
.movers .lp-badge,
.movers .score-bar,
.movers .score-num { grid-row: 1 / span 2; align-self: center; }
.movers .tags {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
  min-height: 16px;
}

/* signal pills */
.sig-pill {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  height: 16px;
  border-radius: 2px;
  display: inline-flex; align-items: center;
  line-height: 1;
}
.sig-cluster { background: rgba(0,212,170,0.18); color: var(--cyan); }
.sig-buy     { background: rgba(0,212,170,0.08); color: rgba(0,212,170,0.75); }
.sig-clanker { background: rgba(0,82,255,0.18);  color: #4d8aff; }
.sig-bankr   { background: rgba(83,74,183,0.20); color: #9b92ff; }
.sig-new     { background: rgba(255,184,0,0.18); color: var(--amber); }
.sig-top     { background: rgba(0,82,255,0.22);  color: #6da0ff; }
.sig-vol     { background: rgba(255,255,255,0.05); color: var(--muted); }
.movers .sym {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.movers .nm {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
}
.lp-clanker { background: rgba(0,82,255,0.15); color: #4d8aff; }
.lp-bankr   { background: rgba(83,74,183,0.18); color: #9b92ff; }
.lp-liquid  { background: rgba(0,200,150,0.15); color: var(--cyan); }
.lp-flaunch { background: rgba(255,184,0,0.15); color: var(--amber); }
.lp-doppler { background: rgba(99,102,241,0.15); color: #818cf8; }
.lp-other   { background: rgba(255,255,255,0.05); color: var(--muted); }

.score-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.score-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.8s ease;
}
.score-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─── NARRATIVES ─────────────────────────────────────────────────────── */
.narratives {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.narratives::-webkit-scrollbar { height: 0; }
.narratives li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}
.narratives li.hot     { background: rgba(0,212,170,0.1); color: var(--cyan); }
.narratives li.cooling { background: rgba(255,59,92,0.1); color: var(--red); }
.narratives li.neutral { background: rgba(255,255,255,0.04); color: var(--muted); }
.narratives .n-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0.85;
}

/* ─── SMART MONEY ────────────────────────────────────────────────────── */
.sm {
  list-style: none; margin: 0 -16px; padding: 0;
  min-height: 0;
  max-height: 50%;
  overflow-y: auto; scrollbar-width: none;
}
.sm::-webkit-scrollbar { width: 0; }
.sm li {
  height: 44px;
  padding: 4px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: background 100ms ease;
}
.sm li:hover { background: var(--hover); }
.sm-row1 {
  display: grid;
  grid-template-columns: 40px 88px 1fr auto;
  gap: 10px;
  align-items: center;
}
.sm-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 50px;
}
.sm .act {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 5px;
  border-radius: 2px;
  text-align: center;
}
.sm .act.buy  { background: rgba(0,212,170,0.15); color: var(--cyan); }
.sm .act.sell { background: rgba(255,59,92,0.15);  color: var(--red); }
.sm .addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sm .tok {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 100ms ease;
}
.sm .tok[data-addr]:hover {
  color: var(--blue);
  text-decoration: underline;
}
.sm .when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sm .ca {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}
.sm-btn {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.05);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  padding: 0;
  text-decoration: none;
  line-height: 1;
  transition: background 100ms ease, color 100ms ease;
}
.sm-btn:hover { background: rgba(0,82,255,0.15); color: var(--blue); }
.sm-btn.ok { background: rgba(0,212,170,0.15); color: var(--cyan); }
.sm-btn.ds-btn { font-size: 11px; }

/* ─── X SENTIMENT ────────────────────────────────────────────────────── */
.xs-strip {
  margin-bottom: 10px;
  flex-shrink: 0;
}
.xs-kols {
  list-style: none; margin: 0 -16px; padding: 0;
  flex: 1; min-height: 0;
  overflow-y: auto; scrollbar-width: none;
}
.xs-kols::-webkit-scrollbar { width: 0; }
.xs-kols li {
  height: 32px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  transition: background 100ms ease;
}
.xs-kols li:hover { background: var(--hover); }
.xs-handle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xs-sent {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border-radius: 2px;
}
.xs-sent.bullish { background: rgba(0,212,170,0.18); color: var(--cyan); }
.xs-sent.bearish { background: rgba(255,59,92,0.18);  color: var(--red); }
.xs-sent.neutral { background: rgba(255,255,255,0.05); color: var(--muted); }
.xs-when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  height: 22px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body { overflow: auto; }
  .grid { height: auto; }
  .hero, .data { grid-template-columns: 1fr; }
  .hero { height: auto; }
  .col-card { min-height: 60vh; }
  .fg-comps { grid-template-columns: 1fr; }
  .sm { max-height: 360px; }
}
