/* ═══════════════════════════════════════════════
   ProTips PWA — Premium Sports Predictions
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0A0E17;
  --bg2: #0F1923;
  --bg-card: rgba(22, 34, 48, 0.85);
  --bg-card-solid: #162230;
  --bg-card-hover: #1C2E40;
  --bg-nav: rgba(10, 14, 23, 0.92);
  --accent: #00E676;
  --accent-dim: rgba(0, 230, 118, 0.15);
  --accent2: #00BCD4;
  --accent-gold: #FFD700;
  --accent-gold-dim: rgba(255, 215, 0, 0.12);
  --text: #E8EDF2;
  --text-secondary: #B0BEC5;
  --text-muted: #6B7D8D;
  --text-dim: #3A4A5A;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 230, 118, 0.2);
  --danger: #FF4757;
  --win: #00E676;
  --draw: #FFD700;
  --loss: #FF4757;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 230, 118, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* ─── UTILITIES ─── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-glow {
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card-solid) 25%, var(--bg-card-hover) 50%, var(--bg-card-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.98) 0%, rgba(10, 14, 23, 0.9) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
}

.logo-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.3);
}

.logo-text {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text);
}

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

.header-right {
  display: flex; align-items: center; gap: 10px;
}

.ai-pill {
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 230, 118, 0.15));
  border: 1px solid rgba(0, 230, 118, 0.2);
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.5px;
}

.live-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  font-size: 11px; font-weight: 700; color: var(--danger);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.5s infinite;
}

/* ═══════════════════════════════════════════════
   SPORT FILTER BAR
   ═══════════════════════════════════════════════ */
.sport-bar {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 190;
  display: flex; gap: 8px;
  padding: 10px 16px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.sport-bar::-webkit-scrollbar { display: none; }

.sport-pill {
  flex-shrink: 0;
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.sport-pill.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.15);
}

.sport-pill:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════
   CONTENT
   ═══════════════════════════════════════════════ */
.content {
  padding: 120px 16px 96px;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
}

.tab-view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-view.active { display: block; }

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted);
  margin: 28px 0 14px; padding-left: 2px;
}

.section-title .count {
  color: var(--accent);
  font-weight: 800;
}

/* ═══════════════════════════════════════════════
   DATE PICKER
   ═══════════════════════════════════════════════ */
.date-picker {
  display: flex; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 16px;
  margin-bottom: 4px;
}

.date-picker::-webkit-scrollbar { display: none; }

.date-chip {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}

.date-chip.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

.date-chip.today { position: relative; }

.date-chip .day-name {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
}

.date-chip.active .day-name { color: var(--accent); }

.date-chip .day-num {
  font-size: 16px; font-weight: 800;
  color: var(--text-secondary);
}

.date-chip.active .day-num { color: var(--accent); }

.date-chip .day-month {
  font-size: 9px; color: var(--text-dim);
  text-transform: uppercase; font-weight: 600;
}

.date-chip.active .day-month { color: var(--accent); opacity: 0.7; }

.date-chip .match-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-top: 2px;
}

.date-chip:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════
   LEAGUE FILTER
   ═══════════════════════════════════════════════ */
.league-filter {
  display: flex; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 14px;
}

.league-filter::-webkit-scrollbar { display: none; }

.league-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.league-chip.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.league-chip:active { transform: scale(0.95); }

.league-chip .chip-flag { font-size: 14px; }
.league-chip .chip-count {
  font-size: 10px; opacity: 0.6; font-weight: 700;
}

/* ═══════════════════════════════════════════════
   RADAR CHART
   ═══════════════════════════════════════════════ */
.radar-container {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 16px;
}

.radar-bg {
  position: absolute; inset: 0;
}

.radar-bg circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.radar-bg line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(0, 230, 118, 0.15);
  stroke: var(--accent);
  stroke-width: 2;
  transition: all 0.6s ease;
}

.radar-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.5));
}

.radar-label {
  font-size: 10px;
  fill: var(--text-muted);
  font-weight: 600;
  text-anchor: middle;
}

/* ═══════════════════════════════════════════════
   MATCH CARDS
   ═══════════════════════════════════════════════ */
.match-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  animation: slideUp 0.4s ease backwards;
}

.match-card:active {
  transform: scale(0.98);
  border-color: rgba(0, 230, 118, 0.15);
}

/* ─── TOP PICK ─── */
.top-pick {
  background: linear-gradient(145deg, rgba(22, 34, 48, 0.9) 0%, rgba(10, 30, 40, 0.95) 50%, rgba(22, 34, 48, 0.9) 100%);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 32px rgba(0, 230, 118, 0.08);
  animation: slideUp 0.5s ease;
}

.top-pick::before {
  content: '';
  position: absolute; top: -60%; right: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 230, 118, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.top-pick::after {
  content: '';
  position: absolute; bottom: -60%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle at 30% 70%, rgba(0, 188, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.top-pick .badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--accent), #00C853);
  color: #000; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; position: relative;
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.3);
}

/* ─── MATCH HEADER ─── */
.match-header {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 12px;
  margin-bottom: 14px; font-weight: 500;
  position: relative;
}

.match-header .league-flag { font-size: 14px; }
.match-header .time { margin-left: auto; color: var(--text-dim); font-size: 11px; }

/* ─── TEAMS ─── */
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 0;
  position: relative;
  gap: 4px;
}

.team {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  overflow: hidden;
}

.team img {
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  max-width: 48px; max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition);
}

.match-card:active .team img { transform: scale(1.05); }

.top-pick .team img {
  width: 56px; height: 56px;
  min-width: 56px; min-height: 56px;
  max-width: 56px; max-height: 56px;
}

.team .name {
  font-size: 12px; font-weight: 700; text-align: center;
  line-height: 1.3; width: 100%; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.team .rank {
  font-size: 10px; color: var(--text-dim); font-weight: 500;
}

.vs {
  font-size: 13px; font-weight: 800; color: var(--text-dim);
  padding: 0 8px; flex-shrink: 0;
  letter-spacing: 1px;
  align-self: center;
}

/* ─── FORM DOTS ─── */
.form-dots {
  display: flex; gap: 3px; justify-content: center; margin-top: 2px;
}

.form-dot {
  width: 7px; height: 7px; border-radius: 50%;
  transition: transform var(--transition);
}

.form-dot.w { background: var(--win); box-shadow: 0 0 4px rgba(0, 230, 118, 0.3); }
.form-dot.d { background: var(--draw); box-shadow: 0 0 4px rgba(255, 215, 0, 0.3); }
.form-dot.l { background: var(--loss); box-shadow: 0 0 4px rgba(255, 71, 87, 0.3); }

/* ─── PROBABILITY BAR ─── */
.prob-bar-container { margin-top: 14px; position: relative; }

.prob-bar {
  display: flex; height: 5px; border-radius: 3px;
  overflow: hidden; background: rgba(255, 255, 255, 0.04); margin: 8px 0;
}

.prob-bar .home { background: linear-gradient(90deg, var(--win), #00C853); border-radius: 3px 0 0 3px; transition: width 0.8s ease; }
.prob-bar .draw { background: var(--draw); transition: width 0.8s ease; }
.prob-bar .away { background: linear-gradient(90deg, #FF6B6B, var(--loss)); border-radius: 0 3px 3px 0; transition: width 0.8s ease; }

.prob-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700;
}

.prob-labels .home-lbl { color: var(--win); }
.prob-labels .draw-lbl { color: var(--draw); }
.prob-labels .away-lbl { color: var(--loss); }

/* ─── PREDICTION RESULT ─── */
.prediction-result {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pred-text { font-size: 13px; font-weight: 700; }
.pred-text.home { color: var(--win); }
.pred-text.away { color: var(--loss); }
.pred-text.draw { color: var(--draw); }

.stars { color: var(--accent-gold); font-size: 13px; letter-spacing: 1px; }

/* ─── AI CONFIDENCE ─── */
.ai-confidence {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; position: relative;
}

.ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(0, 230, 118, 0.12));
  border: 1px solid rgba(0, 230, 118, 0.15);
  font-size: 10px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.3px;
}

.ai-analysis {
  font-size: 11px; color: var(--text-muted); font-style: italic;
  flex: 1; line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   LIVE SECTION
   ═══════════════════════════════════════════════ */
.live-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 71, 87, 0.15);
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease backwards;
}

.live-card .match-header {
  margin-bottom: 8px;
}

.live-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.live-score-row .team { overflow: hidden; }
.live-score-row .team img {
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  max-width: 44px; max-height: 44px;
  object-fit: contain;
}

.live-score {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

.live-score .score {
  font-size: 28px; font-weight: 900; letter-spacing: -1px;
  min-width: 30px; text-align: center;
}

.live-score .divider {
  font-size: 20px; color: var(--text-dim); font-weight: 300;
}

.live-minute {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.2);
  font-size: 12px; font-weight: 700; color: var(--danger);
  margin: 0 auto; text-align: center;
}

.live-minute .live-pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger);
  animation: livePulse 1.5s infinite;
}

.live-events {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

.live-event {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 12px;
}

.live-event .event-minute {
  color: var(--text-muted); font-weight: 600; min-width: 30px;
}

.live-event .event-icon { font-size: 14px; }
.live-event .event-text { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════
   LEAGUES
   ═══════════════════════════════════════════════ */
.league-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.league-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  animation: slideUp 0.4s ease backwards;
}

.league-card:active {
  transform: scale(0.96);
  border-color: var(--border-accent);
}

.league-card .flag { font-size: 40px; margin-bottom: 10px; }
.league-card .league-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.league-card .league-country { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.league-card .league-sport { font-size: 10px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* League detail */
.league-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--accent); font-weight: 600;
  cursor: pointer; margin-bottom: 16px; padding: 10px 0;
  -webkit-tap-highlight-color: transparent;
}

.standings-table {
  width: 100%; border-collapse: collapse; font-size: 11px;
}

.standings-table th {
  text-align: left; padding: 8px 5px; color: var(--text-dim);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; border-bottom: 1px solid var(--border);
}

.standings-table th.num { text-align: center; width: 28px; }

.standings-table td {
  padding: 10px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.standings-table td.num { text-align: center; color: var(--text-secondary); }

.standings-table tr:nth-child(-n+4) td:first-child {
  border-left: 2px solid var(--accent);
}

.standings-table .team-cell {
  display: flex; align-items: center; gap: 8px;
}

.standings-table .team-cell img {
  width: 18px; height: 18px; object-fit: contain;
}

.standings-table .team-cell .name {
  font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease backwards;
}

.stat-card .value {
  font-size: 34px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 0.6s ease backwards;
}

.stat-card .label {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
}

.stat-card.wide { grid-column: 1 / -1; }

/* Donut */
.donut-container {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding: 20px 0;
}

.donut {
  width: 130px; height: 130px; border-radius: 50%;
  position: relative;
}

.donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--bg-card-solid);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}

.donut-legend { display: flex; flex-direction: column; gap: 12px; }

.legend-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}

.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Streak */
.streak-card {
  background: linear-gradient(145deg, rgba(0, 230, 118, 0.08), rgba(0, 188, 212, 0.06));
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border-accent);
  text-align: center; margin-top: 12px;
  animation: slideUp 0.5s ease backwards;
}

.streak-card .fire { font-size: 40px; animation: float 3s ease infinite; }
.streak-card .streak-num {
  font-size: 52px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.streak-card .streak-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Sport accuracy */
.sport-accuracy-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 12px;
}

.sport-accuracy-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sport-accuracy-item .sport-icon { font-size: 20px; flex-shrink: 0; }
.sport-accuracy-item .sport-name { font-size: 13px; font-weight: 600; min-width: 80px; }

.sport-accuracy-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.sport-accuracy-bar .fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}

.sport-accuracy-item .pct {
  font-size: 13px; font-weight: 700; color: var(--accent);
  min-width: 40px; text-align: right;
}

/* ═══════════════════════════════════════════════
   VIP
   ═══════════════════════════════════════════════ */
.vip-hero {
  background: linear-gradient(145deg, #141428 0%, #1A1A3E 30%, #0F2847 60%, #141428 100%);
  border-radius: var(--radius); padding: 36px 24px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 32px rgba(255, 215, 0, 0.05);
}

.vip-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.vip-hero .crown {
  font-size: 52px; margin-bottom: 16px;
  position: relative;
  animation: float 4s ease infinite;
}

.vip-hero h2 {
  font-size: 24px; font-weight: 900; margin-bottom: 10px;
  position: relative; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vip-hero p {
  font-size: 14px; color: var(--text-muted);
  position: relative; line-height: 1.6; max-width: 300px; margin: 0 auto;
}

.vip-features {
  margin: 24px 0; display: flex; flex-direction: column; gap: 10px;
}

.vip-feature {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 16px; border: 1px solid var(--border);
  transition: all var(--transition);
}

.vip-feature:active { transform: scale(0.98); }
.vip-feature .icon { font-size: 26px; flex-shrink: 0; }
.vip-feature .text { font-size: 13px; font-weight: 700; }
.vip-feature .sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }

/* Blurred locked section */
.vip-locked {
  position: relative; margin: 24px 0;
}

.vip-locked::after {
  content: '🔒 VIP Only';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  font-size: 18px; font-weight: 800; color: var(--accent-gold);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.vip-cta {
  display: block; width: 100%; padding: 18px;
  border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FFD700);
  background-size: 200% 100%;
  color: #000; font-size: 17px; font-weight: 800;
  cursor: pointer; text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
  letter-spacing: -0.3px;
}

.vip-cta:active { transform: scale(0.97); }

.vip-cta .sub {
  display: block; font-size: 12px; font-weight: 600;
  opacity: 0.7; margin-top: 4px;
}

.vip-social-proof {
  text-align: center; font-size: 12px; color: var(--text-dim);
  margin-top: 16px; font-weight: 500;
}

.vip-social-proof strong { color: var(--accent-gold); }

/* ═══════════════════════════════════════════════
   DATE GROUPS
   ═══════════════════════════════════════════════ */
.date-group {
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  margin: 24px 0 12px; padding-left: 2px;
  display: flex; align-items: center; gap: 8px;
}

.date-group .day { color: var(--accent); font-weight: 800; }
.date-group .match-count { color: var(--text-dim); font-size: 11px; font-weight: 500; }

/* ═══════════════════════════════════════════════
   BOTTOM NAV
   ═══════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 14px;
  color: var(--text-dim); font-weight: 600;
  cursor: pointer; transition: color var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--accent); }

.nav-icon { font-size: 22px; transition: transform var(--transition); }
.nav-item.active .nav-icon { transform: scale(1.1); }

.nav-label { font-size: 10px; letter-spacing: 0.3px; }

.nav-item::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 1px;
  background: var(--accent); transition: width 0.3s ease;
}

.nav-item.active::after { width: 20px; }

.nav-badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px;
  background: var(--danger);
  color: #fff; font-size: 9px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}

.nav-badge.visible { display: flex; }

/* ═══════════════════════════════════════════════
   NO DATA / EMPTY STATES
   ═══════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state .title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state .desc { font-size: 13px; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .match-card { padding: 14px; }
  .top-pick { padding: 18px; }
  .team .name { font-size: 11px; max-width: 70px; }
  .team img { width: 40px; height: 40px; }
  .top-pick .team img { width: 48px; height: 48px; }
  .stat-card .value { font-size: 28px; }
  .sport-pill { padding: 6px 12px; font-size: 12px; }
}

@media (min-width: 520px) {
  .content { padding-left: 24px; padding-right: 24px; }
}

/* ═══════════════════════════════════════════════
   MATCH DETAIL PAGE
   ═══════════════════════════════════════════════ */
.detail-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--accent); font-weight: 600;
  cursor: pointer; padding: 10px 0; margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}

.detail-header {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border-accent);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.detail-header::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.detail-header .detail-league {
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
  position: relative;
}

.detail-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-bottom: 16px;
}

.detail-matchup .team img {
  width: 64px; height: 64px;
  min-width: 64px; min-height: 64px;
  max-width: 64px; max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.detail-matchup .team .name {
  font-size: 14px; font-weight: 800;
}

.detail-matchup .vs {
  font-size: 18px; font-weight: 900; color: var(--text-dim);
}

.detail-prediction-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  font-size: 14px; font-weight: 700; color: var(--accent);
  position: relative;
}

/* AI Factors */
.factors-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.factors-card .card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  margin-bottom: 16px;
}

.factors-card .card-title .icon { font-size: 18px; }

.factor-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}

.factor-row:last-child { margin-bottom: 0; }

.factor-row .factor-icon {
  font-size: 18px; flex-shrink: 0; width: 28px; text-align: center;
}

.factor-row .factor-info { flex: 1; min-width: 0; }

.factor-row .factor-name {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}

.factor-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.factor-bar .factor-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}

.factor-bar .factor-fill.high { background: linear-gradient(90deg, var(--accent), #00C853); }
.factor-bar .factor-fill.medium { background: linear-gradient(90deg, var(--draw), #FFA000); }
.factor-bar .factor-fill.low { background: linear-gradient(90deg, var(--loss), #FF6B6B); }

.factor-row .factor-pct {
  font-size: 13px; font-weight: 800; color: var(--accent);
  min-width: 38px; text-align: right;
}

/* H2H Section */
.h2h-list {
  display: flex; flex-direction: column; gap: 8px;
}

.h2h-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.h2h-row .h2h-date {
  font-size: 11px; color: var(--text-dim); min-width: 70px;
  font-weight: 500;
}

.h2h-row .h2h-score {
  font-size: 14px; font-weight: 800; min-width: 50px; text-align: center;
}

.h2h-row .h2h-teams {
  font-size: 11px; color: var(--text-muted); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.h2h-row .h2h-result {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.h2h-row .h2h-result.w { background: var(--win); }
.h2h-row .h2h-result.d { background: var(--draw); }
.h2h-row .h2h-result.l { background: var(--loss); }

/* Injuries */
.injury-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.injury-row .injury-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; flex-shrink: 0;
}

.injury-row .injury-status.out {
  background: rgba(255, 71, 87, 0.15); color: var(--danger);
}

.injury-row .injury-status.doubtful {
  background: rgba(255, 215, 0, 0.15); color: var(--draw);
}

.injury-row .injury-status.fit {
  background: rgba(0, 230, 118, 0.15); color: var(--accent);
}

.injury-row .injury-player {
  font-size: 13px; font-weight: 600; flex: 1;
}

.injury-row .injury-reason {
  font-size: 11px; color: var(--text-muted);
}

/* Key Stats Grid */
.key-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}

.key-stat {
  text-align: center; padding: 14px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.key-stat .ks-value {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.key-stat .ks-label {
  font-size: 10px; color: var(--text-muted); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

/* card stagger animation delays */
.match-card:nth-child(1) { animation-delay: 0s; }
.match-card:nth-child(2) { animation-delay: 0.05s; }
.match-card:nth-child(3) { animation-delay: 0.1s; }
.match-card:nth-child(4) { animation-delay: 0.15s; }
.match-card:nth-child(5) { animation-delay: 0.2s; }
.match-card:nth-child(6) { animation-delay: 0.25s; }

.league-card:nth-child(1) { animation-delay: 0s; }
.league-card:nth-child(2) { animation-delay: 0.05s; }
.league-card:nth-child(3) { animation-delay: 0.1s; }
.league-card:nth-child(4) { animation-delay: 0.15s; }
.league-card:nth-child(5) { animation-delay: 0.2s; }
.league-card:nth-child(6) { animation-delay: 0.25s; }

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
