/* ===================================
   ARENAMODE – GLOBAL STYLES
   =================================== */

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

:root {
  --bg-primary: #080b12;
  --bg-secondary: #0d1117;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --accent-purple: #7C3AED;
  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  --accent-red: #EF4444;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --border: #1E293B;
  --border-bright: #2D3748;
  --gradient-main: linear-gradient(135deg, #7C3AED, #3B82F6);
  --gradient-hero: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #06B6D4 100%);
}

html {
  scroll-behavior: smooth;
}

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

/* =============================
   UTILITY
   ============================= */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none !important; }

.mt-4 { margin-top: 1.5rem; }

/* =============================
   SCROLLBAR
   ============================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #2D3748; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* =============================
   NAVBAR
   ============================= */
#navbar {
  position: fixed;
  top: 36px; /* stream-banner height – updated by JS */
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: top 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}
/* When no banner is present */
#navbar.no-banner {
  top: 0 !important;
}

#navbar.scrolled {
  background: rgba(8, 11, 18, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-accent { color: var(--accent-purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: #4B5563;
}

.btn-primary {
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* 36px banner + 68px navbar + 16px gap = 120px */
  padding-top: 120px;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7C3AED, transparent);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3B82F6, transparent);
  top: 200px;
  right: 0;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06B6D4, transparent);
  bottom: 0;
  left: 30%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(15px) scale(0.95); }
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #A78BFA;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge i { color: #F59E0B; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
  opacity: 0.95;
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Card Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 420px;
}

.game-preview-card {
  position: absolute;
  width: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.game-preview-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255,255,255,0.2);
  z-index: 10 !important;
}

.card-bg1 { top: 0; left: 0; z-index: 3; transform: rotate(-3deg); }
.card-bg2 { top: 60px; left: 30px; z-index: 2; transform: rotate(1.5deg); }
.card-bg3 { top: 120px; left: 60px; z-index: 1; transform: rotate(5deg); }

.card-game-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-game-icon {
  width: 22px;
  height: 22px;
  filter: invert(1) brightness(0.8);
}

.card-game-label span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.card-tournament-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.card-prize, .card-players {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-prize i { color: var(--accent-orange); }
.card-players i { color: var(--accent-blue); }

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.card-status.live { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid rgba(239,68,68,0.3); }
.card-status.upcoming { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.card-status.open { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* =============================
   SECTION COMMONS
   ============================= */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #A78BFA;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =============================
   GAMES SECTION
   ============================= */
.games-section {
  background: var(--bg-secondary);
  position: relative;
}

.games-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.game-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  group: true;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,0,0,0.4), inset 0 0 30px rgba(0,0,0,0.2);
}

.game-card:hover .game-card-glow {
  opacity: 0.08;
}

.game-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.game-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.game-icon-wrapper {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.game-card:hover .game-icon-wrapper {
  transform: scale(1.1);
}

.game-info {
  margin-bottom: 1rem;
}

.game-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.game-players {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.game-cta-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card:hover .game-cta-btn {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  color: var(--text-primary);
}

.games-more {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-purple);
  color: #A78BFA;
}

/* =============================
   TOURNAMENTS SECTION
   ============================= */
.tournaments-section {
  background: var(--bg-primary);
}

.tournament-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
  color: #A78BFA;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.t-live::before { background: linear-gradient(90deg, #EF4444, #F87171); opacity: 1; }
.t-open::before { background: linear-gradient(90deg, #10B981, #34D399); opacity: 1; }
.t-upcoming::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }

.tournament-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.tournament-card:hover::before { opacity: 1; }

.tc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tc-game-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  flex-shrink: 0;
}

.tc-game-info {
  flex: 1;
}

.tc-game-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-mode {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tc-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.badge-live { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-open { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.badge-upcoming { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }

.tc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.tc-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tc-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tc-detail i {
  color: var(--text-muted);
  width: 14px;
}

.tc-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.tc-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.tc-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-join {
  flex: 1;
  background: transparent;
  border: 1px solid;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-join:hover {
  opacity: 0.8;
}

.btn-details {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-details:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.tournament-load-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* =============================
   LEADERBOARD SECTION
   ============================= */
.leaderboard-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.leaderboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.leaderboard-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.leaderboard-info .section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.leaderboard-info .section-title {
  margin-bottom: 0.75rem;
}

.leaderboard-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.lb-header {
  display: grid;
  grid-template-columns: 60px 1fr 90px 110px 90px 80px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 90px 110px 90px 80px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
  transition: background 0.2s;
}

.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-row.top-rank { background: rgba(124, 58, 237, 0.04); }

.lb-rank {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.lb-game {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.lb-pts {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.lb-wl { font-size: 0.8rem; }
.lb-wins { color: var(--accent-green); }
.lb-losses { color: var(--text-muted); }

/* =============================
   FEATURES SECTION
   ============================= */
.features-section {
  background: var(--bg-primary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.feature-card:hover .feature-glow {
  opacity: 0.06;
}

.feature-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================
   HOW IT WORKS
   ============================= */
.how-section {
  background: var(--bg-secondary);
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D97706, transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s;
}

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

.step-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.12;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s;
}

.step-card:hover .step-icon {
  transform: scale(1.08);
}

.step-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -1.25rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 2;
}

.how-cta {
  text-align: center;
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonials-section {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.testimonial-rating {
  color: #F59E0B;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

/* =============================
   CTA SECTION
   ============================= */
.cta-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}

.cta-content {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cta-avatars {
  display: flex;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  margin-left: -8px;
  flex-shrink: 0;
}

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

/* =============================
   FOOTER
   ============================= */
.footer {
  background: #060912;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
  max-width: 240px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.social-link:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--accent-purple);
  color: #A78BFA;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text-primary); }

/* =============================
   MODAL
   ============================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-primary);
}

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.75rem;
}

.modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background: var(--accent-purple);
  color: white;
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.social-btn.discord {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
  color: #7289DA;
}

.social-btn.discord:hover { background: rgba(88, 101, 242, 0.2); }

.social-btn.google {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}

.social-btn.google:hover { background: rgba(255,255,255,0.08); }

.divider {
  text-align: center;
  position: relative;
  margin: 1.25rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  background: #111827;
  padding: 0 0.75rem;
  position: relative;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-group input::placeholder { color: var(--text-muted); }

.forgot-link {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75rem;
  color: var(--accent-purple);
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.form-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-purple);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check label a {
  color: var(--accent-purple);
  text-decoration: none;
}

.form-check label a:hover { text-decoration: underline; }

.btn-modal-submit {
  width: 100%;
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
}

.btn-modal-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.4);
}

/* =============================
   TOAST
   ============================= */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1E293B;
  border: 1px solid var(--accent-green);
  color: var(--text-primary);
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 99999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

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

.toast i { color: var(--accent-green); font-size: 1rem; }

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

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-visual { display: none; }

  .leaderboard-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(8, 11, 18, 0.98);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .hamburger { display: flex; }
  .btn-ghost { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-connector { display: none; }

  .lb-header, .lb-row {
    grid-template-columns: 50px 1fr 80px;
  }

  .lb-header span:nth-child(3),
  .lb-header span:nth-child(4),
  .lb-header span:nth-child(5),
  .lb-row .lb-team-col,
  .lb-row .lb-game,
  .lb-row .lb-pts { display: none; }

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

  .tournaments-grid, .features-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-social-proof { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .tournament-filters { gap: 0.5rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
}

/* =============================
   LIGA TEASER SECTION
   ============================= */
.league-teaser-section {
  background: var(--bg-secondary);
  position: relative;
}
.league-teaser-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
}
.lt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.lt-text .section-tag { display: inline-block; }
.lt-text .section-title { margin-bottom: .75rem; }
.lt-text .section-subtitle { margin-bottom: 1.5rem; }
.lt-divisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 2rem;
}
.lt-div-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: .65rem .85rem;
  transition: all .25s;
}
.lt-div-chip:hover {
  border-color: var(--dc, #7C3AED);
  background: rgba(255,255,255,.07);
}
.lt-div-chip i { font-size: 1rem; flex-shrink: 0; }
.lt-div-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem; line-height: 1.1; }
.lt-div-desc { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.lt-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* League Table Preview */
.lt-visual { display: flex; justify-content: center; }
.lt-table-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
}
.ltp-header {
  background: rgba(255,215,0,.06);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.1rem;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ltp-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: .82rem;
  transition: background .15s;
}
.ltp-row:last-of-type { border-bottom: none; }
.ltp-row:hover { background: rgba(255,255,255,.03); }
.ltp-row.row-up { background: rgba(16,185,129,.06); border-left: 3px solid #10B981; }
.ltp-row.row-rel { background: rgba(245,158,11,.06); border-left: 3px solid #F59E0B; }
.ltp-row.row-down { background: rgba(239,68,68,.06); border-left: 3px solid #EF4444; }
.ltp-rank { color: var(--text-muted); width: 28px; font-weight: 700; flex-shrink: 0; }
.ltp-name { flex: 1; font-weight: 600; }
.ltp-pts { font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 800; color: var(--accent-purple); }
.ltp-legend {
  display: flex;
  gap: 1rem;
  padding: .65rem 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.ltp-l { font-size: .7rem; font-weight: 600; }
.ltp-l.up { color: #10B981; }
.ltp-l.down { color: #EF4444; }

/* =============================
   PARTNER SECTION
   ============================= */
.partners-section {
  background: var(--bg-primary);
  overflow: hidden;
}
.partners-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #3B82F6, transparent);
}
.partners-section { position: relative; }

/* Slider */
.partners-slider-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -1.5rem 3rem;
  padding: 0 1.5rem;
  -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.partners-slider {
  display: flex;
  gap: 1rem;
  animation: partnerScroll 30s linear infinite;
  width: max-content;
}
.partners-slider:hover { animation-play-state: paused; }

@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  flex-shrink: 0;
  width: 140px;
}
.partner-slide:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.ps-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ps-name { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.ps-cat { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* Featured Partners */
.pf-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.partners-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.partner-featured-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: all .3s;
}
.partner-featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
}
.pfc-icon {
  width: 52px; height: 52px; border-radius: 13px;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.pfc-info { flex: 1; }
.pfc-name { font-weight: 700; font-size: .95rem; color: var(--text-primary); margin-bottom: .1rem; }
.pfc-desc { font-size: .75rem; color: var(--text-secondary); }
.pfc-arrow { color: var(--text-muted); font-size: .8rem; transition: transform .2s; }
.partner-featured-card:hover .pfc-arrow { transform: translateX(4px); color: var(--accent-purple); }

/* =============================
   ADMIN EXTRA
   ============================= */
/* navbar active link fix */
.nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,.08);
}

@media (max-width: 1024px) {
  .lt-inner { grid-template-columns: 1fr; gap: 2rem; }
  .lt-visual { display: none; }
}
@media (max-width: 640px) {
  .lt-divisions { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   STREAM BANNER
   ═══════════════════════════════════════════════════════════ */
.stream-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #0f0014 0%, #1a002d 50%, #0f0014 100%);
  border-bottom: 1px solid rgba(145,70,255,.35);
  padding: .45rem 1.5rem;
  min-height: 36px;
  box-sizing: border-box;
}
.stream-banner-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.stream-banner-left {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.stream-live-dot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
}
.pulse-ring {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(239,68,68,.35);
  animation: pulseRing 1.6s ease-out infinite;
}
.pulse-core {
  width: 9px; height: 9px; border-radius: 50%; background: #EF4444;
  box-shadow: 0 0 8px 2px rgba(239,68,68,.7);
}
@keyframes pulseRing {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.stream-platform-icon { font-size: 1.1rem; }
.stream-label {
  font-family: 'Rajdhani', sans-serif; font-weight: 800; letter-spacing: .08em;
  color: #EF4444; font-size: .95rem;
}
.stream-title {
  font-size: .83rem; color: rgba(255,255,255,.85); font-weight: 500;
  max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stream-viewers {
  font-size: .75rem; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: .3rem;
}
.stream-banner-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.stream-watch-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem 1rem; border-radius: 20px;
  background: linear-gradient(135deg, #9146FF, #6c35c0);
  color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.stream-watch-btn:hover { opacity: .85; transform: translateY(-1px); }
.stream-close-btn {
  background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.5);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.stream-close-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Kick platform color override */
.stream-watch-btn.kick { background: linear-gradient(135deg, #53fc18, #3bc712); color: #000; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR LIGA DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; user-select: none; }
.nav-chevron {
  font-size: .6rem; margin-left: .2rem; transition: transform .25s;
  display: inline-block;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%);
  background: rgba(10,10,18,.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 1rem; min-width: 280px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s;
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 500;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.ndm-section { margin-bottom: .75rem; }
.ndm-section:last-child { margin-bottom: 0; }
.ndm-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  color: var(--text-muted); text-transform: uppercase; padding: 0 .5rem .4rem;
}
.ndm-item {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem;
  border-radius: 10px; color: var(--text-secondary); text-decoration: none;
  transition: background .15s, color .15s;
}
.ndm-item:hover { background: rgba(255,255,255,.07); color: var(--text-primary); }
.ndm-item > i { width: 18px; text-align: center; color: var(--accent-purple); font-size: .9rem; }
.ndm-item > div > span { display: block; font-weight: 600; font-size: .85rem; }
.ndm-item > div > small { font-size: .72rem; color: var(--text-muted); }

/* Games dropdown */
.ndm-games {
  min-width: 320px; display: grid; grid-template-columns: 1fr 1fr;
  gap: .2rem; padding: .75rem;
}
.ndm-game-item {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .6rem .5rem; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: .75rem; font-weight: 600; text-align: center;
  transition: background .15s, color .15s;
}
.ndm-game-item:hover { background: rgba(255,255,255,.07); color: var(--text-primary); }
.ndm-game-icon { font-size: 1.3rem; }
.ndm-game-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.ndm-game-tag {
  font-size: .6rem; font-weight: 700; color: var(--text-muted);
  background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 4px;
}
.ndm-all-games {
  grid-column: span 2; text-align: center; padding: .5rem;
  color: var(--accent-purple); font-size: .75rem; font-weight: 600;
  text-decoration: none; border-top: 1px solid rgba(255,255,255,.07);
  margin-top: .3rem; padding-top: .7rem;
}
.ndm-all-games:hover { color: var(--text-primary); }

/* Upload avatar btn (teams detail) */
.upload-avatar-btn {
  position: absolute; bottom: -5px; right: -5px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #7C3AED; color: #fff; border: 2px solid #0a0a12;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; cursor: pointer; transition: background .2s;
}
.upload-avatar-btn:hover { background: #6d28d9; }

/* Game logo in game grid */
.game-logo-img {
  width: 56px; height: 56px; object-fit: contain; border-radius: 10px;
}
.game-icon-wrapper { font-size: 2.5rem; margin-bottom: .5rem; }


/* ─── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .2rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: .2rem .4rem;
}
.lang-btn {
  display: flex; align-items: center; gap: .25rem;
  background: transparent; border: none; cursor: pointer;
  color: rgba(241,245,249,.5); font-size: .75rem; font-weight: 600;
  padding: .2rem .45rem; border-radius: 14px;
  transition: all .2s;
  font-family: inherit;
}
.lang-btn:hover { color: #F1F5F9; background: rgba(255,255,255,.08); }
.lang-btn.active {
  color: #F1F5F9;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
}
.lang-flag { font-size: .85rem; line-height: 1; }
.lang-code { font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.lang-divider {
  color: rgba(255,255,255,.2);
  font-size: .7rem;
  line-height: 1;
  user-select: none;
}

/* ─── Admin: Lang Tab Bar ────────────────────────────────────── */
.lang-tab-bar {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
}
.lang-tab {
  padding: .5rem 1.25rem; border-radius: 8px;
  background: var(--admin-card); border: 1px solid var(--admin-border);
  color: var(--admin-sub); text-decoration: none; font-size: .875rem;
  font-weight: 600; transition: all .2s;
}
.lang-tab:hover { color: var(--admin-text); border-color: #7C3AED; }
.lang-tab.active {
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  color: #fff; border-color: transparent;
}

/* ─── Rulebook rule rows ─────────────────────────────────────── */
.rulebook-rules { display: flex; flex-direction: column; gap: .5rem; }
.rule-row {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(255,255,255,.02); border: 1px solid var(--admin-border);
  border-radius: 8px; padding: .75rem;
}

/* ─── Leaderboard: Team-Logo Spalte ────────────────────────── */
.lb-team-col {
  display: flex;
  align-items: center;
}
.lb-team {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.lb-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  padding: 2px;
}
.lb-team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.lb-team-name {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.lb-team-none {
  color: var(--text-muted);
  font-size: .85rem;
}
/* Spieler-Avatar als Foto */
.lb-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,58,237,.4);
}

/* ─── Liga-Logo im Hero ─────────────────────────────────────── */
.league-hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: .75rem;
  filter: drop-shadow(0 0 18px rgba(124,58,237,.6));
}

/* Liga-Logo neben LB-Titel */
.lb-league-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: .5rem;
  margin-bottom: .2rem;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.4));
}
