*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --glass:        rgba(232, 232, 238, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: none;
  --text:         #1a1a2e;
  --text-muted:   #55556a;
  --winner:       #1a7a45;
  --radius:       0;

  /* Renegades match-day kit colours */
  --kit-royal-blue: #2E5CB8;
  --kit-white:      #ffffff;

  /* Renegades brand colours (from logo) */
  --brand-orange:   #C8562A;
  --brand-blue:     #5ABDE0;
  --brand-blue-rgb: 90, 189, 224;
  --accent:         var(--brand-blue);
  --accent-dark:    var(--kit-royal-blue);
  --my-team:        var(--kit-royal-blue);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  position: relative;
}

/* ── Backgrounds ── */

body {
  background: #5a8ab0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 0;
}


/* ── Header rotation animations ── */

@keyframes slideFromRight {
  from { transform: translateX(50px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideFromLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.header-centre.slide-from-right { animation: slideFromRight 0.35s ease-out; }
.header-centre.slide-from-left  { animation: slideFromLeft  0.35s ease-out; }

/* ── Glass card ── */

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ══════════════════════════════════════════════
   PAGE HEADER (match pages & static pages)
══════════════════════════════════════════════ */

.page-header {
  position: relative;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 120px 20px;
  pointer-events: none;
}

.page-header > * { pointer-events: auto; }

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
}

.back-link,
.auth-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.15s;
  white-space: nowrap;
  min-height: 29px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.back-link:hover,
.auth-btn:hover { background: rgba(255,255,255,0.30); }

.header-centre {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.team-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.season-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(7,22,47,0.62);
}

.team-tab {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  padding: 5px 13px;
  border-radius: 20px;
  transition: background 0.15s;
  white-space: nowrap;
}

.team-tab:hover { background: rgba(255,255,255,0.30); }

.team-tab.current {
  background: rgba(255,255,255,0.38);
  color: #fff;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════ */

.home-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 100px;
  padding: 60px 24px 48px;
}

.home-title {
  font-size: 2.4rem;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}

.page-logo {
  position: relative;
  display: block;
  width: 180px;
  height: auto;
  margin: 30px auto 60px;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
}

.home-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 8px;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
  width: 100%;
  max-width: 860px;
}

.home-section-card {
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.home-section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}


.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-team-links {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: nowrap;
}

.section-team-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: rgba(var(--brand-blue-rgb),0.1);
  border: 1px solid rgba(var(--brand-blue-rgb),0.25);
  padding: 5px 11px;
  border-radius: 20px;
  transition: background 0.15s;
  white-space: nowrap;
}

.section-team-link:hover { background: rgba(var(--brand-blue-rgb),0.2); }

/* ══════════════════════════════════════════════
   TEAM PAGES — main layout
══════════════════════════════════════════════ */

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 300px;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  padding: 34px 48px 56px;
}

/* ── Leaderboard panel ── */

.leaderboard-panel {
  width: 300px;
  padding: 22px 20px 16px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  margin-top: 0;
}

.leaderboard-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.22);
}

.leaderboard-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mini-table th {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 6px 8px;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  white-space: nowrap;
}

.mini-table th.col-pts,
.mini-table th.col-last { text-align: center; }

.mini-table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mini-table .col-team { font-weight: 500; }
.mini-table .col-pts,
.mini-table .col-last { text-align: center; color: var(--text-muted); }

.mini-table tr.my-team td { color: var(--my-team); font-weight: 700; }
.mini-table tr.my-team .col-pts { font-weight: 800; }

.expand-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.75;
}

/* ── Fixtures panel ── */

.fixtures-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Chevrons ── */

.chevron {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
  padding: 2px 20px;
  opacity: 0.75;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}

.chevron:hover:not(:disabled) { opacity: 1; transform: translateY(-2px); }
#chevron-down:hover:not(:disabled) { transform: translateY(2px); }
.chevron:disabled { opacity: 0.2; cursor: default; transform: none; }

/* ── Date list ── */

.date-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

/* ── Date card ── */

.date-card {
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.date-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(0,0,0,0.22);
}

.date-header {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.date-label {
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--text);
  text-align: center;
  flex: 1;
}

.date-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.date-status.all-played {
  background: rgba(26,154,90,0.15);
  color: #1a7a45;
}

.date-status.partial {
  background: rgba(240,165,0,0.15);
  color: #a07000;
}

/* ── Fixture rows (used inside date modal) ── */

.fixture-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.fixture-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.fixture-row.my-match {
  background: rgba(46, 92, 184, 0.07);
  border: 1px solid rgba(46,92,184,0.14);
}

.fx-home { font-weight: 500; text-align: right; }
.fx-away { font-weight: 500; text-align: left; }
.fx-home.my-team, .fx-away.my-team { color: var(--my-team); font-weight: 700; }
.fx-home.winner, .fx-away.winner { color: var(--winner); }

.fx-score {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  min-width: 44px;
  white-space: nowrap;
}

.fx-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  min-width: 60px;
  line-height: 1.3;
  white-space: nowrap;
}

.score-btn {
  background: rgba(var(--brand-blue-rgb),0.1);
  border: 1px solid rgba(var(--brand-blue-rgb),0.25);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  margin-left: 2px;
}

.score-btn:hover { background: rgba(var(--brand-blue-rgb),0.22); }

.score-btn.played {
  background: rgba(26,154,90,0.08);
  border-color: rgba(26,154,90,0.2);
  color: #1a7a45;
}

.score-btn.played:hover { background: rgba(26,154,90,0.18); }

/* ── Squad section (inside date modal) ── */

.squad-tbc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.member-lock {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-bottom: 6px;
  background: rgba(46,92,184,0.08);
  border: 1px solid rgba(46,92,184,0.18);
}

.member-lock strong {
  color: #07162f;
  font-size: 0.95rem;
}

.member-lock p {
  color: rgba(7,22,47,0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.member-lock .btn {
  justify-self: start;
}

.squad-tbc.locked {
  color: rgba(7,22,47,0.62);
}

.squad-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
}

.squad-list span {
  display: inline-flex;
  padding: 5px 9px;
  background: rgba(46,92,184,0.08);
  border: 1px solid rgba(46,92,184,0.16);
  color: #07162f;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   OVERLAYS
══════════════════════════════════════════════ */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding: 20px;
}

.overlay.open { display: flex; }

.overlay-panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  padding: 32px 28px 28px;
  overflow-y: auto;
  background: rgba(244, 251, 254, 0.96);
}

/* Score modal sits above date modal */
#score-overlay { z-index: 300; }

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}

.close-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }

/* ── Full standings table ── */

.overlay-panel h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.overlay-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#full-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#full-standings-table thead tr {
  background: rgba(var(--brand-blue-rgb),0.1);
}

#full-standings-table th {
  padding: 9px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

#full-standings-table th:nth-child(2) { text-align: left; }

#full-standings-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-muted);
}

#full-standings-table td:first-child { color: var(--text-muted); font-weight: 500; }
#full-standings-table td.col-name { text-align: left; font-weight: 600; color: var(--text); }
#full-standings-table td.col-pts { font-weight: 800; color: var(--my-team); font-size: 0.95rem; }
#full-standings-table tr.my-team td { color: var(--my-team); }
#full-standings-table tr.my-team td.col-name { font-weight: 700; }

/* ── Position chart ── */

.chart-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

/* ── Score modal ── */

.score-modal { max-width: 360px; }

.score-modal h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
  color: var(--text-muted);
}

.score-inputs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.score-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.score-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  text-align: center;
}

.score-group input {
  width: 100%;
  padding: 10px 6px;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  outline: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.score-group input:focus { border-color: var(--accent); }

.score-sep {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-top: 20px;
}

.form-error {
  color: #c0392b;
  font-size: 0.82rem;
  text-align: center;
  min-height: 18px;
  margin-bottom: 8px;
}

.form-actions { display: flex; gap: 10px; }

.btn {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: rgba(0,0,0,0.07); color: var(--text-muted); }
.btn.secondary:hover { background: rgba(0,0,0,0.13); }

/* ══════════════════════════════════════════════
   STATIC PAGES
══════════════════════════════════════════════ */

.static-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 24px 56px;
}

.static-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 720px;
}

.static-content--wide {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.about-link {
  color: var(--kit-royal-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,92,184,0.3);
  transition: border-color 0.15s;
}

.about-link:hover { border-bottom-color: var(--kit-royal-blue); }

.static-card {
  width: 100%;
  padding: 28px 28px 32px;
}

.static-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.static-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.static-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.static-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.static-card ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
}

.static-card ul li strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.info-tile {
  background: rgba(var(--brand-blue-rgb),0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-tile-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.info-tile-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.coach-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 22px;
}

.coach-profile {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(var(--brand-blue-rgb),0.18);
  background: rgba(var(--brand-blue-rgb),0.06);
}

.coach-photo-placeholder {
  min-height: 124px;
  border: 1px solid rgba(46,92,184,0.22);
  background: rgba(255,255,255,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coach-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coach-profile-copy h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.coach-profile-copy p {
  margin: 0;
}

.team-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 22px;
}

.team-profile {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border: 1px solid rgba(var(--brand-blue-rgb),0.18);
  background: rgba(var(--brand-blue-rgb),0.06);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.team-profile:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(var(--brand-blue-rgb),0.10);
  transform: translateY(-2px);
}

.team-photo-placeholder,
.team-modal-image-placeholder {
  min-height: 118px;
  border: 1px solid rgba(46,92,184,0.22);
  background: rgba(255,255,255,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-profile-copy h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.team-profile-copy p {
  margin: 0;
  color: var(--text-muted);
}

.team-modal {
  max-width: 620px;
}

.team-modal-image-placeholder,
.team-modal img {
  width: 100%;
  min-height: 260px;
  margin-bottom: 20px;
  object-fit: cover;
}

.document-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.document-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,92,184,0.22);
  padding-bottom: 6px;
  transition: color 0.15s, border-color 0.15s;
}

.document-link:hover {
  color: var(--kit-royal-blue);
  border-bottom-color: var(--kit-royal-blue);
}

/* ── Gallery carousel ── */

.carousel-card {
  position: relative;
  padding: 20px 20px 16px;
}

.carousel-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 240px);
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(0,0,0,0.08);
}

.carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: var(--text);
}

.carousel-btn.prev { left: 28px; }
.carousel-btn.next { right: 28px; }
.carousel-btn:hover { background: rgba(255,255,255,0.97); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 2px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active { background: var(--kit-royal-blue); }

/* ── Matches intro ── */

.matches-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 24px 56px;
}

.matches-layout .home-sections {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
}

.matches-intro-card {
  width: 100%;
  max-width: 720px;
  padding: 18px 24px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.matches-intro-card a {
  color: var(--kit-royal-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46,92,184,0.3);
}

.matches-intro-card a:hover { border-bottom-color: var(--kit-royal-blue); }

.match-fees-section {
  margin-top: 24px;
  max-width: 720px;
}

.match-fees-card {
  padding: 22px 24px 24px;
}

.match-fees-card h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.match-fees-card p {
  font-size: 0.84rem;
  margin-bottom: 10px;
}

/* ── Venue info ── */

.venue-info {
  grid-column: 1 / -1;
  width: 100%;
  padding: 20px 26px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--brand-blue);
  text-align: center;
}

.venue-info p { margin-bottom: 8px; }
.venue-info p:last-child { margin-bottom: 0; }
.venue-info strong { color: var(--brand-blue); }
.venue-info a { color: var(--brand-blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(var(--brand-blue-rgb),0.42); }
.venue-info a:hover { border-bottom-color: var(--brand-blue); }

/* ── Gear items ── */

.gear-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.gear-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.gear-item a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.gear-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.gear-item img {
  width: 120px;
  height: auto;
  display: block;
}

.gear-item-colour {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kit-royal-blue);
  text-align: left;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 640px) {
  .page-header { padding: 34px 70px 10px; }
  .back-link { top: 14px; left: 14px; font-size: 0.72rem; padding: 5px 10px; }
  .page-title { font-size: 1.3rem; }

  .layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 36px;
    align-items: stretch;
    gap: 16px;
  }

  .leaderboard-panel { width: 100%; }
  .venue-info { grid-column: auto; }
  .date-list { width: 100%; }
  .date-label { font-size: 1.1rem; }

  .home-sections { grid-template-columns: repeat(2, 1fr); }
  .home-title { font-size: 1.8rem; }

  .static-content { grid-template-columns: 1fr; }
  .static-card { padding: 24px 18px 28px; }
  .coach-profile-grid { grid-template-columns: 1fr; }
  .team-profile-grid { grid-template-columns: 1fr; }
  .static-layout { padding: 24px 16px 36px; }
  .matches-layout { padding: 24px 16px 36px; }
  .page-logo { margin: 22px auto 46px; }

  .standings-carousel-section { padding: 0 8px; max-width: 100%; }
  .standings-slide-inner { padding: 18px 18px 16px; }
  .slide-team-name { font-size: 1rem; }
  .position-num { font-size: 2.4rem; }
  .pay-modal { padding: 22px 20px 22px; }
  .pay-amount { font-size: 1.8rem; }
  #auth-chip { top: 14px !important; right: 14px !important; }
  .auth-btn { font-size: 0.72rem; padding: 5px 10px; min-height: 26px; }
  .home-layout { gap: 36px; padding: 60px 16px 110px; }
  .home-sections {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .home-section-card,
  .home-section-card.matches,
  .home-section-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 128px;
    padding: 24px 22px;
  }

  .home-section-card.matches .section-title {
    font-size: 1.2rem;
  }
}

/* ══════════════════════════════════════════════
   AUTH CHIP (login button in header)
══════════════════════════════════════════════ */

#auth-chip {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
}

#auth-chip.auth-chip-floating {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
}

body.is-coach #auth-chip,
body.is-coach #auth-chip.auth-chip-floating {
  top: 50px;
}

.auth-btn {
  color: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  gap: 8px;
  font-family: inherit;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-btn-loggedin .auth-name { font-weight: 600; letter-spacing: 0.1px; }

.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(248, 252, 254, 0.98);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  overflow: hidden;
  padding: 4px;
  z-index: 51;
}

.auth-menu[hidden] { display: none; }

.auth-menu-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}

.auth-menu-item:hover { background: rgba(var(--brand-blue-rgb),0.12); color: var(--accent-dark); }

.player-gate-modal {
  max-width: 460px;
}

.player-gate-modal h2 {
  margin: 6px 0 10px;
}

.player-gate-modal p {
  color: rgba(7,22,47,0.70);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.test-access-banner {
  position: relative;
  z-index: 60;
  width: 100%;
  padding: 9px 18px;
  background: #c92525;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Coach-only affordances — hidden by default, shown when body has .is-coach */
.coach-only { display: none; }
body.is-coach .coach-only { display: inline-flex; }

.coach-edit-btn {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--brand-blue-rgb),0.10);
  border: 1px solid rgba(var(--brand-blue-rgb),0.28);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.coach-edit-btn:hover { background: rgba(var(--brand-blue-rgb),0.22); }

.coach-banner {
  display: none;
  background: linear-gradient(90deg, rgba(90,189,224,0.92), rgba(46,92,184,0.92));
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 60;
}

body.is-coach .coach-banner { display: block; }
body.is-coach .page-header { margin-top: 28px; }
body.is-coach .back-link { top: 50px; }
body.is-coach .auth-chip-floating { top: 50px; }

/* Score-edit affordances are coach-only (read-only for parents/players) */
body:not(.is-coach) .score-btn { display: none; }
body:not(.is-coach) .fixture-row { padding-right: 4px; }

/* ══════════════════════════════════════════════
   FORM PRIMITIVES (used in login + payment + newsletter)
══════════════════════════════════════════════ */

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  font-size: 0.95rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.85);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.field-input:focus { border-color: var(--accent); background: #fff; }

.demo-hint {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(46,92,184,0.08);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.demo-hint strong { color: var(--text); display: block; margin-bottom: 2px; }
.demo-hint code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ══════════════════════════════════════════════
   PAYMENT MODAL
══════════════════════════════════════════════ */

.pay-modal { max-width: 460px; padding: 32px 28px 26px; }

.pay-header {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pay-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.pay-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.pay-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pay-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-top: 10px;
}

.pay-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.pay-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pay-lock { margin-right: 4px; }

.pay-success { text-align: center; padding: 8px 4px 4px; }

.pay-tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26,154,90,0.12);
  color: #1a7a45;
  font-size: 2.4rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pay-success h2 { margin-bottom: 8px; }
.pay-success-line { color: var(--text); font-size: 0.95rem; margin-bottom: 6px; }
.pay-success-note { color: var(--text-muted); font-size: 0.85rem; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}

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

/* ══════════════════════════════════════════════
   PAY BUTTONS (inline in static cards)
══════════════════════════════════════════════ */

.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-family: inherit;
}

.pay-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.pay-btn-subtle {
  background: rgba(46,92,184,0.12);
  color: var(--accent-dark);
  padding: 7px 12px;
  font-size: 0.76rem;
  border: 1px solid rgba(46,92,184,0.18);
}

.pay-btn-subtle:hover {
  background: rgba(46,92,184,0.18);
  transform: translateY(-1px);
}

.pay-btn:disabled,
.pay-btn-subtle:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.pay-btn-amount {
  background: rgba(255,255,255,0.22);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pay-card {
  background: rgba(var(--brand-blue-rgb),0.08);
  border: 1px solid rgba(var(--brand-blue-rgb),0.18);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.gear-product-overlay {
  background: rgba(4, 10, 18, 0.72);
}

.gear-product-modal {
  position: relative;
  width: min(92vw, 720px);
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.96);
  border: 1px solid rgba(90,189,224,0.22);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
  animation: gearModalIn 0.22s ease-out;
}

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

.gear-product-media {
  min-height: 320px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.gear-product-info {
  padding: 34px 30px 28px;
  color: #fff;
}

.gear-product-info h2 {
  font-size: 1.35rem;
  margin: 4px 0 8px;
}

.gear-product-info p {
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.gear-product-info .pay-eyebrow,
.gear-product-info .field-label {
  color: var(--brand-blue);
}

.gear-size-select {
  margin-bottom: 18px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(90,189,224,0.34);
  color: #fff;
}

.gear-size-select option {
  color: var(--text);
}

.gear-purchase-btn {
  width: 100%;
}

.gear-product-note {
  margin: 14px 0 0 !important;
  font-size: 0.74rem !important;
  color: rgba(255,255,255,0.52) !important;
  text-align: center;
}

.gear-close-btn {
  color: rgba(255,255,255,0.78);
}

.gear-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

@media (max-width: 640px) {
  .gear-product-modal {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .gear-product-media {
    min-height: 220px;
  }

  .gear-product-info {
    padding: 26px 22px 24px;
  }
}

.pay-card-info { flex: 1; }
.pay-card-info strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.pay-card-info span { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .pay-card { flex-direction: column; align-items: stretch; }
  .pay-card .pay-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */

.newsletter-card {
  background: linear-gradient(135deg, rgba(46,92,184,0.10), rgba(90,189,224,0.12));
  border: 1px solid rgba(46,92,184,0.18);
  border-radius: 10px;
  padding: 18px 20px 20px;
  margin-top: 18px;
}

.newsletter-card h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 0 4px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.newsletter-card p { margin-bottom: 14px !important; font-size: 0.85rem !important; }

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 11px 13px;
  font-size: 0.9rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  min-width: 0;
}

.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.newsletter-form button:hover { background: var(--accent-dark); }

.newsletter-thanks { text-align: center; padding: 4px 0; }

.newsletter-tick {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26,154,90,0.15);
  color: #1a7a45;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 11px; }
}

/* ══════════════════════════════════════════════
   STANDINGS CAROUSEL (homepage)
══════════════════════════════════════════════ */

.standings-carousel-section {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 0;
}

.standings-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.standings-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.standings-slides { position: relative; }

.standings-slide {
  animation: slideFade 0.55s ease;
}

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

.standings-slide-inner {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slide-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slide-league {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.slide-team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.slide-position {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: -4px;
}

.position-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}

.position-suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.context-standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.context-standings th {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.context-standings th.col-name { text-align: left; }

.context-standings td {
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--text-muted);
}

.context-standings td.col-name {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.context-standings td.col-pts {
  font-weight: 800;
  color: var(--text);
}

.context-standings tr:last-child td { border-bottom: none; }

.context-standings tr.my-team td { color: var(--my-team); }
.context-standings tr.my-team td.col-name { font-weight: 700; }
.context-standings tr.my-team td.col-pts { font-weight: 800; }

.slide-cta {
  align-self: flex-end;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-top: 2px;
}

.slide-cta:hover { color: var(--accent-dark); }

.standings-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.standings-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.40);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.standings-dot:hover { transform: scale(1.2); }
.standings-dot.active { background: #fff; }

.standings-slide-empty {
  padding: 28px 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   SHARP PREMIUM FINISH
══════════════════════════════════════════════ */

.glass-card,
.static-card,
.home-section-card,
.leaderboard-panel,
.date-card,
.overlay-panel,
.pay-modal,
.auth-menu,
.pay-card,
.gear-product-modal,
.newsletter-card,
.info-tile,
.carousel-card,
.carousel-image-wrap,
.gear-item a {
  border-radius: 0;
  box-shadow: none;
}

.glass-card {
  border: 1px solid rgba(255,255,255,0.14);
}

.home-section-card:hover,
.leaderboard-panel:hover,
.date-card:hover,
.gear-item a:hover {
  box-shadow: none;
  border-color: rgba(255,255,255,0.28);
}

.back-link,
.auth-btn,
.team-tab,
.section-team-link,
.score-btn,
.close-btn,
.btn,
.pay-btn,
.pay-btn-subtle,
.coach-edit-btn,
.field-input,
.demo-hint,
.auth-menu-item,
.date-status,
.pay-btn-amount,
.newsletter-form input,
.newsletter-form button {
  border-radius: 2px;
}

.static-card ul li,
.fixture-row,
.score-group input,
.pay-tick,
.newsletter-tick {
  border-radius: 0;
}

.auth-avatar,
.carousel-btn,
.carousel-dot,
.standings-dot {
  border-radius: 2px;
}

.back-link,
.auth-btn,
.team-tab {
  border: 1px solid rgba(255,255,255,0.16);
}

.auth-menu,
.gear-product-modal {
  border: 1px solid rgba(255,255,255,0.08);
}

.gear-product-modal {
  box-shadow: none;
}

/* ══════════════════════════════════════════════
   EDITORIAL PANEL TREATMENT
══════════════════════════════════════════════ */

.glass-card {
  background: rgba(12, 30, 58, 0.50);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.92);
}

.static-card,
.home-section-card,
.leaderboard-panel,
.date-card,
.matches-intro-card,
.standings-carousel {
  padding: 30px 32px;
}

.home-section-card {
  justify-content: flex-start;
  gap: 10px;
}

.home-section-card:nth-child(1),
.home-section-card:nth-child(4) {
  padding-top: 30px;
}

.home-section-card:hover,
.leaderboard-panel:hover,
.date-card:hover,
.team-profile:hover,
.gear-item a:hover {
  transform: translateY(-2px);
  background: rgba(12, 30, 58, 0.62);
}

.section-title,
.static-card h2,
.leaderboard-panel h2,
.slide-team-name,
.date-label,
.pay-item,
.team-modal h2 {
  color: #fff;
}

.section-title,
.static-card h2 {
  font-weight: 800;
  letter-spacing: 0;
}

.static-card h2 {
  font-size: 1.38rem;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.static-card h3,
.slide-league,
.field-label,
.pay-eyebrow,
.document-link,
#full-standings-table th,
.overlay-panel h3,
.score-modal h3,
.score-group label {
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.8px;
}

.static-card h3 {
  margin: 30px 0 12px;
}

.section-desc,
.static-card p,
.matches-intro-card,
.matches-intro-card p,
.mini-table .col-pts,
.mini-table .col-last,
.expand-hint,
.fx-meta,
.pay-subtitle,
.pay-footer,
.pay-success-note,
.team-profile-copy p,
.coach-profile-copy p,
.document-link,
.context-standings td,
.context-standings th,
.position-suffix {
  color: rgba(255,255,255,0.68);
}

.overlay-panel h2,
.pay-success-line,
#full-standings-table td.col-name,
#full-standings-table td.col-pts,
#full-standings-table tr.my-team td,
.newsletter-card h3 {
  color: #fff !important;
}

#full-standings-table td,
#full-standings-table td:first-child,
.chart-empty,
.score-sep {
  color: rgba(255,255,255,0.66);
}

.static-card p {
  font-size: 0.86rem;
  line-height: 1.72;
}

.static-card ul {
  gap: 8px;
  margin: 16px 0 10px;
}

.static-card ul li,
.pay-card,
.info-tile,
.coach-profile,
.team-profile,
.newsletter-card,
.demo-hint {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
}

.static-card ul li {
  color: rgba(255,255,255,0.84);
  padding: 12px 14px;
}

.static-card ul li strong,
.info-tile-value,
.coach-profile-copy h4,
.team-profile-copy h4,
.pay-card-info strong,
.context-standings td.col-name,
.context-standings td.col-pts,
.mini-table .col-team,
.mini-table tr.my-team td {
  color: #fff;
}

.about-link,
.matches-intro-card a {
  color: var(--brand-blue);
  border-bottom-color: rgba(var(--brand-blue-rgb),0.42);
}

.pay-card {
  padding: 16px 18px;
  gap: 18px;
}

.pay-card-info span {
  color: rgba(255,255,255,0.62);
}

.pay-btn {
  background: rgba(var(--brand-blue-rgb),0.90);
  color: #06101f;
  padding: 9px 15px;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.pay-btn:hover {
  background: #fff;
  color: #06101f;
}

.pay-btn-subtle {
  background: transparent;
  color: rgba(255,255,255,0.76);
  border-color: rgba(255,255,255,0.16);
}

.pay-btn-subtle:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.pay-btn-amount {
  background: rgba(3,12,30,0.22);
}

.coach-photo-placeholder,
.team-photo-placeholder,
.team-modal-image-placeholder,
.carousel-image-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.58);
}

.mini-table th,
.mini-table td,
.context-standings th,
.context-standings td,
#full-standings-table td,
#full-standings-table th {
  border-color: rgba(255,255,255,0.10);
}

#full-standings-table thead tr {
  background: rgba(255,255,255,0.055);
}

.date-header {
  padding: 13px 20px;
}

.date-status,
.score-btn,
.coach-edit-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.overlay-panel {
  background: rgba(3, 12, 30, 0.90);
  border: 1px solid rgba(255,255,255,0.12);
}

.newsletter-form input,
.field-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.field-input:focus,
.newsletter-form input:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(var(--brand-blue-rgb),0.55);
}

.btn.secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.72);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.12);
}

.close-btn {
  color: rgba(255,255,255,0.62);
}

.close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.newsletter-form input::placeholder,
.field-input::placeholder {
  color: rgba(255,255,255,0.44);
}

.standings-carousel.glass-card {
  background: rgba(3, 12, 30, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 22px 24px;
}

.standings-carousel .standings-slide-inner {
  padding: 0;
}

.back-link,
.auth-btn {
  border-radius: 18px;
}

.team-tab {
  border-radius: 18px;
}

.date-header {
  padding: 9px 18px;
}

.date-label {
  font-size: 1rem;
}

.fixtures-panel {
  gap: 6px;
}

.date-list {
  gap: 6px;
}

.chevron {
  font-size: 1.35rem;
  padding: 0 20px;
}

.date-header {
  min-height: 42px;
  padding: 7px 16px;
}

.date-label {
  font-size: 0.94rem;
}

.date-status {
  font-size: 0.64rem;
  padding: 1px 6px;
}

.fixtures-panel {
  align-self: stretch;
  height: 100%;
}

.fixtures-panel .chevron {
  display: none;
}

.date-list {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(0, 1fr));
  height: 100%;
  gap: 7px;
}

.date-card {
  display: flex;
}

.date-header {
  width: 100%;
  min-height: 0;
  padding: 6px 14px;
}

.date-label {
  font-size: 0.9rem;
}

.date-status {
  font-size: 0.6rem;
}

/* Homepage interactive equal grid */
.home-sections {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
  max-width: 860px;
  align-items: stretch;
}

.home-section-card {
  min-height: 0;
  padding: 24px 26px;
  background: rgba(12, 30, 58, 0.42);
  gap: 8px;
  transform-origin: center;
  transition: transform 0.22s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-section-card.matches {
  grid-column: auto;
  grid-row: auto;
  padding: 24px 26px;
}

.home-section-card:hover {
  background: rgba(12, 30, 58, 0.54);
  transform: scale(1.06);
  z-index: 2;
}

.home-section-card .section-title {
  font-size: 1.05rem;
  line-height: 1.15;
}

.home-section-card.matches .section-title {
  font-size: 1.05rem;
}

.home-section-card .section-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  max-width: 28ch;
}

.home-section-card.matches .section-desc {
  font-size: 0.76rem;
  max-width: 28ch;
}

.home-section-card .section-team-links {
  margin-top: auto;
}

/* ══════════════════════════════════════════════
   LIGHT PREMIUM BRAND DIRECTION
══════════════════════════════════════════════ */

body {
  background: #f4f7fb;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(244,247,251,0.84)),
    rgba(255,255,255,0.28);
}

.page-title,
.home-title {
  color: #07162f;
  text-shadow: none;
}

.home-layout {
  gap: 58px;
  padding: 88px 24px 56px;
  overflow: hidden;
}

body::after {
  content: '';
  position: fixed;
  width: min(62vw, 680px);
  aspect-ratio: 1;
  right: max(-180px, -10vw);
  top: 40px;
  background: url('images/renegades logo background.png') center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.home-layout > * {
  position: relative;
  z-index: 1;
}

.home-title {
  max-width: 900px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #07162f;
}

.home-title::after {
  content: '';
  display: block;
  width: 112px;
  height: 8px;
  margin: 24px auto 0;
  background: var(--brand-orange);
}

.back-link,
.auth-btn,
.team-tab {
  color: #07162f;
  background: rgba(255,255,255,0.78);
  border-color: rgba(46,92,184,0.22);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-link:hover,
.auth-btn:hover,
.team-tab:hover {
  background: #fff;
  border-color: var(--brand-blue);
}

.glass-card {
  background: rgba(255,255,255,0.78);
  color: #07162f;
  border: 1px solid rgba(46,92,184,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-sections {
  max-width: 980px;
  gap: 14px;
}

.home-section-card {
  position: relative;
  min-height: 154px;
  padding: 22px 24px 20px;
  background: rgba(255,255,255,0.82);
  border-color: rgba(46,92,184,0.18);
  color: #07162f;
}

.home-section-card::after {
  content: '→';
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--brand-orange);
  font-size: 1.1rem;
  font-weight: 800;
}

.home-section-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--kit-royal-blue);
}

.home-section-card:nth-child(even)::before {
  background: var(--brand-orange);
}

.home-section-card:hover {
  background: #fff;
  border-color: rgba(46,92,184,0.38);
  transform: scale(1.04);
}

.home-section-card .section-title {
  color: #07162f;
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.home-section-card .section-desc {
  color: rgba(7,22,47,0.68);
  font-size: 0.74rem;
}

.section-team-link {
  color: var(--kit-royal-blue);
  background: rgba(46,92,184,0.08);
  border-color: rgba(46,92,184,0.22);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.section-team-link:hover {
  background: rgba(46,92,184,0.14);
}

.standings-eyebrow {
  color: #07162f;
  text-shadow: none;
}

.standings-carousel.glass-card {
  background: rgba(255,255,255,0.78);
  border-color: rgba(46,92,184,0.18);
}

.slide-team-name,
.position-num,
.context-standings td.col-name,
.context-standings td.col-pts {
  color: #07162f;
}

.slide-league,
.context-standings th,
.context-standings td,
.position-suffix {
  color: rgba(7,22,47,0.62);
}

.slide-cta {
  color: var(--kit-royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-dot {
  background: rgba(46,92,184,0.22);
}

.standings-dot.active {
  background: var(--brand-orange);
}

.static-card,
.leaderboard-panel,
.date-card,
.matches-intro-card,
.pay-card,
.info-tile,
.coach-profile,
.team-profile,
.newsletter-card,
.venue-info {
  background: rgba(255,255,255,0.80);
  border-color: rgba(46,92,184,0.18);
  color: #07162f;
}

.static-card h2,
.static-card h3,
.leaderboard-panel h2,
.date-label,
.pay-card-info strong,
.coach-profile-copy h4,
.team-profile-copy h4 {
  color: #07162f;
}

.leaderboard-panel .mini-table th,
.leaderboard-panel .mini-table td,
.leaderboard-panel .expand-hint {
  color: #384357;
}

.leaderboard-panel .mini-table tr.my-team td,
.leaderboard-panel .mini-table tr.my-team .col-pts {
  color: var(--kit-royal-blue);
}

.static-card h2 {
  border-bottom-color: rgba(46,92,184,0.18);
}

.static-card h3,
.static-card p,
.section-desc,
.pay-card-info span,
.coach-profile-copy p,
.team-profile-copy p,
.document-link,
.matches-intro-card,
.matches-intro-card p {
  color: rgba(7,22,47,0.68);
}

.static-card ul li,
.demo-hint {
  background: rgba(46,92,184,0.06);
  border-color: rgba(46,92,184,0.14);
  color: #07162f;
}

.about-link,
.document-link,
.matches-intro-card a,
.venue-info,
.venue-info strong,
.venue-info a {
  color: var(--kit-royal-blue);
}

.pay-btn {
  background: var(--kit-royal-blue);
  color: #fff;
}

.pay-btn:hover {
  background: #07162f;
  color: #fff;
}

.page-logo {
  mix-blend-mode: normal;
  opacity: 0.78;
}

.fixtures-panel {
  align-self: stretch;
  height: 100%;
  gap: 0;
}

.date-list {
  display: flex;
  justify-content: space-between;
  height: 100%;
  gap: 6px;
}

.date-card {
  padding: 0;
  min-height: 30px;
}

.date-header {
  min-height: 30px;
  padding: 3px 10px;
  position: relative;
}

.date-label {
  font-size: 0.78rem;
  text-align: center;
}

.date-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.52rem;
  padding: 1px 4px;
}

@media (max-width: 640px) {
  .home-layout {
    padding-top: 72px;
  }

  body::after {
    width: 420px;
    right: -190px;
    top: 110px;
  }

  .home-title {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }
}

/* About page contrast pass */
body.about-page .static-card,
body.about-page .coach-profile,
body.about-page .team-profile,
body.about-page .newsletter-card {
  background: rgba(246,249,253,0.90);
  border-color: rgba(46,92,184,0.22);
  color: #07162f;
}

body.about-page .static-card h2,
body.about-page .static-card h3,
body.about-page .coach-profile-copy h4,
body.about-page .team-profile-copy h4,
body.about-page .newsletter-card h3 {
  color: #07162f !important;
}

body.about-page .static-card p,
body.about-page .coach-profile-copy p,
body.about-page .team-profile-copy p,
body.about-page .newsletter-card p {
  color: rgba(7,22,47,0.72) !important;
}

body.about-page .coach-photo-placeholder,
body.about-page .team-photo-placeholder {
  background: rgba(7,22,47,0.78);
  border-color: rgba(7,22,47,0.26);
  color: rgba(255,255,255,0.74);
}

body.about-page .newsletter-form input {
  background: rgba(255,255,255,0.96);
  border-color: rgba(46,92,184,0.30);
  color: #07162f;
}

body.about-page .newsletter-form input::placeholder {
  color: rgba(7,22,47,0.48);
}

body.about-page .newsletter-form input:focus {
  background: #fff;
  border-color: var(--kit-royal-blue);
}

body.about-page .newsletter-form button {
  background: var(--kit-royal-blue);
  color: #fff;
}

body.about-page .newsletter-form button:hover {
  background: #07162f;
}

/* Homepage dashboard layout */
.home-dashboard {
  width: min(1120px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.home-dashboard .standings-carousel-section {
  max-width: none;
  padding: 0;
  align-items: stretch;
  position: relative;
}

.home-dashboard .standings-eyebrow {
  text-align: left;
  position: absolute;
  left: 0;
  top: -1.45rem;
}

.home-dashboard .home-sections {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 136px;
  gap: 14px;
}

.home-dashboard .home-section-card,
.home-dashboard .home-section-card.matches {
  min-height: 0;
  padding: 20px 22px;
}

.home-dashboard .home-section-card:nth-child(3)::before {
  background: var(--brand-orange);
}

.home-dashboard .home-section-card:nth-child(4)::before {
  background: var(--kit-royal-blue);
}

@media (max-width: 900px) {
  .home-dashboard {
    width: min(680px, calc(100vw - 32px));
    grid-template-columns: 1fr;
  }

  .home-dashboard .standings-eyebrow {
    text-align: center;
  }

  .home-dashboard .standings-eyebrow { position: static; }
}

@media (max-width: 640px) {
  .home-dashboard {
    width: calc(100vw - 32px);
  }

  .home-dashboard .home-sections {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* Light card contrast pass */
.static-layout .glass-card,
.matches-layout > .glass-card,
.matches-layout .static-card,
.matches-layout .pay-card,
.static-layout .pay-card,
.static-layout .newsletter-card {
  background: rgba(255,255,255,0.84);
  border-color: rgba(46,92,184,0.18);
  color: #07162f;
}

.static-layout .static-card h2,
.static-layout .static-card h3,
.static-layout .pay-card-info strong,
.static-layout .newsletter-card h3,
.matches-layout .matches-intro-card,
.matches-layout .matches-intro-card p,
.matches-layout .static-card h2,
.matches-layout .static-card h3,
.matches-layout .pay-card-info strong {
  color: #07162f !important;
}

.static-layout .static-card p,
.static-layout .static-card li,
.static-layout .static-card li strong,
.static-layout .pay-card-info span,
.static-layout .newsletter-card p,
.matches-layout .static-card p,
.matches-layout .static-card li,
.matches-layout .static-card li strong,
.matches-layout .pay-card-info span {
  color: rgba(7,22,47,0.72) !important;
}

.static-layout .static-card ul li,
.matches-layout .static-card ul li {
  background: rgba(46,92,184,0.06);
  border-color: rgba(46,92,184,0.14);
}

.static-layout .about-link,
.static-layout .document-link,
.matches-layout .matches-intro-card a {
  color: var(--kit-royal-blue);
  border-bottom-color: rgba(46,92,184,0.34);
}

.static-layout .field-label {
  color: rgba(7,22,47,0.68);
}

.static-layout .field-input,
.static-layout .newsletter-form input {
  background: rgba(255,255,255,0.96);
  border-color: rgba(46,92,184,0.28);
  color: #07162f;
}

.static-layout .field-input::placeholder,
.static-layout .newsletter-form input::placeholder {
  color: rgba(7,22,47,0.48);
}

/* Mobile fit pass */
@media (max-width: 640px) {
  .page-header {
    padding: 62px 16px 12px;
  }

  .header-centre,
  .team-heading {
    min-width: 0;
  }

  .page-title,
  .home-title,
  .team-tab,
  .date-label,
  .fx-home,
  .fx-away,
  .fx-score,
  .fx-meta,
  .score-btn,
  .section-team-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .page-title {
    max-width: min(100%, 22rem);
    line-height: 1.08;
    text-align: center;
  }

  .home-layout {
    min-height: auto;
    padding: 76px 16px 56px;
    overflow: visible;
  }

  .home-dashboard,
  .home-sections,
  .matches-layout,
  .static-layout,
  .static-content {
    width: 100%;
    min-width: 0;
  }

  .home-sections,
  .home-dashboard .home-sections {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(116px, auto);
    align-items: stretch;
  }

  .home-section-card,
  .home-section-card.matches,
  .home-dashboard .home-section-card,
  .home-dashboard .home-section-card.matches {
    min-height: 116px;
    height: auto;
    overflow: visible;
    padding: 22px 20px 34px;
    transform: none;
  }

  .home-section-card:hover {
    transform: none;
  }

  .home-section-card .section-title,
  .home-section-card.matches .section-title {
    font-size: 1rem;
    line-height: 1.2;
    max-width: calc(100% - 28px);
    overflow-wrap: anywhere;
  }

  .home-section-card .section-desc,
  .home-section-card.matches .section-desc {
    max-width: calc(100% - 28px);
    overflow-wrap: anywhere;
  }

  .section-team-links {
    flex-wrap: wrap;
  }

  .static-card,
  .matches-intro-card,
  .pay-card,
  .newsletter-card,
  .leaderboard-panel,
  .venue-info,
  .overlay-panel {
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow-wrap: anywhere;
  }

  .static-card,
  .matches-intro-card {
    padding: 22px 18px 26px;
  }

  .static-card h2,
  .static-card h3,
  .static-card p,
  .static-card li,
  .pay-card-info strong,
  .pay-card-info span,
  .matches-intro-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pay-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pay-card .pay-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .date-list {
    height: auto;
    grid-template-rows: none;
  }

  .date-card,
  .date-header {
    min-height: 44px;
    height: auto;
  }

  .date-header {
    padding-right: 70px;
  }

  .fixture-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .fixture-row .fx-meta {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .fixture-row .score-btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .page-title {
    font-size: 1.15rem;
  }

  .home-title {
    font-size: 2.35rem;
  }

  .static-card,
  .matches-intro-card {
    padding-left: 14px;
    padding-right: 14px;
  }
}
