/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ========== CSS RESET & VARIABLES ========== */
:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-card: rgba(18, 24, 33, 0.85);
  --bg-card-hover: rgba(25, 33, 45, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  --accent-green: #c8ff00;
  --accent-green-dark: #a3d600;
  --accent-red: #ff4757;
  --accent-red-glow: rgba(255, 71, 87, 0.4);
  --accent-blue: #3b82f6;
  --accent-orange: #f59e0b;

  --live-red: #ff2d2d;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(200, 255, 0, 0.15);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 20, 0.1) 0%, rgba(10, 14, 20, 0.95) 100%),
              url('background.png') center center / cover no-repeat;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 800px;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: background var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 14, 20, 0.98);
}

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

.navbar__logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.navbar__logo-text span {
  color: var(--accent-green);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: width var(--transition-smooth);
  border-radius: 1px;
}

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

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link--active {
  color: var(--accent-green);
}

.navbar__link--active::after {
  width: 100%;
  background: var(--accent-green);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.navbar__btn--ghost {
  color: var(--text-secondary);
}

.navbar__btn--ghost:hover {
  color: var(--text-primary);
}

.navbar__btn--primary {
  background: var(--accent-green);
  color: #0a0e14;
}

.navbar__btn--primary:hover {
  background: var(--accent-green-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero__badge-icon {
  font-size: 16px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: #fff;
}

.hero__title span {
  font-weight: 400;
  font-style: italic;
  display: block;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero__description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--accent-green);
  color: #0a0e14;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero__cta:hover::before {
  transform: translateX(100%);
}

.hero__cta:hover {
  background: var(--accent-green-dark);
  box-shadow: 0 0 50px rgba(200, 255, 0, 0.3), 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.hero__cta-arrow {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

/* ========== FEATURED MATCH CARD ========== */
.featured-match {
  position: absolute;
  z-index: 4;
  bottom: 140px;
  right: 60px;
  width: 420px;
}

.featured-match__card {
  /* Use the same image as the hero bg, with fixed attachment to create a 'spilled' or glass lens effect */
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.7) 0%, rgba(10, 14, 20, 0.9) 100%),
              url('assets/hero-players.png') center 20% / cover fixed;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all var(--transition-smooth);
}

.featured-match__card:hover {
  border-color: rgba(200, 255, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(200, 255, 0, 0.1);
}

.featured-match__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.featured-match__live-dot {
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-red-glow);
}

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

.featured-match__live-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--live-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.featured-match__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.featured-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.featured-match__flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

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

.featured-match__team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.featured-match__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}

.featured-match__vs-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

/* Countdown */
.featured-match__countdown {
  text-align: center;
}

.featured-match__countdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.featured-match__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.featured-match__time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.featured-match__time-value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 52px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-match__time-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.featured-match__time-separator {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 18px;
  animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== MATCHES SECTION ========== */
.matches {
  position: relative;
  z-index: 5;
  padding: 40px 48px 80px;
}

.matches__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.matches__title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.matches__nav {
  display: flex;
  gap: 8px;
}

.matches__nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.matches__nav-btn:hover {
  background: rgba(200, 255, 0, 0.1);
  border-color: rgba(200, 255, 0, 0.3);
  color: var(--accent-green);
}

.matches__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ========== NEW CINEMATIC COMPONENTS ========== */
.hero__reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.hero__stars {
  color: #FFD700;
  font-size: 20px;
  letter-spacing: 2px;
}

.hero__reviews-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.promo-card {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  width: 300px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 10;
}

.promo-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.promo-card__title {
  color: #000;
  font-weight: 700;
  font-size: 16px;
}

.promo-card__close {
  color: #666;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-card__text {
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

/* Hide the old featured match block to match the clean aesthetic */
.featured-match {
  display: none !important;
}

/* ========== MATCHES GRID ========== */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-smooth);
}

.match-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(200, 255, 0, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.match-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.match-card--live::before {
  background: linear-gradient(90deg, transparent, var(--live-red), transparent) !important;
}

.match-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.match-card__status--live {
  background: rgba(255, 45, 45, 0.12);
  color: var(--live-red);
  border: 1px solid rgba(255, 45, 45, 0.2);
}

.match-card__status--live .match-card__status-dot {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

.match-card__status--upcoming {
  background: rgba(200, 255, 0, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(200, 255, 0, 0.15);
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.match-card__flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

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

.match-card__team-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
}

.match-card__vs {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-green);
  padding: 0 6px;
}

.match-card__score {
  text-align: center;
  margin-bottom: 4px;
}

.match-card__score-text {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 6px;
}

.match-card__minute {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.match-card__time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.hero__content {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.featured-match {
  animation: fadeInRight 1s ease-out 0.5s both;
}

.match-card {
  animation: slideInCards 0.6s ease-out both;
}

.match-card:nth-child(1) { animation-delay: 0.8s; }
.match-card:nth-child(2) { animation-delay: 0.95s; }
.match-card:nth-child(3) { animation-delay: 1.1s; }
.match-card:nth-child(4) { animation-delay: 1.25s; }

/* ========== HOW IT WORKS SECTION ========== */
.how-it-works {
  position: relative;
  z-index: 5;
  padding: 80px 48px 100px;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-card), transparent);
}

.how-it-works__container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 64px;
}

.how-it-works__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.how-it-works__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.how-it-works__title span {
  color: var(--accent-green);
}

.how-it-works__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.how-it-works__path {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: 85%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.how-it-works__path svg {
  width: 100%;
  height: 100%;
}

.how-it-works__steps {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works__step:not(:first-child) {
  margin-top: -120px;
}

.how-it-works__step:nth-child(odd) {
  align-self: flex-start;
}

.how-it-works__step:nth-child(even) {
  align-self: flex-end;
}

.how-it-works__step {
  width: 100%;
  max-width: 480px;
  background: rgba(20, 25, 35, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.how-it-works__step.visible {
  opacity: 1;
  transform: translateY(0);
}

.how-it-works__step:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(182, 255, 0, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(182, 255, 0, 0.15);
}

.how-it-works__image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.how-it-works__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.how-it-works__step:hover .how-it-works__image {
  transform: scale(1.08);
}

.how-it-works__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 25, 35, 0.1), rgba(20, 25, 35, 0.95));
}

.how-it-works__step-number {
  position: absolute;
  bottom: -16px;
  right: 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 80px;
  font-weight: 900;
  color: rgba(182, 255, 0, 0.15);
  line-height: 1;
  transition: color 0.5s ease;
  pointer-events: none;
}

.how-it-works__step:hover .how-it-works__step-number {
  color: rgba(182, 255, 0, 0.8);
}

.how-it-works__content {
  padding: 24px 32px 40px;
  position: relative;
  z-index: 2;
}

.how-it-works__step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.how-it-works__step-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 5;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 32px;
}

.footer__top {
  display: flex;
  gap: 80px;
  margin-bottom: 48px;
}

.footer__brand {
  flex: 1;
  max-width: 320px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer__logo-text span {
  color: var(--accent-green);
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--accent-green);
  border-color: rgba(200, 255, 0, 0.3);
  background: rgba(200, 255, 0, 0.08);
  transform: translateY(-2px);
}

.footer__links-group {
  display: flex;
  gap: 60px;
  flex: 1;
  justify-content: flex-end;
}

.footer__col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.footer__link:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__built-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer__built-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  margin-left: 4px;
  transition: all var(--transition-fast);
}

.footer__built-x:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

/* ========== WALLET MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-smooth);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.modal__desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 32px;
}

.modal__btn {
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.modal__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== NAVBAR LOGGED IN STATE ========== */
.navbar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill);
}

.navbar__avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.navbar__wallet {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
}

/* ========== PICK MATCH PAGE ========== */
.page-pick-match {
  background: #000000;
}

.pick-match-main {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}

.pick-match__bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(10, 14, 20, 0.75), rgba(10, 14, 20, 0.95)), 
              url('assets/bg-stadium.png') center / cover fixed;
  z-index: 0;
}

.pick-match__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
}

.pick-match__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-style: italic;
  font-weight: 900;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.pick-match__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pick-match__subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.pick-match__view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.pick-match__view-all:hover {
  color: var(--text-primary);
}

.pick-match__list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== MATCH CARDS (PICK MATCH) ========== */
.pm-card {
  width: 100%;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
}

.pm-card:hover {
  transform: translateY(-4px);
}

.pm-card--ongoing {
  background: #cbf93d; /* Bright lime green */
  color: #000000;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pm-card--upcoming {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.05);
  margin-top: -20px; /* Overlap from the top card */
  z-index: 1;
  padding-top: 44px; /* extra padding to account for overlap */
}

.pm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pm-card__league {
  font-size: 15px;
  font-weight: 600;
}

.pm-card__badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.pm-card__badge--ongoing {
  background: #000000;
  color: #ffffff;
}

.pm-card__badge--upcoming {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.pm-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.pm-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100px;
}

.pm-card__logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.pm-card__team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.pm-card__score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pm-card__matchday {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  opacity: 0.8;
}

.pm-card__score {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.pm-card__time {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

/* The tab overlapping the next card */
.pm-card__tab {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: #cbf93d;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 3;
}

/* ========== MATCH BRIEFING ========== */
.page-briefing {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: #0a0e14;
  overflow-x: hidden;
}

.briefing-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0.9)), 
              url('assets/bg-locker-room.png') center / cover no-repeat;
  z-index: 0;
}

.briefing-header {
  position: relative;
  z-index: 1;
  padding: 40px 60px;
}

.briefing-header__title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.briefing-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 0 24px;
}

.briefing-modal {
  background: rgba(20, 25, 35, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 32px;
  padding: 56px 40px;
  width: 100%;
  max-width: 760px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 20px 40px rgba(255, 215, 0, 0.05);
}

.briefing-modal__league {
  font-size: 36px;
  color: #f2e3b6;
  margin-bottom: 48px;
  font-family: 'Georgia', serif;
}

.briefing-modal__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 56px;
}

.briefing-modal__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.briefing-modal__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.briefing-modal__team-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.briefing-modal__vs {
  font-size: 24px;
  font-style: italic;
  color: #f2e3b6;
  opacity: 0.8;
  font-family: 'Georgia', serif;
}

.briefing-modal__timer-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.briefing-modal__timer-label {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}

.briefing-modal__timer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 64px;
  font-weight: 700;
  color: #c8ff00;
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.4);
  line-height: 1;
}

.briefing-modal__desc {
  margin-bottom: 48px;
}

.briefing-modal__desc-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.briefing-modal__desc-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.briefing-modal__btn {
  display: inline-block;
  padding: 16px 48px;
  background: #cbf93d;
  color: #000;
  font-weight: 800;
  font-size: 18px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.briefing-modal__btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(200, 255, 0, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .featured-match {
    width: 380px;
    right: 40px;
    bottom: 120px;
  }
  
  .matches__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works__steps {
    /* No gap on desktop */
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0 24px;
  }

  .navbar__nav {
    display: none;
  }

  .hero {
    padding: 72px 24px 60px;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 400px;
  }

  .featured-match {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 420px;
    margin-top: 40px;
  }

  .matches {
    padding: 40px 24px 60px;
  }

  .how-it-works {
    padding: 60px 24px 80px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__links-group {
    justify-content: flex-start;
  }

  .footer__container {
    padding: 48px 24px 24px;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 36px;
  }

  .featured-match {
    max-width: 100%;
  }

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

  .navbar__actions {
    gap: 8px;
  }

  .navbar__btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .how-it-works__steps {
    /* Use gap on mobile instead of negative margin */
    gap: 40px;
  }

  .how-it-works__step:not(:first-child) {
    margin-top: 0;
  }

  .how-it-works__step:nth-child(odd),
  .how-it-works__step:nth-child(even) {
    align-self: center;
  }

  .footer__links-group {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(200, 255, 0, 0.3);
  color: var(--text-primary);
}

/* ========== FORMATION BUILDER & GAME PLAN SCREENS ========== */

.page-builder, .page-gameplan {
  background-color: #0a0e14;
  overflow-y: auto;
}

.builder-bg, .gameplan-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(10, 14, 20, 0.65), rgba(10, 14, 20, 0.95)), 
              url('assets/bg-stadium.png') center / cover no-repeat;
  z-index: 0;
}

.builder-container, .gameplan-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.builder-title, .gameplan-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* --- Layouts --- */
.builder-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 35px;
  align-items: center;
  flex: 1;
}

.builder-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
  padding-top: 20px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Beautiful Custom Scrollbar for sidebar */
.builder-sidebar::-webkit-scrollbar {
  width: 6px;
}
.builder-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}
.builder-sidebar::-webkit-scrollbar-thumb {
  background: rgba(200, 255, 0, 0.3);
  border-radius: 3px;
}
.builder-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* --- Custom Dropdown (Left Sidebar) --- */
.custom-dropdown {
  position: relative;
  background: rgba(20, 28, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.custom-dropdown__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.custom-dropdown__selected {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-dropdown__arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-fast);
}

.custom-dropdown.active .custom-dropdown__arrow {
  transform: rotate(180deg);
}

.custom-dropdown__options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 8px;
  padding: 6px 0;
  list-style: none;
  z-index: 10;
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}

.custom-dropdown.active .custom-dropdown__options {
  display: block;
}

.custom-dropdown__options li {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-dropdown__options li:hover {
  background: rgba(200, 255, 0, 0.1);
  color: var(--accent-green);
}

.custom-dropdown__options li.active {
  background: rgba(200, 255, 0, 0.15);
  color: var(--accent-green);
}

/* --- Pitch Area --- */
.pitch-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.pitch-container {
  perspective: 1200px;
  perspective-origin: 50% 10%;
  width: 100%;
  max-width: 760px;
}

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 460;
  background: linear-gradient(180deg, rgba(14, 32, 60, 0.8) 0%, rgba(6, 16, 33, 0.95) 100%),
              url('assets/bg-tactics.png') center / cover no-repeat;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transform: rotateX(20deg);
  transform-style: preserve-3d;
  box-shadow: 0 45px 85px rgba(0, 0, 0, 0.7), inset 0 0 100px rgba(0, 80, 255, 0.15);
  overflow: hidden;
  transition: transform 0.5s ease;
}

/* Tactical lines */
.pitch__line {
  position: absolute;
  pointer-events: none;
}

.pitch__line--midfield {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

.pitch__line--center-circle {
  left: 50%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch__line--penalty-area-top {
  left: 20%;
  right: 20%;
  top: 0;
  height: 18%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

.pitch__line--penalty-area-bottom {
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 18%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
}

.players-canvas {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 10;
}

/* --- Player Marker Nodes (Static Tactical Visualization Only) --- */
.player-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
  z-index: 5;
  pointer-events: none !important;
}

.player-jersey-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  pointer-events: none !important;
}

/* --- Three-Step Coaching Flow Sidebar CSS --- */
.role-selector-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-green);
  border-bottom: 1px solid rgba(200, 255, 0, 0.2);
  padding-bottom: 8px;
}

.role-selector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.role-row:hover {
  border-color: rgba(200, 255, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.role-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: var(--accent-green);
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
  text-shadow: 0 0 5px rgba(200, 255, 0, 0.2);
}

.role-select-wrapper {
  position: relative;
  flex: 1;
  margin-left: 16px;
}

.role-select {
  width: 100%;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 30px 6px 12px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.role-select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(200, 255, 0, 0.2);
}

.role-select-wrapper::after {
  content: '▼';
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  right: 12px;
  top: 52%;
  transform: translateY(-50%);
  pointer-events: none;
}

.builder-btn--generate {
  width: 100%;
  background: transparent;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(200, 255, 0, 0.1);
  margin-top: 8px;
}

.builder-btn--generate:hover {
  background: var(--accent-green);
  color: #0a0e14;
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.4);
}

.player-jersey {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.player-name {
  margin-top: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

/* --- Navigation Buttons (Shared) --- */
.builder-footer, .gameplan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 50px;
}

.builder-btn, .gameplan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition-smooth);
}

.builder-btn--back, .gameplan-btn--back {
  background: rgba(18, 25, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.builder-btn--back:hover, .gameplan-btn--back:hover {
  background: rgba(28, 38, 56, 0.95);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.builder-btn--continue, .gameplan-btn--continue {
  background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(67, 100, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.builder-btn--continue:hover, .gameplan-btn--continue:hover {
  box-shadow: 0 12px 35px rgba(67, 100, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==================== GAME PLAN ==================== */
.gameplan-main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}

.gameplan-container {
  max-width: 1340px !important;
}

.gameplan-card {
  background: rgba(15, 22, 33, 0.45);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.75);
}

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

.gameplan-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.tactics-group {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tactic-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
}

/* Row display matching screenshot: label on left, selector on right */
.tactic-item:not(.tactic-item--nested):not(.tactic-item--expanded) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tactic-item--nested {
  display: block; /* stack label, selector, and indented items vertically */
}

/* Nested row container for Set Piece takers */
.tactic-item--nested .tactic-label {
  display: inline-block;
  margin-bottom: 12px;
}

.tactic-item--nested .tactic-select:not(.tactic-select--small) {
  float: right;
}

.nested-takers {
  clear: both;
  margin-left: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nested-taker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nested-taker-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.tactic-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* --- Tactic Select Custom Controls --- */
.tactic-select {
  position: relative;
  display: inline-block;
}

.tactic-select__val {
  background: var(--accent-green);
  color: #0a0e14;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 140px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 12px rgba(200, 255, 0, 0.15);
  transition: all var(--transition-fast);
}

.tactic-select__val:hover {
  background: var(--accent-green-dark);
}

.tactic-select__arrow {
  font-size: 9px;
  color: #0a0e14;
  opacity: 0.75;
}

/* Nested small takers size */
.tactic-select--small .tactic-select__val {
  min-width: 110px;
  padding: 4px 10px;
  font-size: 11px;
}

/* Dropdown Options List styled inline underneath select box */
.tactic-select__options {
  list-style: none;
  padding: 4px 0 0 10px;
  margin: 6px 0 0 0;
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.tactic-select__options li {
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 3px 0;
}

.tactic-select__options li:hover {
  color: var(--accent-green);
}

.tactic-select__options li.active {
  color: var(--accent-green);
  font-weight: 700;
}

/* Expanded state (shows options inline under target element) */
.tactic-item--expanded {
  margin-bottom: 12px;
}

.tactic-item--expanded .tactic-label {
  margin-bottom: 8px;
}

.tactic-item--expanded .tactic-select {
  width: 100%;
}

.tactic-item--expanded .tactic-select__val {
  width: 100%;
}

.tactic-item--expanded .tactic-select__options,
.tactic-select.active .tactic-select__options {
  display: block;
}

/* Static layout for options that show immediately below */
.static-options {
  display: block !important;
}

/* --- Simulation Success Modal --- */
.modal--success {
  position: relative;
  overflow: hidden;
  max-width: 480px;
}

.modal__success-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,255,0,0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.modal__success-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .builder-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .builder-sidebar {
    align-self: center;
    width: 100%;
    max-width: 320px;
    padding-top: 0;
  }
  
  .gameplan-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px;
  }
  
  .gameplan-col-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .builder-title, .gameplan-title {
    font-size: 36px;
    margin-top: 20px;
  }

  .pitch {
    transform: none; /* Flatten pitch on mobile for easier touch target sizing */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  }

  .tactic-item:not(.tactic-item--nested):not(.tactic-item--expanded) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tactic-select {
    width: 100%;
  }

  .tactic-select__val {
    width: 100%;
  }

  .builder-btn, .gameplan-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}
