/* Google Fonts preloaded in HTML header for performance */

:root {
  --bg-dark: #0a0c10;
  --bg-card: rgba(22, 28, 38, 0.7);
  --bg-nav: rgba(10, 12, 16, 0.85);
  --bg-input: #121620;
  --primary: #00ff88;
  --primary-hover: #00e077;
  --primary-glow: rgba(0, 255, 136, 0.15);
  --secondary: #00e5ff;
  --secondary-hover: #00c8e0;
  --secondary-glow: rgba(0, 229, 255, 0.15);
  --accent: #ffd700;
  --accent-glow: rgba(255, 215, 0, 0.2);
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 255, 136, 0.3);
  --font-main: 'Outfit', sans-serif;
  --font-title: 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 16px;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.62;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -5%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

.floating-balls-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .floating-balls-container {
    display: none;
  }
}

.floating-ball {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(0,255,136,0.1)" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 2v20M2 12h20M12 12l7-7M12 12l-7 7"/></svg>');
  background-size: contain;
  opacity: 0.7;
  animation: float-around 25s infinite linear;
}

.fb-1 { top: 10%; left: 8%; animation-duration: 22s; }
.fb-2 { top: 50%; right: 5%; animation-duration: 30s; transform: scale(1.4); }
.fb-3 { bottom: 12%; left: 20%; animation-duration: 25s; transform: scale(0.9); }
.fb-4 { bottom: 40%; left: 75%; animation-duration: 28s; }
.fb-5 { top: 5%; right: 25%; animation-duration: 19s; transform: scale(1.1); }

@keyframes float-around {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

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

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

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

.section-header {
  margin-bottom: 50px;
}

.section-header--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 700px;
  font-weight: 300;
  margin-bottom: 30px;
}

.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  gap: 8px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00d277 100%);
  color: #000000;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* HEADER NAVIGATION */
.header_cmp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2005;
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.header_cmp.scrolled {
  padding: 2px 0;
  background-color: rgba(10, 12, 16, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
}

.logo span {
  color: var(--primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2001;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  transition: var(--transition);
  padding: 0 10px;
}

.btn-menu-toggle:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.burger-line {
  display: block;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition);
  border-radius: 2px;
}

.burger-line-1 { width: 18px; }
.burger-line-2 { width: 12px; }

.btn-menu-toggle:hover .burger-line-2 { width: 18px; }

.btn-menu-toggle.open {
  align-items: center;
  padding: 0;
}

.btn-menu-toggle.open .burger-line-1 {
  transform: translateY(3.5px) rotate(45deg);
  background-color: var(--primary);
}

.btn-menu-toggle.open .burger-line-2 {
  width: 18px;
  transform: translateY(-3.5px) rotate(-45deg);
  background-color: var(--primary);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #0f121a;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 90px 30px 40px 30px;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

.nav-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-list-wrapper::before {
  content: 'FANTASTIC TOP LEAGUE';
  display: block;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  padding-left: 10px;
}

.nav-item {
  opacity: 0;
  transform: translateX(30px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-menu.active .nav-item {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger item loads in nav */
.nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
.nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.1s; }
.nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
.nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.2s; }
.nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.25s; }
.nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.3s; }
.nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.35s; }
.nav-menu.active .nav-item:nth-child(8) { transition-delay: 0.4s; }
.nav-menu.active .nav-item:nth-child(9) { transition-delay: 0.45s; }
.nav-menu.active .nav-item:nth-child(10) { transition-delay: 0.5s; }
.nav-menu.active .nav-item:nth-child(11) { transition-delay: 0.55s; }

.nav-link {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
  padding-left: 18px;
}

.nav-menu-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-menu-legal {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.nav-menu-legal a:hover {
  color: var(--primary);
}

/* HERO SECTION */
.hero {
  padding-top: 130px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.10fr 0.90fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.6rem;
  }
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-image-container {
  position: relative;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background: #11141d;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

/* LIVE TICKER STRIP */
.live-ticker-strip {
  background: #111520;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  animation: ticker 35s infinite linear;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 50px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.badge-live {
  background: #ff4757;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 10px;
  box-shadow: 0 0 6px rgba(255, 71, 87, 0.4);
}

/* CARDS AND GRIDS */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--featured {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.05);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-link:hover {
  color: var(--secondary);
}

/* SCROLL ZOOM */
.motion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .motion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scroll-zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.scroll-zoom-img {
  width: 100%;
  height: auto;
  transition: transform 0.1s ease-out;
}

.telemetry-hud-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  font-family: monospace;
}

.hud-item {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.hud-top-left { align-self: flex-start; }
.hud-bottom-right { align-self: flex-end; }

/* STADIUM CARD */
.stadium-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .stadium-card {
    grid-template-columns: 1fr 1fr;
  }
}

.stadium-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stadium-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.stadium-desc {
  color: var(--text-gray);
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  gap: 10px;
}

/* CHALKBOARD TACTICAL SIMULATOR */
.chalkboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .chalkboard-grid {
    grid-template-columns: 1.10fr 0.90fr;
  }
}

.pitch-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f1b15;
  border: 4px solid #163625;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.soccer-pitch {
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(0, 255, 136, 0.2);
}

.pitch-marking {
  position: absolute;
  border: 2px solid rgba(0, 255, 136, 0.15);
  pointer-events: none;
}

.penalty-area-top {
  top: 0;
  left: 20%;
  width: 60%;
  height: 20%;
  border-top: none;
}

.penalty-area-bottom {
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 20%;
  border-bottom: none;
}

.center-circle {
  top: 50%;
  left: 50%;
  width: 30%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.center-line {
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
}

.player-node {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--text-white);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  left: var(--pos-x);
  top: var(--pos-y);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.player-node::after {
  content: attr(data-name);
  position: absolute;
  top: 110%;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--text-gray);
  border: 1px solid var(--border-color);
  opacity: 0.85;
}

.player-node.def { border-color: var(--secondary); background: rgba(0, 229, 255, 0.2); }
.player-node.mid { border-color: var(--primary); background: rgba(0, 255, 136, 0.2); }
.player-node.fwd { border-color: var(--accent); background: rgba(255, 215, 0, 0.2); }

.tactical-controls {
  width: 100%;
}

.controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(12px);
}

.controls-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.controls-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 25px;
}

.formation-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.formation-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.formation-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.formation-btn.active {
  background: rgba(0, 255, 136, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.08);
}

.formation-btn strong {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.formation-btn span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.formation-analysis {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.analysis-subtitle {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.formation-analysis p {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 15px;
}

.analysis-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  font-weight: 600;
}

/* FAN POLL SECTION */
.poll-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .poll-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.poll-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.poll-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.poll-badge-icon {
  font-size: 1.8rem;
}

.poll-option-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.poll-option-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 25px;
}

.poll-vote-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.poll-result-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.poll-result-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.poll-result-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

#poll-option-a .poll-result-bar {
  background: var(--secondary);
}

#poll-option-b .poll-result-bar {
  background: var(--primary);
}

.poll-percentage {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 35px;
}

/* LEADERBOARD TABLE */
.leaderboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leaderboard-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.leaderboard-table th {
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

.rank-col {
  font-weight: 700;
  color: var(--primary);
}

.player-cell {
  display: flex;
  flex-direction: column;
}

.player-cell strong {
  font-size: 1rem;
}

.player-cell span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pos-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pos-badge.def { background: rgba(0, 229, 255, 0.1); color: var(--secondary); }
.pos-badge.mid { background: rgba(0, 255, 136, 0.1); color: var(--primary); }
.pos-badge.fwd { background: rgba(255, 215, 0, 0.1); color: var(--accent); }

.metric-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 150px;
}

.metric-bar-wrapper span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.metric-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.metric-progress {
  height: 100%;
}

/* AERODYNAMICS STAT CARD */
.aerodynamics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .aerodynamics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(12px);
}

.aero-stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.aero-icon {
  font-size: 1.5rem;
}

.aero-stat-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.aero-big-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.aero-big-number small {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-gray);
}

.aero-card-desc {
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 15px;
}

.aero-status-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.aero-status-fill {
  height: 100%;
}

/* TESTIMONIALS AND QUOTES */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 35px;
  backdrop-filter: blur(12px);
  position: relative;
  display: flex;
  flex-direction: column;
}

.quote-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 255, 136, 0.1);
  line-height: 1;
  font-family: var(--font-title);
}

.quote-content {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.quote-author-info {
  display: flex;
  flex-direction: column;
}

.quote-author-info strong {
  font-family: var(--font-title);
  color: var(--text-white);
}

.quote-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* INTERACTIVE TEAM BUILDER & SIMULATOR */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .builder-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.squad-pitch-card {
  background: #0d1612;
  border: 2px solid #163625;
  border-radius: var(--border-radius);
  padding: 20px;
  position: relative;
}

.builder-pitch {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0f1c16;
  border: 2px solid rgba(0, 255, 136, 0.2);
  position: relative;
  border-radius: 8px;
}

.squad-slot {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.squad-slot:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.1);
  transform: translate(-50%, -50%) scale(1.1);
}

.squad-slot.filled {
  border-style: solid;
  border-color: var(--primary);
  background: var(--bg-dark);
}

.squad-slot span.slot-num {
  font-weight: 700;
  font-size: 0.8rem;
}

.squad-slot span.slot-role {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.squad-slot .player-name-tag {
  position: absolute;
  top: 110%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.6rem;
  white-space: nowrap;
}

/* Player selection drawer/modal styles */
.selector-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  backdrop-filter: blur(12px);
}

.player-select-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.player-select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.player-select-card:hover {
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.03);
}

.player-select-card.selected {
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
}

@media (max-width: 480px) {
  .selector-panel {
    padding: 15px;
  }
  
  .player-select-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  
  .player-select-card > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 8px;
  }
}

/* MATCH SIMULATOR UI */
.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  margin-bottom: 30px;
}

.sim-teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .sim-teams-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.sim-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.sim-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sim-team-logo {
  font-size: 3rem;
  margin-bottom: 10px;
}

.sim-team-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.sim-score {
  font-family: monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sim-scoreboard {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
  }
  
  .sim-team {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .sim-team-logo {
    font-size: 2rem;
    margin-bottom: 0;
  }
  
  .sim-team-name {
    font-size: 1.1rem;
  }
  
  .sim-score {
    font-size: 2.6rem;
    margin: 5px 0;
    letter-spacing: 2px;
  }
}

.sim-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.sim-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  transition: width 0.1s linear;
}

.sim-commentary-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 250px;
  overflow-y: auto;
  padding: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.commentary-event {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
  animation: slide-up-fade 0.3s ease-out;
}

@keyframes slide-up-fade {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.commentary-time {
  color: var(--secondary);
  font-weight: 700;
  margin-right: 10px;
}

.commentary-text {
  color: var(--text-gray);
}

.commentary-event.goal .commentary-text {
  color: var(--primary);
  font-weight: bold;
}

.commentary-event.card-yellow .commentary-text {
  color: #ffd200;
}

.commentary-event.card-red .commentary-text {
  color: #ff4757;
}

/* DETAILED SWISS FOOTER */
.footer_cmp {
  background-color: #05070a;
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 25px;
  color: var(--text-gray);
  position: relative;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-brand h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-brand h2 span {
  color: var(--primary);
}

.footer-brand-text {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-item {
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item span {
  font-weight: 600;
  color: var(--text-white);
  display: block;
}

.footer-middle {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  margin-bottom: 30px;
}

.footer-newsletter {
  max-width: 600px;
}

.footer-newsletter h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 15px;
}

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

.form-input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 20px;
  color: var(--text-white);
  flex-grow: 1;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder {
  color: var(--text-gray);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 255, 136, 0.01);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(0, 255, 136, 0.15);
}

.form-input:focus::placeholder {
  opacity: 0.35;
}

/* Fix chrome autocomplete autofill backgrounds */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-white) !important;
  -webkit-box-shadow: 0 0 0px 1000px #0b0f19 inset !important;
  box-shadow: 0 0 0px 1000px #0b0f19 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-gray);
  font-weight: 500;
}

.footer-legal-summary {
  line-height: 1.6;
  font-weight: 300;
}

.swiss-warning {
  border-left: 3px solid #ff4757;
  padding-left: 15px;
  margin-top: 15px;
  font-size: 0.75rem;
  color: #ff6b81;
}

/* CONTACT & LEGAL PAGES */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info-details h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-info-details p {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 300;
}

.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-group label span {
  color: var(--primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-gray);
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 4px;
}

/* FAQ STYLE */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition);
}

.faq-trigger:hover {
  background: rgba(0, 255, 136, 0.02);
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--secondary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 25px;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding-bottom: 20px;
}

/* DYNAMIC NOTIFICATIONS */
.custom-alert {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
}

/* RATING STARS */
.rating-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
}

.blog-img-container {
  height: 220px;
  overflow: hidden;
  background: #11141d;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-link {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* RATING */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.player-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
}

.player-img-container {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #11141d;
}

.player-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.player-card:hover .player-img-container img {
  transform: scale(1.05);
}

.player-rating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: #000000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-glow);
}

.player-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.player-meta {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.player-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.player-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.stat-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.stat-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 3px;
}

/* AGE GATE MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #11141d;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 450px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-logo {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.modal-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 300;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #11141d;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  z-index: 999;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 576px) {
  .cookie-banner {
    left: 30px;
    right: auto;
  }
}

.cookie-text {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 300;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

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

/* ============================================
   MATCHUP SIMULATOR CUSTOM STYLES (FROM SPEC)
   ============================================ */

.draft-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  margin-bottom: 30px;
}

.draft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.draft-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.draft-counter {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: var(--transition);
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.players-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.players-track.is-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.players-track.is-carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 2;
}

.carousel-nav:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.player-card-slide {
  flex: 0 0 calc((100% - 32px) / 3); /* 3 cards on desktop */
  scroll-snap-align: start;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

@media (max-width: 900px) {
  .player-card-slide {
    flex: 0 0 calc((100% - 16px) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 600px) {
  .player-card-slide {
    flex: 0 0 100%; /* 1 card on mobile */
  }
}

.player-card-slide:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.05);
}

.player-card-slide.selected {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.1);
}

.player-card-slide__img-container {
  height: 140px;
  overflow: hidden;
  background: #11141d;
  position: relative;
}

.player-card-slide__img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-card-slide__rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--accent-glow);
}

.player-card-slide__details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.player-card-slide__role {
  font-size: 0.7rem;
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.player-card-slide__name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card-slide__stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.player-card-slide__btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.player-card-slide__btn:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #000;
}

.player-card-slide.selected .player-card-slide__btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

.player-card-slide.selected .player-card-slide__btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  color: #fff;
}

/* Locked Roster button state */
.player-card-slide__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

/* SOCCER PITCH VISUALIZER Styles */
.sim-board__rink {
  position: relative;
  width: 100%;
  height: 380px;
  background: radial-gradient(circle, #1b4d22 0%, #0f3014 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 
    inset 0 0 40px rgba(0, 0, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-board__rink::before {
  content: '';
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 4%;
  right: 4%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  pointer-events: none;
}

.rink-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  z-index: 1;
}

.rink-center-circle {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.rink-center-circle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rink-goal {
  position: absolute;
  top: 50%;
  width: 25px;
  height: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
  z-index: 1;
}

.rink-goal-left {
  left: 0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  box-shadow: inset -5px 0 15px rgba(255, 255, 255, 0.1);
}

.rink-goal-right {
  right: 0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: inset 5px 0 15px rgba(255, 255, 255, 0.1);
}

.sim-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  z-index: 5;
  transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: transform;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.sim-dot--you {
  background: radial-gradient(circle at 35% 35%, #ff4757 0%, #b32d38 80%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
}

.sim-dot--ai {
  background: radial-gradient(circle at 35% 35%, #00e5ff 0%, #008fa3 80%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

.sim-dot-label {
  pointer-events: none;
}

/* Soccer Simulation Ball & HUD Overlay */
.sim-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #dcdde1 50%, #2f3640 90%);
  border: 1px solid #1e272e;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.6),
    0 0 10px rgba(255,255,255,0.8);
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1), top 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sim-dot.has-ball::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  animation: pulse-ball-owner 1.2s infinite;
  pointer-events: none;
}

.sim-dot--you.has-ball::after {
  border-color: #ff4757;
}

.sim-dot--ai.has-ball::after {
  border-color: #00e5ff;
}

@keyframes pulse-ball-owner {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.pitch-hud {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 8;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.pitch-hud__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.pitch-hud__stat-val {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  color: #ff4757;
}

.pitch-hud__stat--ai .pitch-hud__stat-val {
  color: #00e5ff;
}

.pitch-hud__divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.15);
}

.pass-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 2;
  transform-origin: 0 50%;
  pointer-events: none;
  animation: fade-line 0.6s forwards;
}

.pass-line--ai {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
}

@keyframes fade-line {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.goal-net-flash {
  animation: net-flash-animation 0.8s ease-out;
}

@keyframes net-flash-animation {
  0% { box-shadow: inset -5px 0 0 rgba(255, 71, 87, 0); background-color: rgba(255, 255, 255, 0.05); }
  30% { box-shadow: inset -15px 0 35px rgba(255, 71, 87, 0.8); background-color: rgba(255, 71, 87, 0.2); }
  100% { box-shadow: inset -5px 0 0 rgba(255, 71, 87, 0); background-color: rgba(255, 255, 255, 0.05); }
}

.goal-net-flash-ai {
  animation: net-flash-animation-ai 0.8s ease-out;
}

@keyframes net-flash-animation-ai {
  0% { box-shadow: inset 5px 0 0 rgba(0, 229, 255, 0); background-color: rgba(255, 255, 255, 0.05); }
  30% { box-shadow: inset 15px 0 35px rgba(0, 229, 255, 0.8); background-color: rgba(0, 229, 255, 0.2); }
  100% { box-shadow: inset 5px 0 0 rgba(0, 229, 255, 0); background-color: rgba(255, 255, 255, 0.05); }
}

/* Event Ticker Banner */
#sim-ticker {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: monospace;
  color: var(--text-white);
  text-align: center;
  font-size: 0.95rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  transition: var(--transition);
}

@keyframes ticker-pulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 229, 255, 0.1); }
  50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); border-color: var(--secondary); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 229, 255, 0.1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}
