:root {
  --bg: #0f172a;
  --card: #111827;
  --card2: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #22c55e;
  --blue: #38bdf8;
  --red: #ef4444;
  --yellow: #facc15;
  --border: #334155;
  --input: #020617;
  --gold: #fbbf24;
  --glass: rgba(15, 23, 42, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.28) 0, transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(34, 197, 94, 0.16) 0, transparent 26%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

header {
  padding: 30px 18px 18px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.7px;
}

header p {
  color: var(--muted);
  margin: 9px 0 0;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.card h2,
.card h3 {
  letter-spacing: -0.3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

input,
select,
button,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.85);
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
  font-weight: 800;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

button:disabled,
input:disabled,
select:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

button.secondary {
  background: linear-gradient(135deg, #475569, #334155);
}

button.danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

button.success {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

button.warning {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #111827;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  box-shadow: none;
  position: relative;
  padding: 10px 16px;
}

.tabs .tab.active,
.tabs button.tab.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22), 0 0 20px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.tabs .tab.active::after,
.tabs button.tab.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.tabs .tab.active.warning,
.tabs button.tab.active.warning {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(251, 146, 60, 0.75);
  color: #ffffff;
}

.hidden {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

th,
td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 11px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.96);
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover td {
  background: rgba(51, 65, 85, 0.25);
}

.scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.pill {
  background: #334155;
  color: #e2e8f0;
}

.status-open,
.status-upcoming {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.status-opened {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.status-locked {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.status-finished {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.30);
}

.status-pending {
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.green {
  color: var(--green);
}

.blue {
  color: var(--blue);
}

.red {
  color: var(--red);
}

.yellow {
  color: var(--yellow);
}

.status-exact {
  background: rgba(34, 197, 94, 0.18);
}

.status-outcome {
  background: rgba(56, 189, 248, 0.15);
}

.status-wrong {
  background: rgba(239, 68, 68, 0.14);
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.match-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.subtle-box {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 13px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions button {
  width: auto;
  min-width: 120px;
}

.guess-inputs {
  display: grid;
  grid-template-columns: 90px 80px 80px;
  gap: 8px;
  min-width: 260px;
}

.guess-inputs select,
.guess-inputs input {
  text-align: center;
  font-weight: 800;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin: 18px 0;
}

/* Group standings layout */
.group-card {
  margin: 28px 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.group-title {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  padding: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.72), rgba(14, 165, 233, 0.42));
  color: #ffffff;
}

.group-meta {
  text-align: center;
  padding: 9px;
  background: rgba(30, 41, 59, 0.88);
}

.group-table {
  width: 100%;
  border-collapse: collapse;
}

.group-table th {
  background: rgba(15, 23, 42, 0.92);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.group-table td {
  text-align: center;
  font-size: 16px;
}

.group-table .group-nation {
  text-align: left;
  font-size: 17px;
}

.group-table .group-pos {
  font-weight: 900;
}

.group-table .group-points {
  font-size: 20px;
}

.group-qualified td {
  background: rgba(34, 197, 94, 0.085);
}

.group-qualified .group-pos::after {
  content: ' ✅';
}

@media (max-width: 760px) {
  header {
    padding-top: 22px;
  }

  .container {
    padding: 10px;
  }

  .card {
    border-radius: 18px;
    padding: 14px;
  }

  .tabs {
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 11px 12px;
  }

  th,
  td {
    font-size: 13px;
    padding: 8px;
  }

  input,
  select,
  button,
  textarea {
    min-height: 44px;
    font-size: 15px;
  }

  .guess-inputs {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .row-actions button {
    width: 100%;
  }

  .status-badge {
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .group-title {
    font-size: 24px;
  }

  .group-table th {
    font-size: 13px;
  }

  .group-table td,
  .group-table .group-nation {
    font-size: 13px;
  }

  .group-table .group-points {
    font-size: 15px;
  }
}


/* V8.2 - Mobile prediction cards, flags and countdown */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  margin: 3px 3px 3px 0;
  font-size: 12px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
  white-space: nowrap;
}

.countdown-soon {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde68a;
}

.countdown-live {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.countdown-finished {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.mobile-match-cards {
  display: none;
}

.prediction-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.prediction-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.prediction-card-match {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.prediction-card-match span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.prediction-card-meta,
.prediction-card-lock {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.prediction-card-status {
  text-align: right;
  min-width: 108px;
}

.mobile-pick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.pick-chip {
  min-height: 46px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.pick-chip.active {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: white;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.mobile-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mobile-score-row label {
  color: var(--muted);
  font-size: 12px;
}

.mobile-score-row input {
  margin-top: 5px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.prediction-card-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
}

@media (max-width: 760px) {
  .participant-table-wrap {
    display: none;
  }

  .mobile-match-cards {
    display: block;
  }
}


/* V12 Admin dashboard polish */
.admin-dashboard .subtle-box {
  text-align: center;
}

.admin-dashboard strong {
  font-size: 28px;
  line-height: 1.2;
}

.mini-button {
  width: auto;
  min-width: 58px;
  padding: 6px 8px;
  font-size: 12px;
  margin-top: 6px;
}

.password-mask {
  letter-spacing: 2px;
  color: var(--muted);
}

@media (max-width: 650px) {
  .admin-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard strong {
    font-size: 22px;
  }
}


/* V14 Rules & Scoring page */
.rules-card {
  padding: 0;
  overflow: hidden;
}

.rules-hero {
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.95)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28)),
    url("metlife-stadium.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.rules-hero-content {
  max-width: 760px;
}

.rules-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.rules-hero h2 {
  font-size: clamp(36px, 6vw, 68px);
  margin: 14px 0 8px;
  letter-spacing: -1.5px;
}

.rules-hero p {
  color: #e2e8f0;
  font-size: 18px;
  margin: 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.rule-box {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 18px;
}

.rule-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 21px;
}

.rule-box p,
.rule-box li {
  color: #cbd5e1;
  line-height: 1.55;
}

.rule-box ul,
.rule-box ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.highlight-rule {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.55));
}

.prize-rule {
  border-color: rgba(250, 204, 21, 0.50);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.14), rgba(2, 6, 23, 0.55));
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
}

.score-row:last-child {
  border-bottom: none;
}

.score-row span {
  color: #e2e8f0;
}

.score-row strong {
  white-space: nowrap;
  color: #ffffff;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
}

.rules-footer {
  margin: 0 18px 18px;
}

@media (max-width: 800px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-hero {
    min-height: 260px;
    padding: 24px;
  }

  .rules-hero p {
    font-size: 16px;
  }
}


/* V15 navigation/order hotfix */
.tabs .tab {
  white-space: nowrap;
}


/* V16 Group winner predictions */
.group-winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.group-winner-box {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 12px;
}

.group-winner-box label {
  font-weight: 800;
  color: #e2e8f0;
}

.group-winner-status {
  margin-top: 8px;
  line-height: 1.45;
}

.admin-group-winner-box {
  border-color: rgba(250, 204, 21, 0.38);
}


/* V23 reset buttons */
button.warning { background: #ca8a04; color: #111827; }


/* V39 diagnostics panel */
.firebase-diagnostics-panel {
  margin: 14px 0;
}

.firebase-diagnostics-panel h3 {
  margin-top: 0;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.diagnostics-grid > div {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 12px;
}


/* V40 delete permanent */
#firebaseStatus { font-weight: 800; }


/* V44 Controlled Bonus Picks */
.helper-picks-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.10);
}

.bonus-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

#bonusPicksPanel.hidden {
  display: none;
}

/* ===== HOME HERO ===== */
.home-hero {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 40px 36px;
  background:
    linear-gradient(180deg, rgba(2,6,23,0.08) 0%, rgba(2,6,23,0.55) 50%, rgba(2,6,23,0.96) 100%),
    linear-gradient(100deg, rgba(14,165,233,0.18) 0%, rgba(37,99,235,0.12) 100%),
    url("metlife-stadium.jpg");
  background-size: cover;
  background-position: center 35%;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(14,165,233,0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14,165,233,0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 30%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-sub {
  font-size: 16px;
  color: #94a3b8;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.home-hero-countdown {
  margin-bottom: 24px;
}

.home-hero-countdown .countdown-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 60px;
}

.countdown-chip-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #e2e8f0;
}

.countdown-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-top: 3px;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-btn-primary {
  padding: 12px 32px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(14,165,233,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(14,165,233,0.5);
}

.home-btn-secondary {
  padding: 12px 32px;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.home-btn-secondary:hover {
  background: rgba(255,255,255,0.13);
}

@media (max-width: 600px) {
  .home-hero {
    min-height: 300px;
    padding: 28px 20px;
  }
  .home-hero-title {
    font-size: 2.4rem;
  }
  .home-btn-primary, .home-btn-secondary {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* ===== FIFA GOLD HERO UPGRADES ===== */
.home-hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.97) 100%),
    url("metlife-stadium.jpg");
  background-size: cover;
  background-position: center 30%;
}

.home-hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: #d4af37;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.home-hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0 0 6px 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.home-hero-year {
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37 0%, #f5e070 40%, #c8941a 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 0.95;
  letter-spacing: -3px;
}

.home-hero-facts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.home-hero-fact {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-hero-fact-sep {
  color: #d4af37;
  opacity: 0.6;
  font-weight: 900;
}

.home-hero-date-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f5d073;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ===== LEADERBOARD GOLD BANNER ===== */
.leaderboard-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1408 50%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding: 28px 24px 24px;
  text-align: center;
  overflow: hidden;
}

.leaderboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.leaderboard-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.leaderboard-hero-inner {
  position: relative;
  z-index: 1;
}

.leaderboard-hero-title {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #d4af37, #f5e070, #c8941a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.leaderboard-hero-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.9);
  text-transform: uppercase;
  padding: 10px 0 12px;
  position: relative;
  z-index: 1;
}

/* Top 3 row gold/silver/bronze highlighting */
#leaderboardBody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(212,175,55,0.12), transparent) !important;
  border-left: 3px solid #d4af37;
}
#leaderboardBody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(192,192,192,0.08), transparent) !important;
  border-left: 3px solid #c0c0c0;
}
#leaderboardBody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(205,127,50,0.08), transparent) !important;
  border-left: 3px solid #cd7f32;
}

@media (max-width: 600px) {
  .leaderboard-hero { padding: 20px 16px 18px; }
  .home-hero-year { letter-spacing: -1px; }
}

/* ===== LEADERBOARD FIFA-INSPIRED BANNER ===== */
.leaderboard-hero {
  background: linear-gradient(160deg, #003f8a 0%, #0050a8 45%, #002d6b 100%);
  border-bottom: 3px solid #d4af37;
  padding: 32px 24px 28px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

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

.leaderboard-hero-inner {
  position: relative;
  z-index: 1;
}

.leaderboard-hero-fifa-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  margin-bottom: 2px;
}

.leaderboard-hero-fifa-f,
.leaderboard-hero-fifa-fa {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.leaderboard-hero-trophy {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1;
  margin: 0 4px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transform: translateY(-4px);
  display: inline-block;
}

.leaderboard-hero-title {
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.leaderboard-hero-united {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d4af37;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.leaderboard-hero-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ===== LEADERBOARD FIFA UNITED 2026 BANNER ===== */
.leaderboard-hero {
  background: url("leaderboard_tilpasset_banner.png") center center / 100% 100% no-repeat;
  border-bottom: 2px solid rgba(212,175,55,0.35);
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100px;
}

.leaderboard-hero::before {
  display: none;
}

.leaderboard-hero-inner { position: relative; z-index: 1; }

.leaderboard-hero-fifa-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  margin-bottom: 4px;
}

.leaderboard-hero-fifa-f,
.leaderboard-hero-fifa-fa {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #1a56b0;
  letter-spacing: -2px;
  line-height: 1;
  font-style: italic;
}

.leaderboard-hero-trophy {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  margin: 0 4px;
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.6));
}

.leaderboard-hero-title {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.leaderboard-hero-united {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #94a3b8;
  text-transform: uppercase;
}

.leaderboard-hero-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #d4af37;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 6px;
}

/* ===== AI REVIEW PAGE ===== */
.ai-review-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1a2e 50%, #0a0a1a 100%);
  border-bottom: 1px solid rgba(139,92,246,0.3);
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-review-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.ai-review-hero-inner { position: relative; z-index: 1; }

.ai-review-title {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #a78bfa, #818cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.ai-review-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
}

.ai-review-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.ai-review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.ai-gen-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(99,102,241,0.2));
  border: 1px solid rgba(139,92,246,0.45);
  border-radius: 8px;
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.ai-gen-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(99,102,241,0.35));
  box-shadow: 0 0 16px rgba(139,92,246,0.3);
}

.ai-gen-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ai-content-box {
  min-height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.ai-placeholder {
  padding: 16px;
  color: #64748b;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
}

.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #a78bfa;
  font-size: 0.9rem;
}

.ai-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(167,139,250,0.3);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-result {
  padding: 4px 4px 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.75;
}
