/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #1b1b1b;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #ff9000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
  background: #111;
  border-bottom: 3px solid #ff9000;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.brand {
  font-size: 1.35rem;
  font-weight: 900;
  color: #f0f0f0;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.brand-hub {
  background: #ff9000;
  color: #111;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.15rem;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a { color: #aaa; font-size: 0.88rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #ff9000; text-decoration: none; }
.nav-user {
  color: #ff9000;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-user::before { content: "★ "; font-size: 0.75rem; }
.btn-logout {
  background: #2a2a2a;
  color: #888 !important;
  padding: 0.28rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid #3a3a3a;
}
.btn-logout:hover { background: #333; text-decoration: none !important; }

/* ── Main ── */
main {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

/* ── Auth cards ── */
.auth-card {
  max-width: 400px;
  margin: 4rem auto;
  background: #242424;
  border: 1px solid #3a3a3a;
  border-top: 3px solid #ff9000;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.auth-card h1 { font-size: 1.5rem; color: #ff9000; text-align: center; margin-bottom: 0.25rem; }
.subtitle { text-align: center; color: #777; margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-link { text-align: center; margin-top: 1.2rem; color: #777; font-size: 0.88rem; }

/* ── Form elements ── */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select {
  width: 100%;
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: #f0f0f0;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
  border-color: #ff9000;
  box-shadow: 0 0 0 2px rgba(255,144,0,0.15);
}
input[type="number"] { width: auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #ff9000, #e67e00); color: #111; box-shadow: 0 2px 8px rgba(255,144,0,0.3); }
.btn-secondary { background: #2a2a2a; color: #ccc; border: 1px solid #3a3a3a; }
.btn-danger { background: #7f1d1d; color: #fca5a5; }
.btn-sm { padding: 0.28rem 0.65rem; font-size: 0.78rem; }
.btn-full { width: 100%; text-align: center; }

/* ── Alerts ── */
.alert {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border-left: 3px solid;
}
.alert-error { background: #2a1010; border-color: #c0392b; color: #fca5a5; }
.alert-info   { background: #2a1f0a; border-color: #ff9000; color: #ffb74d; }
.alert-warn   { background: #2a2000; border-color: #ca8a04; color: #fde68a; }

/* ── Page header ── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 900; color: #ff9000; letter-spacing: -0.01em; }
.page-desc { color: #777; font-size: 0.85rem; margin-top: 0.35rem; line-height: 1.5; }
.page-header-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-actions { display: flex; gap: 0.6rem; margin-left: auto; flex-wrap: wrap; }
.empty-state { color: #555; text-align: center; padding: 3rem; font-size: 0.95rem; }

/* ── PH-style section headers ── */
.ph-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.ph-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ph-section-count {
  font-size: 0.72rem;
  background: #333;
  color: #888;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
}
.ph-section-bar {
  width: 4px;
  height: 1.1rem;
  background: #ff9000;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Leaderboard ── */
.lb-hero {
  background: linear-gradient(135deg, #1f1300 0%, #2a2a2a 100%);
  border: 1px solid #3a3a3a;
  border-top: 3px solid #ff9000;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lb-hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff9000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lb-hero-sub { font-size: 0.82rem; color: #888; margin-top: 0.2rem; line-height: 1.7; }
.lb-rule { white-space: nowrap; }
.lb-hero-icon { font-size: 2.5rem; }

.table-wrap { overflow-x: auto; }
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.leaderboard-table thead tr {
  background: #111;
}
.leaderboard-table th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  color: #777;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #ff9000;
  white-space: nowrap;
}
.leaderboard-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #242424;
}
.leaderboard-table tbody tr:hover td { background: #222; }
.my-row td { background: #2a1f0a !important; border-left: 3px solid #ff9000; }
.num { text-align: right; }
.points { font-size: 1.05rem; }
.dim { color: #555; }
.rank { width: 3rem; }
.medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.gold   { background: linear-gradient(135deg, #b8860b, #fde68a); color: #1a1000; }
.silver { background: linear-gradient(135deg, #555, #ccc); color: #111; }
.bronze { background: linear-gradient(135deg, #6b3a1f, #fdba74); color: #1a0800; }
.medal-sm { width: 1.4rem; height: 1.4rem; font-size: 0.7rem; }
.rank-num { color: #555; font-size: 0.9rem; }
.you-badge {
  font-size: 0.65rem;
  background: #ff9000;
  color: #111;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: #ff9000;
  color: #111;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 900;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.player-name { font-weight: 700; }
.creator-points {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ff9000;
}

/* ── Match cards ── */
.round-section { margin-bottom: 2.2rem; }
.round-title {
  font-size: 0.88rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.round-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9rem;
  background: #ff9000;
  border-radius: 2px;
}
.match-card {
  background: #242424;
  border: 1px solid #303030;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.match-card:hover { border-color: #444; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.match-card.locked { border-left: 3px solid #444; }
.match-card.is-live { border-left: 3px solid #e53935; }
.match-card.is-finished { border-left: 3px solid #ff9000; }
.match-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.match-time { font-size: 0.8rem; color: #777; }
.match-group {
  font-size: 0.72rem;
  color: #ff9000;
  background: #2a1f0a;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}
.match-body { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.teams {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}
.team { font-weight: 700; font-size: 1.05rem; transition: color 0.15s; }
.team-winner { color: #ff9000; }
.home { text-align: right; flex: 1; }
.away { text-align: left; flex: 1; }
.score-display { text-align: center; min-width: 5rem; }
.vs { color: #555; font-size: 0.85rem; font-weight: 600; }
.result-score {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ff9000;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(255,144,0,0.4);
}

/* ── LIVE badge ── */
.badge-live-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #e53935;
  border-radius: 50%;
  animation: livepulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Prediction area ── */
.prediction-area { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
.my-pred { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pred-label { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 0.04em; }
.pred-score { font-weight: 700; color: #f0f0f0; }
.pred-score.pred-ok  { color: #6abf69; font-weight: 800; }
.pred-score.pred-bad { color: #f87171; }
.pred-points { font-size: 0.8rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 4px; }
.pts-exact   { background: #3d2200; color: #ff9000; border: 1px solid rgba(255,144,0,0.3); }
.pts-outcome { background: #0f1f30; color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.pts-wrong   { background: #2a1010; color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

.pred-form { display: flex; flex-direction: column; gap: 0.4rem; }
.pred-form-inner { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pred-hint { font-size: 0.72rem; color: #444; }
.pred-inputs { display: flex; align-items: center; gap: 0.4rem; }

/* 1X2 buttons */
.ox2-group { display: flex; gap: 0.25rem; }
.ox2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  color: #777;
  background: #1f1f1f;
  transition: all 0.12s;
  user-select: none;
}
.ox2-btn input[type="radio"] { display: none; }
.ox2-btn:hover { border-color: #ff9000; color: #f0f0f0; background: #2a2a2a; }
.ox2-btn.selected, .ox2-btn:has(input:checked) {
  background: #ff9000;
  border-color: #ff9000;
  color: #111;
  box-shadow: 0 0 8px rgba(255,144,0,0.35);
}
.pred-1x2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  background: #333;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #f0f0f0;
}
.pred-1x2-badge.pred-ok  { background: #1a3d1a; color: #6abf69; border-color: rgba(106,191,105,0.45); }
.pred-1x2-badge.pred-bad { background: #3d1212; color: #f87171; border-color: rgba(248,113,113,0.4); }
.pred-1x2-badge-sm { width: 1.4rem; height: 1.4rem; font-size: 0.75rem; }
.dash-section-footer { margin-top: 0.75rem; text-align: center; padding-top: 0.6rem; border-top: 1px solid #2a2a2a; }
.score-input {
  width: 3.5rem !important;
  text-align: center;
  padding: 0.4rem !important;
  font-size: 1rem !important;
}
.dash { color: #555; font-weight: 700; }
.no-pred-msg { font-size: 0.8rem; color: #444; font-style: italic; }

/* ── Badges ── */
.badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-open      { background: #1a3a1a; color: #4ade80; }
.badge-ongoing   { background: #3b0a0a; color: #f87171; }
.badge-done      { background: #3d2200; color: #ff9000; }
.badge-lock-soon   { background: #2a1f00; color: #fbbf24; }
.badge-lock-urgent { background: #3d0000; color: #f87171; animation: pulse-badge 1s ease-in-out infinite; }
@keyframes pulse-badge { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* ── OnlyFans-parody exclusive section ── */
.of-section {
  background: linear-gradient(135deg, #0a1a2e 0%, #0d1f38 100%);
  border: 1px solid #1a3a5a;
  border-top: 3px solid #00b4d8;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}
.of-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.of-logo-badge {
  font-size: 0.72rem;
  font-weight: 900;
  background: #00b4d8;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.of-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #90e0ef;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.of-lock { font-size: 1.1rem; }

/* ── Special predictions ── */
.special-results-box {
  background: #2a1f0a;
  border: 1px solid #7a4500;
  border-left: 4px solid #ff9000;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.special-box-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ff9000;
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.special-grid { display: flex; flex-direction: column; gap: 0.45rem; }
.sr-row { display: flex; gap: 0.8rem; align-items: baseline; }
.sr-label { font-size: 0.82rem; color: #888; min-width: 160px; }
.sr-val { font-weight: 700; color: #f0f0f0; }
.pts-badge {
  font-size: 0.65rem;
  background: #3d2200;
  color: #ff9000;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  vertical-align: middle;
  font-weight: 700;
  border: 1px solid rgba(255,144,0,0.2);
}
.special-pts-display {
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  background: #3d2200;
  color: #ff9000;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255,144,0,0.2);
}
.special-pts-cell { color: #ff9000; font-weight: 800; }

/* ── Form card ── */
.form-card {
  background: #242424;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 600px;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 150px; }
.form-actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* ── Result form ── */
.result-match-info { margin-bottom: 1.2rem; }
.result-teams { font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: 0.2rem; }
.result-meta { font-size: 0.85rem; color: #888; display: block; margin-bottom: 0.5rem; }
.result-inputs { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.result-field { min-width: auto !important; }
.score-input-lg {
  width: 4.5rem !important;
  font-size: 1.5rem !important;
  text-align: center;
  padding: 0.5rem !important;
}
.result-dash { font-size: 1.8rem; color: #555; padding-bottom: 0.3rem; font-weight: 700; }

/* ── Predictions table ── */
.preds-table-wrap { overflow-x: auto; margin-bottom: 0.5rem; }
.preds-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.preds-table th {
  padding: 0.5rem 0.75rem;
  color: #777;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #ff9000;
  background: #111;
  position: sticky;
  top: 3.5rem;
}
.preds-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid #242424; vertical-align: middle; }
.preds-table tr:hover td { background: #1f1f1f; }
.preds-match-col { min-width: 180px; white-space: normal; }
.preds-result-col { text-align: center; min-width: 60px; }
.preds-user-col { text-align: center; min-width: 80px; }
.pred-team { font-weight: 700; }
.pred-vs { color: #444; margin: 0 0.3rem; }
.pred-group { font-size: 0.72rem; color: #ff9000; margin-left: 0.4rem; }
.pred-time { font-size: 0.72rem; color: #555; margin-top: 0.1rem; }
.result-score-sm { font-weight: 800; color: #ff9000; }
.ongoing-badge { font-size: 0.72rem; color: #f87171; }
.cell-score { font-weight: 700; }
.cell-1x2 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  background: #333; border-radius: 3px;
  font-weight: 800; font-size: 0.8rem; color: #f0f0f0;
}
.cell-pts { font-size: 0.72rem; color: #888; margin-left: 0.3rem; }
.cell-pred-wrap { display: inline-flex; align-items: center; gap: 0.3rem; }
.cell-1x2-sm { width: 1.3rem; height: 1.3rem; font-size: 0.72rem; }
.no-pred { color: #383838; }
.cell-exact td, td.cell-exact { background: #3d2200 !important; }
.cell-outcome td, td.cell-outcome { background: #0f1f30 !important; }
.cell-wrong td, td.cell-wrong { background: #2a1010 !important; }

/* ── Admin ── */
.admin-matches { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-match-row {
  background: #242424;
  border: 1px solid #303030;
  border-radius: 7px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color 0.15s;
}
.admin-match-row:hover { border-color: #444; }
.admin-match-row.finished { opacity: 0.7; }
.admin-match-info { display: flex; align-items: center; gap: 0.6rem; flex: 1; flex-wrap: wrap; min-width: 0; }
.admin-round-badge {
  font-size: 0.7rem; background: #2a2a2a; color: #777;
  padding: 0.1rem 0.45rem; border-radius: 3px; white-space: nowrap; font-weight: 600;
}
.admin-time { font-size: 0.8rem; color: #777; white-space: nowrap; }
.admin-teams { font-size: 0.95rem; font-weight: 700; }
.admin-result { font-weight: 800; color: #ff9000; }
.admin-match-actions { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }
.pred-count { font-size: 0.78rem; }

/* ── Results mode toggle ── */
.results-mode-group { display: flex; flex-direction: column; gap: 0.4rem; }
.results-mode-opt {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #333;
  cursor: pointer;
  background: #1b1b1b;
  transition: border-color 0.15s, background 0.15s;
}
.results-mode-opt input[type="radio"] { margin-top: 0.22rem; flex-shrink: 0; accent-color: #ff9000; }
.results-mode-opt:hover { border-color: #ff9000; background: #1f1f1f; }
.results-mode-opt.active { border-color: #ff9000; background: #2a1f0a; }
.results-mode-label { display: flex; flex-direction: column; gap: 0.1rem; }
.results-mode-label strong { font-size: 0.88rem; color: #f0f0f0; }
.results-mode-label .dim { font-size: 0.76rem; }

/* ── Player / creator profile ── */
.player-link { color: inherit; text-decoration: none; font-weight: 700; }
.player-link:hover { color: #ff9000; text-decoration: none; }

.creator-profile-header {
  background: linear-gradient(135deg, #1f1300 0%, #242424 60%);
  border: 1px solid #3a3a3a;
  border-top: 3px solid #ff9000;
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.creator-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: #ff9000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #111;
  flex-shrink: 0;
  text-transform: uppercase;
}
.creator-meta { flex: 1; }
.creator-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.creator-tag { font-size: 0.8rem; color: #777; margin-top: 0.15rem; }
.creator-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.creator-stat { text-align: center; }
.creator-stat-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ff9000;
  line-height: 1;
}
.creator-stat-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.special-readonly { display: flex; flex-direction: column; gap: 0.4rem; }
.special-row {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
}
.special-row.correct {
  background: #2a1f0a;
  border-color: rgba(255,144,0,0.3);
  border-left: 3px solid #ff9000;
}
.special-label { font-size: 0.82rem; color: #888; min-width: 200px; }
.special-value { font-weight: 700; color: #f0f0f0; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: #444;
  font-size: 0.78rem;
  border-top: 1px solid #222;
  background: #111;
}
.footer a { color: #555; }

/* ── Achievements ── */
.ach-tier-section { margin-bottom: 1rem; }
.ach-tier-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 0.5rem;
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.4rem;
}
.ach-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: default;
}
.ach-earned:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0,0,0,0.4); }
.ach-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.2; }
.ach-info { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.ach-name { font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-desc { font-size: 0.7rem; color: #777; line-height: 1.3; }

/* Tier colors — earned */
.ach-earned.ach-legendary { background: linear-gradient(135deg, #2a1800, #3d2500); border-color: rgba(255,144,0,0.35); }
.ach-earned.ach-legendary .ach-name { color: #ff9000; }
.ach-earned.ach-epic      { background: linear-gradient(135deg, #1a0d2e, #261540); border-color: rgba(192,132,252,0.3); }
.ach-earned.ach-epic      .ach-name { color: #c084fc; }
.ach-earned.ach-rare      { background: linear-gradient(135deg, #0d1f30, #0f2840); border-color: rgba(96,165,250,0.3); }
.ach-earned.ach-rare      .ach-name { color: #60a5fa; }
.ach-earned.ach-common    { background: #222; border-color: #333; }
.ach-earned.ach-common    .ach-name { color: #e0e0e0; }

/* Locked */
.ach-locked { background: #1a1a1a; border-color: #252525; opacity: 0.45; }
.ach-locked .ach-name { color: #555; }

/* ── Bracket ── */
.bracket-wrap {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: flex-start;
}
.bracket-col {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bracket-col-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9000;
  text-align: center;
  padding: 0.3rem 0;
  border-bottom: 2px solid #ff9000;
  margin-bottom: 0.2rem;
}
.bracket-col-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 0.5rem;
}
.bm-card {
  background: #1f1f1f;
  border: 1px solid #2e2e2e;
  border-left: 3px solid #333;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bm-card.bm-done { border-left-color: #ff9000; }
.bm-card.bm-live { border-left-color: #f87171; }
.bm-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.8rem;
}
.bm-team:last-of-type { border-bottom: none; }
.bm-winner .bm-name { color: #ff9000; font-weight: 800; }
.bm-winner .bm-score { color: #ff9000; font-weight: 900; }
.bm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ccc; }
.bm-score { font-weight: 700; color: #e0e0e0; font-size: 0.85rem; flex-shrink: 0; }
.bm-pred {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px solid #252525;
  flex-wrap: wrap;
}
.bm-pred-score { font-size: 0.72rem; color: #888; }
.bm-pts { font-size: 0.7rem; font-weight: 800; padding: 0.1rem 0.35rem; border-radius: 3px; }
.bm-time { font-size: 0.65rem; color: #444; margin-top: 0.1rem; }

/* ── H2H ── */
.h2h-header {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #1f1f1f;
  border: 1px solid #333;
  border-top: 3px solid #ff9000;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.h2h-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.h2h-player:hover { background: #242424; text-decoration: none; }
.h2h-avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900;
}
.h2h-pname { font-weight: 800; font-size: 1rem; color: #f0f0f0; }
.h2h-ptotal { font-size: 1.4rem; font-weight: 900; color: #ff9000; }
.h2h-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem 1.5rem;
  border-left: 1px solid #2a2a2a;
  border-right: 1px solid #2a2a2a;
  min-width: 130px;
  gap: 0.2rem;
}
.h2h-vs { font-size: 1rem; font-weight: 900; color: #555; letter-spacing: 0.1em; }
.h2h-score { font-size: 1.6rem; font-weight: 900; color: #f0f0f0; }
.h2h-score-lbl { font-size: 0.65rem; color: #555; text-transform: uppercase; letter-spacing: 0.05em; }
.h2h-mini-stats { font-size: 0.78rem; color: #888; margin-top: 0.2rem; display: flex; gap: 0.4rem; }

.h2h-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1f1f1f;
}
.h2h-pred-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  background: #1a1a1a;
  border: 1px solid #252525;
  min-height: 2.2rem;
  flex-wrap: wrap;
}
.h2h-pred-right { flex-direction: row-reverse; }
.h2h-exact   { background: #2a1800 !important; border-color: rgba(255,144,0,0.25) !important; }
.h2h-outcome { background: #0d1e30 !important; border-color: rgba(96,165,250,0.2) !important; }
.h2h-wrong   { background: #1f0c0c !important; border-color: rgba(248,113,113,0.15) !important; }
.h2h-winner  { border-color: rgba(255,144,0,0.5) !important; }
.h2h-pred-1x2 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  background: #333; border-radius: 4px;
  font-size: 0.82rem; font-weight: 800; color: #f0f0f0;
  flex-shrink: 0;
}
.h2h-pred-score { font-size: 0.82rem; font-weight: 700; color: #ccc; }
.h2h-pts { font-size: 0.72rem; font-weight: 800; color: #ff9000; }
.h2h-no-pred-txt { font-size: 0.8rem; color: #333; margin: auto; }
.h2h-match-info { text-align: center; }
.h2h-teams-sm { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.h2h-result-sm { font-size: 0.85rem; color: #ff9000; font-weight: 900; min-width: 2.5rem; text-align: center; }
.h2h-match-time { font-size: 0.68rem; color: #555; margin-top: 0.1rem; }
.h2h-lb-link { color: #555; font-size: 0.85rem; margin-left: 0.2rem; text-decoration: none; }
.h2h-lb-link:hover { color: #ff9000; }

/* ── Tournament switcher ── */
.nav-tournament-wrap { display: flex; align-items: center; }
.nav-tournament-select {
  background: #222;
  color: #aaa;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.nav-tournament-select:hover { border-color: #ff9000; color: #ff9000; }

/* ── Hamburger menu ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  margin-left: auto;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #aaa;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Prediction distribution ── */
.dist-label { font-size: 0.7rem; color: #555; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.pred-dist {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.dist-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 70px;
  max-width: 110px;
}
.dist-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: #777;
  width: 1rem;
  text-align: center;
}
.dist-mine .dist-lbl { color: #ff9000; }
.dist-bar-wrap {
  flex: 1;
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}
.dist-bar-fill {
  display: block;
  height: 100%;
  background: #3a3a3a;
  border-radius: 3px;
  min-width: 2px;
  transition: width 0.3s;
}
.dist-mine .dist-bar-fill { background: #ff9000; }
.dist-cnt {
  font-size: 0.72rem;
  color: #555;
  width: 1rem;
  text-align: right;
}
.dist-mine .dist-cnt { color: #ff9000; font-weight: 700; }

/* ── Dashboard ── */
.dash-stats-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dash-stat {
  flex: 1;
  min-width: 80px;
  background: #242424;
  border: 1px solid #333;
  border-top: 3px solid #ff9000;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: center;
}
.dash-stat-val { display: block; font-size: 1.6rem; font-weight: 900; color: #ff9000; line-height: 1; }
.dash-stat-lbl { display: block; font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dash-col { display: flex; flex-direction: column; gap: 1.2rem; }
.dash-section {
  background: #242424;
  border: 1px solid #303030;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.dash-see-all {
  margin-left: auto;
  font-size: 0.78rem;
  color: #ff9000;
  font-weight: 600;
}
.dash-see-all:hover { text-decoration: underline; }

.dash-match-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.6rem;
  border-radius: 5px;
  margin-bottom: 0.3rem;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
  color: inherit;
}
.dash-match-row:hover { background: #1f1f1f; border-color: #3a3a3a; text-decoration: none; }
.dash-match-teams { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.dash-team { font-weight: 700; flex: 1; }
.dash-team:first-child { text-align: right; }
.dash-vs { color: #444; font-size: 0.78rem; flex-shrink: 0; }
.dash-score-sm { font-weight: 900; color: #ff9000; font-size: 0.95rem; flex-shrink: 0; min-width: 3rem; text-align: center; text-shadow: 0 0 14px rgba(255,144,0,0.25); }
.dash-match-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; justify-content: flex-end; }
.dash-countdown { color: #ff9000; font-weight: 600; }

.dash-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  border-bottom: 1px solid #2a2a2a;
}
.dash-result-row:last-child { border-bottom: none; }
.dash-result-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.dash-lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.2rem;
  transition: background 0.12s;
  border: 1px solid transparent;
}
.dash-lb-row:hover { background: #1f1f1f; border-color: #333; text-decoration: none; }
.dash-lb-me { background: #2a1f0a !important; border-color: rgba(255,144,0,0.2) !important; }
.dash-lb-rank { width: 2rem; text-align: center; flex-shrink: 0; }
.dash-lb-name { flex: 1; font-weight: 700; font-size: 0.9rem; }
.dash-lb-pts { font-weight: 800; color: #ff9000; font-size: 0.95rem; flex-shrink: 0; }

/* ── Chart ── */
.chart-wrap {
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.kaavio-svg { width: 100%; min-width: 400px; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  padding: 0.75rem 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.legend-item:hover { opacity: 0.8; text-decoration: none; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-name { color: #f0f0f0; }
.legend-pts { color: #777; font-size: 0.78rem; }

/* ── Admin invite ── */
.invite-url-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  border: 1px solid #2a2a5a;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}
.invite-url-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.82rem;
  color: #90caf9;
  word-break: break-all;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.5rem;
    z-index: 150;
    border-top: 1px solid #3a3a3a;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.6rem 0;
    width: 100%;
    border-bottom: 1px solid #222;
    color: #ccc;
  }
  .nav-links a.active, .nav-links a:hover { color: #ff9000; }
  .nav-user { font-size: 1rem; padding: 0.6rem 0; color: #ff9000; }
  .btn-logout { font-size: 0.95rem; padding: 0.5rem 1rem; margin-top: 0.5rem; }

  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats-bar { gap: 0.5rem; }
  .dash-stat-val { font-size: 1.3rem; }
}

@media (max-width: 600px) {
  main { padding: 1rem 0.75rem; }
  .match-body { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .prediction-area { margin-left: 0; }
  .teams { min-width: auto; }
  .admin-match-row { flex-direction: column; align-items: flex-start; }
  .creator-profile-header { flex-direction: column; }
  .lb-hero { flex-direction: column; gap: 0.5rem; text-align: center; }
  .pred-dist { gap: 0.3rem; }
}
