:root {
  --bg: #05070b;
  --bg-elev: #0a0e15;
  --bg-card: #101820;
  --border: rgba(140, 170, 200, 0.12);
  --border-strong: rgba(120, 220, 180, 0.4);
  --text: #e8eef4;
  --muted: #7d8b9a;
  --accent: #3dffb5;
  --accent-2: #5eb8ff;
  --accent-soft: rgba(61, 255, 181, 0.1);
  --danger: #ff6b6b;
  --warn: #ffc857;
  --up: #3dffb5;
  --down: #ff6b7a;
  --font: "Geist", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.view { min-height: 100vh; position: relative; z-index: 1; }
.view:not(.active) { display: none; }

/* ========== FX LAYER ========== */
.fx-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 184, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 184, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 10%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}
.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.fx-glow-a {
  width: 50vw; height: 50vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(61, 255, 181, 0.22), transparent 65%);
  animation: glowFloat 14s ease-in-out infinite alternate;
}
.fx-glow-b {
  width: 45vw; height: 45vw;
  bottom: -20%; right: -15%;
  background: radial-gradient(circle, rgba(94, 184, 255, 0.18), transparent 65%);
  animation: glowFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}
.fx-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
  animation: scanPulse 8s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

/* ========== TICKER ========== */
.ticker-tape {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.65);
  backdrop-filter: blur(10px);
  height: 36px;
}
.ticker-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  animation: tickerMove 55s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  opacity: 0.9;
}
.ticker-item b { color: var(--text); font-weight: 700; }
.ticker-item em { font-style: normal; color: var(--muted); }
.ticker-item i { font-style: normal; font-size: 0.68rem; }
.ticker-item.up i { color: var(--up); }
.ticker-item.down i { color: var(--down); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(61, 255, 181, 0.45);
  animation: markPulse 2.4s ease-in-out infinite;
}
.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 18px rgba(61, 255, 181, 0.25);
}
.logo-word {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(61, 255, 181, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 22px rgba(61, 255, 181, 0.7); transform: scale(1.08); }
}
.logo-accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #3dffb5, #2bc4ff);
  color: #04140e;
  border: none;
  box-shadow: 0 8px 28px rgba(61, 255, 181, 0.2);
}
.btn-glow {
  position: relative;
  animation: btnGlow 2.8s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(61, 255, 181, 0.22); }
  50% { box-shadow: 0 10px 40px rgba(61, 255, 181, 0.45), 0 0 0 1px rgba(61, 255, 181, 0.2); }
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.btn-lg { padding: 0.8rem 1.35rem; font-size: 0.95rem; }
.icon-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-strong); }

/* Nav landing */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 12, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-links { display: flex; gap: 0.35rem; }
.nav-links a {
  display: flex; flex-direction: column;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(255,255,255,0.04); }
.nav-links .nt {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
}
.nav-right { display: flex; align-items: center; gap: 0.65rem; }
.kbd-hint {
  appearance: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  cursor: pointer;
}
.kbd-hint kbd, .search-wrap kbd {
  font-family: inherit;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

/* Hero + interactive bubble board */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border);
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.heroboard {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 70% 45%, rgba(61, 255, 181, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(94, 184, 255, 0.05), transparent 55%),
    #05070b;
}
.bubble-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
}
.heroboard-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.65);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.15) 0%, rgba(5, 7, 11, 0.2) 40%, rgba(5, 7, 11, 0.88) 78%, #05070b 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.75) 0%, rgba(5, 7, 11, 0.25) 48%, rgba(5, 7, 11, 0.15) 100%);
}
.bubble-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 180px;
  max-width: 240px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 255, 181, 0.3);
  background: rgba(8, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-size: 0.8rem;
}
.bubble-tooltip .bt-sym {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.bubble-tooltip .bt-name {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.55rem;
}
.bubble-tooltip .bt-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0;
  color: var(--muted);
}
.bubble-tooltip .bt-row b { color: var(--text); font-weight: 600; }
.bubble-tooltip .bt-hint {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--accent);
  font-family: var(--mono);
}

.hero-layout {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3.25rem;
  pointer-events: none;
}
.hero-layout .hero-content,
.hero-layout .btn,
.hero-layout a,
.hero-layout button {
  pointer-events: auto;
}
.hero-layout-overlay {
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 181, 0.25);
  background: rgba(8, 14, 12, 0.75);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.7s ease both;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 181, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 255, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 181, 0); }
}
.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 6.2vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-title .line {
  display: block;
  animation: fadeUp 0.8s ease both;
}
.hero-title .line:nth-child(2) { animation-delay: 0.1s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.grad {
  background: linear-gradient(115deg, #6fffd0 0%, #3dffb5 35%, #5eb8ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}
.hero-sub {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  animation: fadeUp 0.85s ease 0.12s both;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.9s ease 0.18s both;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 720px;
  animation: fadeUp 1s ease 0.24s both;
}
.hstat {
  padding: 0.95rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(16, 24, 32, 0.85), rgba(8, 12, 18, 0.7));
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 0.25rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hstat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hstat strong {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.hstat span { font-size: 0.72rem; color: var(--muted); }

/* Board bubble view */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  gap: 2px;
}
.seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg-btn.active {
  background: var(--accent);
  color: #04140e;
}
.board-bubble-wrap {
  position: relative;
  height: min(70vh, 640px);
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(61, 255, 181, 0.05), transparent 65%),
    var(--bg-elev);
}
.board-bubble-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.board-bubble-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.55);
  border: 1px solid var(--border);
  pointer-events: none;
}
.board-tip { z-index: 5; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem; }
.eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feat {
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(17, 24, 32, 0.9), rgba(10, 14, 20, 0.8));
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(61, 255, 181, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}
.feat:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}
.feat:hover::after { opacity: 1; }
.feat-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.feat h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.feat p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.band {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.band blockquote {
  margin: 0;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.band-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: radial-gradient(ellipse at top, rgba(61,255,181,0.12), transparent 60%), var(--bg-card);
  display: flex; flex-direction: column; gap: 0.5rem;
  justify-content: center;
}
.band-card strong {
  font-family: var(--mono);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.band-card span { color: var(--muted); margin-bottom: 0.75rem; }
.band-card .btn { align-self: flex-start; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer .logo { margin-bottom: 0.5rem; }
.footer-cols { display: flex; gap: 2.5rem; }
.footer-cols .fh {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--muted);
}
.footer-cols a {
  display: block;
  color: var(--text);
  margin: 0.3rem 0;
  font-weight: 500;
}

/* App shell */
.app-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.7rem 1.25rem;
  background: rgba(7, 9, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-tabs { display: flex; gap: 0.25rem; flex: 1; }
.app-tabs .tab {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.app-tabs .tab:hover { color: var(--text); background: rgba(255,255,255,0.04); text-decoration: none; }
.app-tabs .tab.active {
  color: var(--bg);
  background: var(--accent);
}
.app-bar-right { display: flex; align-items: center; gap: 0.65rem; }
.search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.search-wrap input {
  width: 220px;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.search-wrap input:focus { outline: none; border-color: var(--border-strong); }
.search-wrap kbd {
  position: absolute; right: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  pointer-events: none;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(61,255,181,0.25);
  background: var(--accent-soft);
}

.page { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.page-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.page-head p { margin: 0.25rem 0 0; font-size: 0.88rem; }
.toolbar { display: flex; gap: 0.5rem; }
.toolbar select {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.82rem;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--bg-elev);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  position: sticky; top: 0;
}
.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(140,170,200,0.06);
  white-space: nowrap;
}
.data-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.data-table tbody tr:hover { background: rgba(61, 255, 181, 0.04); }
.data-table .empty-row { cursor: default; color: var(--muted); text-align: center; }
.token-cell {
  display: flex; align-items: center; gap: 0.65rem;
}
.token-av {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #04140e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.token-cell strong { display: block; font-size: 0.9rem; }
.token-cell span { font-size: 0.75rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.84rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-ok { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: rgba(255,200,87,0.12); color: var(--warn); }
.badge-bad { background: rgba(255,107,107,0.12); color: var(--danger); }
.spark {
  display: inline-block;
  width: 64px; height: 22px;
  vertical-align: middle;
}

/* Radar */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}
.radar-card {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.radar-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.radar-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.85rem;
}
.radar-card h3 { margin: 0; font-size: 1rem; }
.radar-card .sym { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.gap-val {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
}
.bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin: 0.65rem 0 0.45rem;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.radar-meta {
  display: flex; justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Portfolio / verify */
.portfolio-panel, .verify-panel {
  max-width: 960px;
}
.field { display: block; margin-bottom: 1.25rem; }
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field-row { display: flex; gap: 0.5rem; }
.field-row input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
}
.field-row input:focus { outline: none; border-color: var(--border-strong); }
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.psum {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.psum span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.psum strong { font-family: var(--mono); font-size: 1.2rem; }

.verify-result {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  margin-bottom: 1rem;
}
.verify-result.ok { border-color: rgba(61,255,181,0.4); background: rgba(61,255,181,0.06); }
.verify-result.bad { border-color: rgba(255,107,107,0.4); background: rgba(255,107,107,0.06); }
.verify-result h3 { margin: 0 0 0.35rem; }
.verify-result p { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.verify-result code {
  font-family: var(--mono);
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text);
}
.verify-hint {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.verify-hint p { margin: 0; }

/* Palette */
.palette {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.55);
  display: flex; justify-content: center;
  padding-top: 12vh;
}
.palette-panel {
  width: min(560px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.palette-panel input {
  width: 100%;
  padding: 1rem 1.15rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--mono);
}
.palette-panel input:focus { outline: none; }
#palette-results {
  list-style: none; margin: 0; padding: 0.4rem;
  max-height: 320px; overflow: auto;
}
#palette-results li {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex; justify-content: space-between;
  gap: 1rem;
}
#palette-results li:hover, #palette-results li.active {
  background: var(--accent-soft);
}
#palette-results .meta { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }

/* Drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.45);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(400px, 100vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  padding: 1.25rem;
  overflow: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.drawer-head h3 { margin: 0; font-size: 1.35rem; }
.drawer-kv {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.drawer-kv div {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.drawer-kv span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.drawer-kv strong { font-family: var(--mono); font-size: 0.95rem; }
.venue-list { display: flex; flex-direction: column; gap: 0.5rem; }
.venue-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.venue-row.best { border-color: var(--border-strong); background: var(--accent-soft); }
.addr-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 1rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.radar-card {
  position: relative;
  overflow: hidden;
}
.radar-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(61, 255, 181, 0.12), transparent 70%);
  animation: radarSweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes radarSweep {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(40px, 30px); opacity: 1; }
}

.data-table tbody tr {
  animation: rowIn 0.35s ease both;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .search-wrap input { width: 140px; }
  .app-tabs .tab { padding: 0.4rem 0.55rem; font-size: 0.8rem; }
  .portfolio-summary { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-layout { padding-top: 2rem; }
  .toolbar { flex-wrap: wrap; }
  .board-bubble-wrap { height: 55vh; min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}
