:root {
  --bg: #080b11;
  --surface: #0e1220;
  --surface2: #131828;
  --surface3: #192035;
  --border: #1c2540;
  --border2: #243060;
  --accent: #00e5a0;
  --accent2: #f5c842;
  --accent3: #e05252;
  --accent4: #4f8ef7;
  --text: #e8eaf0;
  --muted: #6b7494;
  --muted2: #8891b0;
  --win: #00e5a0;
  --draw: #f5c842;
  --lose: #e05252;
  --over: #4f8ef7;
  --under: #a78bfa;
  --gold: #f5c842;
  --silver: #9aa5c4;
  --bronze: #d97b4a;
  --green: #00e5a0;
  --amber: #f5c842;
  --red: #e05252;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow top-left */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }

/* ==================== HEADER ==================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,11,17,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0,229,160,0.35);
  flex-shrink: 0;
}

.logo span { color: var(--text); }

.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.navbar a:hover {
  color: var(--text);
  background: var(--surface2);
}

.navbar a.active {
  color: var(--accent);
  background: rgba(0,229,160,0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid rgba(0,229,160,0.25);
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0,229,160,0.06);
  white-space: nowrap;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,229,160,0.4); }
  50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(0,229,160,0); }
}

#clockDisplay {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
}

/* ==================== MAIN LAYOUT ==================== */
.main {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 32px;
}

.main-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==================== PANELS ==================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  gap: 12px;
}

.panel-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title .icon { font-size: 15px; }

.panel-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.panel-body { padding: 20px; }

/* ==================== LABELS ==================== */
.slabel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ==================== FIELDS ==================== */
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}

/* Remove spin buttons from number inputs */
.field input[type=number]::-webkit-inner-spin-button,
.field input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
}
input[type=number] { -moz-appearance: textfield; }

.field input::placeholder { color: var(--muted); opacity: 0.55; }

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.10);
}

/* Also applies to bare inputs used in match-prediction rows */
input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

.field input.err,
input.err {
  border-color: var(--lose) !important;
  box-shadow: 0 0 0 2px rgba(224,82,82,0.12);
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7494' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field select option { background: var(--surface2); color: var(--text); }

/* Bare selects (match-prediction rows use bare select) */
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  padding: 0 10px;
  height: 38px;
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}
select option { background: var(--surface2); color: var(--text); }

/* Bare inputs (match-prediction rows) */
input[type=text] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  padding: 0 10px;
  height: 38px;
  outline: none;
  transition: border-color 0.15s;
}
input[type=text]::placeholder { color: var(--muted); opacity: 0.55; }

/* ==================== GRIDS ==================== */
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.grid-row .field-line { flex: 0 0 140px; }
.grid-row .field-grow { flex: 1; min-width: 90px; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #080b11;
}
.btn-primary:hover {
  background: #00cc8e;
  border-color: #00cc8e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,229,160,0.22);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,160,0.05);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==================== LOADER ==================== */
.loader {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.loader.show { display: flex; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,229,160,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== ERROR BOX ==================== */
.err-box {
  display: none;
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--lose);
  margin-top: 12px;
}
.err-box.show { display: block; }

/* ==================== STATUS MESSAGES ==================== */
.status-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.status-msg.info    { background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.25); color: var(--over); }
.status-msg.success { background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.25); color: var(--win); }
.status-msg.warning { background: rgba(245,200,66,0.08); border: 1px solid rgba(245,200,66,0.25); color: var(--draw); }

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: max-content;
}
.tab-btn.active {
  background: var(--surface2);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.tab-btn:hover:not(.active) {
  color: var(--text);
  background: var(--surface3);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== CONFIDENCE METER ==================== */
.conf-dots { display: flex; gap: 4px; }
.conf-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.conf-dot.filled { background: var(--accent); }
.conf-dot.filled.yellow { background: var(--draw); }
.conf-dot.filled.red { background: var(--lose); }

/* ==================== PROBABILITY BARS ==================== */
.prob-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 500;
}
.prob-bar-label .pct {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
}
.bar-track {
  height: 7px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.bar-fill.home  { background: linear-gradient(90deg, var(--win), #00b87d); }
.bar-fill.draw  { background: linear-gradient(90deg, var(--draw), #d4a80a); }
.bar-fill.away  { background: linear-gradient(90deg, var(--lose), #b03c3c); }
.bar-fill.over  { background: linear-gradient(90deg, var(--over), #2563eb); }
.bar-fill.under { background: linear-gradient(90deg, var(--under), #7c3aed); }

/* ==================== PREDICTION CARDS ==================== */
.prediction-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pred-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.pred-card:hover { transform: translateY(-1px); }

.pred-card.top-pick {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,229,160,0.1);
}
.pred-card.top-pick::before {
  content: '★ TOP';
  position: absolute;
  top: 0; right: 0;
  font-size: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: var(--accent);
  color: #080b11;
  padding: 3px 7px;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.5px;
}
.pred-card-type {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.pred-card-outcome {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.pred-card-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  font-family: 'JetBrains Mono', monospace;
}
.pred-card-conf { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ==================== VALUE BET CARDS ==================== */
.value-bet-list { display: flex; flex-direction: column; gap: 10px; }
.value-bet-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.value-bet-card:hover { border-color: var(--accent2); transform: translateX(2px); }

.vb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}
.vb-badge.high   { background: rgba(0,229,160,0.12); color: var(--win);  border: 1px solid rgba(0,229,160,0.3); }
.vb-badge.medium { background: rgba(245,200,66,0.12); color: var(--draw); border: 1px solid rgba(245,200,66,0.3); }
.vb-badge.low    { background: rgba(79,142,247,0.12); color: var(--over); border: 1px solid rgba(79,142,247,0.3); }

.vb-info { flex: 1; min-width: 0; }
.vb-market { font-size: 13px; font-weight: 600; color: var(--text); }
.vb-detail { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.vb-edge { text-align: right; flex-shrink: 0; }
.vb-edge-val { font-size: 16px; font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.vb-edge-label { font-size: 10px; color: var(--muted); }

/* ==================== METRIC GRID ==================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.metric:hover { border-color: var(--border2); }
.metric .mlabel {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.metric .mval {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.metric .msub { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ==================== STATS TABLE ==================== */
.stats-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stats-table th {
  text-align: left;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.stats-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(28,37,64,0.6);
  color: var(--text);
  font-size: 12px;
  vertical-align: middle;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: rgba(0,229,160,0.025); }

/* ==================== OVERROUND BAR ==================== */
.overround-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.overround-label { color: var(--muted); flex: 1; }
.overround-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.overround-val.good { color: var(--win); }
.overround-val.fair { color: var(--draw); }
.overround-val.bad  { color: var(--lose); }

/* ==================== RECOMMENDATION CARDS ==================== */
.rec-card {
  background: var(--bg);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.rec-card.safe { border-color: rgba(245,200,66,0.25); }
.rec-card-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.rec-card.safe .rec-card-title { color: var(--draw); }
.rec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(28,37,64,0.7);
  gap: 12px;
}
.rec-item:last-child { border-bottom: none; }
.rec-label { font-size: 13px; color: var(--text); font-weight: 500; }
.rec-detail { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.rec-right { text-align: right; flex-shrink: 0; }
.rec-prob { font-size: 15px; font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.rec-card.safe .rec-prob { color: var(--draw); }

/* ==================== BADGE ==================== */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.badge.value { background: rgba(0,229,160,0.1); color: var(--win); border: 1px solid rgba(0,229,160,0.3); }
.badge.fair  { background: rgba(107,116,148,0.1); color: var(--muted); border: 1px solid rgba(107,116,148,0.3); }
.badge.over  { background: rgba(224,82,82,0.1); color: var(--lose); border: 1px solid rgba(224,82,82,0.3); }

/* ==================== RESULT CARDS ==================== */
.rcard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.rcard-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ==================== GENERAL TABLE (bare) ==================== */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
td {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid rgba(28,37,64,0.5);
  color: var(--text);
  vertical-align: middle;
  font-size: 12px;
}
tr:last-child td { border-bottom: none; }
td:last-child, th:last-child { text-align: right; padding-right: 0; }
tr:hover td { background: rgba(0,229,160,0.02); }

/* ==================== CORRECT SCORE GRID ==================== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cs-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  transition: border-color 0.2s;
}
.cs-item:hover { border-color: var(--border2); }
.cs-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.cs-prob  { font-size: 11px; color: var(--accent); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.cs-highlight {
  border-color: rgba(0,229,160,0.4);
  background: rgba(0,229,160,0.06);
  box-shadow: 0 0 8px rgba(0,229,160,0.06);
}

/* ==================== NOTE ==================== */
.note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.75;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.note strong { color: var(--muted2); }

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  gap: 12px;
}
.empty-state-icon { font-size: 44px; }
.empty-state-title { font-size: 18px; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.empty-state-sub { font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.65; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ==================== ANIMATIONS ==================== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animated { animation: countUp 0.4s ease both; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ==================== LINK GRID (other-links & index) ==================== */
.link-grid { display: grid; gap: 12px; }

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.link-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,229,160,0.08);
}
.link-item-label { color: var(--accent); font-weight: 600; font-size: 14px; }
.link-item span:last-child { color: var(--muted); font-size: 16px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .main { padding: 20px 16px; }
  .main-wide { padding: 20px 16px; }
}

@media (max-width: 700px) {
  header { padding: 12px 16px; gap: 10px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .prediction-cards { grid-template-columns: 1fr 1fr; }
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: wrap; }
  .tab-btn { font-size: 11px; }
  .grid-row { flex-wrap: wrap; }
  .grid-row .field-line { flex: 0 0 100%; }
  .live-badge { display: none; }
}

@media (max-width: 560px) {
  header { padding: 10px 14px; flex-wrap: wrap; }
  .logo { font-size: 22px; }
  .main { padding: 14px 12px; }
  .main-wide { padding: 14px 12px; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .prediction-cards { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { order: 3; width: 100%; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
  .navbar a { margin: 2px 4px; font-size: 12px; padding: 5px 10px; }
  #clockDisplay { display: none; }
}

@media (max-width: 400px) {
  header { padding: 10px 12px; }
  .logo { font-size: 20px; }
  .main { padding: 12px 10px; }
  .main-wide { padding: 12px 10px; }
  .content { gap: 16px; }
  .panel-body { padding: 14px 12px; }
  .field input, .field select { height: 40px; font-size: 13px; }
  .btn { height: 40px; font-size: 13px; }
  .pred-card-outcome { font-size: 18px; }
  .value-bet-card { flex-wrap: wrap; }
  .vb-info { flex: 1 1 100%; }
  .vb-edge { text-align: left; }
  .metric-grid { grid-template-columns: 1fr; }
}
