:root {
  --bg: #0d1117;
  --panel: #111827;
  --panel-2: #1e293b;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #243244;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #38bdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0d1117 0%, #0b1220 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
a { color: #9bdcff; text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { padding: 28px; border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-size: 28px; font-weight: 700; color: white; display: inline-block; margin-bottom: 10px; }
.nav { display: grid; gap: 10px; margin: 30px 0; }
.nav a { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid transparent; }
.nav a.active, .nav a:hover { border-color: var(--border); background: rgba(56,189,248,0.08); text-decoration: none; }
.sidebar-card, .card { background: rgba(17,24,39,0.92); border: 1px solid var(--border); border-radius: 18px; }
.sidebar-card { padding: 18px; margin-bottom: 12px; }
.sidebar-card.compact { padding: 14px 18px; }
.sidebar-kpi { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.content { padding: 28px; }
.hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.hero h1 { margin: 0 0 8px; font-size: 34px; }
.hero p, .muted, small { color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { border: 1px solid var(--border); background: transparent; color: white; padding: 11px 14px; border-radius: 12px; cursor: pointer; }
.button.primary { background: linear-gradient(135deg, #2563eb, #0ea5e9); border-color: transparent; }
.button.ghost { background: rgba(255,255,255,0.03); }
.button.small { padding: 8px 10px; font-size: 13px; }
.card { padding: 18px; margin-bottom: 18px; overflow: hidden; }
.filter-card { padding-bottom: 8px; }
.filters-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; }
.filters-grid.wide { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.filters-grid.market-form { grid-template-columns: 2fr 1fr auto; }
.filters-grid label { display: grid; gap: 6px; font-size: 14px; }
.filters-grid input, .filters-grid select, textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #0b1220; color: white; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.checkbox-line { display: flex !important; align-items: center; gap: 8px; }
.collections-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-tile { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.collection-tile.active { border-color: rgba(56,189,248,.7); box-shadow: inset 0 0 0 1px rgba(56,189,248,.25); }
.collection-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 4px 8px; border-radius: 999px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { display: grid; gap: 8px; }
.stat-card strong { font-size: 24px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1100px; }
th, td { padding: 14px 12px; border-bottom: 1px solid rgba(148,163,184,0.12); text-align: left; background: rgba(17,24,39,0.95); }
th { position: sticky; top: 0; z-index: 5; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.leaderboard-table .sticky-col { position: sticky; z-index: 4; }
.sticky-watch { left: 0; width: 58px; min-width: 58px; }
.sticky-rank { left: 58px; width: 70px; min-width: 70px; }
.sticky-trader { left: 128px; min-width: 260px; }
.trader-col { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; background: #0b1220; }
.avatar-lg { width: 56px; height: 56px; }
.trader-link { font-weight: 600; }
.watch-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: #0b1220; color: #fbbf24; cursor: pointer; }
.watch-btn.active { background: rgba(251,191,36,0.14); }
.mono { font-family: 'JetBrains Mono', monospace; }
.metric-positive { color: var(--green); }
.metric-negative { color: var(--red); }
.metric-neutral { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 16px; }
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-links a { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.pagination-links a.active { background: rgba(56,189,248,0.1); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { display: grid; gap: 8px; }
.kpi strong { font-size: 28px; }
.chart { height: 360px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-heading { display: flex; gap: 16px; align-items: center; }
.wallet-line { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.profile-links { display: flex; gap: 14px; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.contact-form { display: grid; gap: 14px; }
.narrow-card { max-width: 720px; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.alert.success { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.alert.error { background: rgba(239,68,68,0.12); color: #fca5a5; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); margin-top: 20px; padding-bottom: 24px; }
.cookie-banner { position: fixed; right: 20px; bottom: 20px; max-width: 380px; display: flex; gap: 16px; align-items: center; padding: 16px; background: rgba(17,24,39,0.98); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.prose p { line-height: 1.7; }
.detail-list { display: grid; gap: 12px; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,0.12); }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.outcome-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: rgba(255,255,255,0.03); display: grid; gap: 8px; }
.json-box { white-space: pre-wrap; word-break: break-word; background: #0b1220; border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 12px; color: #cbd5e1; }
.small-text { font-size: 12px; }
@media (max-width: 1380px) {
  .filters-grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .filters-grid, .collections-grid, .kpi-grid, .two-col, .stats-grid { grid-template-columns: 1fr 1fr; }
  .filters-grid.market-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .filters-grid, .filters-grid.wide, .collections-grid, .kpi-grid, .two-col, .stats-grid, .filters-grid.market-form { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .hero { flex-direction: column; }
}
.ultra-wide { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.wider-market-form { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; }
.chart-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-toolbar .button.active { background: rgba(56,189,248,0.16); border-color: rgba(56,189,248,.4); }
.chart-svg { width: 100%; height: 100%; display: block; }
.chart-grid-line { stroke: rgba(148,163,184,0.14); stroke-width: 1; }
.chart-line { fill: none; stroke: #38bdf8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); }
.chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 220px; }
.chart-delta-positive { color: var(--green); }
.chart-delta-negative { color: var(--red); }
@media (max-width: 1380px) {
  .ultra-wide { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .wider-market-form { grid-template-columns: 1fr 1fr 1fr; }
}
