@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-0: #050507;
  --bg-1: #0a0a0e;
  --panel: rgba(18, 12, 14, 0.62);
  --panel-solid: #100a0c;
  --border: rgba(255, 40, 70, 0.18);
  --border-hot: rgba(255, 40, 70, 0.45);
  --red: #ff1a3c;
  --red-deep: #b71c1c;
  --red-glow: rgba(255, 26, 60, 0.45);
  --green: #00e676;
  --gold: #ffc940;
  --text: #f5f5f7;
  --text-dim: #8a8a92;
  --text-mute: #555560;
  --topbar-h: 64px;
  --promo-h: 38px;
  --mobile-tabs-h: 56px;
  --gap: 14px;
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==================== BG FX ==================== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 40, 70, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 40, 70, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 26, 60, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 26, 60, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 26, 60, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== PROMO BAR ==================== */
.promo-bar {
  position: relative;
  z-index: 6;
  height: var(--promo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  background:
    linear-gradient(90deg, rgba(255, 26, 60, 0.18) 0%, rgba(255, 26, 60, 0.32) 50%, rgba(255, 26, 60, 0.18) 100%),
    #0c0608;
  border-bottom: 1px solid rgba(255, 26, 60, 0.35);
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
  transition: background 0.25s;
}
.promo-bar:hover { background: linear-gradient(90deg, rgba(255, 26, 60, 0.25) 0%, rgba(255, 26, 60, 0.45) 50%, rgba(255, 26, 60, 0.25) 100%), #0c0608; }

.promo-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255, 201, 64, 0.5);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.promo-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
}
.promo-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 201, 64, 0.5);
  line-height: 1;
}
.promo-text { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.promo-text strong { color: #fff; font-weight: 800; }
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 999px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--red-glow);
  margin-left: 4px;
  transition: transform 0.2s;
}
.promo-bar:hover .promo-cta { transform: translateX(2px); }
.promo-cta span { transition: transform 0.2s; }
.promo-bar:hover .promo-cta span { transform: translateX(3px); }

/* ==================== TOPBAR ==================== */
.topbar {
  position: relative;
  z-index: 5;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 calc(var(--gap) + 18px);
  background: linear-gradient(180deg, rgba(20, 6, 10, 0.92) 0%, rgba(10, 4, 6, 0.85) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
  opacity: 0.6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 12px var(--red-glow));
}
.brand-text { line-height: 1; }
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: #fff;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--red);
  font-weight: 700;
  margin-top: 2px;
}

.status-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--border-hot); }

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #444;
  transition: all 0.3s;
}
.pill.live .pill-dot {
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
.pill.live { border-color: var(--border-hot); color: #fff; }
.pill.live #liveLabel {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 1px;
}

.pill-key {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-mute);
  font-weight: 800;
  text-transform: uppercase;
}
.pill-val {
  color: #fff;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.pill-money { color: var(--green); }

.picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 2.5px;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--red-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.picker-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 28px var(--red-glow); }
.picker-pill span { display: inline-block; transition: transform 0.2s; }
.picker-pill:hover span { transform: translateX(3px); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ==================== DASHBOARD ==================== */
.dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr) 440px;
  gap: var(--gap);
  padding: var(--gap);
  height: calc(100vh - var(--topbar-h) - var(--promo-h));
  min-height: 0;
  max-width: 1900px;
  margin: 0 auto;
}

.center-col {
  display: grid;
  grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap);
  min-height: 0;
}

/* ==================== PANELS ==================== */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--border-hot) 50%, transparent 90%);
  opacity: 0.7;
}

.panel-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 12px var(--red-glow);
  flex-shrink: 0;
}
.panel-icon svg { width: 14px; height: 14px; }
.panel-icon.hof-icon {
  background: linear-gradient(135deg, var(--gold), #c89a1f);
  box-shadow: 0 0 12px rgba(255, 201, 64, 0.4);
}

.panel-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  color: #fff;
  font-weight: 400;
  flex-shrink: 0;
}

.panel-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--red);
  background: rgba(255, 26, 60, 0.1);
  border: 1px solid var(--border-hot);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}
.chat-tag { color: #53fc18; border-color: rgba(83, 252, 24, 0.4); background: rgba(83, 252, 24, 0.08); }

.ext-link {
  margin-left: auto;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.ext-link:hover { color: var(--red); }

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 26, 60, 0.3) transparent;
}
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255, 26, 60, 0.25); border-radius: 3px; }
.panel-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 26, 60, 0.5); }

.empty {
  text-align: center;
  color: var(--text-mute);
  padding: 40px 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==================== STREAM PANEL ==================== */
.live-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #444;
  transition: all 0.3s;
  flex-shrink: 0;
}
.live-pulse.active {
  background: var(--red);
  box-shadow: 0 0 14px var(--red-glow), 0 0 28px var(--red-glow);
  animation: pulse 1.4s ease-in-out infinite;
}

.stream-frame {
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stream-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.stream-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px;
  text-align: center;
}
.stream-offline-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 6px;
  color: var(--text-mute);
}
.stream-offline-sub {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #333;
  text-transform: uppercase;
}

/* ==================== BETS PANEL ==================== */
.bet-tabs {
  flex-basis: 100%;
  margin-top: 4px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.bet-tab {
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.bet-tab:hover { color: #fff; }
.bet-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 2px 12px var(--red-glow);
}
.bet-tab-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.bets-body { padding: 8px; display: flex; flex-direction: column; }
.bets-pane { display: none; flex: 1; min-height: 0; }
.bets-pane.active { display: block; }

.bet-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bet-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid #333;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.18s;
  animation: slideIn 0.35s ease-out;
}
.bet-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}
.bet-card.win { border-left-color: var(--green); }
.bet-card.win:hover { box-shadow: -3px 0 16px rgba(0, 230, 118, 0.15); }
.bet-card.loss { border-left-color: var(--red); }
.bet-card.loss:hover { box-shadow: -3px 0 16px rgba(255, 26, 60, 0.12); }
.bet-card.bigwin {
  background: linear-gradient(90deg, rgba(255, 201, 64, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left-color: var(--gold);
  border-color: rgba(255, 201, 64, 0.25);
}
.bet-card.bigwin:hover { box-shadow: -3px 0 20px rgba(255, 201, 64, 0.25); }
.bet-card.sport { border-left-color: #ff1a3c; }
.bet-card.sport:hover { box-shadow: -3px 0 16px rgba(255, 26, 60, 0.18); }
.bet-card.sport .bet-profit { color: var(--gold); }

.bet-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.bet-game {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bet-meta {
  font-size: 10px;
  color: var(--text-mute);
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}

.plat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
}
.plat-stake { color: #1a90ff; background: rgba(26, 144, 255, 0.12); border: 1px solid rgba(26, 144, 255, 0.25); }
.plat-shuffle { color: #a78bfa; background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.25); }

.bet-right { text-align: right; flex-shrink: 0; }
.bet-profit {
  font-weight: 800;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.3px;
}
.bet-cur { font-size: 9px; opacity: 0.6; font-weight: 600; }
.bet-profit.positive { color: var(--green); }
.bet-profit.negative { color: var(--red); }
.bet-card.bigwin .bet-profit { color: var(--gold); font-size: 15px; }
.bet-card.bigwin .bet-game { color: var(--gold); }
.bet-multiplier {
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.bet-usd-eq {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.bet-card.bigwin .bet-usd-eq { color: var(--gold); opacity: 0.75; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== MAYORES VICTORIAS ==================== */
.hof-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hof-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 201, 64, 0.10), transparent 50%),
    linear-gradient(90deg, rgba(255, 201, 64, 0.05) 0%, rgba(20, 8, 12, 0.4) 100%);
  border: 1px solid rgba(255, 201, 64, 0.22);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s;
  overflow: hidden;
}
.hof-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, rgba(255, 201, 64, 0.06), transparent);
  pointer-events: none;
}
.hof-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 201, 64, 0.55);
  border-left-color: var(--gold);
  box-shadow: -3px 0 20px rgba(255, 201, 64, 0.2), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hof-trophy { display: none; }

.hof-multi {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 201, 64, 0.45);
  min-width: 90px;
  z-index: 1;
}

.hof-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  z-index: 1;
}

.hof-game {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.hof-meta {
  font-size: 10px;
  color: var(--text-mute);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 500;
}

.hof-profit {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 22px;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: -0.5px;
  text-shadow: 0 0 14px rgba(0, 230, 118, 0.3);
  text-align: right;
  z-index: 1;
}
.hof-cur { font-size: 10px; opacity: 0.65; font-weight: 600; margin-left: 3px; }

/* ==================== CHAT ==================== */
.chat-pane {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.chat-pane.active { display: flex; }
.chat-subtabs { flex-basis: 100%; margin-top: 4px; }

.chat-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #0a0a0e;
}
.chat-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0a0e;
}

/* ==================== TOP CHATTERS / VIEWERS ==================== */
.viewers-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 26, 60, 0.08), rgba(255, 26, 60, 0.02));
  border-bottom: 1px solid rgba(255, 26, 60, 0.2);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.viewers-info:hover {
  background: linear-gradient(135deg, rgba(255, 26, 60, 0.14), rgba(255, 26, 60, 0.04));
}
.viewers-info-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.viewers-info-text {
  flex: 1;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-dim);
}
.viewers-info-text strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 2px;
}
.viewers-beta {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 0 8px var(--red-glow);
}
.viewers-info-cta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.period-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.period-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
  font-family: inherit;
}
.period-tab:hover { color: #fff; border-color: var(--border-hot); }
.period-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--red-glow);
}

.top-chatters-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}
.chatter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.chatter-row:hover {
  background: rgba(255, 26, 60, 0.05);
  border-color: var(--border-hot);
  transform: translateX(2px);
}
.chatter-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-mute);
  min-width: 28px;
  text-align: center;
}
.chatter-row.rank-1 .chatter-rank { color: #ffd700; font-size: 16px; }
.chatter-row.rank-2 .chatter-rank { color: #c0c0c0; font-size: 16px; }
.chatter-row.rank-3 .chatter-rank { color: #cd7f32; font-size: 16px; }
.chatter-row.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 215, 0, 0.3);
}
.chatter-row.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(192, 192, 192, 0.25);
}
.chatter-row.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(205, 127, 50, 0.25);
}
.viewer-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f1f2a;
}
.chatter-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chatter-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chatter-badges { display: flex; gap: 3px; flex-wrap: wrap; }
.cb {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.cb-broadcaster { background: rgba(255, 26, 60, 0.2); color: #ff6b8a; }
.cb-mod { background: rgba(0, 173, 39, 0.2); color: #4ade80; }
.cb-vip { background: rgba(229, 0, 165, 0.2); color: #f472b6; }
.cb-sub { background: rgba(83, 100, 244, 0.2); color: #818cf8; }
.cb-founder { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.cb-verified { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.chatter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.chatter-count span {
  font-size: 8px;
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 3px;
}
.chat-credit {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 12px;
  font-size: 9.5px;
  color: var(--text-mute);
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  font-weight: 600;
}

/* ==================== MOBILE TABS ==================== */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-tabs-h);
  z-index: 10;
  background: rgba(10, 4, 6, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  gap: 6px;
}
.mtab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.mtab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

/* ==================== FOOTER ==================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 6px;
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
  .dashboard { grid-template-columns: 380px minmax(0, 1fr) 380px; }
}

@media (max-width: 1200px) {
  .dashboard { grid-template-columns: 320px minmax(0, 1fr) 320px; }
  .status-pills .pill:nth-child(4) { display: none; }
}

@media (max-width: 1024px) {
  body { overflow: hidden; }
  .dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: calc(100vh - var(--topbar-h) - var(--promo-h) - var(--mobile-tabs-h));
    padding: 10px;
    gap: 0;
  }
  .center-col { display: contents; }

  .dashboard .panel[data-section] {
    display: none;
    height: 100%;
    min-height: 0;
    width: 100%;
  }
  .dashboard .panel[data-section].mobile-visible {
    display: flex;
  }

  .stream-frame { min-height: 220px; }

  .mobile-tabs { display: flex; }
  .footer { display: none; }

  .topbar { padding: 0 14px; gap: 12px; }
  .status-pills { gap: 6px; margin-left: auto; }
  .status-pills .pill { padding: 5px 9px; font-size: 10px; }
  .status-pills .pill:nth-child(3),
  .status-pills .pill:nth-child(4) { display: none; }
  .picker-pill { padding: 7px 12px; font-size: 12px; letter-spacing: 2px; }
}

@media (max-width: 720px) {
  .topbar { padding: 0 10px; gap: 8px; height: 56px; }
  :root { --topbar-h: 56px; --promo-h: 34px; }
  .promo-bar { padding: 0 10px; gap: 6px; font-size: 10px; }
  .promo-text { display: none; }
  .promo-label { font-size: 8px; letter-spacing: 1.5px; }
  .promo-code { font-size: 16px; letter-spacing: 2px; }
  .promo-cta { padding: 4px 11px; font-size: 11px; letter-spacing: 1.5px; }
  .brand-logo { height: 30px; }
  .brand-name { font-size: 18px; letter-spacing: 3px; }
  .brand-sub { font-size: 8px; letter-spacing: 3px; }
  .picker-pill { padding: 6px 10px; font-size: 11px; letter-spacing: 1.5px; }
  .picker-pill { font-size: 0; }
  .picker-pill::before { content: 'PICKER'; font-size: 11px; }
  .picker-pill span { font-size: 13px; }
  .status-pills .pill:not(#livePill) { display: none; }
  .panel-header { padding: 11px 14px; gap: 8px; }
  .panel-header h2 { font-size: 15px; letter-spacing: 2px; }
  .panel-icon { width: 22px; height: 22px; }
  .panel-icon svg { width: 12px; height: 12px; }
  .bet-game, .hof-game { font-size: 13px; }
  .bet-profit { font-size: 13px; }
  .bet-tab { padding: 5px 10px; font-size: 10px; }
  .stream-offline-text { font-size: 32px; letter-spacing: 4px; }

  .hof-card { padding: 12px 14px; gap: 12px; }
  .hof-multi { font-size: 28px; min-width: 70px; }
  .hof-profit { font-size: 17px; }
}
