@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --surface2: #18181d;
  --surface3: #1f1f26;
  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);
  --text: #f0ede8;
  --text-muted: rgba(240,237,232,0.45);
  --text-dim: rgba(240,237,232,0.22);
  --accent: #c8f135;
  --accent2: #5b8cff;
  --accent3: #ff6b4a;
  --accent4: #ffc94a;
  --t1: #5b8cff;
  --t2: #c8f135;
  --t3: #ff6b4a;
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.header-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}
.header-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .6rem;
  font-family: var(--font-mono);
}
.header-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
}
.header-title em { color: var(--accent); font-style: normal; }
.header-sub {
  margin-top: .75rem;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}
.header-meta {
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.9;
}
.header-meta strong { color: var(--text-muted); font-weight: 500; }
.header-bg {
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,241,53,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── LAYOUT ─────────────────────────────────────── */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── TABS ────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 4px;
  border: 0.5px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: calc(var(--radius-lg) - 4px);
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.tab-btn:hover { color: var(--text); background: var(--surface2); }
.tab-btn.active {
  background: var(--surface3);
  color: var(--accent);
  border: 0.5px solid var(--border-hi);
}
.tab-icon { margin-right: 6px; opacity: .7; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── STAT CARDS ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: .5;
}
.stat-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }

/* ── CHARTS ──────────────────────────────────────── */
.chart-wrap { position: relative; width: 100%; height: 220px; }
.chart-wrap-sm { position: relative; width: 100%; height: 180px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); }
.legend-sq { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* ── PROGRESS BARS ───────────────────────────────── */
.progress-list { display: flex; flex-direction: column; gap: 10px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-label { font-size: 11px; color: var(--text-muted); width: 140px; flex-shrink: 0; }
.progress-track { flex: 1; height: 5px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; }
.progress-val { font-size: 11px; color: var(--text-muted); width: 30px; text-align: right; flex-shrink: 0; font-family: var(--font-mono); }

/* ── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: .03em;
  font-family: var(--font-mono);
}
.badge-t1 { background: rgba(91,140,255,0.15); color: #8ab4ff; border: 0.5px solid rgba(91,140,255,0.25); }
.badge-t2 { background: rgba(200,241,53,0.12); color: #c8f135; border: 0.5px solid rgba(200,241,53,0.2); }
.badge-t3 { background: rgba(255,107,74,0.12); color: #ff8a6e; border: 0.5px solid rgba(255,107,74,0.2); }
.badge-casino { background: rgba(91,140,255,0.12); color: #8ab4ff; border: 0.5px solid rgba(91,140,255,0.2); }
.badge-sports { background: rgba(255,196,74,0.12); color: #ffd980; border: 0.5px solid rgba(255,196,74,0.2); }
.badge-hybrid { background: rgba(160,120,255,0.12); color: #c4a0ff; border: 0.5px solid rgba(160,120,255,0.2); }
.badge-gray { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 0.5px solid var(--border); }
.badge-red { background: rgba(255,80,80,0.1); color: #ff8080; border: 0.5px solid rgba(255,80,80,0.2); }
.badge-amber { background: rgba(255,196,74,0.1); color: #ffd980; border: 0.5px solid rgba(255,196,74,0.2); }
.badge-blue { background: rgba(91,140,255,0.12); color: #8ab4ff; border: 0.5px solid rgba(91,140,255,0.2); }
.badge-green { background: rgba(200,241,53,0.12); color: #c8f135; border: 0.5px solid rgba(200,241,53,0.2); }

/* ── TIER CARDS ──────────────────────────────────── */
.tier-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.tier-card.t1 { border-top: 2px solid var(--t1); }
.tier-card.t2 { border-top: 2px solid var(--t2); }
.tier-card.t3 { border-top: 2px solid var(--t3); }
.tier-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tier-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tier-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.tier-markets { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.kv { display: flex; gap: 6px; padding: 5px 0; border-bottom: 0.5px solid var(--border); font-size: 12px; }
.kv:last-of-type { border-bottom: none; }
.kv .k { color: var(--text-dim); min-width: 100px; flex-shrink: 0; }
.kv .v { color: var(--text); font-weight: 500; }
.section-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin: 12px 0 6px; }
.tier-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

/* ── TABLE ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--border-hi);
  font-weight: 500;
  white-space: nowrap;
}
td { padding: 9px 10px; border-bottom: 0.5px solid var(--border); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── FILTERS ─────────────────────────────────────── */
.filter-row { display: flex; gap: 8px; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; }
.filter-row label { font-size: 11px; color: var(--text-muted); }
select {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-hi);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
select:focus { border-color: var(--accent); }

/* ── BONUS CARDS ─────────────────────────────────── */
.bonus-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.bonus-card:hover { border-color: var(--border-hi); }
.bonus-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.bonus-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.bonus-meta-item { background: var(--surface2); border-radius: var(--radius); padding: 8px; }
.bonus-meta-label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.bonus-meta-val { font-size: 12px; font-weight: 500; color: var(--text); }
.bonus-notes { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* ── OPERATOR LIST ───────────────────────────────── */
.op-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
}
.op-row:last-child { border-bottom: none; }
.bvs-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.bvs-hi { background: rgba(200,241,53,0.12); color: #c8f135; border: 1px solid rgba(200,241,53,0.25); }
.bvs-mid { background: rgba(255,196,74,0.12); color: #ffd980; border: 1px solid rgba(255,196,74,0.25); }
.bvs-lo { background: rgba(255,107,74,0.12); color: #ff8a6e; border: 1px solid rgba(255,107,74,0.25); }
.op-info { flex: 1; min-width: 0; }
.op-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.op-detail { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.7; }

/* ── BV TAB ──────────────────────────────────────── */
.formula-box {
  background: var(--surface2);
  border: 0.5px solid var(--border-hi);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}
.formula-box strong { color: var(--text); font-weight: 500; }
.formula-box .formula-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(200,241,53,0.06);
  padding: 6px 10px;
  border-radius: 5px;
  margin: 8px 0;
  letter-spacing: .02em;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-top: 0.5px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
