/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Brand Design Tokens */
:root {
  --bg-dark-base: #060313;
  --bg-dark-panel: rgba(18, 11, 41, 0.65);
  --bg-dark-card: rgba(26, 18, 58, 0.45);
  --bg-dark-hover: rgba(43, 31, 88, 0.6);
  --border-glow: rgba(139, 92, 246, 0.25);
  --border-glow-focus: rgba(236, 72, 153, 0.6);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Vibrant neon palette inspired by World Cup 26 visual assets */
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-teal: #06b6d4;
  --neon-green: #10b981;
  --neon-yellow: #f59e0b;
  
  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
  --gradient-purple-pink: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-teal-green: linear-gradient(135deg, #06b6d4, #10b981);
  --gradient-dark-panel: linear-gradient(180deg, rgba(20, 13, 49, 0.8) 0%, rgba(10, 6, 28, 0.95) 100%);
  
  --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.25);
  --shadow-neon-pink: 0 0 25px rgba(236, 72, 153, 0.35);
  --shadow-neon-teal: 0 0 20px rgba(6, 118, 212, 0.25);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-base);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-dark-card);
  border-radius: 5px;
  border: 2px solid var(--bg-dark-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Global Layout & Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Panel standard */
.glass-panel {
  background: var(--bg-dark-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Header Section */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 3, 19, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.logo-text span {
  font-weight: 400;
  color: var(--neon-teal);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple-pink);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.header-cta {
  background: var(--gradient-purple-pink);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-neon-pink);
  transition: var(--transition-smooth);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(6, 3, 19, 0.5) 0%, var(--bg-dark-base) 100%), url('hero-stadium.png') no-repeat center center/cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--neon-purple);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--neon-teal);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-pink);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px auto;
}

/* Countdown Widget */
.countdown-container {
  max-width: 720px;
  margin: 0 auto 30px auto;
  padding: 30px;
}

.countdown-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.countdown-item {
  flex: 1;
  max-width: 120px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.countdown-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Search and Filters */
.search-section {
  margin-bottom: 60px;
}

.search-wrapper {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-dark-panel);
  border: 1px solid var(--border-glow);
  padding: 18px 24px 18px 56px;
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-glow-focus);
  box-shadow: var(--shadow-neon-pink);
}

.search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.search-input:focus + .search-icon {
  color: var(--neon-pink);
}

/* Quick Search Suggestions */
.search-suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.suggestion-chip:hover {
  background: var(--neon-purple);
  color: var(--text-primary);
  border-color: var(--neon-purple);
}

/* Main Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 70px;
}

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

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gradient-purple-pink);
  border-radius: 4px;
}

/* Group Tabs Styles */
.group-tabs-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-tabs-container::-webkit-scrollbar {
  display: none; /* Safari / Chrome */
}

.group-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.3);
}

.tab-btn.active {
  background: var(--gradient-purple-pink);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Standings Card & Table */
.standings-card {
  padding: 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.standings-table th {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.standings-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.standings-table tbody tr {
  transition: var(--transition-fast);
}

.standings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.standings-table tbody tr.searched-highlight {
  background: rgba(6, 182, 212, 0.15);
  box-shadow: inset 3px 0 0 var(--neon-teal);
}

/* Specific Columns styles */
.col-pos {
  width: 45px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/* Qualification indicators (1st and 2nd Green, best 3rd blue/cyan) */
.pos-top-two {
  color: var(--neon-green);
  position: relative;
}

.pos-top-two::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--neon-green);
  border-radius: 2px;
}

.pos-third {
  color: var(--neon-teal);
  position: relative;
}

.pos-third::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--neon-teal);
  border-radius: 2px;
}

.col-team {
  font-weight: 600;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-flag {
  font-size: 1.35rem;
  line-height: 1;
}

.team-name {
  white-space: nowrap;
}

.col-stat {
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary);
}

.col-stat.highlight {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.col-form {
  width: 120px;
}

.form-indicators {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
}

.form-dot.w {
  background: var(--neon-green);
}

.form-dot.d {
  background: var(--text-muted);
}

.form-dot.l {
  background: var(--neon-pink);
}

/* Legend Area */
.standings-legend {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.green {
  background: var(--neon-green);
}

.legend-color.teal {
  background: var(--neon-teal);
}

/* Matches Schedule Layout */
.schedule-card {
  padding: 24px;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-item {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  transition: var(--transition-smooth);
}

.match-item:hover {
  border-color: var(--border-glow);
  transform: translateX(3px);
}

.match-item.searched-highlight {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-group {
  color: var(--neon-teal);
}

.match-vs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.match-team.team-away {
  justify-content: flex-end;
  text-align: right;
}

.match-time-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--neon-yellow);
  text-align: center;
  min-width: 65px;
}

.match-venue {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

/* Host Cities Spotlight Grid */
.cities-section {
  margin-bottom: 80px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.city-card {
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.city-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow-focus);
  box-shadow: var(--shadow-neon-pink);
}

.city-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: var(--transition-smooth);
}

.city-card:hover .city-image-placeholder {
  transform: scale(1.08);
}

.city-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 3, 19, 0.95) 0%, rgba(6, 3, 19, 0.4) 60%, transparent 100%);
  z-index: 2;
}

.city-content {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.city-country-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.country-usa {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.country-mexico {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.country-canada {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.city-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.stadium-badge {
  font-size: 0.75rem;
  color: var(--neon-teal);
  margin-top: 4px;
  font-weight: 500;
}

/* Dialog / Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 3, 19, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.modal-card {
  max-width: 580px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  font-weight: bold;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--neon-pink);
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-dark-base) 0%, transparent 100%);
}

.modal-body {
  padding: 30px;
  background: var(--gradient-dark-panel);
}

.modal-header-info {
  margin-top: -50px;
  position: relative;
  z-index: 5;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.modal-sub-info {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-stat-box {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
}

.modal-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.modal-stat-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.modal-stat-val.highlight {
  color: var(--neon-yellow);
}

/* Footer styling */
footer {
  background: rgba(6, 3, 19, 0.95);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--neon-teal);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neon-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark-base);
    backdrop-filter: blur(15px);
    z-index: 999;
    transition: var(--transition-smooth);
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  nav a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .header-cta {
    display: none; /* Hide in header for mobile, put in menu if needed */
  }

  .countdown-timer {
    gap: 10px;
  }

  .countdown-item {
    padding: 10px 4px;
  }

  .countdown-val {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   FAN PASS PORTAL STYLES
   ========================================================================== */
.fan-pass-section {
  position: relative;
}

.fan-portal-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding: 3rem;
  overflow: hidden;
}

/* Form inputs & styling */
.panel-header {
  margin-bottom: 2rem;
}

.panel-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-purple-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-panel-content .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon-teal);
  margin-bottom: 1rem;
}

.form-panel-content form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 2.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: rgba(6, 3, 19, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.input-group input:hover,
.input-group select:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background-color: rgba(6, 3, 19, 0.6);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--neon-teal);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  background-color: rgba(6, 3, 19, 0.8);
}

/* Floating label logic */
.input-group label {
  position: absolute;
  left: 2.8rem;
  top: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: left top;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--neon-teal);
  left: 1rem;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  pointer-events: none;
}

.input-group input:focus ~ .input-icon,
.input-group select:focus ~ .input-icon {
  color: var(--neon-teal);
}

.select-group::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.1rem;
  top: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.select-group select option {
  background-color: var(--bg-dark-base);
  color: var(--text-primary);
}

/* Error message styling */
.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  margin-left: 0.5rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-fast);
  pointer-events: none;
  display: block;
  height: 0;
  overflow: hidden;
}

.input-group.invalid input,
.input-group.invalid select {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.input-group.invalid .error-message {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  overflow: visible;
}

.input-group.invalid .input-icon {
  color: #ef4444;
}

/* Success panel checkmark anim */
.success-panel.hidden {
  display: none !important;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--neon-green);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-svg {
  box-shadow: inset 0px 0px 0px var(--neon-green);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0.1); }
}

.reset-btn {
  background: transparent;
  color: var(--neon-teal);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 1.5rem;
}

.reset-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--neon-teal);
  box-shadow: var(--shadow-neon-teal);
}

/* Live Card Preview Panel */
.preview-panel-content {
  justify-content: center;
  align-items: center;
}

.preview-header {
  text-align: center;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 99px;
  color: var(--neon-teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* The Glowing Holographic Card Frame */
.id-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 340px;
}

.id-card {
  width: 100%;
  height: 440px;
  background: linear-gradient(135deg, rgba(26, 18, 58, 0.9) 0%, rgba(10, 6, 28, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--shadow-neon);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.id-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--neon-teal), transparent, var(--neon-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Shine overlay reflection */
.card-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.08) 40%, rgba(6, 182, 212, 0.05) 50%, transparent 60%);
  z-index: 5;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.1s ease;
}

.id-card-wrapper:hover .id-card {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--shadow-neon-pink);
}

.card-inner {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(30px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.card-logo i {
  color: var(--neon-teal);
  font-size: 0.8rem;
  text-shadow: var(--shadow-neon-teal);
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 3, 19, 0.5) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 1px;
  background: rgba(139, 92, 246, 0.4);
  transform: translate(-50%, -50%);
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 80%;
  background: rgba(139, 92, 246, 0.4);
  transform: translate(-50%, -50%);
}

.card-body {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1rem 0;
}

.card-avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
}

.card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(6, 3, 19, 0.6);
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.placeholder-avatar {
  font-size: 2rem;
  color: rgba(139, 92, 246, 0.7);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  animation: breathe-avatar 4s infinite ease-in-out;
}

@keyframes breathe-avatar {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.card-avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--neon-pink), transparent);
  animation: rotate-glow 5s linear infinite;
  opacity: 0.6;
}

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

.card-primary-info {
  flex: 1;
  min-width: 0;
}

.card-primary-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.card-role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--neon-teal);
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.meta-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
}

.barcode span {
  display: inline-block;
  width: 2px;
  height: 100%;
  background-color: var(--text-muted);
}

.barcode span:nth-child(even) {
  width: 1px;
}
.barcode span:nth-child(3n) {
  width: 3px;
}
.barcode span:nth-child(4n) {
  width: 4px;
}

.card-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  color: var(--neon-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Shake Animation */
.shake-anim {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (max-width: 768px) {
  .fan-portal-container {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}
