﻿:root {
  --bg-900: #07120d;
  --bg-800: #0e1b14;
  --bg-700: #13241b;
  --bg-650: #173022;
  --panel: #122117;
  --panel-soft: #192b1f;
  --line: #274234;
  --line-soft: #1e3228;
  --text: #e8f9ed;
  --muted: #9bb8a8;
  --muted-strong: #b8d2c3;
  --accent: #2ed66f;
  --accent-strong: #12b857;
  --accent-soft: rgba(46, 214, 111, 0.16);
  --warning: #f4b942;
  --danger-soft: #ff7070;
  --radius-lg: 0.8rem;
  --radius-md: 0.65rem;
  --radius-sm: 0.55rem;
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(75rem 40rem at 8% -8%, rgba(52, 144, 86, 0.25), transparent 65%),
    radial-gradient(45rem 30rem at 96% -2%, rgba(32, 109, 69, 0.22), transparent 65%),
    linear-gradient(180deg, #0a1710 0%, #06110c 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

.app-main {
  max-width: 76rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand strong,
.display-4,
.display-5,
.display-6 {
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: #8cecb1;
}

a:hover {
  color: #b8ffd1;
}

.text-secondary {
  color: var(--muted) !important;
}

.wc-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(5, 15, 10, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(9px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo-full {
  width: min(10.25rem, 28vw);
  filter: drop-shadow(0 12px 20px rgba(18, 184, 87, 0.16));
}

.brand-logo-mark {
  display: none;
  width: 2rem;
  filter: drop-shadow(0 10px 16px rgba(18, 184, 87, 0.18));
}

.nav-pills-lite {
  gap: 0.25rem;
}

@media (max-width: 575.98px) {
  .brand-logo-full {
    display: none;
  }

  .brand-logo-mark {
    display: block;
  }
}

.nav-pills-lite .nav-link {
  color: #c4e7d2;
  border-radius: 999px;
  padding: 0.44rem 0.82rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.nav-pills-lite .nav-link:hover,
.nav-pills-lite .nav-link:focus {
  border-color: #2a4737;
  color: #f2fff6;
  background: rgba(30, 51, 40, 0.35);
}

.nav-pills-lite .nav-link-admin {
  border-color: rgba(244, 185, 66, 0.4);
  color: #ffd88a;
}

.user-nav {
  gap: 0.5rem;
}

.predict-dropdown .dropdown-menu,
.user-nav .dropdown-menu {
  background: #102117;
  border: 1px solid #2f4f3d;
  border-radius: 0.75rem;
}

.predict-dropdown .dropdown-item,
.user-nav .dropdown-item {
  color: #d5efdf;
}

.predict-dropdown .dropdown-item:hover,
.user-nav .dropdown-item:hover {
  background: #1b3426;
  color: #ecfff4;
}

.avatar-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #355543;
  background: #102117;
  color: #d9fbe7;
  border-radius: 999px;
  padding: 0.18rem 0.5rem 0.18rem 0.18rem;
}

.avatar-menu-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #37dc7a, #1da657);
  color: #03220f;
  font-weight: 800;
}

.avatar-menu-image {
  object-fit: cover;
  border: 1px solid rgba(140, 236, 177, 0.38);
}

.avatar-menu-label {
  font-size: 0.85rem;
}

.user-pill {
  border: 1px solid #2d4a39;
  background: #102017;
  border-radius: 999px;
  padding: 0.45rem 0.75rem !important;
}

.competition-banner {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid #2b4b38;
}

.competition-hero {
  position: relative;
  overflow: hidden;
}

.competition-hero::after {
  content: "";
  position: absolute;
  inset: auto -5rem -7rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 224, 127, 0.22), transparent 66%);
  pointer-events: none;
}

.competition-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.competition-hero-copy {
  max-width: 48rem;
}

.competition-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.competition-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.competition-switcher-active {
  border-color: #62f69f;
  background: rgba(22, 61, 41, 0.48);
  box-shadow: 0 0 0 1px rgba(98, 246, 159, 0.18);
}

.competition-context-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.competition-context-main,
.competition-context-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.competition-code-card {
  min-width: 10rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #315240;
  border-radius: 0.9rem;
  background: rgba(10, 23, 16, 0.85);
}

.competition-code-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.competition-code-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  color: #f0fff5;
}

.competition-snapshot-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.league-context-note {
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(98, 246, 159, 0.14);
  background: rgba(9, 23, 16, 0.78);
  color: #d4f4e1;
  font-size: 0.88rem;
}

.competition-snapshot-card,
.leaderboard-insight-card {
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid #2c4b39;
  background: linear-gradient(150deg, rgba(13, 28, 20, 0.94), rgba(10, 20, 15, 0.98));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.competition-snapshot-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.competition-snapshot-value {
  display: block;
  margin: 0.22rem 0 0.3rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  color: #f0fff6;
}

.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #2f5f45;
  background: rgba(31, 80, 56, 0.35);
  color: #d7f6e5;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #2f5d45;
  background: rgba(29, 71, 50, 0.35);
  color: #c9efd8;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.52rem;
}

.hero-panel,
.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(25, 53, 38, 0.94), rgba(14, 28, 20, 0.985));
  box-shadow: var(--shadow-lg);
}

.hero-panel {
  overflow: hidden;
  position: relative;
  padding: clamp(1.1rem, 2.7vw, 2.4rem);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 214, 111, 0.2), transparent 68%);
}

.metric-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.metric-card {
  background: linear-gradient(180deg, rgba(11, 24, 18, 0.8), rgba(9, 18, 14, 0.96));
  border: 1px solid #2a4737;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
}

.metric-card .metric-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card .metric-value {
  color: #e9fff2;
  font-size: 1.38rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  border-width: 1px;
  padding: 0.58rem 0.9rem;
  line-height: 1.2;
  box-shadow: none;
}

.btn-sm {
  padding: 0.42rem 0.7rem;
}

.btn-accent,
.btn-success {
  color: #05260f;
  background: linear-gradient(140deg, #41e985, #2fca68);
  border-color: #3de07f;
}

.btn-accent:hover,
.btn-success:hover {
  color: #03200c;
  background: linear-gradient(140deg, #4af18d, #2dc464);
  border-color: #66f7a1;
}

.btn-outline-light {
  border-color: #3c5c4c;
  color: #d5efdf;
  background: rgba(10, 23, 16, 0.32);
}

.btn-outline-light:hover {
  border-color: #58816a;
  background: #173123;
  color: #ecfff4;
}

.btn-outline-success {
  border-color: #2f704f;
  color: #8cecb1;
}

.btn-outline-success:hover {
  background: #183726;
  color: #d4ffe4;
}

.btn-outline-danger-soft {
  border-color: rgba(255, 112, 112, 0.5);
  color: #ffd2d2;
  background: transparent;
}

.btn-outline-danger-soft:hover {
  border-color: rgba(255, 112, 112, 0.85);
  color: #fff;
  background: rgba(141, 40, 40, 0.2);
}

.form-control,
.form-select,
.form-check-input {
  border-radius: 0.65rem;
}

.form-control,
.form-select {
  border-color: #2c4a39;
  background-color: #0f1e16;
  color: #e9f8ef;
  min-height: 2.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #48d77f;
  box-shadow: 0 0 0 0.2rem rgba(46, 214, 111, 0.2);
  background-color: #102318;
  color: #fff;
}

.form-check-input {
  background-color: #13271c;
  border-color: #2f5040;
}

.form-check-input:checked {
  background-color: #35db77;
  border-color: #35db77;
}

.table-surface {
  background: rgba(12, 24, 18, 0.8);
  border: 1px solid #294835;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table.table-dark {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(24, 40, 30, 0.6);
  --bs-table-color: #e6f8ee;
  --bs-table-border-color: #1f3427;
}

.table thead th {
  border-bottom-width: 1px;
  color: #a8cab7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.table tbody td {
  vertical-align: middle;
}

.rank-badge {
  min-width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.rank-badge.rank-1 {
  background: rgba(255, 223, 113, 0.2);
  color: #ffd55b;
}

.rank-badge.rank-2 {
  background: rgba(220, 230, 236, 0.2);
  color: #d6e2ea;
}

.rank-badge.rank-3 {
  background: rgba(225, 154, 90, 0.2);
  color: #f3b375;
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #30543f;
  background: #1a3025;
}

.stage-header {
  border: 1px solid #2a4a37;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #14281d, #102117);
  color: #d9fbe7;
  font-weight: 700;
  padding: 0.75rem 0.95rem;
}

.match-card {
  background: linear-gradient(155deg, rgba(24, 45, 33, 0.95), rgba(14, 25, 19, 0.96));
  border: 1px solid #2a4a37;
  border-radius: 1rem;
  padding: 0.95rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: #3b6d51;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.match-card-muted {
  background: linear-gradient(155deg, rgba(19, 34, 26, 0.95), rgba(11, 19, 15, 0.96));
  border-color: #243c2f;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.match-meta-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.match-stage-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #335f47;
  background: rgba(25, 63, 44, 0.35);
  color: #d9f7e5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-block {
  text-align: center;
}

.flag {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #2ed66f;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.team-name {
  margin-top: 0.35rem;
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.94rem;
}

.score-grid {
  display: grid;
  grid-template-columns: 2rem 4.15rem 1.45rem 4.15rem 2rem;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
}

.score-input {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  background: #0c1a12;
  border: 1px solid #345844;
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.35rem;
}

.score-adjust {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid #355a45;
  background: #12271b;
  color: #d8f7e6;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem;
}

.score-adjust:hover {
  background: #1a3627;
}

.quick-score-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.quick-score {
  font-size: 0.75rem;
  border: 1px solid #2f5b44;
  border-radius: 999px;
  color: #c8f3d8;
  background: rgba(13, 30, 21, 0.85);
  padding: 0.15rem 0.52rem;
}

.quick-score:hover {
  background: #1a3a2a;
}

.form-note {
  color: #9fc5af;
  font-size: 0.76rem;
}

.match-status {
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.match-insight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.match-insight-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(44, 80, 59, 0.28);
  border: 1px solid rgba(66, 114, 84, 0.45);
  color: #d4f3e0;
  font-size: 0.74rem;
  font-weight: 700;
}

.match-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 185, 66, 0.38);
  background: rgba(93, 72, 16, 0.22);
  color: #ffe7a5;
}

.lock-chip,
.live-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.74rem;
  border: 1px solid transparent;
}

.lock-chip {
  color: #ffd5d5;
  border-color: rgba(255, 112, 112, 0.35);
  background: rgba(104, 34, 34, 0.25);
}

.live-chip {
  color: #c6ffd8;
  border-color: rgba(61, 224, 127, 0.42);
  background: rgba(26, 89, 50, 0.2);
}

.team-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  padding: 0.48rem 0.62rem;
  background: #111f17;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.team-chip:hover {
  border-color: #3b6e53;
  background: #15271d;
}

.team-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.team-chip input {
  accent-color: var(--accent);
}

.auth-card,
.settings-card,
.admin-action-card {
  border: 1px solid #2a4937;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(21, 40, 30, 0.95), rgba(11, 21, 16, 0.98));
  box-shadow: var(--shadow-lg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 30rem);
  gap: 1rem;
  align-items: stretch;
}

.auth-shell-register {
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 34rem);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.7vw, 2.35rem);
  border-radius: var(--radius-lg);
  border: 1px solid #2d4c3a;
  background:
    radial-gradient(circle at top right, rgba(61, 224, 127, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 43, 30, 0.95), rgba(9, 20, 15, 0.98));
  box-shadow: var(--shadow-lg);
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 233, 133, 0.24), transparent 65%);
}

.auth-hero-title {
  max-width: 16ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.05rem, 4.2vw, 3.45rem);
  line-height: 0.98;
  margin: 0.7rem 0 0.85rem;
}

.auth-hero-copy {
  max-width: 36rem;
  color: #cfe9da;
  font-size: 0.96rem;
}

.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.1rem;
}

.auth-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #325643;
  background: rgba(10, 24, 17, 0.72);
  color: #def8e8;
  font-size: 0.73rem;
  font-weight: 700;
}

.auth-feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.auth-feature-item {
  padding: 0.78rem 0.92rem;
  border-radius: 0.9rem;
  border: 1px solid #2c4b39;
  background: rgba(8, 20, 14, 0.55);
  color: #dcf7e7;
}

.auth-card-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-side-note {
  padding: 0.68rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(98, 246, 159, 0.16);
  background: rgba(12, 29, 20, 0.8);
  color: #d6f4e2;
  font-size: 0.9rem;
}

.auth-static-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.2rem;
  border: 1px solid #2e503d;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at right, rgba(61, 224, 127, 0.13), transparent 44%),
    rgba(8, 18, 14, 0.62);
  padding: 0.65rem 0.85rem;
}

.auth-static-field span {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-static-field strong {
  color: #edfff4;
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-static-field-compact {
  min-height: 3.5rem;
}

.auth-card-confirmation {
  max-width: 58rem;
  margin: 0 auto;
}

.auth-validation {
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 112, 112, 0.32);
  background: rgba(111, 39, 39, 0.2);
  color: #ffd1d1;
}

.auth-validation ul {
  margin: 0;
  padding-left: 1rem;
}

.admin-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.countdown {
  color: #bfffd8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.predictions-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
}

.fixture-state-overview {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.fixture-state-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid #2b4937;
  background: linear-gradient(150deg, rgba(15, 31, 22, 0.95), rgba(11, 20, 16, 0.98));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.fixture-state-label,
.profile-meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixture-state-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #effff5;
  margin: 0.2rem 0 0.35rem;
}

.leaderboard-insight-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.knockout-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 1fr);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.bracket-column {
  min-width: 16rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  position: relative;
  scroll-snap-align: start;
}

.bracket-column-title {
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: #9bcab0;
  border-bottom: 1px solid #2d523d;
  padding-bottom: 0.35rem;
}

.bracket-match {
  border: 1px solid #2a4a37;
  border-radius: 0.75rem;
  background: linear-gradient(150deg, rgba(20, 37, 27, 0.98), rgba(12, 23, 18, 0.96));
  padding: 0.5rem 0.55rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.bracket-match:hover {
  border-color: #41785a;
  transform: translateY(-1px);
}

.bracket-date {
  font-size: 0.72rem;
  color: #9bb8a8;
  margin-bottom: 0.4rem;
}

.bracket-team-row {
  display: grid;
  grid-template-columns: 1.25rem 1fr auto;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.16rem 0;
}

.bracket-team-row img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: cover;
  border-radius: 50%;
}

.bracket-team-row strong {
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  color: #eafff3;
}

.bracket-winner {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #8cecb1;
  border-top: 1px dashed #2f5b44;
  padding-top: 0.3rem;
}

.bracket-column-third {
  min-width: 13rem;
}

.knockout-bracket::-webkit-scrollbar {
  height: 8px;
}

.knockout-bracket::-webkit-scrollbar-thumb {
  background: #2d533f;
  border-radius: 999px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.page-header .title-wrap {
  max-width: 46rem;
}

.page-header .title-wrap p {
  color: var(--muted-strong) !important;
}

.section-stack {
  display: grid;
  gap: 1.1rem;
}

.section-note {
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(98, 246, 159, 0.14);
  background: linear-gradient(160deg, rgba(11, 24, 18, 0.92), rgba(8, 17, 13, 0.98));
  color: #d8f2e3;
  font-size: 0.88rem;
}

.fixture-tabs .nav-link {
  border-radius: 999px;
  color: #c4e7d2;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.fixture-tabs .nav-link.active {
  background: linear-gradient(140deg, #41e985, #2fca68);
  color: #05260f;
  box-shadow: 0 10px 18px rgba(47, 202, 104, 0.18);
}

.fixture-tabs .nav-link:hover {
  transform: translateY(-1px);
}

.leaderboard-podium {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.leaderboard-podium-card {
  text-align: center;
  padding: 1rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid #2e503d;
  background: linear-gradient(155deg, rgba(23, 47, 34, 0.96), rgba(12, 24, 18, 0.98));
}

.leaderboard-podium-card-top {
  border-color: rgba(244, 185, 66, 0.45);
  background:
    radial-gradient(circle at top center, rgba(244, 185, 66, 0.18), transparent 38%),
    linear-gradient(155deg, rgba(37, 52, 28, 0.98), rgba(17, 26, 18, 0.98));
}

.league-home-grid,
.league-home-feed-grid {
  display: grid;
  gap: 1rem;
}

.league-home-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.95fr);
}

.league-home-feed-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.league-home-panel {
  border: 1px solid #294535;
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(18, 34, 26, 0.95), rgba(8, 18, 13, 0.98));
  box-shadow: var(--shadow-md);
  padding: 0.95rem;
}

.league-home-action-list {
  display: grid;
  gap: 0.75rem;
}

.league-home-action {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.9rem;
  border: 1px solid #325340;
  border-radius: 0.9rem;
  background: linear-gradient(150deg, rgba(14, 29, 21, 0.95), rgba(10, 21, 16, 0.98));
  color: #e7fbef;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.league-home-action:hover {
  color: #fff;
  border-color: #3d7d59;
  background: linear-gradient(150deg, rgba(18, 39, 28, 0.98), rgba(11, 23, 17, 0.98));
  transform: translateY(-1px);
}

.league-home-action span {
  color: #9bb8a8;
  font-size: 0.88rem;
}

.leaderboard-podium-rank {
  color: #f3d18d;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.leaderboard-podium-avatar {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b6d50;
  margin-bottom: 0.7rem;
}

.leaderboard-podium-points {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #edfff4;
  margin: 0.55rem 0 0.25rem;
}

.leaderboard-table-surface .table {
  margin-bottom: 0;
}

.leaderboard-row-highlight td {
  background: rgba(38, 66, 49, 0.32);
}

.fixture-tabs-worldcup {
  position: sticky;
  top: 5.25rem;
  z-index: 10;
  background: linear-gradient(180deg, rgba(17, 33, 24, 0.96), rgba(17, 33, 24, 0.78));
  border: 1px solid #2a4a37;
  border-radius: 0.9rem;
  padding: 0.45rem;
}

.wc-journey-overview {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.wc-journey-step {
  border: 1px solid #2a4a37;
  border-radius: 0.75rem;
  background: rgba(13, 27, 20, 0.85);
  padding: 0.55rem 0.65rem;
}

.wc-journey-step.is-done {
  border-color: #3ad47a;
  box-shadow: inset 0 0 0 1px rgba(58, 212, 122, 0.25);
}

.wc-journey-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7c8b7;
}

.wc-journey-meta {
  display: block;
  margin-top: 0.2rem;
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  color: #e6f8ee;
}

.wc-qualified-card {
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.wc-qualified-card:hover {
  border-color: #3f7659;
  transform: translateY(-1px);
}

.wc-qualified-card-third {
  border-color: #3f6048;
  background: linear-gradient(155deg, rgba(23, 42, 31, 0.95), rgba(14, 25, 19, 0.96));
}

.wc-qualified-flag {
  width: 44px;
  height: 44px;
}

.wc-form-disabled {
  opacity: 0.72;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #2f5d45;
  background: rgba(26, 73, 49, 0.3);
  color: #b8e6cc;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.85rem;
}

.home-hero-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 1fr);
  align-items: start;
}

.home-hero-aside {
  display: grid;
  gap: 0.7rem;
}

.home-hero .metric-card {
  min-height: 4.7rem;
}

.home-competition-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}

.home-competition-card {
  border: 1px solid #2a4a37;
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(22, 42, 30, 0.96), rgba(14, 25, 19, 0.96));
  padding: 0.95rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.home-competition-card:hover {
  border-color: #3f7458;
  transform: translateY(-1px);
}

.home-competition-card-featured {
  border-color: #3f9c66;
  box-shadow: 0 0 0 1px rgba(63, 156, 102, 0.2), 0 12px 24px rgba(0, 0, 0, 0.26);
}

.home-competition-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #335e47;
  background: rgba(29, 71, 50, 0.35);
  color: #c9efd8;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.55rem;
}

.mini-fixture-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.mini-fixture-card {
  border: 1px solid #2a4a37;
  border-radius: 0.8rem;
  background: linear-gradient(160deg, rgba(18, 36, 27, 0.94), rgba(10, 21, 16, 0.96));
  padding: 0.65rem 0.75rem;
}

.mini-fixture-meta {
  font-size: 0.75rem;
  color: #9bb8a8;
  margin-bottom: 0.35rem;
}

.mini-team-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.1rem 0;
}

.mini-team-line img {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.mini-team-line span,
.prediction-card-meta span,
.group-overview-card strong,
.group-overview-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.alert {
  border-radius: 0.8rem;
}

.toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: grid;
  gap: 0.45rem;
}

.app-toast {
  min-width: 14rem;
  max-width: 24rem;
  border-radius: 0.65rem;
  border: 1px solid #2f4f3d;
  background: #102117;
  color: #d9fbe7;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.app-toast-success {
  border-color: #3bc77f;
}

.app-toast-error {
  border-color: rgba(255, 112, 112, 0.6);
}

.confirmation-link-box {
  min-height: 5rem;
  word-break: break-all;
  border-radius: 0.9rem;
  border: 1px solid #30513f;
  background: rgba(9, 21, 15, 0.82);
  color: #dff8e8;
  padding: 0.95rem 1rem;
}

.profile-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
}

.profile-identity-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #2d4a39;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top center, rgba(61, 224, 127, 0.12), transparent 40%),
    linear-gradient(160deg, rgba(20, 40, 29, 0.95), rgba(10, 20, 15, 0.98));
  box-shadow: var(--shadow-lg);
}

.profile-avatar-frame {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.35rem;
  padding: 0.3rem;
  background: linear-gradient(140deg, rgba(65, 233, 133, 0.8), rgba(20, 120, 63, 0.65));
}

.profile-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
  background: #08160f;
}

.profile-meta-grid {
  display: grid;
  gap: 0.8rem;
}

.profile-meta-card {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #2a4837;
  background: rgba(8, 18, 14, 0.62);
}

.profile-settings-card {
  min-height: 100%;
}

.avatar-picker-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 1fr));
}

.avatar-picker-option {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.2rem;
  border: 1px solid #294b38;
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(14, 29, 21, 0.9), rgba(8, 18, 14, 0.96));
  color: #e8f9ed;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.avatar-picker-option:hover {
  border-color: #407d5a;
  transform: translateY(-1px);
}

.avatar-picker-option.is-selected {
  border-color: #41e985;
  background:
    radial-gradient(circle at right, rgba(65, 233, 133, 0.16), transparent 46%),
    linear-gradient(150deg, rgba(18, 42, 29, 0.96), rgba(8, 18, 14, 0.98));
  box-shadow: 0 0 0 1px rgba(65, 233, 133, 0.22), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.avatar-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-picker-option img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 1px solid rgba(140, 236, 177, 0.22);
}

.avatar-picker-option span {
  display: grid;
  gap: 0.15rem;
}

.avatar-picker-option strong {
  font-size: 0.92rem;
}

.avatar-picker-option small {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .competition-hero-grid {
    grid-template-columns: 1fr;
  }

  .competition-switcher {
    justify-content: flex-start;
  }

  .auth-shell,
  .auth-shell-register,
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .navbar-brand .brand-copy strong {
    font-size: 1.05rem;
  }

  .nav-pills-lite {
    margin-top: 0.65rem;
  }

  .user-nav {
    margin-top: 0.5rem;
    align-items: flex-start !important;
  }

  .fixture-tabs-worldcup {
    top: 4.65rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .fixture-tabs-worldcup .nav-item {
    flex: 0 0 auto;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    border-radius: var(--radius-md);
  }

  .score-grid {
    grid-template-columns: 1.8rem 3.55rem 1.2rem 3.55rem 1.8rem;
  }

  .score-input {
    font-size: 1.18rem;
  }

  .flag {
    width: 52px;
    height: 52px;
  }

  .team-name {
    font-size: 0.88rem;
  }
}

.group-overview-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.group-overview-card {
  display: grid;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid #2c4b39;
  background: linear-gradient(155deg, rgba(20, 39, 29, 0.94), rgba(8, 18, 13, 0.98));
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.group-overview-card:hover {
  color: inherit;
  border-color: #3d7d59;
  transform: translateY(-1px);
}

.group-overview-meta {
  color: #9bb8a8;
  font-size: 0.86rem;
}

.group-section-shell {
  scroll-margin-top: 5rem;
}

.group-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.group-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: 1.25rem;
}

.group-summary-card,
.group-empty-card,
.mini-leaderboard-card,
.prediction-card {
  border: 1px solid #294535;
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(18, 34, 26, 0.95), rgba(8, 18, 13, 0.98));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.group-summary-card {
  padding: 0.85rem 0.92rem;
  display: grid;
  gap: 0.3rem;
}

.dashboard-section-grid,
.leaderboard-section-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.95fr);
}

.prediction-lanes {
  display: grid;
  gap: 1rem;
}

.prediction-lane {
  display: grid;
  gap: 0.85rem;
}

.prediction-lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prediction-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.prediction-card {
  padding: 0.82rem;
}

.prediction-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #9bb8a8;
  margin-bottom: 0.6rem;
}

.prediction-card-scoreline {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
}

.prediction-card-scoreline-actual {
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.prediction-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.prediction-status-chip-open {
  background: rgba(62, 177, 104, 0.15);
  color: #9cf0bb;
  border: 1px solid rgba(62, 177, 104, 0.4);
}

.prediction-status-chip-pending {
  background: rgba(214, 165, 63, 0.15);
  color: #f5d287;
  border: 1px solid rgba(214, 165, 63, 0.4);
}

.prediction-status-chip-complete {
  background: rgba(74, 129, 232, 0.16);
  color: #b8d1ff;
  border: 1px solid rgba(74, 129, 232, 0.4);
}

.mini-leaderboard-card,
.group-empty-card {
  padding: 1rem;
}

.mini-leaderboard-list {
  display: grid;
  gap: 0.7rem;
}

.mini-leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(9, 18, 14, 0.88);
  border: 1px solid rgba(57, 89, 72, 0.55);
}

.mini-leaderboard-row-current,
.leaderboard-row-current td,
.leaderboard-podium-card-current {
  box-shadow: inset 0 0 0 1px rgba(77, 189, 122, 0.45);
  background: rgba(20, 47, 33, 0.96);
}

.group-empty-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.leaderboard-nearby-table .leaderboard-row-current td,
.leaderboard-modal-table .leaderboard-row-current td {
  background: rgba(20, 47, 33, 0.96);
}

.group-leaderboard-modal .modal-content {
  background:
    radial-gradient(circle at top center, rgba(63, 156, 102, 0.12), transparent 36%),
    linear-gradient(160deg, rgba(11, 23, 17, 0.98), rgba(6, 13, 10, 0.99));
}

@media (max-width: 991.98px) {
  .group-section-header,
  .dashboard-section-grid,
  .leaderboard-section-grid,
  .league-home-grid {
    grid-template-columns: 1fr;
  }

  .group-section-header {
    flex-direction: column;
  }

  .group-section-header > .d-flex {
    width: 100%;
  }
}

.workspace-overview-shell,
.workspace-section,
.workspace-nav-shell {
  scroll-margin-top: 6rem;
}

.workspace-overview-grid,
.workspace-topbar-main,
.workspace-switch-grid {
  display: grid;
  gap: 1rem;
}

.workspace-overview-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.9fr);
  align-items: start;
}

.workspace-metric-stack {
  display: grid;
  gap: 0.85rem;
}

.workspace-topbar {
  display: grid;
  gap: 1.25rem;
}

.workspace-topbar-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.workspace-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.workspace-context-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.workspace-switch-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.workspace-switch-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(57, 89, 72, 0.6);
  background: rgba(8, 17, 13, 0.88);
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(13rem, 0.65fr));
  gap: 1rem;
  align-items: stretch;
}

.next-action-card,
.progress-ring-card,
.workspace-progress-step,
.fixture-heat-cell {
  border: 1px solid rgba(57, 89, 72, 0.62);
  background:
    linear-gradient(135deg, rgba(14, 30, 22, 0.96), rgba(7, 15, 11, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 8px);
}

.next-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 1.1rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.next-action-card-urgent {
  border-color: rgba(244, 185, 66, 0.62);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 185, 66, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(30, 25, 12, 0.98), rgba(7, 15, 11, 0.98));
}

.next-action-card-active {
  border-color: rgba(46, 214, 111, 0.58);
  background:
    radial-gradient(circle at 0% 0%, rgba(46, 214, 111, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(12, 35, 22, 0.98), rgba(7, 15, 11, 0.98));
}

.next-action-icon,
.workspace-step-icon,
.fixture-heat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
}

.next-action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(46, 214, 111, 0.14);
  color: #8ff6b8;
  border: 1px solid rgba(46, 214, 111, 0.38);
}

.next-action-icon::before,
.workspace-step-icon::before,
.fixture-heat-icon::before {
  content: attr(data-icon);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.64rem;
}

.progress-ring-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.1rem;
}

.progress-ring {
  --progress: 0;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0b1710 58%, transparent 60%),
    conic-gradient(#2ed66f calc(var(--progress) * 1%), rgba(55, 82, 68, 0.85) 0);
  border: 1px solid rgba(98, 246, 159, 0.22);
}

.progress-ring-bracket {
  background:
    radial-gradient(circle, #0b1710 58%, transparent 60%),
    conic-gradient(#7db8ff calc(var(--progress) * 1%), rgba(55, 82, 68, 0.85) 0);
}

.progress-ring span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f4fff8;
}

.workspace-progress-map {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.workspace-progress-step {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
}

.workspace-progress-step span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace-step-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(155, 184, 168, 0.26);
  background: rgba(155, 184, 168, 0.08);
  color: #cce9d8;
}

.workspace-progress-step-active .workspace-step-icon {
  border-color: rgba(244, 185, 66, 0.48);
  background: rgba(244, 185, 66, 0.12);
  color: #f5d287;
}

.workspace-progress-step-complete .workspace-step-icon {
  border-color: rgba(46, 214, 111, 0.48);
  background: rgba(46, 214, 111, 0.12);
  color: #9cf0bb;
}

.fixture-heatmap {
  display: grid;
  gap: 0.75rem;
}

.fixture-heatmap-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.fixture-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.fixture-heat-cell {
  --heat: 0;
  min-height: 7.2rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  position: relative;
  overflow: hidden;
}

.fixture-heat-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: calc((var(--heat) + 20) / 130);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, rgba(46, 214, 111, 0.24), transparent);
  pointer-events: none;
}

.fixture-heat-cell-locked::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, rgba(244, 185, 66, 0.24), transparent);
}

.fixture-heat-cell-saved::before {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, rgba(125, 184, 255, 0.22), transparent);
}

.fixture-heat-cell > * {
  position: relative;
}

.fixture-heat-cell span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.fixture-heat-icon {
  width: fit-content;
  min-width: 2.2rem;
  height: 1.45rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 184, 168, 0.28);
  background: rgba(9, 18, 14, 0.72);
  color: #d8f6e4;
}

.workspace-pulse-line {
  margin-top: 0.35rem;
  color: #e4f7eb;
}

.workspace-nav-shell {
  position: sticky;
  top: 5.4rem;
  z-index: 1020;
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 82, 63, 0.7);
  background: rgba(7, 18, 13, 0.92);
  backdrop-filter: blur(10px);
}

.workspace-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.4rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(16, 35, 24, 0.72);
  color: #d8f6e4;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.workspace-nav-link:hover,
.workspace-nav-link:focus {
  color: #f4fff8;
  border-color: rgba(98, 246, 159, 0.3);
  background: rgba(22, 54, 37, 0.92);
}

.workspace-nav-link:focus-visible,
.league-home-action:focus-visible,
.workspace-action-card:focus-visible,
.workspace-tab:focus-visible,
.score-adjust:focus-visible,
.quick-score:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid rgba(98, 246, 159, 0.72);
  outline-offset: 3px;
}

.match-card,
.prediction-card,
.next-action-card,
.progress-ring-card,
.fixture-heat-cell,
.workspace-progress-step {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.match-card:hover,
.prediction-card:hover,
.fixture-heat-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 246, 159, 0.34);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.prediction-save-state {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.prediction-save-state[data-state="saving"] {
  color: #cce9d8;
}

.prediction-save-state[data-state="saved"] {
  color: #7ff0aa;
}

.prediction-save-state[data-state="error"] {
  color: #ff9696;
}

.prediction-save-state[data-state="draft"] {
  color: #f6d27b;
}

.group-section-header-stacked {
  align-items: start;
}

.join-shell .auth-hero {
  padding-bottom: 0.5rem;
}

.alert {
  border-radius: 0.9rem;
  border-width: 1px;
}

.alert-secondary {
  color: #d8efe2;
  background: rgba(16, 29, 22, 0.88);
  border-color: rgba(58, 90, 71, 0.78);
}

.alert-warning {
  color: #ffe5a2;
  background: rgba(78, 56, 10, 0.32);
  border-color: rgba(244, 185, 66, 0.44);
}

.form-text code {
  color: #dff9ea;
  font-size: inherit;
}

@media (max-width: 991.98px) {
  .workspace-overview-grid,
  .workspace-topbar-main,
  .performance-grid {
    grid-template-columns: 1fr;
  }

  .workspace-topbar-actions {
    justify-content: flex-start;
  }

  .workspace-nav-shell {
    top: 4.85rem;
  }
}

@media (max-width: 575.98px) {
  .workspace-nav-shell {
    position: sticky;
    top: auto;
    bottom: 0.75rem;
    margin-inline: -0.35rem;
  }

  .workspace-nav {
    justify-content: center;
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  .workspace-nav-link {
    min-width: auto;
    flex: 1 1 42%;
  }

  .score-adjust,
  .quick-score {
    min-height: 2.7rem;
  }
}

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

.leaderboard-live-flash {
  animation: leaderboardLiveFlash 900ms ease;
}

@keyframes leaderboardLiveFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 214, 111, .42);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(46, 214, 111, .16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 214, 111, 0);
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: #effff4;
  color: #072012;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.workspace-header-grid,
.workspace-header-lower,
.workspace-action-rail-grid,
.leaderboard-summary-grid {
  display: grid;
  gap: 1rem;
}

.workspace-header-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
  align-items: start;
}

.workspace-header-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.workspace-header-meta .competition-code-card {
  min-width: 0;
}

.workspace-header-meta .competition-code-value {
  overflow-wrap: anywhere;
}

.workspace-header-lower {
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  margin-top: 1rem;
  align-items: end;
}

.workspace-header-switcher {
  justify-content: flex-start;
}

.workspace-action-rail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #2d4a39;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(150deg, rgba(11, 24, 17, 0.96), rgba(8, 18, 12, 0.98));
}

.workspace-action-card:hover,
.workspace-action-card:focus {
  border-color: #4bd788;
  color: var(--text);
}

.workspace-action-card-primary {
  box-shadow: 0 0 0 1px rgba(98, 246, 159, 0.2);
}

.workspace-tabs-shell {
  position: sticky;
  top: 5.5rem;
  z-index: 1010;
}

.workspace-tablist {
  display: inline-grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid #294535;
  background: rgba(10, 23, 16, 0.88);
  backdrop-filter: blur(8px);
}

.workspace-tab {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.workspace-tab small {
  color: var(--muted);
}

.workspace-tab.is-active,
.workspace-tab:hover,
.workspace-tab:focus {
  border-color: rgba(98, 246, 159, 0.26);
  background: rgba(23, 48, 34, 0.8);
  color: #f0fff6;
}

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

.picks-header-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid #2c4b39;
  background: rgba(10, 22, 16, 0.85);
}

.fixture-bucket-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.locked-picks-section {
  border-top: 1px solid rgba(82, 132, 101, 0.28);
  padding-top: 1.25rem;
}

.locked-picks-stack {
  display: grid;
  gap: 0.85rem;
}

.locked-picks-card {
  border: 1px solid #264131;
  border-radius: 1rem;
  background: rgba(12, 23, 17, 0.9);
  overflow: hidden;
}

.locked-picks-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.locked-picks-summary::-webkit-details-marker {
  display: none;
}

.locked-picks-summary-stage {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.locked-picks-summary-teams {
  font-weight: 600;
}

.locked-picks-summary-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.locked-picks-summary-meta strong {
  color: var(--text);
  font-size: 1rem;
}

.locked-picks-list {
  display: grid;
  gap: 0.65rem;
  padding: 0 1.1rem 1rem;
}

.locked-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(23, 41, 31, 0.72);
}

.locked-pick-row-current {
  box-shadow: inset 0 0 0 1px rgba(98, 246, 159, 0.28);
}

@media (max-width: 767.98px) {
  .locked-picks-summary,
  .locked-pick-row {
    flex-direction: column;
    align-items: stretch;
  }

  .locked-picks-summary-meta {
    align-items: start;
  }
}

.match-card-open {
  box-shadow: inset 0 0 0 1px rgba(46, 214, 111, 0.12);
}

.match-card-live {
  box-shadow: inset 0 0 0 1px rgba(244, 185, 66, 0.16);
}

.tiebreak-panel {
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid #315240;
  background: rgba(8, 18, 12, 0.8);
}

.fixture-live-update {
  animation: fixturePulse 1.2s ease;
}

@keyframes fixturePulse {
  0% { box-shadow: 0 0 0 0 rgba(98, 246, 159, 0.38); }
  100% { box-shadow: 0 0 0 0 rgba(98, 246, 159, 0); }
}

.leaderboard-mobile-list {
  display: grid;
  gap: 0.85rem;
}

.leaderboard-mobile-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #2b4838;
  background: rgba(10, 21, 15, 0.92);
}

.task-first-auth-panel {
  min-height: 100%;
}

.task-first-auth-hint,
.task-first-auth-check {
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid #284333;
  background: rgba(9, 20, 14, 0.84);
}

.task-first-auth-checklist {
  display: grid;
  gap: 0.7rem;
}

.admin-action-form {
  margin: 0;
}

.admin-action-card-button {
  width: 100%;
  text-align: left;
  border: 1px solid #2d4a39;
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(11, 24, 17, 0.96), rgba(8, 18, 12, 0.98));
}

.admin-action-card-primary {
  box-shadow: 0 0 0 1px rgba(98, 246, 159, 0.18);
}

.admin-action-card-sensitive {
  border-color: rgba(244, 185, 66, 0.34);
}

.admin-action-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  color: #c6f4d6;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .workspace-header-grid,
  .workspace-header-lower,
  .workspace-action-rail-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header-meta {
    grid-template-columns: 1fr;
  }

  .workspace-tabs-shell {
    position: static;
  }

  .workspace-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .workspace-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .workspace-tab {
    padding: 0.65rem 0.7rem;
    min-height: 4rem;
  }

  .workspace-tab small {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .workspace-action-card,
  .league-home-action,
  .workspace-topbar-actions .btn,
  .group-section-header .btn {
    width: 100%;
  }
}

