:root {
  --ink: #e8e8e8;
  --muted: #888;
  --paper: #0a0a0f;
  --panel: rgba(18, 18, 26, .85);
  --line: rgba(255, 255, 255, .08);
  --lime: #a3e635;
  --ember: #f97316;
  --red: #f87171;
  --green: #4ade80;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 36px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: end; margin-bottom: 12px; }
.eyebrow { margin: 0 0 5px; color: var(--lime); font: 600 11px/1.1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; }
h1 { font-family: "Inter", sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 96px); line-height: .85; letter-spacing: -.04em; color: var(--ink); }
h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .4; }

/* Hero card */
.hero-brand { display: flex; align-items: center; gap: 14px; }
.qs-logo { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.hero-card, .panel, .kpi { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero-card { padding: 16px 18px; transform: rotate(-1deg); border-radius: var(--radius); font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero-card strong { color: var(--ink); }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 8px rgba(163, 230, 53, .1); animation: beat 1.5s infinite; vertical-align: middle; margin-right: 6px; }

/* Guru bar */
.gurus { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.gurus button { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: 500 13px "Inter", sans-serif; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gurus button.active { background: var(--lime); color: #000; border-color: var(--lime); }
.guru-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--guru-color, var(--lime)); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { padding: 10px 14px; border-radius: var(--radius); }
.kpi b { display: block; font-family: "JetBrains Mono", monospace; font-size: 24px; line-height: 1; color: var(--ink); }
.kpi span { color: var(--muted); font-size: 12px; }

/* Workbench */
.workbench { display: grid; grid-template-columns: 340px 1fr; gap: 12px; align-items: stretch; }
.panel { border-radius: var(--radius); overflow: hidden; }
.panel-head, .chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel h2, .chart-head h2 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
input { width: 170px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 13px; background: rgba(255,255,255,.04); color: var(--ink); outline: none; font-family: "Inter", sans-serif; font-size: 13px; }
input::placeholder { color: var(--muted); }
input:focus { border-color: var(--lime); }

/* Tabs */
.tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 500 12px "Inter", sans-serif; color: var(--muted); }
.tabs button.active { background: var(--lime); color: #000; border-color: var(--lime); }

/* Symbols list */
.symbols-panel, .chart-panel { height: 560px; display: flex; flex-direction: column; }
.symbols { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.symbol-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 9px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 6px; text-align: left; cursor: pointer; color: var(--ink); }
.symbol-row.active { background: rgba(163, 230, 53, .08); border-radius: var(--radius); border-bottom-color: transparent; }
.ticker { font: 600 20px/1 "JetBrains Mono", monospace; }
.tiny { color: var(--muted); font-size: 12px; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 12px; color: var(--muted); }
.mini-guru { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 2px; vertical-align: middle; }

/* Chart */
.chart-wrap { flex: 1; min-height: 0; padding: 12px 16px 6px; }
.meta-strip { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.meta-strip span, .neighbors span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,.03); font-size: 12px; color: var(--muted); }
.neighbors { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }

/* Feed */
.feed-panel { margin-top: 18px; }
.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.feed-item { padding: 16px 18px; border-top: 1px solid var(--line); min-height: 112px; font-size: 14px; line-height: 1.5; }
.feed-item:nth-child(odd) { border-right: 1px solid var(--line); }
.feed-item p { margin: 8px 0 0; color: #bbb; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item .tiny { font-size: 11px; }
.feed-actions { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
a { color: var(--blue); text-decoration: none; font-size: 13px; }
a:hover { text-decoration: underline; }

/* Sentiment badges */
.sig-badge { font-family: "JetBrains Mono", monospace; font-weight: 600; }
.sig-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }

/* Warning bar */
.warn-bar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.warn-item { padding: 10px 16px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.warn-auth { background: rgba(248, 113, 113, .15); border: 1px solid rgba(248, 113, 113, .3); color: var(--red); }
.warn-stale { background: rgba(249, 115, 22, .15); border: 1px solid rgba(249, 115, 22, .3); color: var(--ember); }

/* Animations */
.reveal { animation: rise .6s ease both; }
.delay-1 { animation-delay: .06s; } .delay-2 { animation-delay: .12s; } .delay-3 { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes beat { 50% { transform: scale(1.3); } }

/* Scrollbar */
.symbols::-webkit-scrollbar { width: 4px; }
.symbols::-webkit-scrollbar-track { background: transparent; }
.symbols::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--muted); margin-top: 2px; }
.footer-mid { display: flex; align-items: center; gap: 12px; }
.discord-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; background: rgba(88, 101, 242, .15); color: #8b9cf7; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; }
.discord-btn:hover { background: rgba(88, 101, 242, .25); border-color: #8b9cf7; text-decoration: none; }
.discord-icon { font-size: 10px; color: #5865f2; }
.footer-links { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-sep { color: var(--line); }

/* Mobile */
@media (max-width: 980px) {
  .hero, .workbench, .kpis, .feed { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .symbols-panel, .chart-panel { height: auto; }
  .symbols { flex: none; height: 360px; }
  .feed-item:nth-child(odd) { border-right: 0; }
  .chart-wrap { flex: none; height: 420px; }
}
