:root {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.dashboard {
  max-width: 900px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle { color: var(--muted); margin-top:0.5rem; }

.league-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
}

.league-selector select,
.league-selector button {
  background: #0f172a;
  border: 1px solid #334155;
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.league-selector button {
  background: var(--accent);
  color: #0f172a;
  font-weight: bold;
  border: none;
  transition: background 0.2s;
}
.league-selector button:hover { background: #0ea5e9; }

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.match-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #1e293b;
  transition: transform 0.15s;
}
.match-card:hover { transform: translateY(-2px); }

.match-card .teams {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.match-card .date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.match-card button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.match-card button:hover {
  background: var(--accent);
  color: #0f172a;
}

.prediction-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--accent);
}

.prediction-card h2 { margin-bottom: 1rem; }

.comparison {
  width: 100%;
  max-width: 600px;
  margin-top: 1.5rem;
}
.model-bars, .market-bars {
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}
.bar-label {
  width: 50px;
  font-weight: bold;
  text-align: right;
  margin-right: 1rem;
}
.bar-track {
  flex: 1;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.bar-percent {
  width: 60px;
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.bar-fill.market {
  background: #818cf8;
}
.value-indicator {
  color: var(--success);
  font-weight: bold;
  margin-left: 0.5rem;
}

.hidden { display: none !important; }
