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

/* ============================================
   CSS VARIABLES — DARK & LIGHT THEMES
   ============================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141d;
  --bg-tertiary: #1f1f2e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-danger: #ef4444;
  --accent-success: #10b981;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(139, 92, 246, 0.5);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-glow: rgba(139, 92, 246, 0.2);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(139, 92, 246, 0.5);
}

/* ============================================
   BASE RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; outline: none; }
img { display: block; max-width: 100%; }

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 800px; margin: 0 auto; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-padding { padding: 5rem 0; }
.section-alt { background-color: var(--bg-secondary); }

/* Spacing */
.mt-05 { margin-top: 0.5rem; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mt-3  { margin-top: 3rem; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 2rem; }
.fw-bold { font-weight: bold; }

/* Text colours */
.text-accent    { color: var(--accent-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.text-muted-sm  { color: var(--text-secondary);  font-size: 0.85rem; }
.text-secondary-sm { color: var(--text-secondary); font-size: 0.9rem; }
.link-accent    { color: var(--accent-primary); }

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--border-radius-sm);
}
.section-title-left {
  text-align: left;
  transform: none;
  left: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 2rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}
.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.btn-nav   { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg    { font-size: 1.1rem; padding: 1rem 2rem; }
.btn-submit { padding: 1rem; width: 100%; justify-content: center; }
.btn-start  { align-self: flex-start; }

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass-panel {
  background: rgba(20, 20, 29, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.85); }
.navbar.scrolled {
  min-height: 70px;
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.9); }
.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
}
.nav-logo i    { color: var(--accent-primary); font-size: 1.8rem; transition: var(--transition); }
.nav-logo span { color: var(--text-primary); transition: var(--transition); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--accent-primary); }
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.hamburger:hover { color: var(--accent-primary); }
/* Mobile Menu Dropdown & Actions */
.nav-item-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
}
.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-mobile-actions { width: 100%; display: none; flex-direction: column; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }

@media (max-width: 1024px) {
  .navbar { min-height: 70px; padding: 0.5rem 0; }
  .nav-container { padding: 0 1.5rem; }
  .nav-logo { margin-right: 0; font-size: 1.25rem; }
  .nav-logo i { font-size: 1.4rem; }
  
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links .nav-item-dropdown { width: 100%; }
  .nav-links .dropdown-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; border: none; padding: 0.5rem 1rem; display: none; }
  .nav-links .nav-item-dropdown.active .dropdown-menu { display: block; }
  
  .hamburger { display: block; z-index: 1001; }
  .nav-desktop-only { display: none !important; }
  .nav-mobile-actions { display: flex; }
}

@media (max-width: 480px) {
  .nav-logo span { font-size: 1.1rem; }
  .nav-logo i { font-size: 1.2rem; }
  .nav-desktop-only { display: none !important; }
  .theme-toggle { width: 32px; height: 32px; font-size: 1rem; }
  .hamburger { font-size: 1.2rem; }
  .nav-container { gap: 0.5rem; padding: 0 1rem; }
}

@media (max-width: 320px) {
  .nav-logo span { display: none !important; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-about .nav-logo { margin-bottom: 1rem; }
.footer-about p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.social-links a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-links h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-links ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-primary); padding-left: 5px; }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  color: var(--text-primary);
}
.newsletter-form input:focus { border-color: var(--accent-primary); }
.newsletter-form button { border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-simple { padding: 1.5rem 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0  rgba(139, 92, 246, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0  rgba(139, 92, 246, 0); }
}

/* ============================================
   BANNER — ALL TEXT ALWAYS LEGIBLE OVER DARK IMAGES
   ============================================ */
.hero .hero-title, .hero h1, .page-header h1 { color: #ffffff !important; }
.hero .hero-subtitle, .page-header p { color: #cbd5e1 !important; }

/* ============================================
   PAGE HEADER (Sub-page banners)
   ============================================ */
.page-header {
  padding: 180px 0 100px;
  background:
    linear-gradient(135deg, rgba(31,31,46,0.9), rgba(10,10,15,0.9)),
    url('../images/page-header-bg.jpg') center/cover;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.page-header p { max-width: 600px; margin: 0 auto; }
#page-tournaments .page-header {
  background:
    linear-gradient(135deg, rgba(31,31,46,0.9), rgba(10,10,15,0.9)),
    url('../images/tournaments-bg.jpg') center/cover;
}
#page-community .page-header {
  background:
    linear-gradient(135deg, rgba(31,31,46,0.9), rgba(10,10,15,0.9)),
    url('../images/community-bg.jpg') center/cover;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background:
    linear-gradient(rgba(10,10,15,0.8), rgba(10,10,15,0.9)),
    url('../images/hero-bg.jpg') center/cover;
}
.hero-content {
  max-width: 800px;
  text-align: left;
  animation: fadeIn 1s ease-out;
}
.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}
.card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}
.card-content { padding: 1.5rem; }
.card-title   { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.card-text    { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ============================================
   GRIDS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-gap-sm { gap: 1rem; }

/* ============================================
   COURSES PAGE
   ============================================ */
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.course-tag {
  display: inline-block;
  background: rgba(139,92,246,0.1);
  color: var(--accent-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.category-header i { font-size: 2rem; color: var(--accent-primary); }
.level-path {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  height: 100%;
}
.level-icon { font-size: 3rem; color: var(--accent-secondary); margin-bottom: 1rem; }
.level-path-featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(139,92,246,0.1);
}
.level-path-featured .level-icon { color: var(--accent-primary); }
.level-path p { color: var(--text-secondary); margin: 1rem 0; }

/* ============================================
   TRAINERS PAGE
   ============================================ */
.trainer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}
.trainer-card:hover { transform: translateY(-10px); border-color: var(--accent-secondary); }
.trainer-card img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--bg-tertiary);
}
.trainer-role {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.trainer-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* Card-style trainer (home page) */
.card.trainer-card { padding: 0; }
.card.trainer-card .card-img { height: 250px; border-radius: 0; width: 100%; }
.card.trainer-card .card-content { text-align: center; }
.trainer-socials { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.trainer-socials a { color: var(--text-muted); font-size: 1.2rem; }
.trainer-socials a:hover { color: var(--accent-primary); }

/* Head coach spotlight */
.head-coach-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(139,92,246,0.1);
}
.head-coach-img {
  width: 300px; height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}
.head-coach-info h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.head-coach-info h4 { color: var(--accent-secondary); margin-bottom: 1.5rem; font-family: var(--font-body); }
.achievements-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.achievements-list li { position: relative; padding-left: 1.5rem; color: var(--text-secondary); }
.achievements-list li::before { content: '\f091'; font-family: 'FontAwesome'; position: absolute; left: 0; color: var(--accent-primary); }

/* Booking section - Forced Dark for E-Sports Polish */
.booking-section {
  background: linear-gradient(135deg, rgba(10,10,15,0.95), rgba(31,31,46,0.95));
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--border-radius-lg);
  margin-top: 4rem;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.booking-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; }
.booking-desc  { color: var(--text-secondary); margin-bottom: 2rem; }

/* ============================================
   FORMS (shared)
   ============================================ */
.form-input {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 10px var(--accent-glow); outline: none; }
.form-row   { display: flex; gap: 1rem; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-check-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.form-check-label { color: var(--text-secondary); font-size: 0.9rem; }

/* Contact form */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus { border-color: var(--accent-primary); box-shadow: 0 0 10px var(--accent-glow); outline: none; }
.contact-form {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Registration section heading */
.reg-heading { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.reg-subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 2rem; }

/* ============================================
   LIVE CLASSES PAGE
   ============================================ */
.live-stream-hero {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--accent-primary);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(139,92,246,0.2);
  margin-bottom: 4rem;
}
.video-placeholder {
  width: 100%; height: 600px;
  background: linear-gradient(135deg, #1f1f2e, #0a0a0f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  position: relative;
}
.play-icon { font-size: 4rem; }
.nav-links li a:hover { color: var(--accent-primary); }
.nav-links li a.active { color: var(--accent-primary); }

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  min-width: 220px;
  padding: 0.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
  border-left-color: var(--accent-primary);
}
.dropdown-item i {
  width: 20px;
  color: var(--accent-primary);
}

.nav-cta {
  background: var(--accent-primary);
  color: #fff !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--border-radius-sm);
}
.nav-cta:hover { background: #7c3aed; }
.live-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--accent-danger);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  animation: pulseGlow 2s infinite;
}
.stream-info {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stream-title { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.stream-meta-text { color: var(--text-secondary); }
.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius-md);
}
.schedule-item--cyan { border-left-color: var(--accent-secondary); }
.schedule-item--gold { border-left-color: #fbbf24; }
.schedule-row  { display: flex; align-items: center; gap: 2rem; width: 100%; }
.schedule-time { font-family: var(--font-heading); font-size: 1.25rem; color: var(--accent-secondary); min-width: 150px; }
.schedule-details h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.schedule-details p  { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================
   TOURNAMENTS PAGE
   ============================================ */
.tourney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.tourney-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
}
.tourney-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.tourney-status {
  position: absolute;
  top: 15px; right: 15px;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.status-ongoing  { background: var(--accent-danger);   color: white; }
.status-upcoming { background: var(--accent-primary); color: white; }
.tourney-content { padding: 1.5rem; }
.tourney-title   { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tourney-desc    { color: var(--text-secondary); margin-bottom: 1.5rem; }
.tourney-desc-sm { color: var(--text-secondary); margin-bottom: 0.5rem; }
.tourney-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.tourney-meta span { display: flex; align-items: center; gap: 0.5rem; }

/* Leaderboard */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.leaderboard-table th,
.leaderboard-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.leaderboard-table th { background: var(--bg-tertiary); color: var(--text-secondary); font-family: var(--font-heading); text-transform: uppercase; font-size: 0.9rem; }
.leaderboard-table tr:hover td { background: rgba(139,92,246,0.05); }
.rank-1 { color: #fbbf24; font-weight: bold; }
.rank-2 { color: #94a3b8; font-weight: bold; }
.rank-3 { color: #b45309; font-weight: bold; }

/* Countdown */
.countdown { display: flex; gap: 1rem; margin-top: 1rem; font-family: var(--font-heading); }
.countdown-item {
  background: var(--bg-tertiary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  border: 1px solid var(--border-color);
}
.countdown-item span  { display: block; font-size: 1.5rem; color: var(--accent-secondary); }
.countdown-item small { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }

/* Registration section */
.reg-section {
  background: linear-gradient(135deg, rgba(31,31,46,0.9), rgba(10,10,15,0.9));
  padding: 4rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--accent-primary);
}
.reg-btn-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }

/* ============================================
   HOME — TOURNAMENTS & STATS
   ============================================ */
.tournament-list { display: flex; flex-direction: column; gap: 1rem; }
.tournament-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.tournament-item:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); }
.tournament-info h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.5rem; }
.tournament-meta { display: flex; gap: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.tournament-meta span i { margin-right: 0.5rem; color: var(--accent-secondary); }
.stats-section {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stat-box { text-align: center; padding: 2rem; }
.stat-number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 0.5rem; }
.stat-label  { color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================
   HOME — TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}
.testimonial-card i.fa-quote-left { font-size: 2rem; color: var(--accent-glow); margin-bottom: 1rem; }
.testimonial-text  { font-style: italic; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-primary); }
.author-info h4   { font-size: 1rem; margin-bottom: 0.2rem; }
.author-info span { font-size: 0.8rem; color: var(--accent-secondary); }

/* ============================================
   HOME — CTA SECTION
   ============================================ */
.cta-section {
  padding: 8rem 0;
  background: 
    linear-gradient(135deg, rgba(10,10,15,0.8), rgba(10,10,15,0.9)),
    url('../images/community-bg.jpg') center/cover fixed;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-box { padding: 4rem 2rem; }
.cta-content h2 { font-size: 3rem; margin-bottom: 1rem; }
.cta-content p  { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* ============================================
   COMMUNITY PAGE
   ============================================ */
.community-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.forum-board { background: var(--bg-secondary); border-radius: var(--border-radius-md); border: 1px solid var(--border-color); overflow: hidden; }
.forum-header { background: var(--bg-tertiary); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.forum-new-btn { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.forum-post { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; gap: 1.5rem; transition: var(--transition); }
.forum-post:hover { background: rgba(139,92,246,0.05); }
.forum-post:last-child { border-bottom: none; }
.post-avatar { width: 50px; height: 50px; border-radius: 5px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent-primary); flex-shrink: 0; border: 1px solid var(--border-color); overflow: hidden; }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.post-content h4 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text-primary); }
.post-content p  { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.post-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 1rem; }
.widget { background: var(--bg-secondary); border-radius: var(--border-radius-md); border: 1px solid var(--border-color); padding: 1.5rem; margin-bottom: 2rem; position: relative; }
.widget h3 { font-family: var(--font-heading); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.discord-widget { background: #5865F2; border: none; }
.discord-widget * { color: white; }
.discord-widget h3 { border-color: rgba(255,255,255,0.2); margin-bottom: 0.5rem; }
.discord-widget-icon { font-size: 4rem; position: absolute; top: -10px; right: -10px; opacity: 0.2; }
.discord-stats { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-size: 0.8rem; font-weight: bold; }
.discord-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
.discord-widget .btn { background: white; color: #5865F2; width: 100%; border-radius: 4px; border: none; }
.discord-widget .btn:hover { background: #e0e0e0; }
.group-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px dashed var(--border-color); }
.group-list li:last-child { border-bottom: none; }
.group-tag { font-size: 0.8rem; color: var(--text-muted); }
.group-icon-primary   { color: var(--accent-primary);   margin-right: 5px; }
.group-icon-secondary { color: var(--accent-secondary); margin-right: 5px; }
.group-icon-gold      { color: #fbbf24; margin-right: 5px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.info-card { display: flex; gap: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--bg-tertiary); border-radius: var(--border-radius-md); border: 1px solid var(--border-color); }
.info-card i { font-size: 2rem; color: var(--accent-primary); flex-shrink: 0; }
.info-details h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.info-details p  { color: var(--text-secondary); line-height: 1.5; }
.map-container { width: 100%; height: 300px; background: url('../images/map-bg.jpg') center/cover; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.map-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(139,92,246,0.3); }
.map-pin { z-index: 2; color: #fff; font-size: 3rem; text-shadow: 0 0 10px rgba(0,0,0,0.5); animation: fadeIn 1s infinite alternate; }

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   PHASE 2: NEW SECTION UTILITIES
   ============================================ */
.section-split { display: flex; align-items: center; gap: 4rem; margin-top: 2rem; }
.section-split-rev { flex-direction: row-reverse; }
.section-split-content { flex: 1; }
.section-split-image   { flex: 1; border-radius: var(--border-radius-lg); overflow: hidden; height: 400px; border: 1px solid var(--border-color); }
.section-split-image img { width: 100%; height: 100%; object-fit: cover; }

.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.gear-item { background: var(--bg-tertiary); padding: 1.5rem; border-radius: var(--border-radius-md); text-align: center; border: 1px solid var(--border-color); }
.gear-item i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; }

.news-card { background: var(--bg-secondary); border-radius: var(--border-radius-md); overflow: hidden; border: 1px solid var(--border-color); display: flex; margin-bottom: 1.5rem; transition: var(--transition); }
.news-card:hover { transform: translateX(10px); border-color: var(--accent-secondary); }
.news-img  { width: 150px; height: 100%; object-fit: cover; flex-shrink: 0; }
.news-body { padding: 1.25rem; }
.news-date { font-size: 0.8rem; color: var(--accent-primary); margin-bottom: 0.5rem; font-family: var(--font-heading); }

.roadmap { position: relative; padding: 2rem 0; }
.roadmap::before { content: ''; position: absolute; left: 50%; top: 0; height: 100%; width: 2px; background: var(--border-color); transform: translateX(-50%); }
.roadmap-step { position: relative; width: 50%; padding: 2rem; }
.roadmap-step:nth-child(odd) { left: 0; text-align: right; }
.roadmap-step:nth-child(even) { left: 50%; text-align: left; }
.roadmap-dot { position: absolute; right: -10px; top: 2.5rem; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-primary); border: 4px solid var(--bg-primary); z-index: 2; }
.roadmap-step:nth-child(even) .roadmap-dot { left: -10px; right: auto; }

.highlight-box { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; height: 350px; }
.highlight-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }

/* ============================================
   SHARED LAYOUT CLASSES
   ============================================ */
.section-split { display: flex; align-items: center; gap: 4rem; margin-top: 3rem; }
.section-split-rev { flex-direction: row-reverse; }
.section-split-content { flex: 1; }
.section-split-image { flex: 1; height: 450px; border-radius: var(--border-radius-lg); overflow: hidden; }
.section-split-image img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5rem; align-items: start; }
.community-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }

.metric-item { margin-bottom: 2rem; }
.metric-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.metric-label { font-family: var(--font-heading); color: var(--accent-primary); }
.metric-value { color: var(--accent-secondary); font-weight: 600; }
.metric-bar { background: var(--bg-tertiary); height: 10px; border-radius: 5px; overflow: hidden; }
.metric-progress { height: 100%; transition: width 1s ease-in-out; }

.leaderboard-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--border-radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-color); margin-top: 2rem; }
.leaderboard-table { width: 100%; border-collapse: collapse; min-width: 800px; }

/* ============================================
   RESPONSIVE OVERRIDES (MOBILE FIRST APPROACH)
   ============================================ */

/* TABLET RANGE: 768px - 1024px */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .section-padding { padding: 4rem 0; }
  
  .section-split { gap: 2.5rem; }
  .contact-grid { gap: 3rem; }
  .community-grid { grid-template-columns: 1fr 280px; gap: 2rem; }

  .dash-sidebar { width: 80px; padding: 2rem 1.25rem; align-items: center; }
  .dash-sidebar .dash-logo span, 
  .dash-sidebar .dash-nav ul li a span, 
  .dash-sidebar .dash-user-info, 
  .dash-sidebar .dash-user-footer a i:last-child { display: none; }
  .dash-sidebar .dash-nav ul li a { justify-content: center; padding: 1rem; }
  
  .dash-main { margin-left: 80px; padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 991px) {
  .contact-grid, .community-grid { grid-template-columns: 1fr; }
  .info-card { padding: 1.5rem; }
}

/* MOBILE LARGE RANGE: 481px - 767px */
@media (max-width: 767px) {
  .section-padding { padding: 3rem 0; }
  
  .hero { text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-buttons .btn { width: 100%; }

  .section-split, .section-split-rev { flex-direction: column !important; gap: 2rem; text-align: center; }
  .section-split-content h2 { text-align: center !important; }
  .section-split-content .section-subtitle { text-align: center !important; margin-left: auto !important; }
  .section-split-image { width: 100%; height: 350px; }

  .tournament-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tournament-action { width: 100%; }
  .tournament-action .btn { width: 100%; }
  
  .head-coach-section { flex-direction: column; text-align: center; padding: 2rem; }
  .head-coach-img { width: 100%; height: 350px; }

  .dash-sidebar { left: -300px; transition: 0.4s; z-index: 2000; }
  .dash-sidebar.active { left: 0; width: 280px; align-items: flex-start; }
  .dash-sidebar.active .dash-logo span,
  .dash-sidebar.active .dash-nav ul li a span,
  .dash-sidebar.active .dash-user-info { display: flex; }
  .dash-sidebar.active .dash-nav ul li a { justify-content: flex-start; }
  
  .dash-main { margin-left: 0; padding: 1.5rem; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .dash-actions { width: 100%; display: flex; gap: 0.5rem; }
  .dash-actions .btn { flex: 1; }
  
  .dash-table-container { overflow-x: auto; }
  .dash-table { min-width: 600px; }

  .grid-2 { grid-template-columns: 1fr; }
  
  .roadmap-step { width: 100%; text-align: left !important; padding-left: 50px; }
  .roadmap-dot { left: 10px !important; right: auto !important; }
  .roadmap::before { left: 20px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-about, .footer-links, .social-links, .newsletter-form { justify-content: center; }
  .social-links { margin: 0 auto; }
  .newsletter-form { max-width: 400px; margin: 1rem auto 0; }

  .auth-card { padding: 2.5rem 1.5rem; border-radius: var(--border-radius-md); }
}

/* MOBILE SMALL RANGE: 320px - 480px */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section-padding { padding: 2.5rem 0; }
  
  .section-title { margin-bottom: 2rem; }
  .section-subtitle { margin-top: -1.5rem; margin-bottom: 2rem; }

  .btn { width: 100%; font-size: 0.9rem; }
  .btn-nav { width: auto; }
  
  .hero-buttons { flex-direction: column; }
  .hero-title { font-size: 2.5rem !important; }
  
  .card-content { padding: 1.25rem; }
  
  .stats-section .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 1.5rem 1rem; }
  .stat-number { font-size: 2.2rem; }
  
  .auth-body { align-items: flex-start; padding: 2rem 1.25rem; overflow-y: auto; }
  .auth-wrapper { max-width: 100%; margin-top: 2rem; }
  .auth-card { padding: 2rem 1.25rem; border: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .auth-header i { font-size: 2.5rem; }
  .auth-header h1 { font-size: 1.75rem; }
  
  .dash-main { padding: 1rem; }
  .dash-stats-grid { grid-template-columns: 1fr; }
  
  .news-card { flex-direction: column; }
  .news-img { width: 100%; height: 180px; }
  
  .roadmap-step { padding-left: 40px !important; }
  .roadmap-dot { left: 0 !important; }
  .roadmap::before { left: 10px; }

  .video-placeholder { height: 250px; }
  .stream-info { padding: 1.25rem; }
  .stream-title { font-size: 1.25rem; }
}

/* ============================================
   UTILITY CLASSES (RESPONSIVE)
   ============================================ */
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.text-accent { color: var(--accent-primary) !important; font-family: var(--font-heading); }
.text-secondary { color: var(--accent-secondary) !important; }
.text-muted { color: var(--text-secondary) !important; }
.text-muted-sm { color: var(--text-secondary) !important; font-size: 0.9rem; }
.font-sm { font-size: 0.85rem; }
.btn-block { width: 100%; display: block; text-align: center; }

.section-subtitle-left { color: var(--text-secondary); max-width: 600px; line-height: 1.6; margin-bottom: 2rem; transform: none; left: 0; }

.stat-box-alt { padding: 1.5rem; background: var(--bg-tertiary); text-align: left; border-left: 4px solid var(--accent-primary); }
.dash-card-padding { padding: 2rem; }

.hero-section-2 { padding-top: 130px; background: var(--bg-primary); overflow: hidden; }

@media (max-width: 767px) {
    .hero-section-2 { padding-top: 100px; text-align: center; }
    .section-subtitle-left { text-align: center; margin: 0 auto 2rem; }
}