@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --ink: #18201c;
  --muted: #66736b;
  --line: #dbe1d6;
  --panel: #ffffff;
  --panel-soft: #eef4ea;
  --green: #0f7c56;
  --green-dark: #09583e;
  --red: #b23939;
  --amber: #b87916;
  --blue: #27699c;
  --shadow: 0 18px 50px rgba(24, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 260px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(15, 124, 86, 0.26), rgba(24, 32, 28, 0) 220px),
    #14211a;
  color: #f7fbf5;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #e9f6d8, #ffffff);
  color: #0f5138;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.settings-panel h2 {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.15;
}

.brand p,
.settings-panel label {
  color: #b8c5bc;
  font-size: 13px;
}

.nav-tabs,
.button-stack {
  display: grid;
  gap: 8px;
}

.button-stack a {
  text-decoration: none;
}

.nav-tab,
.secondary-button,
.danger-button,
.secondary-light-button,
.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbf5;
  padding: 11px 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-tab:hover,
.secondary-button:hover,
.danger-button:hover,
.secondary-light-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

.primary-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  text-align: center;
}

.secondary-light-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.nav-tab.active {
  background: #e9f6d8;
  color: #0f5138;
  border-color: #e9f6d8;
}

.settings-panel {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.settings-panel h2 {
  font-size: 15px;
}

.money-input {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
}

.money-input input {
  width: 100%;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: #fff;
  outline: none;
}

.settings-panel p {
  margin: 0;
  color: #d7e2d9;
  font-size: 13px;
}

.file-button {
  display: block;
}

#importInput {
  display: none;
}

.danger-button {
  border-color: rgba(255, 123, 123, 0.35);
  color: #ffd5d5;
}

.main {
  min-width: 0;
  padding: 28px 28px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 0 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eyebrow {
  color: var(--green);
  font-weight: 760;
  text-transform: uppercase;
  font-size: 12px;
}

.topbar h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

.status-pill {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(24, 32, 28, 0.06);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.login-panel {
  margin-bottom: 16px;
}

.metric,
.panel,
.player-card,
.group-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
}

.metric span,
.player-stat span,
.fixture-subtext,
.compact-list small,
.group-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.live-panel,
.upcoming-panel {
  margin-bottom: 16px;
}

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

.live-score-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(39, 105, 156, 0.12), rgba(255, 255, 255, 0) 90px),
    #ffffff;
}

.score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

.score-line strong {
  min-width: 28px;
  text-align: right;
  font-size: 22px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  font-size: 18px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
}

.rank {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  color: var(--green-dark);
  font-weight: 800;
}

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

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

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 140px 160px;
  gap: 10px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0;
  background: rgba(244, 246, 243, 0.92);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid input,
.form-grid select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.form-grid button {
  min-height: 42px;
}

.search-input,
.toolbar select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fixture-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.fixture-table th,
.fixture-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.fixture-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fbf7;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.fixture-table tr:last-child td {
  border-bottom: 0;
}

.fixture-table tbody tr {
  transition: background 140ms ease;
}

.fixture-table tbody tr:hover {
  background: #f7faf4;
}

.team-line {
  font-weight: 720;
  margin: 3px 0;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
}

.team-badge img,
.team-initials {
  width: 30px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(24, 32, 28, 0.14);
  background: #f4f6f3;
  object-fit: cover;
  box-shadow: 0 5px 12px rgba(24, 32, 28, 0.08);
}

.team-badge:not(.placeholder) .team-initials {
  display: none;
}

.team-badge span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-badge.compact {
  gap: 6px;
  font-size: 12px;
}

.team-badge.compact img,
.team-badge.compact .team-initials {
  width: 22px;
  height: 16px;
}

.team-badge.flag-failed img {
  display: none;
}

.team-badge.flag-failed .team-initials {
  display: grid;
}

.team-initials {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  background: #e9f6d8;
}

.placeholder .team-initials {
  color: var(--blue);
  background: #e7f0f8;
}

.mini-teams,
.match-card-teams {
  display: grid;
  gap: 6px;
}

.score-pair {
  display: grid;
  grid-template-columns: 48px 48px;
  gap: 6px;
}

.score-pair input,
.fixture-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px;
}

.fixture-table select {
  min-width: 92px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
}

.admin-match {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 72px 72px 110px 72px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-match:last-child {
  border-bottom: 0;
}

.admin-match input,
.admin-match select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
}

.admin-match small,
.compact-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.player-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.player-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(15, 124, 86, 0.14), rgba(39, 105, 156, 0.12));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.player-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.player-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.group-card {
  padding: 16px;
}

.group-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.group-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.group-card li {
  margin: 5px 0;
  list-style: none;
}

.tournament-panel {
  margin-bottom: 16px;
}

.tournament-fixture-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.tournament-fixture-card,
.group-table-card,
.bracket-match {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tournament-fixture-card {
  padding: 14px;
}

.tournament-fixture-card.is-final {
  background: linear-gradient(180deg, rgba(15, 124, 86, 0.08), rgba(255, 255, 255, 0) 84px), #fff;
}

.fixture-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.34fr);
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.fixture-status {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.fixture-status span {
  color: var(--muted);
  font-size: 12px;
}

.group-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.group-table-card {
  overflow: hidden;
}

.group-table-card h3 {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fbf7;
}

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

.standings-table th,
.standings-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 13px;
}

.standings-table th:first-child,
.standings-table td:first-child {
  text-align: left;
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

.qualifier-row {
  background: rgba(15, 124, 86, 0.06);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(250px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 10px;
}

.bracket-round {
  position: relative;
  min-width: 250px;
}

.bracket-round:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 68px;
  right: -11px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.bracket-round-title {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 10px 0;
  background: var(--paper);
}

.bracket-round-title h3 {
  margin: 0;
  font-size: 15px;
  color: var(--green-dark);
}

.bracket-round-title span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.bracket-match-list {
  display: grid;
  gap: 14px;
}

.bracket-match {
  position: relative;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fbfcfa);
  box-shadow: 0 10px 28px rgba(9, 21, 16, 0.05);
}

.bracket-round:not(:last-child) .bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 18px;
  border-top: 1px solid var(--line);
}

.bracket-match.is-final {
  border-color: rgba(15, 124, 86, 0.36);
  background: linear-gradient(180deg, rgba(233, 246, 216, 0.58), #fff 90px);
}

.bracket-teams {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.bracket-teams > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-radius: 8px;
  background: #f8faf6;
}

.bracket-match-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.bracket-match-footer strong {
  color: var(--green-dark);
  text-align: right;
}

.winner-team {
  color: var(--green-dark);
  font-weight: 800;
}

.match-board-panel {
  margin-top: 0;
}

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

.match-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(233, 246, 216, 0.52), rgba(255, 255, 255, 0) 80px),
    #ffffff;
}

.match-card-meta,
.match-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.match-card-teams {
  margin: 12px 0;
}

.versus {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding-left: 39px;
}

.match-card-footer strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-grid,
  .dashboard-grid,
  .player-grid,
  .match-board,
  .live-score-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar {
    display: grid;
  }

  .nav-tabs,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
  .admin-match,
  .fixture-card-body {
    grid-template-columns: 1fr;
  }

  .fixture-status {
    justify-items: start;
    text-align: left;
  }
}

/* Modern dark portfolio-inspired redesign */
:root {
  color-scheme: dark;
  --bg: #030305;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(15, 15, 18, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --green: #34d399;
  --green-dark: #6ee7b7;
  --red: #fb7185;
  --amber: #fb923c;
  --blue: #a78bfa;
  --orange: #fb923c;
  --violet: #c4b5fd;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --glass: rgba(18, 18, 22, 0.72);
  --glass-strong: rgba(24, 24, 30, 0.88);
}

html {
  background: #000;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(251, 146, 60, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(167, 139, 250, 0.22), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgba(52, 211, 153, 0.12), transparent 26rem),
    linear-gradient(180deg, #050507 0%, #08080b 45%, #000 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 10%, black, transparent 72%);
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  top: 16px;
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    rgba(12, 12, 16, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  padding: 8px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.98), rgba(196, 181, 253, 0.92));
  color: #050505;
  box-shadow: 0 20px 52px rgba(251, 146, 60, 0.22);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.brand h1,
.topbar h2,
.panel h3,
.settings-panel h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.035em;
}

.brand h1 {
  color: #fff;
  font-size: 17px;
}

.brand p,
.settings-panel label,
.settings-panel p {
  color: var(--muted);
}

.nav-tabs {
  gap: 9px;
}

.nav-tab,
.secondary-button,
.danger-button,
.secondary-light-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe4f0;
  padding: 11px 13px;
  text-decoration: none;
  box-shadow: none;
}

.nav-tab svg,
.secondary-button svg,
.danger-button svg,
.secondary-light-button svg,
.primary-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.15;
  flex: 0 0 auto;
}

.nav-tab:hover,
.secondary-button:hover,
.danger-button:hover,
.secondary-light-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.085);
}

.nav-tab.active {
  background: #fff;
  color: #050505;
  border-color: #fff;
}

.primary-button {
  justify-content: center;
  border-color: rgba(251, 146, 60, 0.6);
  background: linear-gradient(135deg, #fb923c, #c4b5fd);
  color: #08080b;
  font-weight: 800;
}

.secondary-light-button {
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.danger-button {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.34);
}

.settings-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.main {
  padding: 26px clamp(18px, 3vw, 42px) 46px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px 0 18px;
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.32em;
}

.topbar h2 {
  color: #fff;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.95;
}

.status-pill {
  border-color: var(--line);
  background: rgba(12, 12, 16, 0.74);
  color: #cbd5e1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.panel,
.metric,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match,
.compact-item,
.admin-match {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--glass);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match {
  border-radius: 26px;
}

.panel {
  overflow: hidden;
}

.panel-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.panel-heading h3 {
  color: #fff;
}

.panel-heading span,
.fixture-subtext,
.match-card-meta,
.match-card-footer,
.fixture-status span,
.bracket-match-footer,
.empty-state {
  color: var(--muted);
}

.metric {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--violet), transparent);
  opacity: 0.75;
}

.metric span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.metric strong {
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
}

input,
select {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
  outline: none;
}

input::placeholder {
  color: #64748b;
}

select option {
  color: #111827;
}

.search-input,
.toolbar select,
.form-grid input,
.form-grid select {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.toolbar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(16px);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.fixture-table th,
.standings-table th {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.fixture-table td,
.standings-table td,
.fixture-table th,
.standings-table th {
  border-color: rgba(255, 255, 255, 0.08);
}

.fixture-table tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.team-badge {
  color: #f8fafc;
}

.team-badge img,
.team-initials {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.team-initials {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.team-badge.placeholder .team-initials {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.92), rgba(167, 139, 250, 0.92));
  color: #050505;
}

.live-score-card,
.match-card,
.tournament-fixture-card.is-final,
.bracket-match.is-final {
  background:
    radial-gradient(circle at 18% 0%, rgba(52, 211, 153, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--glass);
}

.score-line,
.roadmap-teams > div,
.bracket-teams > div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.fixture-status strong,
.match-card-footer strong,
.bracket-match-footer strong,
.winner-team,
.money-positive {
  color: var(--green);
}

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

.leader-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.rank {
  background: linear-gradient(135deg, #fb923c, #c4b5fd);
  color: #050505;
}

.player-card h3 {
  color: #fff;
}

.player-stat {
  border-color: rgba(255, 255, 255, 0.08);
}

.player-stat span {
  color: var(--muted);
}

.group-table-card h3,
.bracket-round-title {
  background: rgba(255, 255, 255, 0.035);
}

.qualifier-row {
  background: rgba(52, 211, 153, 0.1);
}

.roadmap {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.bracket-round:not(:last-child)::after,
.bracket-round:not(:last-child) .bracket-match::after {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.login-panel {
  border-color: rgba(251, 146, 60, 0.22);
}

.admin-shell .topbar h2::after,
#dashboardView::before {
  content: "";
  display: block;
  width: 96px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--violet), var(--green));
}

#dashboardView::before {
  width: 100%;
  height: 1px;
  margin: 0 0 18px;
  opacity: 0.55;
}

@media (max-width: 1050px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    margin: 14px;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    position: static;
  }

  .toolbar {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .topbar h2 {
    font-size: 42px;
  }

  .nav-tabs,
  .toolbar {
    grid-template-columns: 1fr;
  }
}

/* FIFA World Cup 2026 inspired visual identity */
:root {
  color-scheme: dark;
  --bg-primary: #050816;
  --bg-secondary: #0d1022;
  --bg-card: rgba(22, 27, 48, 0.75);
  --fifa-gold: #f7b500;
  --fifa-gold-light: #ffd45e;
  --fifa-purple: #6b4eff;
  --fifa-purple-light: #8b73ff;
  --fifa-cyan: #00e5ff;
  --fifa-teal: #00ffc8;
  --text-primary: #ffffff;
  --text-secondary: #a8b0d3;
  --success: #00e676;
  --danger: #ff5252;
  --bg: var(--bg-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: rgba(255, 255, 255, 0.08);
  --panel: var(--bg-card);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --green: var(--success);
  --green-dark: var(--fifa-teal);
  --red: var(--danger);
  --amber: var(--fifa-gold);
  --blue: var(--fifa-cyan);
  --orange: var(--fifa-gold);
  --violet: var(--fifa-purple-light);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  --glass: var(--bg-card);
  --glass-strong: rgba(22, 27, 48, 0.9);
}

body {
  background:
    radial-gradient(circle at top left, rgba(247, 181, 0, 0.12), transparent 35%),
    radial-gradient(circle at top right, rgba(107, 78, 255, 0.15), transparent 40%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.1), transparent 42%),
    linear-gradient(180deg, #050816 0%, #090c1c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 255, 255, 0.16), transparent 13rem),
    radial-gradient(circle at 86% 3%, rgba(255, 255, 255, 0.14), transparent 14rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.018), transparent);
  background-size: auto;
  opacity: 0.72;
  mask-image: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.brand h1,
.brand-mark,
.topbar h2,
.panel h3,
.settings-panel h2,
.metric strong,
.fixture-table td:first-child strong,
.match-card-meta strong,
.group-table-card h3,
.bracket-round-title h3,
.player-card h3 {
  font-family: "Bebas Neue", Inter, sans-serif;
  letter-spacing: 0.04em;
}

.sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(247, 181, 0, 0.15), transparent 16rem),
    linear-gradient(180deg, rgba(13, 16, 34, 0.94), rgba(5, 8, 22, 0.88));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.brand-mark {
  border: 1px solid rgba(255, 212, 94, 0.55);
  background: linear-gradient(135deg, var(--fifa-gold), var(--fifa-gold-light));
  color: #161102;
  box-shadow: 0 0 32px rgba(247, 181, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand h1 {
  font-size: 21px;
}

.nav-tab {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.nav-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
  color: var(--text-primary);
  border-color: rgba(247, 181, 0, 0.28);
  background: linear-gradient(90deg, rgba(247, 181, 0, 0.25), rgba(107, 78, 255, 0.25));
}

.nav-tab.active::before {
  background: var(--fifa-gold);
  box-shadow: 0 0 16px rgba(247, 181, 0, 0.82);
}

.eyebrow {
  color: var(--fifa-gold);
}

.topbar h2 {
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: 0.035em;
  text-shadow: 0 0 26px rgba(0, 229, 255, 0.16);
}

.panel,
.metric,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match,
.compact-item,
.admin-match,
.table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--bg-card);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.panel,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match,
.table-wrap {
  border-radius: 22px;
}

.panel-heading {
  position: relative;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.panel-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, var(--fifa-gold), transparent);
}

.panel-heading h3 {
  font-size: 28px;
  color: var(--text-primary);
}

.metric {
  padding-top: 18px;
  animation: cardIn 420ms ease both;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fifa-gold), var(--fifa-gold-light));
  box-shadow: 0 0 18px rgba(247, 181, 0, 0.35);
}

.metric::after {
  display: none;
}

.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metric-label svg {
  width: 18px;
  height: 18px;
  color: var(--fifa-gold-light);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 44px;
  line-height: 0.9;
  animation: scorePop 520ms ease both;
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #f7b500, #ffd45e);
  color: #1a1300;
}

.primary-button:hover,
.secondary-light-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-light-button,
.secondary-button {
  border-color: rgba(255, 255, 255, 0.1);
}

.match-card,
.live-score-card,
.tournament-fixture-card,
.bracket-match {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.match-card::before,
.live-score-card::before,
.tournament-fixture-card::before,
.bracket-match::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fifa-gold), var(--fifa-cyan), transparent);
  opacity: 0.78;
}

.match-card:hover,
.live-score-card:hover,
.tournament-fixture-card:hover,
.bracket-match:hover,
.player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 181, 0, 0.24);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.52), 0 0 24px rgba(247, 181, 0, 0.08);
}

.match-card-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-card-meta span:first-child,
.fixture-table td:first-child strong {
  color: var(--fifa-gold-light);
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.match-card-teams {
  display: grid;
  gap: 8px;
}

.team-badge {
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.team-badge img {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(247, 181, 0, 0.34);
}

.team-badge.compact img {
  width: 24px;
  height: 18px;
}

.team-initials {
  border: 1px solid rgba(247, 181, 0, 0.28);
  background: rgba(247, 181, 0, 0.12);
  color: var(--fifa-gold-light);
}

.versus {
  width: max-content;
  margin: 1px 0 1px 40px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fifa-cyan);
}

.match-chip-row,
.player-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.match-chip,
.player-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid rgba(247, 181, 0, 0.18);
  border-radius: 999px;
  background: rgba(247, 181, 0, 0.08);
  color: var(--fifa-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-chip:nth-child(2) {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.08);
  color: var(--fifa-cyan);
}

.match-chip:nth-child(3) {
  border-color: rgba(0, 255, 200, 0.2);
  background: rgba(0, 255, 200, 0.08);
  color: var(--fifa-teal);
}

.score-line,
.bracket-teams > div {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.score-line strong,
.bracket-teams strong,
.fixture-table td:nth-child(4) strong {
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 26px;
  color: var(--fifa-gold-light);
  letter-spacing: 0.06em;
}

.live-score-card .score-line strong {
  animation: scorePulse 1.6s ease-in-out infinite;
}

.live-ticker {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 13px;
}

.ticker-item strong {
  color: var(--fifa-gold-light);
}

.ticker-item em {
  color: var(--fifa-cyan);
  font-style: normal;
}

.fixture-table tbody tr:nth-child(even),
.standings-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.fixture-table tbody tr:hover,
.standings-table tbody tr:hover {
  background: rgba(247, 181, 0, 0.1);
}

.fixture-table tbody tr:has(select:not(:disabled):focus),
.fixture-table tbody tr:has(select:not(:disabled):hover) {
  background: rgba(247, 181, 0, 0.15);
}

.fixture-table th,
.standings-table th {
  color: var(--fifa-gold-light);
  letter-spacing: 0.09em;
}

.qualifier-row {
  background: rgba(0, 230, 118, 0.09);
}

.rank {
  background: linear-gradient(135deg, var(--fifa-gold), var(--fifa-gold-light));
  box-shadow: 0 0 18px rgba(247, 181, 0, 0.2);
}

.player-badge {
  border-color: rgba(139, 115, 255, 0.22);
  background: rgba(107, 78, 255, 0.12);
  color: #d9d1ff;
}

.money-positive,
.winner-team,
.fixture-status strong,
.match-card-footer strong,
.bracket-match-footer strong {
  color: var(--success);
}

.money-negative {
  color: var(--danger);
}

.status-pill {
  border-color: rgba(0, 229, 255, 0.16);
  background: rgba(0, 229, 255, 0.07);
  color: #dffbff;
}

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

@keyframes scorePop {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scorePulse {
  0%, 100% {
    text-shadow: 0 0 0 rgba(247, 181, 0, 0);
  }
  50% {
    text-shadow: 0 0 16px rgba(247, 181, 0, 0.42);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Apple-inspired minimal theme */
:root {
  color-scheme: light;
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --fifa-gold: #0071e3;
  --fifa-gold-light: #2997ff;
  --fifa-purple: #86868b;
  --fifa-purple-light: #6e6e73;
  --fifa-cyan: #0071e3;
  --fifa-teal: #34c759;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --success: #248a3d;
  --danger: #d70015;
  --bg: var(--bg-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: rgba(0, 0, 0, 0.1);
  --panel: var(--bg-card);
  --panel-soft: rgba(0, 0, 0, 0.035);
  --green: var(--success);
  --green-dark: var(--success);
  --red: var(--danger);
  --amber: var(--fifa-gold);
  --blue: var(--fifa-gold);
  --orange: var(--fifa-gold);
  --violet: var(--fifa-purple);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.94);
}

html {
  background: #f5f5f7;
}

body {
  background: #f5f5f7;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after,
.admin-shell .topbar h2::after,
#dashboardView::before,
.match-card::before,
.live-score-card::before,
.tournament-fixture-card::before,
.bracket-match::before,
.panel-heading::after,
.metric::before {
  display: none;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 44px;
  margin: 0;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(250, 250, 252, 0.86);
  color: #1d1d1f;
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  padding: 0;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: #1d1d1f;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: -0.02em;
}

.brand h1,
.brand p,
.topbar h2,
.panel h3,
.settings-panel h2,
.metric strong,
.fixture-table td:first-child strong,
.match-card-meta span:first-child,
.group-table-card h3,
.bracket-round-title h3,
.player-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
  letter-spacing: -0.035em;
}

.brand h1 {
  max-width: 172px;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand p,
.settings-panel h2,
.nav-tab svg,
.secondary-button svg,
.danger-button svg,
.secondary-light-button svg,
.primary-button svg,
.metric-label svg {
  display: none;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.nav-tab,
.secondary-button,
.danger-button,
.secondary-light-button,
.primary-button {
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(29, 29, 31, 0.82);
  padding: 7px 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.nav-tab::before {
  display: none;
}

.nav-tab:hover,
.secondary-button:hover,
.danger-button:hover,
.secondary-light-button:hover,
.primary-button:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.nav-tab.active {
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

.profile-nav-tab {
  background: #0071e3;
  color: #ffffff;
}

.profile-nav-tab:hover,
.profile-nav-tab.active {
  background: #0077ed;
  color: #ffffff;
}

.settings-panel {
  justify-self: end;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-panel p {
  max-width: 150px;
  overflow: hidden;
  color: rgba(29, 29, 31, 0.68);
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-stack {
  display: flex;
}

.secondary-button {
  color: #0071e3;
}

.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px 56px;
}

.topbar {
  position: static;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.eyebrow {
  margin-bottom: 7px;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.topbar h2 {
  color: #1d1d1f;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: none;
}

.topbar-actions {
  gap: 8px;
}

.server-switch {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  padding: 0 34px 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.command-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.command-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
}

.bet-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.score-prediction {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  align-items: center;
  gap: 6px;
}

.score-prediction input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  padding: 6px 8px;
}

.pick-chip small {
  display: block;
  margin-top: 2px;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 600;
}

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

.rule-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #f5f5f7;
  padding: 16px;
}

.rule-card strong {
  display: block;
  margin-bottom: 6px;
}

.rule-card p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.45;
}

.profile-page-form {
  display: grid;
  gap: 22px;
}

.prediction-editor {
  display: grid;
  gap: 10px;
}

.prediction-editor h4 {
  margin: 0;
  font-size: 18px;
}

.prediction-editor p {
  margin: 0;
  color: #6e6e73;
}

.prediction-lock-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.prediction-lock-tag.is-open {
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
}

.prediction-lock-tag.is-locked {
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
}

.prediction-fieldset {
  position: relative;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #f5f5f7;
  padding: 14px;
}

.prediction-fieldset h5 {
  margin: 0;
  font-size: 14px;
}

.prediction-fieldset.has-lock-tag {
  padding-top: 44px;
}

.prediction-fieldset .prediction-lock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
}

.golden-grid,
.knockout-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.supporter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.player-predictions {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 10px;
}

.player-predictions summary {
  cursor: pointer;
  color: #0071e3;
  font-weight: 700;
}

.player-predictions p {
  margin: 4px 0 10px;
  color: #6e6e73;
}

.prediction-tables {
  display: grid;
  gap: 18px;
}

.prediction-tables h4 {
  margin: 0 0 8px;
}

.player-grid {
  align-items: stretch;
}

.flip-card {
  min-height: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.flip-card:hover {
  transform: none;
}

.flip-card:focus-visible .flip-card-inner {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
}

.flip-card-inner {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  transition: transform 320ms ease;
  filter: drop-shadow(0 18px 28px rgba(20, 24, 44, 0.18));
}

.flip-card.is-flipped .flip-card-inner {
  transform: translateY(-2px);
}

.player-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: #1d1d1f;
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-card-front {
  padding: 12px 14px 16px;
  z-index: 2;
  transform: scale(1);
}

.player-card-back {
  padding: 18px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.flip-card.is-flipped .player-card-front {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.flip-card.is-flipped .player-card-back {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: scale(1);
}

.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.support-flag-row {
  display: inline-flex;
  gap: 8px;
}

.support-flag-row .team-badge {
  min-height: 38px;
  border: 0;
  background: #ffffff;
  color: #1d1d1f;
  padding: 6px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.support-flag-row .team-badge img {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}

.support-flag-row .team-badge > span:last-child {
  display: none;
}

.support-empty {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #6e6e73;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.player-hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 122px;
  margin: 6px -8px 22px;
  border-radius: 14px;
  border-top-right-radius: 28px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #0071e3, #00c7be);
}

.player-hero-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 58px;
  width: 72px;
  height: 38px;
  border-bottom-left-radius: 42px;
  background: #ffffff;
}

.player-card-avatar {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.player-card-identity {
  text-align: center;
}

.player-card-identity h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-card-identity p {
  margin: 6px 0 0;
  color: #6e6e73;
  font-size: 12px;
}

.player-card-tags {
  justify-content: center;
  margin: 16px 0 14px;
}

.player-card-tags .player-badge {
  border: 0;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.player-card-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
}

.player-card-stat-row div {
  display: grid;
  gap: 4px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.player-card-stat-row div:last-child {
  border-right: 0;
}

.player-card-stat-row strong {
  color: #1d1d1f;
  font-size: 14px;
}

.player-card-stat-row span {
  color: #86868b;
  font-size: 11px;
  font-weight: 700;
}

.flip-hint {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #86868b;
  font-size: 11px;
}

.player-card-back-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.supported-player-tag {
  display: inline-flex;
  align-items: center;
  max-width: 68%;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-prediction-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.player-prediction-list.knockout-only {
  gap: 14px;
}

.player-prediction-list strong {
  color: #1d1d1f;
  font-size: 12px;
}

.player-prediction-list p {
  margin: 3px 0 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.35;
}

.prediction-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.player-card-back .support-flag-row .team-badge {
  min-height: 34px;
}

.prediction-flag-grid .team-badge {
  border: 0;
  background: #ffffff;
  color: #1d1d1f;
  padding: 4px 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.prediction-flag-grid .team-badge img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.prediction-flag-grid.winner .team-badge {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.empty-prediction {
  color: #86868b;
  font-size: 12px;
}

.status-pill,
.secondary-light-button {
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  padding: 8px 12px;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 13px;
}

.secondary-light-button {
  color: #0071e3;
}

.panel,
.metric,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match,
.compact-item,
.admin-match,
.table-wrap {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.82);
  color: #1d1d1f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
}

.panel,
.player-card,
.match-card,
.live-score-card,
.tournament-fixture-card,
.group-table-card,
.bracket-match,
.table-wrap {
  border-radius: 24px;
}

.panel {
  padding: 20px;
}

.panel-heading {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-heading h3 {
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.panel-heading span,
.fixture-subtext,
.match-card-meta,
.match-card-footer,
.fixture-status span,
.bracket-match-footer,
.empty-state,
.leader-row small {
  color: #6e6e73;
}

.metric {
  padding: 20px;
  border-radius: 24px;
  animation: none;
}

.metric-label {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.metric strong {
  margin-top: 10px;
  color: #1d1d1f;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  animation: none;
}

input,
select,
.search-input,
.toolbar select,
.form-grid input,
.form-grid select {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: none;
}

input::placeholder {
  color: #86868b;
}

.toolbar {
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  backdrop-filter: saturate(180%) blur(18px);
}

.primary-button {
  justify-content: center;
  border: 0;
  background: #0071e3;
  color: #fff;
  font-weight: 600;
}

.primary-button:hover {
  background: #0077ed;
}

.danger-button {
  color: #d70015;
}

.match-card,
.live-score-card,
.tournament-fixture-card,
.bracket-match,
.player-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.match-card:hover,
.live-score-card:hover,
.tournament-fixture-card:hover,
.bracket-match:hover,
.player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.match-card-meta {
  text-transform: none;
  letter-spacing: -0.01em;
}

.match-card-meta span:first-child,
.fixture-table td:first-child strong {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-badge {
  color: #1d1d1f;
  font-weight: 600;
}

.team-badge img {
  width: 28px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.team-initials {
  border: 0;
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: none;
}

.team-badge.placeholder .team-initials {
  background: #f5f5f7;
  color: #1d1d1f;
}

.versus {
  margin-left: 38px;
  border: 0;
  background: transparent;
  color: #86868b;
  padding: 0;
}

.match-chip-row,
.player-badge-row {
  gap: 6px;
  margin: 8px 0;
}

.match-chip,
.match-chip:nth-child(2),
.match-chip:nth-child(3),
.player-badge {
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.match-chip-status {
  gap: 7px;
  border: 1px solid transparent;
}

.match-chip-status::before {
  content: "";
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.match-chip-status.status-live {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.24);
  color: #138a37;
}

.match-chip-status.status-live::before {
  display: inline-block;
  box-shadow:
    0 0 0 4px rgba(0, 230, 118, 0.16),
    0 0 14px rgba(0, 230, 118, 0.7);
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}

.match-chip-status.status-half {
  background: rgba(255, 204, 0, 0.16);
  border-color: rgba(255, 204, 0, 0.28);
  color: #8a5a00;
}

.match-chip-status.status-open {
  background: rgba(10, 132, 255, 0.11);
  border-color: rgba(10, 132, 255, 0.2);
  color: #0066cc;
}

.match-chip-status.status-locked {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.24);
  color: #d70015;
}

.match-chip-status.status-ended {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
  color: #6e6e73;
}

.score-line,
.bracket-teams > div {
  border: 0;
  border-radius: 14px;
  background: #f5f5f7;
}

.score-line strong,
.bracket-teams strong,
.fixture-table td:nth-child(4) strong {
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: none;
}

.live-ticker {
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #f5f5f7;
}

.ticker-track {
  animation-duration: 48s;
}

.ticker-item {
  color: #1d1d1f;
  font-size: 12px;
}

.ticker-item strong,
.ticker-item em {
  color: #0071e3;
}

.fixture-table th,
.standings-table th {
  background: #fbfbfd;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.fixture-table td,
.standings-table td,
.fixture-table th,
.standings-table th {
  border-color: rgba(0, 0, 0, 0.06);
}

.fixture-table tbody tr:nth-child(even),
.standings-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.018);
}

.fixture-table tbody tr:hover,
.standings-table tbody tr:hover,
.fixture-table tbody tr:has(select:not(:disabled):focus),
.fixture-table tbody tr:has(select:not(:disabled):hover) {
  background: rgba(0, 113, 227, 0.06);
}

.login-panel[hidden] {
  display: none !important;
}

.login-panel-floating {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
}

.login-dialog {
  position: relative;
  width: min(92vw, 560px);
  padding: 42px 56px 46px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.18);
}

.login-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.login-close-button svg {
  width: 17px;
  height: 17px;
}

.login-close-button:hover {
  background: rgba(0, 0, 0, 0.09);
}

.login-orb {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #ffffff 0 34%, transparent 35%),
    conic-gradient(from 12deg, #ff5f6d, #ffc371, #47d7ff, #8b73ff, #ff4fd8, #ff5f6d);
}

.login-orb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background: #ffffff;
}

.login-orb span {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1d1d1f;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.login-copy {
  text-align: center;
}

.login-copy h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.login-copy p {
  max-width: 380px;
  margin: 10px auto 26px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form input {
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d1d1f;
  padding: 0 16px;
  font-size: 17px;
}

.login-form input::placeholder {
  color: #8e8e93;
}

.login-form input:focus {
  border-color: #2997ff;
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.22);
}

.login-form .primary-button {
  height: 46px;
  margin-top: 8px;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
}

.login-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.35;
}

.login-footnote svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #0a84ff;
}

.profile-dialog {
  width: min(92vw, 600px);
}

.profile-avatar-editor {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar-preview {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload-button {
  cursor: pointer;
}

.avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  object-fit: cover;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.avatar-small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.player-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.player-card-header h3 {
  margin: 0;
}

.public-bets-table {
  min-width: 760px;
}

.pick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #6e6e73;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pick-chip.has-pick {
  background: rgba(10, 132, 255, 0.1);
  color: #0066cc;
}

.admin-login-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: #0a84ff;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-badge svg {
  width: 15px;
  height: 15px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-live {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.24);
  color: #138a37;
}

.status-live::before {
  display: inline-block;
  box-shadow:
    0 0 0 4px rgba(0, 230, 118, 0.16),
    0 0 14px rgba(0, 230, 118, 0.7);
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}

.status-half {
  background: rgba(255, 204, 0, 0.16);
  border-color: rgba(255, 204, 0, 0.28);
  color: #8a5a00;
}

.status-open {
  background: rgba(10, 132, 255, 0.11);
  border-color: rgba(10, 132, 255, 0.2);
  color: #0066cc;
}

.status-locked {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.24);
  color: #d70015;
}

.status-ended {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
  color: #6e6e73;
}

.status-neutral {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
  color: #6e6e73;
}

@keyframes live-dot-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.inline-icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  stroke-width: 2;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-line span,
.player-badge {
  display: inline-flex;
  align-items: center;
}

.players-leaderboard-panel {
  margin-bottom: 16px;
}

.player-card h3,
.players-leaderboard strong,
.leaderboard strong {
  color: #1d1d1f;
}

.group-table-card h3,
.bracket-round-title {
  background: transparent;
}

.qualifier-row {
  background: rgba(52, 199, 89, 0.08);
}

.rank {
  background: #1d1d1f;
  color: #fff;
  box-shadow: none;
}

.money-positive,
.winner-team,
.fixture-status strong,
.match-card-footer strong,
.bracket-match-footer strong {
  color: #248a3d;
}

.money-negative {
  color: #d70015;
}

.bracket-round:not(:last-child)::after,
.bracket-round:not(:last-child) .bracket-match::after {
  border-color: rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

@media (max-width: 1050px) {
  .sidebar {
    height: auto;
    margin: 0;
    padding: 10px 14px;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }

  .brand,
  .nav-tabs,
  .settings-panel {
    justify-self: center;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .main {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    gap: 12px;
  }

  .topbar h2 {
    font-size: 42px;
  }

  .nav-tab {
    padding: 7px 8px;
  }

  .login-dialog {
    padding: 34px 22px 28px;
  }

  .login-orb {
    width: 108px;
    height: 108px;
  }
}

.admin-wide-panel {
  grid-column: 1 / -1;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(150px, 0.8fr)) 120px 96px 84px 84px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
}

.admin-delete-button {
  min-height: 36px;
}

.admin-match {
  grid-template-columns: minmax(220px, 1.2fr) repeat(6, minmax(110px, 0.7fr)) 82px 82px 110px 100px minmax(120px, 0.8fr) 74px;
  overflow-x: auto;
}

.admin-item-title,
.admin-match-summary {
  min-width: 0;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e6e73;
  font-size: 13px;
}

.admin-check input {
  width: 16px;
  height: 16px;
}

.command-nav {
  position: sticky;
  top: 92px;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin: -8px 0 22px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  overflow-x: auto;
}

.command-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6e6e73;
  padding: 0 16px;
  font-weight: 600;
  white-space: nowrap;
}

.command-tab svg {
  width: 16px;
  height: 16px;
}

.command-tab.active {
  background: #1d1d1f;
  color: #fff;
}

.admin-page {
  display: grid;
  gap: 16px;
}

.admin-page[hidden] {
  display: none !important;
}

.admin-bets-table {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.admin-bets-header,
.admin-bets-row {
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr) 116px;
  gap: 16px;
  align-items: center;
  min-width: 860px;
}

.admin-bets-header {
  align-items: end;
  position: static;
  padding: 0 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  color: #6e6e73;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-bets-header > strong,
.admin-bet-picks-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bets-row {
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-bet-picks-grid {
  display: grid;
  grid-template-columns: repeat(var(--player-count), minmax(150px, 1fr));
  gap: 10px;
  align-items: center;
}

.admin-bets-header .admin-bet-picks-grid {
  align-items: end;
}

.admin-bet-pick-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-bet-pick-cell span {
  display: none;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 600;
}

.admin-bet-picks-grid select {
  width: 100%;
  min-width: 150px;
}

.admin-page[data-admin-page="players"] .form-grid,
.admin-page[data-admin-page="settings"] .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.72);
}

.admin-page[data-admin-page="settings"] {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
}

.admin-page[data-admin-page="settings"] .secondary-light-button {
  margin-top: 12px;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ledger-balance,
.ledger-row {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.ledger-balance {
  display: grid;
  gap: 4px;
}

.ledger-balance span {
  color: #1d1d1f;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ledger-balance.positive span {
  color: #248a3d;
}

.ledger-balance.negative span {
  color: #d70015;
}

.ledger-balance small,
.ledger-row span {
  color: #6e6e73;
}

.ledger-settlements {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.ledger-row b {
  color: #1d1d1f;
}

@media (max-width: 1100px) {
  .admin-user,
  .admin-match {
    grid-template-columns: 1fr;
  }

  .command-nav {
    top: 72px;
    border-radius: 20px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-page="settings"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-bets-table {
    overflow-x: visible;
  }

  .admin-bets-header {
    display: none;
  }

  .admin-bets-row {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 12px;
    padding: 16px 0;
  }

  .admin-bet-picks-grid {
    grid-template-columns: 1fr;
  }

  .admin-bet-pick-cell span {
    display: block;
  }
}
