:root {
  --bg: #061513;
  --bg-2: #0b2321;
  --panel: rgba(255,255,255,.075);
  --panel-2: rgba(255,255,255,.115);
  --line: rgba(255,255,255,.14);
  --text: #f6fbf7;
  --muted: #9db6ae;
  --green: #35e88c;
  --lime: #d8f05a;
  --gold: #ffd65a;
  --blue: #63cdf4;
  --danger: #ff7474;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(53,232,140,.17), transparent 31rem),
    radial-gradient(circle at 90% 4%, rgba(255,214,90,.15), transparent 26rem),
    linear-gradient(135deg, #04100f 0%, #09201f 47%, #051112 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background:
    linear-gradient(transparent, rgba(0,0,0,.32)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 42px);
  mask-image: linear-gradient(transparent, black 35%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.pitch-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: .35;
  pointer-events: none;
}
.glow-left { top: -25rem; left: -18rem; background: rgba(53,232,140,.36); }
.glow-right { top: -24rem; right: -15rem; background: rgba(255,214,90,.28); }
.stadium-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, transparent 100%);
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(5, 17, 18, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: fit-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(53,232,140,.24);
}
.brand strong { display: block; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-weight: 800; font-size: .79rem; }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.nav-pill, .ghost, .primary, .icon-btn {
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}
.nav-pill {
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
}
.nav-pill:hover, .ghost:hover, .primary:hover, .shortcut-large:hover { transform: translateY(-1px); }
.nav-pill.active {
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: transparent;
}
.nav-pill.danger { color: #ffdada; background: rgba(255,116,116,.12); border-color: rgba(255,116,116,.24); }

main {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
}
.glass-card { backdrop-filter: blur(20px); }
.hidden { display: none !important; }

.tag, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #eafff6;
  background: rgba(53,232,140,.13);
  border: 1px solid rgba(53,232,140,.26);
  font-weight: 900;
  font-size: .82rem;
  margin-bottom: 30px;
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: .88; margin-top: 18px; max-width: 820px; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: .96; }
h3 { font-size: clamp(1.35rem, 2.8vw, 2rem); }
p { margin: 0; color: var(--muted); line-height: 1.65; }
small { color: var(--muted); }

.auth-shell {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 26px;
  align-items: center;
  padding: 42px 0;
}
.auth-hero {
  min-height: 560px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 50% 120%, rgba(53,232,140,.36), transparent 42%),
    linear-gradient(transparent 0 70%, rgba(255,255,255,.08) 70% 71%, transparent 71% 100%),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255,255,255,.04) 53px 54px);
}
.auth-hero::after {
  content: "⚽";
  position: absolute;
  right: 42px;
  top: 48px;
  font-size: clamp(120px, 20vw, 240px);
  opacity: .12;
  transform: rotate(-16deg);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero p { max-width: 620px; margin-top: 18px; font-size: 1.05rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats span {
  padding: 12px 15px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-weight: 800;
}
.hero-stats b { color: var(--text); }
.auth-card { padding: 22px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  padding: 5px;
  margin-bottom: 18px;
}
.auth-tabs button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 12px 10px;
  font-weight: 900;
}
.auth-tabs button.active { color: #061513; background: linear-gradient(135deg, var(--green), var(--gold)); }
.auth-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #def9ef; font-weight: 900; font-size: .92rem; }
input, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}
input:focus, select:focus { border-color: rgba(53,232,140,.78); box-shadow: 0 0 0 4px rgba(53,232,140,.11); }
select { color-scheme: dark; }
.primary {
  padding: 13px 17px;
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: 0 14px 34px rgba(53,232,140,.2);
}
.primary.small { padding: 10px 12px; border-radius: 13px; }
.ghost {
  padding: 12px 15px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
}
.ghost.small { padding: 9px 12px; border-radius: 13px; }
.ghost.full { width: 100%; }
.icon-btn {
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hint { color: var(--muted); font-size: .88rem; }

.app-shell { padding: 30px 0 92px; }
.view-section { display: none; animation: fadeIn .2s ease both; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  padding: clamp(24px, 4vw, 40px);
}
.home-hero p { margin-top: 14px; max-width: 820px; }
.title-avatar {
  width: 56px;
  height: 56px;
  margin-right: 12px;
  vertical-align: middle;
}
.score-tile, .progress-chip {
  min-width: 170px;
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  background: rgba(0,0,0,.23);
  border: 1px solid rgba(255,255,255,.12);
}
.score-tile span, .progress-chip small { display: block; color: var(--muted); font-weight: 900; }
.score-tile strong, .progress-chip span { font-family: "Space Grotesk"; font-size: 2rem; font-weight: 900; }
.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); font-weight: 900; }
.stat-card strong { display: block; margin: 5px 0; font-family: "Space Grotesk"; font-size: 2rem; }
.stat-card small { font-weight: 700; }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.shortcut-large {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  text-align: left;
  user-select: none;
}
.shortcut-large.highlight {
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: transparent;
}
.shortcut-large.highlight small { color: rgba(6,21,19,.7); }
.shortcut-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(255,255,255,.12);
}
.shortcut-large span { color: var(--muted); font-weight: 900; }
.shortcut-large.highlight span { color: rgba(6,21,19,.68); }
.shortcut-large strong { display: block; font-family: "Space Grotesk"; font-size: 1.45rem; }
.home-columns {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 16px;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 16px;
}
.page-title p { margin-top: 10px; }
.panel { padding: clamp(18px, 3vw, 28px); }
.compact-panel { min-height: 100%; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head.compact h3 { font-size: 1.45rem; }
.panel-head p { margin-top: 5px; }
.match-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.match-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at top right, rgba(255,214,90,.12), transparent 42%),
    rgba(0,0,0,.21);
  overflow: hidden;
  position: relative;
}
.match-card.has-prediction { border-color: rgba(53,232,140,.35); }
.match-card.locked { opacity: .76; }
.match-meta {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}
.stage { color: var(--green); }
.date { text-align: right; }
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 15px 0 11px;
}
.team { display: grid; gap: 6px; min-width: 0; }
.team.away { text-align: right; }
.team .flag { font-size: 2rem; line-height: 1; }
.team strong { font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.versus {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--gold);
  font-weight: 1000;
  background: rgba(255,255,255,.085);
}
.venue { color: var(--muted); font-size: .87rem; margin-bottom: 13px; min-height: 34px; }
.prediction-form {
  display: grid;
  grid-template-columns: 64px auto 64px 1fr;
  gap: 8px;
  align-items: center;
}
.prediction-form input { text-align: center; padding: 10px; }
.prediction-form span { color: var(--muted); text-align: center; font-weight: 900; }
.prediction-form button { padding: 11px 12px; }
.prediction-status { min-height: 42px; color: var(--muted); font-size: .86rem; margin: 10px 0; }
.predictions-list { display: grid; gap: 8px; margin-top: 10px; }
.prediction-row, .leader-row, .admin-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
}
.prediction-row { grid-template-columns: 1fr auto auto; }
.prediction-row.single { grid-template-columns: 1fr; }
.prediction-row span, .leader-row span { color: var(--muted); }

.leaderboard { display: grid; gap: 10px; }
.leader-row { grid-template-columns: auto 1fr auto auto; }
.leader-row.compact-row { grid-template-columns: auto 1fr auto; }
.compact-row .exact { display: none; }
.rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(255,255,255,.09);
  font-weight: 1000;
}
.leader-user strong { display: flex; align-items: center; gap: 8px; }
.points { color: var(--green); font-family: "Space Grotesk"; font-size: 1.55rem; font-weight: 900; white-space: nowrap; }
.exact { font-size: .9rem; color: var(--muted); }
.avatar-img, .avatar-emoji {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
}
.leader-avatar, .mini-avatar { width: 30px; height: 30px; font-size: 1rem; }
.profile-avatar-img { width: 100%; height: 100%; border-radius: 28px; }

.next-match-preview { display: grid; gap: 14px; }
.next-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk";
  font-size: 1.3rem;
  font-weight: 900;
}
.next-teams span:last-child { text-align: right; }
.next-teams b { color: var(--gold); font-size: .95rem; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.next-info { display: grid; gap: 6px; color: var(--muted); }
.next-info strong { color: var(--text); }

.profile-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 880px;
}
.profile-avatar-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(0,0,0,.19);
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.profile-avatar {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 32px;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(53,232,140,.22), rgba(255,214,90,.13));
  border: 1px solid rgba(255,255,255,.15);
}
.profile-forms { display: grid; gap: 16px; }
.profile-form, .avatar-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.account-line {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.1);
}
.account-line span { color: var(--muted); font-weight: 900; }
.account-line strong { overflow-wrap: anywhere; }
.file-drop input { padding: 11px; }
.profile-actions { display: flex; gap: 10px; }

.admin-list { display: grid; gap: 10px; }
.admin-row { grid-template-columns: minmax(220px, 1fr) 70px 70px minmax(160px, auto) auto; }
.admin-row input { text-align: center; padding: 10px; }
.admin-row .winner-select { min-width: 160px; padding: 10px 12px; }
.admin-title { color: var(--text); font-weight: 900; }
.admin-title small { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; }
.empty-state { padding: 18px; }

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  padding: 11px;
}
.mobile-menu-btn span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}
body.menu-open { overflow: hidden; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(5px);
}
.mobile-drawer {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid var(--line);
  background: radial-gradient(circle at top right, rgba(53,232,140,.18), transparent 18rem), rgba(6,21,19,.97);
  box-shadow: -24px 0 80px rgba(0,0,0,.55);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.drawer-head strong { display: block; font-family: "Space Grotesk"; font-size: 1.25rem; }
.drawer-head small { display: block; color: var(--muted); font-weight: 800; }
.drawer-link {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  text-align: left;
  font-weight: 950;
}
.drawer-link.hot, .drawer-link.active {
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: transparent;
}
.drawer-link.danger { color: #ffd9d9; background: rgba(255,116,116,.12); border-color: rgba(255,116,116,.24); }
.bottom-nav { display: none; }
.toast {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6,21,19,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.standings-panel { display: grid; gap: 20px; }
.standings-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.standings-toolbar h3 { margin-bottom: 6px; }
.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.group-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(0,0,0,.16);
}
.group-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(53,232,140,.13), rgba(255,214,90,.08));
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.group-card-head h3 { font-size: 1.55rem; margin-bottom: 4px; }
.group-card-head span { color: var(--muted); font-weight: 800; }
.group-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255,214,90,.12);
  border: 1px solid rgba(255,214,90,.22);
  font-size: .78rem;
  font-weight: 950;
}
.group-status.complete {
  color: #061513;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: transparent;
}
.standings-table-wrap { overflow-x: auto; }
.standings-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .88rem;
}
.standings-table th,
.standings-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
  white-space: nowrap;
}
.standings-table th {
  color: var(--muted);
  background: rgba(255,255,255,.055);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.standings-table tbody tr:last-child td { border-bottom: 0; }
.standings-table .rank-cell { color: var(--muted); font-weight: 950; }
.standings-table .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-width: 220px;
}
.flag-inline { width: 28px; text-align: center; font-size: 1.12rem; }
.qualified-row { background: rgba(53,232,140,.07); }
.third-row { background: rgba(255,214,90,.055); }
.qual-badge {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
}
.qual-badge.direct { color: #061513; background: var(--green); }
.qual-badge.third { color: #061513; background: var(--gold); }
.gd-cell, .pts-cell { font-weight: 950; }
.pts-cell { color: var(--gold); font-size: 1rem; }
.group-fixtures {
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}
.group-fixtures summary {
  cursor: pointer;
  padding: 13px 18px;
  color: var(--text);
  font-weight: 950;
}
.group-fixtures-list { display: grid; gap: 8px; padding: 0 18px 18px; }
.group-fixture {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(0,0,0,.12);
}
.group-fixture small { grid-column: 1 / -1; }
.fixture-teams { font-weight: 850; }
.fixture-teams b { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.fixture-score strong {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 10px;
  color: #061513;
  background: var(--gold);
}
.fixture-date { color: var(--muted); font-weight: 850; }

@media (max-width: 1160px) {
  .matches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  main { width: min(100% - 24px, 1260px); }
  .auth-shell { grid-template-columns: 1fr; padding-top: 22px; }
  .auth-hero { min-height: 420px; }
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: inline-grid; align-content: center; }
  .home-grid, .home-columns, .dashboard-cards { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; }
  .score-tile { text-align: left; }
  .page-title { align-items: stretch; flex-direction: column; }
  .match-toolbar { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-avatar-box { justify-items: start; text-align: left; }
  .profile-form, .avatar-form { grid-template-columns: 1fr; }
  .profile-actions { flex-wrap: wrap; }
  .bottom-nav {
    position: fixed;
    z-index: 24;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6,21,19,.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0,0,0,.48);
  }
  .bottom-nav button {
    border: 0;
    border-radius: 16px;
    padding: 9px 4px;
    color: var(--muted);
    background: transparent;
    font-size: .68rem;
    font-weight: 900;
  }
  .bottom-nav button span { display: block; font-size: 1.08rem; margin-bottom: 2px; }
  .bottom-nav button.active { color: #061513; background: linear-gradient(135deg, var(--green), var(--gold)); }
  .toast { bottom: 92px; left: 12px; right: 12px; max-width: none; }
}
@media (max-width: 620px) {
  main { width: min(100% - 20px, 1260px); }
  .topbar { padding: 10px 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand small { display: none; }
  .auth-hero { min-height: 390px; padding: 24px 20px; }
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.55rem; }
  .panel, .page-title, .home-hero { border-radius: 22px; }
  .stat-card { padding: 17px; }
  .match-toolbar { grid-template-columns: 1fr; }
  .matches-grid { grid-template-columns: 1fr; }
  .match-card { padding: 15px; }
  .prediction-form { grid-template-columns: 1fr auto 1fr; }
  .prediction-form button { grid-column: 1 / -1; }
  .leader-row { grid-template-columns: auto 1fr auto; }
  .exact { display: none; }
  .admin-row { grid-template-columns: 1fr 62px 62px; }
  .admin-row .winner-select { grid-column: 1 / -1; width: 100%; }
  .admin-row button { grid-column: 1 / -1; }
  .standings-toolbar { flex-direction: column; }
  .group-card-head { flex-direction: column; }
  .qual-badge { display: none; }
  .next-teams { grid-template-columns: 1fr; text-align: center; }
  .next-teams span:last-child { text-align: center; }
  .profile-avatar { width: 118px; height: 118px; border-radius: 28px; font-size: 3rem; }
}


.admin-tools-panel { display: grid; gap: 18px; }
.admin-tool-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.admin-tool-head h3 { margin: 0 0 6px; font-size: 1.35rem; }
.admin-tool-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.admin-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 920px) {
  .admin-create-form { grid-template-columns: 1fr; }
}
