/* ============================================================
   Footy Genius — Design System & Styles
   Brand-matched CSS from the iOS/Android app
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primary */
  --teal: #26A69A;
  --teal-dark: #1A3C37;
  --teal-light: #4DB6AC;
  --teal-50: rgba(38, 166, 154, 0.08);
  --teal-100: rgba(38, 166, 154, 0.15);
  --teal-200: rgba(38, 166, 154, 0.25);

  /* Neutral */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Rating */
  --elite: #2E7D32;
  --good: #26A69A;
  --developing: #F57C00;
  --needs-work: #C62828;

  /* Semantic */
  --bg: #F8FAF9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --text-primary: #1A3C37;
  --text-secondary: #646464;
  --text-muted: #9E9E9E;
  --border: rgba(38, 166, 154, 0.12);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);

  /* Card elevation (Apple-style layered shadows) */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Status colours */
  --live-green: #34C759;
  --win-green: #2E7D32;
  --draw-amber: #F57C00;
  --loss-red: #C62828;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font: -apple-system, 'SF Pro Rounded', 'SF Pro Display', system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration: 0.3s;
  --duration-fast: 0.15s;

  /* Layout */
  --container: 1200px;
  --container-sm: 720px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--sm {
  max-width: var(--container-sm);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--col {
  flex-direction: column;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(248, 250, 249, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-dark);
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease);
}

.nav__links a:hover {
  color: var(--teal);
}

.nav__link--active {
  color: var(--teal) !important;
  font-weight: 700 !important;
}

/* --- Nav Account Dropdown --- */
.nav__account-wrapper {
  position: relative;
}

.nav__account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease);
}

.nav__account-trigger:hover {
  color: var(--teal);
  background: var(--teal-50);
}

.nav__account-trigger.open,
.nav__account-trigger.nav__link--active {
  color: var(--teal);
}

.nav__account-chevron {
  transition: transform var(--duration-fast) var(--ease);
}

.nav__account-trigger.open .nav__account-chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border);
  list-style: none;
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--duration-fast) var(--ease);
  z-index: 1000;
}

.nav__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary) !important;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
  text-decoration: none !important;
}

.nav__dropdown-link:hover {
  background: var(--teal-50);
  color: var(--teal) !important;
}

.nav__dropdown-link--danger {
  color: var(--needs-work) !important;
}

.nav__dropdown-link--danger:hover {
  background: rgba(198, 40, 40, 0.06);
  color: var(--needs-work) !important;
}

.nav__dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xs) 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.nav__cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: var(--space-2xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    z-index: 999;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.25rem;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav__account-trigger {
    font-size: 1.25rem;
    padding: 0;
  }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    padding-left: var(--space-md);
    display: none;
  }

  .nav__dropdown.open {
    display: block;
  }

  .nav__dropdown-link {
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .nav__dropdown-divider {
    margin: var(--space-xs) 0;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.35);
}

.btn--primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.45);
}

.btn--secondary {
  background: var(--white);
  color: var(--teal-dark);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  padding: 14px 20px;
}

.btn--ghost:hover {
  background: var(--teal-50);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn--danger {
  background: var(--needs-work);
  color: var(--white);
}

.btn--danger:hover {
  background: #B71C1C;
  color: var(--white);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow);
}

.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card--flat {
  border: none;
  box-shadow: 0 1px 3px var(--shadow);
}

.card--flat:hover {
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(38, 166, 154, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(38, 166, 154, 0.06) 0%, transparent 50%),
    var(--bg);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-lg);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: var(--gray-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(26, 60, 55, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--gray-900);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Floating stats around hero phone */
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 8px 32px var(--shadow-lg);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.hero__float--1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 25%;
  right: -5%;
  animation-delay: 2s;
}

.hero__float--3 {
  bottom: 10%;
  left: -5%;
  animation-delay: 4s;
}

.hero__float-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero__float-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-dark);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone {
    width: 240px;
    height: 480px;
  }

  .hero__float {
    display: none;
  }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* --- Features --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Screenshot Showcase --- */
.showcase {
  position: relative;
}

.showcase__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-lg);
}

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

.showcase__item {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

.showcase__item:first-child {
  margin-left: auto;
}

.showcase__item:last-child {
  margin-right: auto;
}

.showcase__frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--gray-900);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 60px var(--shadow-lg);
}

.showcase__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.showcase__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__caption {
  text-align: center;
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--text-primary);
}

/* Web screenshot card variant (landscape) */
.showcase__item--web {
  flex: 0 0 min(420px, 90vw);
}

.showcase__item--web .showcase__frame {
  width: min(420px, 90vw);
  height: 560px;
  border-radius: 18px;
  padding: 8px;
}

.showcase__item--web .showcase__screen {
  border-radius: 12px;
  background: #ffffff;
}

.showcase__item--web .showcase__screen img {
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 768px) {
  .showcase__item--web {
    flex: 0 0 min(320px, 92vw);
  }

  .showcase__item--web .showcase__frame {
    width: min(320px, 92vw);
    height: 560px;
  }
}

/* Placeholder for screenshots */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--gray-100) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: inherit;
}

.screenshot-placeholder__icon {
  font-size: 2rem;
  opacity: 0.5;
}

.screenshot-placeholder__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Rating Demo --- */
.rating-demo {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.rating-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.rating-circle--elite { background: var(--elite); }
.rating-circle--good { background: var(--good); }
.rating-circle--developing { background: var(--developing); }
.rating-circle--needs-work { background: var(--needs-work); }

.rating-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Stats (counter section) --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stats-row__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stats-row__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row__number {
    font-size: 1.5rem;
  }
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  max-width: 500px;
  margin: var(--space-md) auto var(--space-xl);
}

.cta-section .btn--primary {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  position: relative;
}

.cta-section .btn--primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.footer__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Floating Social Bar --- */
.social-float {
  position: fixed;
  top: 38%;
  right: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: rgba(10, 24, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.social-float__label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.social-float__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.social-float__link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-float__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .social-float {
    top: auto;
    bottom: 18px;
    right: 16px;
    flex-direction: row;
    border-radius: 999px;
    padding: 10px 12px;
  }

  .social-float__label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-right: 6px;
  }
}

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- Platform Badges --- */
.store-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-lg);
  color: var(--white);
}

.store-badge--disabled {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}

.store-badge--disabled:hover {
  transform: none;
  box-shadow: none;
}

.store-badge__label {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
  line-height: 1;
}

.store-badge__name {
  font-size: 1rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

.interest-form {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(3, 19, 31, 0.42);
  text-align: left;
  position: relative;
  z-index: 2;
}

.interest-form__title {
  margin-bottom: var(--space-xs);
}

.interest-form__intro {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
}

.interest-form__row {
  margin-bottom: var(--space-md);
}

.interest-form__label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.interest-form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.interest-form__input:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2);
}

.interest-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  line-height: 1.4;
  width: 100%;
  justify-content: flex-start;
}

.interest-form__check input {
  margin-top: 2px;
}

.interest-form__submit {
  margin-top: var(--space-sm);
}

.interest-form__message {
  min-height: 1.25rem;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.interest-form__message.error {
  color: #ffd2d2;
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.contact-form__group {
  margin-bottom: var(--space-md);
}

.contact-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.15);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.contact-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  font-size: 0.875rem;
}

.contact-form__check input {
  margin-top: 3px;
}

.contact-form__check a {
  color: var(--teal);
  text-decoration: underline;
}

.contact-form__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.contact-form__conditional {
  margin-bottom: var(--space-sm);
}

.contact-form__message {
  min-height: 1.25rem;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--teal-dark);
}

.contact-form__message.error {
  color: var(--needs-work);
}

.contact-form__fallback {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-form__fallback a {
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-form {
    padding: var(--space-md);
  }

  .contact-form__textarea {
    min-height: 120px;
  }
}

.privacy-request {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-request__title {
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.privacy-request__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
}

.privacy-request__select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 10px 12px;
}

.privacy-request__message {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
}

.privacy-request__message.error {
  color: #ffd2d2;
}

.media-highlight {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.media-highlight__text h3 {
  margin-bottom: var(--space-sm);
}

.media-highlight__text p {
  margin: 0;
  color: var(--text-muted);
}

.media-highlight__placeholder {
  min-height: 220px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: var(--space-md);
}

.admin-actions {
  margin: var(--space-md) 0;
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

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

/* --- Login / Auth --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(38, 166, 154, 0.1) 0%, transparent 50%),
    var(--bg);
  padding: var(--space-lg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid var(--border);
}

.auth-card__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.auth-card__logo img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
}

.auth-card__logo h1 {
  font-size: 1.5rem;
}

.auth-card__logo p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-100);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input--error {
  border-color: var(--needs-work);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--needs-work);
  margin-top: var(--space-xs);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.btn--google {
  background: var(--white);
  color: var(--text-primary);
  border: 2px solid var(--gray-200);
  width: 100%;
}

.btn--google:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn--google svg {
  width: 20px;
  height: 20px;
}

/* --- Dashboard --- */
.dashboard {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.dashboard__header {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: var(--space-2xl) 0;
}

.dashboard__welcome {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.dashboard__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.dashboard__stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
}

.dashboard__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .dashboard__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard__content {
  padding: var(--space-xl) 0;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
}

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

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: 14px 16px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-100);
}

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

.table tr:hover td {
  background: var(--teal-50);
}

.table tr[onclick] {
  cursor: pointer;
}

.table tr[onclick]:hover td {
  background: var(--teal-100);
}

/* --- Rating Pill --- */
.rating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
}

.rating-pill--elite { background: var(--elite); }
.rating-pill--good { background: var(--good); }
.rating-pill--developing { background: var(--developing); }
.rating-pill--needs-work { background: var(--needs-work); }

/* --- Loading/Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton--circle {
  border-radius: 50%;
}

/* --- Toast/Notifications --- */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  padding: 14px 20px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 30px var(--shadow-lg);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform var(--duration) var(--ease);
}

.toast.show {
  transform: translateY(0);
}

.toast--success {
  background: var(--elite);
}

.toast--error {
  background: var(--needs-work);
}

/* --- Tabs (Dashboard) --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-xl);
  width: fit-content;
}

.tab {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  background: none;
  border: none;
  font-family: var(--font);
}

.tab:hover {
  color: var(--teal);
}

.tab.active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 1px 3px var(--shadow);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Misc Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s var(--ease);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: background 0.2s;
}

.modal__close:hover {
  background: var(--gray-200);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__body .form-group {
  margin-bottom: var(--space-md);
}

.modal__body .form-group:last-of-type {
  margin-bottom: var(--space-lg);
}

.modal__body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.modal__footer {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* --- Add Button (floating-style) --- */
.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.btn--add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn--add:hover {
  background: var(--teal-dark);
  transform: scale(1.03);
}

.btn--add svg {
  width: 18px;
  height: 18px;
}

/* --- Form select styling --- */
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E9E9E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-50);
}

/* ============================================================
   Feature Detail Pages
   ============================================================ */

/* Page hero */
.feature-hero {
  padding: calc(var(--space-4xl) + 64px) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0d2420 100%);
  color: var(--white);
  text-align: center;
}
.feature-hero__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-md);
}
.feature-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.feature-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* Feature list with check icons */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--teal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Feature block (icon + title + text + list) */
.feature-block {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--duration-normal) var(--ease);
}
.feature-block:hover {
  box-shadow: 0 8px 32px var(--shadow);
}
.feature-block__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.feature-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.feature-block__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Platform badge */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.platform-badge--both {
  background: var(--teal-100);
  color: var(--teal-dark);
}
.platform-badge--ios {
  background: #E3F2FD;
  color: #1565C0;
}
.platform-badge--android {
  background: #E8F5E9;
  color: #2E7D32;
}

/* More features strip */
.more-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  padding: var(--space-xl) 0;
}
.more-features__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-50);
  border: 1.5px solid var(--teal-200);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease);
}
.more-features__link:hover {
  background: var(--teal-100);
  border-color: var(--teal);
  transform: translateY(-1px);
}
.more-features__link.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Feature grid 2-col */
.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Text utilities */
.text-xs {
  font-size: 0.75rem;
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

/* ========== DASHBOARD REDESIGN ========== */

/* --- Fixture Date Badge (promoted from teamhub.html) --- */
.fixture-date-badge {
  width: 56px;
  text-align: center;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  flex-shrink: 0;
}

.fixture-date-badge__month {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1.2;
}

.fixture-date-badge__day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  display: block;
}

/* --- Upcoming Section --- */
.db-upcoming {
  padding: var(--space-lg) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.db-upcoming__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: var(--space-md);
  display: block;
}

/* --- Next Match Hero Card --- */
.db-next-match {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: var(--space-lg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.db-next-match:hover {
  box-shadow: 0 8px 32px var(--shadow-lg);
  transform: translateY(-2px);
}

.db-next-match__header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.db-next-match__date-badge {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  padding: 10px 6px;
}

.db-next-match__date-month {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.05em;
  display: block;
}

.db-next-match__date-day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  display: block;
}

.db-next-match__info {
  flex: 1;
  min-width: 0;
}

.db-next-match__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-next-match__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.db-next-match__opp-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--teal-50);
  flex-shrink: 0;
}

.db-next-match__body {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 0;
  border-top: 1px solid var(--border);
}

.db-next-match__h2h {
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  border-right: 1px solid var(--border);
}

.db-next-match__map-thumb {
  height: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  background: var(--gray-100);
}

.db-next-match__map-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.db-next-match__map-thumb::after {
  content: '⛶';
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 2px 4px;
  pointer-events: none;
}

/* --- Upcoming List --- */
.db-upcoming-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.db-upcoming-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.db-upcoming-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-1px);
  background: var(--teal-50);
}

/* --- Form Strip --- */
.db-form-strip {
  padding: var(--space-md) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.db-form-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.db-form-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: var(--space-xs);
}

.db-form-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  cursor: default;
  position: relative;
}

.db-form-bubble--win {
  background: var(--elite);
}

.db-form-bubble--draw {
  background: var(--developing);
}

.db-form-bubble--loss {
  background: var(--needs-work);
}

.db-form-bubble__tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

.db-form-bubble:hover .db-form-bubble__tooltip {
  opacity: 1;
}

/* --- Completed Match Cards --- */
.db-match-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.db-match-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.db-match-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  background: var(--teal-50);
}

.db-match-card__date {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.db-match-card__date-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}

.db-match-card__date-month {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
}

.db-match-card__teams {
  flex: 1;
  min-width: 0;
}

.db-match-card__title {
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-match-card__score {
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.db-match-card__result {
  flex-shrink: 0;
}

/* --- Media Tab --- */
.db-media-section {
  margin-bottom: var(--space-xl);
}

.db-media-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.db-media-section__title {
  font-weight: 700;
  font-size: 1rem;
}

.db-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.db-media-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease);
}

.db-media-tile:hover {
  transform: scale(1.03);
}

.db-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-media-tile__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  text-transform: uppercase;
}

.db-media-empty {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Skeleton Helpers --- */
.db-skeleton-hero {
  height: 220px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

.db-skeleton-card {
  height: 72px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
}

.db-skeleton-stat {
  height: 60px;
  border-radius: var(--radius-md);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .db-next-match__header {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .db-next-match__info {
    flex-basis: 100%;
  }

  .db-next-match__body {
    grid-template-columns: 1fr;
  }

  .db-next-match__h2h {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .db-upcoming-list {
    grid-template-columns: 1fr;
  }

  .db-match-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .db-match-card__score {
    align-self: flex-end;
  }

  .db-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ============================================================
   Apple Design System — New Components
   ============================================================ */

/* --- Fade-in-up reveal animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s var(--ease) both;
}

.fade-in-up-delay-1 { animation-delay: 0.05s; }
.fade-in-up-delay-2 { animation-delay: 0.1s; }
.fade-in-up-delay-3 { animation-delay: 0.15s; }
.fade-in-up-delay-4 { animation-delay: 0.2s; }

/* --- Section Card (Apple grouped-list style) --- */
.section-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.section-card__header {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-card__body {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.section-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-100);
}

.section-card__row:last-child {
  border-bottom: none;
}

/* --- Segment Control (iOS UISegmentedControl) --- */
.segment-control {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 3px;
  position: relative;
  width: fit-content;
}

.segment-control--full {
  width: 100%;
}

.segment-control__item {
  padding: 8px 20px;
  border-radius: calc(var(--radius-md) - 2px);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
  background: none;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.segment-control__item:hover {
  color: var(--text-primary);
}

.segment-control__item.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0.5px 1px rgba(0, 0, 0, 0.04);
}

/* --- Avatar System --- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar--md { width: 40px; height: 40px; font-size: 0.875rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.125rem; }
.avatar--xl { width: 80px; height: 80px; font-size: 1.5rem; }
.avatar--2xl { width: 120px; height: 120px; font-size: 2rem; }

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

.avatar--badge {
  position: relative;
  border-radius: var(--radius-md);
}

.avatar--badge img {
  border-radius: var(--radius-md);
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  border: 2px solid var(--white);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* --- Status Pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill--upcoming {
  background: var(--teal-50);
  color: var(--teal);
}

.pill--live {
  background: rgba(52, 199, 89, 0.12);
  color: var(--live-green);
}

.pill--completed {
  background: var(--gray-100);
  color: var(--gray-600);
}

.pill--cancelled {
  background: rgba(198, 40, 40, 0.08);
  color: var(--needs-work);
}

.pill--win {
  background: rgba(46, 125, 50, 0.1);
  color: var(--win-green);
}

.pill--draw {
  background: rgba(245, 124, 0, 0.1);
  color: var(--draw-amber);
}

.pill--loss {
  background: rgba(198, 40, 40, 0.1);
  color: var(--loss-red);
}

.pill--coach {
  background: var(--teal-100);
  color: var(--teal-dark);
}

.pill--parent {
  background: rgba(103, 58, 183, 0.1);
  color: #673AB7;
}

.pill--player {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

/* --- Inline Badge --- */
.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.inline-badge__icon {
  font-size: 0.875rem;
}

/* --- Stat Ring (SVG donut, Apple Watch / Health style) --- */
.stat-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-ring svg {
  transform: rotate(-90deg);
}

.stat-ring__bg {
  fill: none;
  stroke: var(--gray-200);
}

.stat-ring__fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}

.stat-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-ring__value {
  font-weight: 800;
  color: var(--text-primary);
}

.stat-ring__caption {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ring sizes */
.stat-ring--sm { width: 56px; height: 56px; }
.stat-ring--sm .stat-ring__value { font-size: 0.9375rem; }

.stat-ring--md { width: 80px; height: 80px; }
.stat-ring--md .stat-ring__value { font-size: 1.25rem; }

.stat-ring--lg { width: 110px; height: 110px; }
.stat-ring--lg .stat-ring__value { font-size: 1.75rem; }

/* --- Live Match Banner --- */
.live-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #1B4D45 50%, var(--teal) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: var(--shadow-elevated);
}

.live-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26, 60, 55, 0.3);
}

.live-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.live-banner__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 199, 89, 0.2);
  border: 1px solid rgba(52, 199, 89, 0.4);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8EF5A8;
}

.live-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-green);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.live-banner__timer {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.9);
}

.live-banner__score-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
}

.live-banner__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
}

.live-banner__team-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.live-banner__team-name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-banner__score {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}

.live-banner__scorers {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .live-banner {
    padding: var(--space-md);
  }
  .live-banner__score-area {
    gap: var(--space-md);
  }
  .live-banner__score {
    font-size: 2rem;
  }
  .live-banner__team-badge {
    width: 36px;
    height: 36px;
  }
}

/* --- Match Result Color Bar --- */
.db-match-card--win { border-left: 3px solid var(--win-green); }
.db-match-card--draw { border-left: 3px solid var(--draw-amber); }
.db-match-card--loss { border-left: 3px solid var(--loss-red); }

/* --- Lightbox Overlay --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  z-index: 10001;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev { left: var(--space-lg); }
.lightbox__nav--next { right: var(--space-lg); }

/* --- W/D/L Proportion Bar --- */
.wdl-bar {
  display: flex;
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--gray-200);
  width: 100%;
}

.wdl-bar__segment {
  transition: width 0.5s var(--ease);
  min-width: 2px;
}

.wdl-bar__segment--win { background: var(--win-green); }
.wdl-bar__segment--draw { background: var(--draw-amber); }
.wdl-bar__segment--loss { background: var(--loss-red); }

/* --- Hero Stats (Apple Health summary cards) --- */
.hero-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.hero-stats__ring {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stats__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.hero-stats__metric {
  text-align: center;
}

.hero-stats__metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-stats__metric-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-stats__ring {
    justify-content: center;
  }
  .hero-stats__metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Filter Chips --- */
.filter-chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--duration-fast) var(--ease);
}

.filter-chip:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--teal);
  color: var(--white);
}

/* --- Fixture Expand (inline detail) --- */
.fixture-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.fixture-expand.open {
  max-height: 2000px;
}

.fixture-detail {
  padding: var(--space-lg);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.fixture-detail__section {
  margin-bottom: var(--space-lg);
}

.fixture-detail__section:last-child {
  margin-bottom: 0;
}

.fixture-detail__section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* --- Attendance Chips --- */
.attendance-chips {
  display: flex;
  gap: var(--space-sm);
}

.attendance-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--duration-fast) var(--ease);
}

.attendance-chip:hover {
  border-color: var(--teal);
}

.attendance-chip--going.active {
  background: rgba(46, 125, 50, 0.1);
  border-color: var(--win-green);
  color: var(--win-green);
}

.attendance-chip--maybe.active {
  background: rgba(245, 124, 0, 0.1);
  border-color: var(--draw-amber);
  color: var(--draw-amber);
}

.attendance-chip--not-going.active {
  background: rgba(198, 40, 40, 0.08);
  border-color: var(--loss-red);
  color: var(--loss-red);
}

/* --- POTM Vote --- */
.potm-vote {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.potm-vote select {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.875rem;
  background: var(--white);
}

/* --- Roster Position Groups --- */
.roster-group {
  margin-bottom: var(--space-lg);
}

.roster-group__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--gray-200);
}

.roster-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.roster-player__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roster-player__name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.roster-player__position {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.roster-player__linked {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-green);
  flex-shrink: 0;
}

/* --- Account Page (Apple Settings style) --- */
.account-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.account-section__header {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.account-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.account-section__body {
  padding: 0 var(--space-lg) var(--space-lg);
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-100);
  gap: var(--space-md);
}

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

.account-row__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.account-row__value {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Support Guide Cards --- */
.support-guides {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.support-guide-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: background var(--duration-fast) var(--ease);
}

.support-guide-card:hover {
  background: var(--teal-50);
}

.support-guide-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--teal);
}

.support-guide-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* --- Position Stat Config Grid --- */
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.position-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.position-card:hover {
  border-color: var(--teal);
  background: var(--teal-50);
}

.position-card__abbr {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 2px;
}

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

/* --- MFA Factor Card --- */
.mfa-factor {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
}

.mfa-factor__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mfa-factor__info {
  flex: 1;
  min-width: 0;
}

.mfa-factor__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.mfa-factor__type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- QR Code Display --- */
.qr-display {
  text-align: center;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.qr-display img {
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-sm);
}

.qr-display__secret {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--gray-50);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  word-break: break-all;
  user-select: all;
  color: var(--text-secondary);
}

/* --- Guardian Invite Code Display --- */
.invite-code-display {
  text-align: center;
  padding: var(--space-xl);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.invite-code-display__code {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--teal-dark);
  margin-bottom: var(--space-sm);
  user-select: all;
}

.invite-code-display__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Checkbox List (stat config) --- */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkbox-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.checkbox-list__item:hover {
  background: var(--gray-50);
}

.checkbox-list__item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.checkbox-list__item label {
  font-size: 0.9375rem;
  cursor: pointer;
  flex: 1;
}

/* --- Monospace Code Card (invite codes) --- */
.code-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.code-card__code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
}

.code-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* --- Progress Bar --- */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
}

/* --- Podium (POTM results) --- */
.potm-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.potm-podium__track {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.potm-podium__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.potm-podium__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.potm-podium__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
  .potm-podium {
    grid-template-columns: 1fr;
  }
}

/* --- Match Report Section --- */
.match-report {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.match-report__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.match-report__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* --- Match Photo Hero --- */
.match-photo-hero {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  max-height: 360px;
}

.match-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Media Gallery (match detail) --- */
.media-gallery {
  margin-top: var(--space-lg);
}

.media-gallery__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.media-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
}

.media-gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray-100);
  transition: transform var(--duration-fast) var(--ease);
}

.media-gallery__item:hover {
  transform: scale(1.04);
}

.media-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-gallery__item--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-gallery__item--video::before {
  content: '\\25B6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1.5rem;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* --- Fixture Live Highlight --- */
.fixture-card--live {
  border: 2px solid var(--live-green);
  position: relative;
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.04) 0%, rgba(38, 166, 154, 0.02) 100%);
}

.fixture-card--live::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--live-green);
  border-radius: inherit;
  animation: liveGlow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes liveGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* --- Team Brand Header --- */
.team-brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.team-brand__photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
  position: relative;
}

.team-brand__badge-overlay {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--white);
}

.team-brand__info {
  flex: 1;
  min-width: 0;
}

.team-brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.team-brand__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.team-brand__quick-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.team-brand__stat {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.team-brand__stat strong {
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .team-brand {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }
  .team-brand__quick-stats {
    justify-content: center;
  }
  .team-brand__meta {
    justify-content: center;
  }
}

/* --- Stat Bar (horizontal stat display for completed matches) --- */
.stat-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 0;
}

.stat-bar-row__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 120px;
  flex-shrink: 0;
}

.stat-bar-row__bar {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-row__fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}

.stat-bar-row__value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Password show/hide toggle --- */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.125rem;
  padding: 4px;
}

/* --- Copy Button --- */
.btn--copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.btn--copy:hover {
  background: var(--gray-200);
}

.btn--copy.copied {
  background: rgba(46, 125, 50, 0.1);
  color: var(--win-green);
}

/* --- Countdown --- */
.countdown {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Attendance Summary Inline --- */
.attendance-summary {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
}

.attendance-summary__item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.attendance-summary__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.attendance-summary__dot--going { background: var(--win-green); }
.attendance-summary__dot--maybe { background: var(--draw-amber); }
.attendance-summary__dot--not-going { background: var(--loss-red); }

/* --- Player Cards (Shield Layout) --- */
.player-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.player-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.player-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Rating ring around avatar */
.player-card__avatar-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
}

.player-card__avatar-ring svg {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.player-card__avatar-ring .ring-track {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 3;
}

.player-card__avatar-ring .ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.player-card__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal-100);
  position: absolute;
  top: 6px;
  left: 6px;
}

.player-card__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.player-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.player-card__position {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.player-card__rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.player-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.player-card__stat {
  background: var(--white);
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
}

.player-card__stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.player-card__stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .player-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .player-card {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }
  .player-card__avatar-ring {
    width: 64px;
    height: 64px;
  }
  .player-card__avatar-ring svg {
    width: 64px;
    height: 64px;
  }
  .player-card__avatar {
    width: 54px;
    height: 54px;
    top: 5px;
    left: 5px;
  }
}

/* --- Team Hub Components --- */
.team-selector {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.team-chip {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  font-family: var(--font);
}
.team-chip:hover { border-color: var(--teal); color: var(--teal); }
.team-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.team-brand {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.team-brand__photo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.team-brand__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-brand__badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--gray-50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.team-brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.team-brand__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-brand__caps { color: var(--text-muted); font-size: 0.84rem; }

/* --- Fixture cards --- */
.fixture-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
  transition: background var(--duration-fast) var(--ease);
}
.fixture-card:last-child { border-bottom: none; }
.fixture-card:hover { background: var(--teal-50); }

.fixture-info { flex: 1; }
.fixture-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.fixture-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.fixture-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 2px;
}
.fixture-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fixture-type--match { background: var(--teal-100); color: var(--teal-dark); }
.fixture-type--training { background: #FFF3E0; color: #E65100; }
.fixture-type--event { background: #E8EAF6; color: #283593; }

.fixture-status--cancelled { opacity: 0.5; text-decoration: line-through; }

/* --- Attendance --- */
.attendance-summary {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.attendance-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.attendance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.attendance-dot--going { background: var(--elite); }
.attendance-dot--maybe { background: var(--developing); }
.attendance-dot--not { background: var(--needs-work); }
.attendance-dot--pending { background: var(--gray-400); }

/* --- Attendance detail --- */
.attendance-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.attendance-player {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 0.875rem;
}
.attendance-player__status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.attendance-player__name { font-weight: 500; flex: 1; }
.attendance-player__number {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Roster --- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.roster-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}
.roster-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}

/* --- Media grid --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.media-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
}
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-item__icon { font-size: 1.5rem; }
.media-item__name {
  padding: 0 var(--space-sm);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.media-group {
  padding: var(--space-md);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: var(--space-md);
}
.media-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.media-group__title {
  font-weight: 700;
  color: var(--text);
}
.media-group__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.media-group__count {
  background: var(--teal-50);
  color: var(--teal-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
}
.media-group__action {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}
.media-group__action:hover {
  background: var(--teal-50);
  border-color: var(--teal-200);
}
.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.media-filter-chip {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}
.media-filter-chip:hover {
  background: var(--teal-50);
  border-color: var(--teal-200);
}
.media-filter-chip.active {
  background: var(--teal-100);
  border-color: var(--teal-300);
  color: var(--teal-dark);
}
.media-item--clickable {
  cursor: pointer;
  transition: transform 0.15s ease;
}
.media-item--clickable:hover {
  transform: translateY(-1px);
}

/* --- Invite code --- */
.invite-code {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--teal-dark);
  background: var(--teal-50);
  border: 2px dashed var(--teal-200);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  display: inline-block;
  user-select: all;
}
.invite-meta {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Fixture detail overlay --- */
.fixture-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.fixture-overlay__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
}
.fixture-overlay__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.fixture-overlay__close:hover { background: var(--gray-200); }

/* --- Match Detail Components --- */
.match-header {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}
.match-score {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: var(--space-md) 0;
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.match-team-name {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 200px;
}
.match-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.match-team-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.match-team-badge--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.match-vs {
  font-size: 0.875rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}
.match-meta svg {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 4px;
  opacity: 0.7;
}
.match-result-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.match-result-badge--win { background: rgba(46,125,50,0.3); color: #A5D6A7; }
.match-result-badge--draw { background: rgba(245,124,0,0.3); color: #FFCC80; }
.match-result-badge--loss { background: rgba(198,40,40,0.3); color: #EF9A9A; }
.match-result-badge--upcoming { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

.stat-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.stat-bar__name {
  width: 120px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}
.stat-bar__track {
  flex: 1;
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.stat-bar__fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  min-width: 32px;
  transition: width 0.6s var(--ease);
}
.stat-bar__value {
  width: 40px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
}

.goal-timeline {
  position: relative;
  padding-left: var(--space-xl);
}
.goal-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.goal-item {
  position: relative;
  padding: var(--space-sm) 0;
  padding-left: var(--space-md);
}
.goal-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.goal-item--away::before {
  background: var(--needs-work);
  box-shadow: 0 0 0 2px var(--needs-work);
}
.goal-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
}
.goal-scorer {
  font-weight: 600;
  font-size: 0.9375rem;
}

.performance-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
}
.performance-card:last-child {
  border-bottom: none;
}

.location-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.location-map {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.location-info {
  padding: var(--space-md);
}
