/* ============================================================
   Sports Bar AI — Frontpage Styles
   Dark theme, glassmorphism, neon accents, mobile-first
   ============================================================ */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #161622;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --border-glass: rgba(255,255,255,0.08);
  --border-glow: rgba(74,161,217,0.15);
  --brand-blue: #4aa1d9;
  --brand-blue-dim: rgba(74,161,217,0.15);
  --brand-blue-glow: rgba(74,161,217,0.25);
  --brand-orange: #f39322;
  --brand-orange-dim: rgba(243,147,34,0.15);
  --accent: #4aa1d9;
  --accent-dim: rgba(74,161,217,0.15);
  --accent2: #7c3aed;
  --accent2-dim: rgba(124,58,237,0.15);
  --live: #ff3b5c;
  --live-dim: rgba(255,59,92,0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --text: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 30px rgba(74,161,217,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --nav-height: 64px;
  --bottom-nav-height: 72px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html { overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,92,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PAGE CONTAINER (below fixed navbar)
   ============================================================ */
.page-container {
  margin-top: var(--nav-height);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand .brand-logo {
  height: 28px;
  width: auto;
}

/* Nav buttons (Fixtures, Bookings, Locations, Login) */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  cursor: pointer;
}
.nav-btn:hover {
  color: var(--text);
  background: var(--bg-glass-hover);
  border-color: var(--accent);
}
.nav-btn svg { flex-shrink: 0; opacity: 0.7; }
.nav-btn:hover svg { opacity: 1; }
.nav-btn span { display: none; }
@media (min-width: 640px) {
  .nav-btn span { display: inline; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Asymmetric padding: Inter's cap-height sits above the em-box midline, so
   flex-centred text visually lands high. 11 top / 9 bottom pushes the
   optical centre down. Same treatment as panel.css .btn. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00c4cc);
  color: #000;
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,240,255,0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
}
.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.12);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text);
}
.btn-ghost:active {
  opacity: 0.7;
}

.btn-sm {
  padding: 8px 14px 4px;
  font-size: 0.8rem;
  line-height: 1;
}

/* --- Nav User Button (logged in) --- */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
}
.nav-user-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  color: var(--text);
}
.nav-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0f;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { display: none; }
@media (min-width: 640px) {
  .nav-user-name { display: inline; }
}

/* --- Language Selector --- */
.nav-lang-wrap {
  position: relative;
  display: flex; align-items: center;
}
.nav-lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer; border: none; background: none;
  transition: background var(--transition);
  padding: 0;
}
.nav-lang-btn:hover { background: var(--bg-glass-hover); }
.nav-flag { font-size: 1.3rem; line-height: 1; }
.nav-lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--bg-card, #1a1a2e); border: 1px solid var(--border, #2a2a3e);
  border-radius: var(--radius-sm, 8px); padding: 4px 0;
  min-width: 0; z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-lang-dropdown.open { display: block; }
.nav-lang-opt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 14px; border: none; background: none;
  color: var(--text); font-size: 0.85rem; cursor: pointer;
  text-align: left; white-space: nowrap;
}
.nav-lang-opt:hover { background: var(--bg-glass-hover); }
.nav-lang-opt span { font-size: 1.1rem; }

/* --- Nav Menu (Burger) Button --- */
.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-menu-btn:hover { background: var(--bg-glass-hover); }
.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}
.nav-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   SITE MENU (Universal — right slide panel)
   ============================================================ */
.site-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1101;
  background: rgba(14,14,22,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.site-menu.open {
  transform: translateX(0);
}

.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.site-menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.site-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.site-menu-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text);
}

.site-menu-body {
  flex: 1 1 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
}

/* Menu nav links */
.menu-nav-links {
  padding: 0 12px 8px;
}
.menu-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.menu-nav-links a:hover {
  color: var(--text);
  background: var(--bg-glass);
}
.menu-nav-links a svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Sports section divider */
.menu-sports-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.menu-sports-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

/* Sport item (accordion header) */
.menu-sport-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  transition: background var(--transition);
}
.menu-sport-item:hover {
  background: var(--bg-glass);
}
.menu-sport-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.menu-sport-badge-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.menu-sport-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.menu-sport-item:hover .menu-sport-name {
  color: var(--text);
}
.menu-sport-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.menu-sport-toggle:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.menu-sport-toggle:hover .menu-sport-chevron {
  color: #000;
}
.menu-sport-chevron {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
  transition: transform 0.25s ease, color 0.2s ease;
}
.menu-sport-item.open .menu-sport-chevron {
  transform: rotate(180deg);
}
.menu-sport-item.open .menu-sport-toggle {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.menu-sport-item.open .menu-sport-toggle .menu-sport-chevron {
  color: #000;
}

/* League sub-list */
.menu-league-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.15);
}
.menu-sport-item.open + .menu-league-list {
  max-height: 2000px;
}
.menu-league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 48px;
  transition: background var(--transition);
}
.menu-league-item:hover {
  background: var(--bg-glass);
}
.menu-league-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.menu-league-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.menu-league-item:hover .menu-league-name {
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0,240,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,59,92,0.04) 0%, transparent 60%);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero preview card */
.hero-preview {
  animation: fadeInUp 0.8s ease 0.4s both;
}
#heroPreview {
  min-height: 480px;
  overflow: hidden;
}
.hero-preview-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--brand-blue) 40%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  padding: 0 0 10px 2px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--brand-blue), var(--brand-orange), transparent) 1;
  text-shadow: 0 0 40px rgba(74,161,217,0.3);
}

/* Hero Spotlight */
.hero-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0 4px;
}
.hero-spotlight-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--brand-blue);
}
.hero-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}
.hero-more-btn {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.hero-more-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ============================================================
   FIXTURE BROWSER (Date + Sport Filters + Fixtures)
   ============================================================ */
.fixture-browser {
  padding: 0 0 80px;
  position: relative;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title .accent {
  color: var(--accent);
}

.section-link {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover { gap: 8px; }

.fixture-status-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.status-pill-live .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live, #ef4444);
  animation: pulse-live 1.5s infinite;
}

.section-subheader {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 24px 0 12px;
}

/* Date Ribbon */
.date-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  user-select: none;
  position: relative;
}

/* TODAY pill — fixed at left of ribbon */
.date-ribbon-today {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 64px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: rgba(102,179,46,0.1);
  border: 1px solid #66b32e;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.drt-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #66b32e;
}
.drt-day {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.drt-month {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #66b32e;
}
@media (hover: hover) {
  .date-ribbon-today:hover {
    background: rgba(102,179,46,0.25);
    box-shadow: 0 0 12px rgba(102,179,46,0.3);
  }
}
.date-ribbon-today:active {
  transform: scale(0.95);
}

.date-ribbon-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(74,161,217,0.08);
  border: 1px solid rgba(74,161,217,0.15);
  color: var(--brand-blue);
  transition: all var(--transition);
  font-size: 1rem;
  cursor: pointer;
}

.date-ribbon-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand-blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .date-ribbon-arrow:hover {
    background: var(--brand-blue-dim);
    border-color: var(--brand-blue);
  }
}
.date-ribbon-arrow:active {
  transform: scale(0.93);
  background: var(--brand-blue-dim);
}

.date-ribbon-scroll {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
  padding: 4px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(135deg, rgba(74,161,217,0.05) 0%, rgba(15,15,25,0.6) 50%, rgba(243,147,34,0.03) 100%);
  border: 1px solid rgba(74,161,217,0.1);
  border-radius: var(--radius-sm);
}

.date-ribbon-scroll.dragging {
  cursor: grabbing;
}

.date-ribbon-scroll::-webkit-scrollbar { display: none; }

.date-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 64px;
  width: 64px;
  height: 72px;
  justify-content: center;
}

.date-item-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.date-item-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.2;
}

.date-item-month {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (hover: hover) {
  .date-item:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255,255,255,0.12);
  }
}
.date-item:active {
  transform: scale(0.93);
}

/* Selected day - solid blue border, blue tinted bg */
.date-item.active {
  background: var(--brand-blue-dim);
  border-color: var(--brand-blue);
  box-shadow: 0 0 16px rgba(74,161,217,0.3), 0 0 4px rgba(74,161,217,0.15);
  z-index: 2;
  position: relative;
}

.date-item.active .date-item-label { color: var(--brand-blue); }
.date-item.active .date-item-day { color: #fff; }
.date-item.active .date-item-month { color: var(--brand-blue); }

/* Today marker when not selected */
.date-item.today:not(.active) .date-item-label {
  color: var(--brand-blue);
  font-weight: 700;
}
.date-item.today:not(.active) {
  border-color: rgba(74,161,217,0.3);
}


@media (max-width: 768px) {
  .date-ribbon-today {
    width: 52px;
    height: 60px;
  }
  .drt-day { font-size: 1rem; }
  .date-item {
    min-width: 52px;
    width: 52px;
    height: 60px;
    padding: 6px 6px;
  }
  .date-ribbon-arrow {
    width: 20px;
    height: 60px;
  }
  .date-item-day { font-size: 1rem; }
}

/* --- Sport & League Filter --- */
.sport-filter {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(74,161,217,0.05) 0%, rgba(15,15,25,0.6) 50%, rgba(243,147,34,0.03) 100%);
  border: 1px solid rgba(74,161,217,0.1);
  border-radius: var(--radius-sm);
  padding: 8px;
}

/* Tier 1: Sport Rail */
.sport-rail {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.sport-rail::-webkit-scrollbar { display: none; }

.sport-rail-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: none;
  border: none;
  color: inherit;
}
.sport-rail-item:hover {
  background: var(--bg-glass-hover);
}
.sport-rail-item.active {
  background: var(--brand-blue-dim);
}
.sport-rail-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.sport-rail-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition);
}
.sport-rail-item.active .sport-rail-badge {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}
.sport-rail-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sport-rail-badge svg {
  width: 18px;
  height: 18px;
}

/* Labels removed — icon-only rail */

/* Tier 2: League Tray */
.league-tray {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}
.league-tray.open {
  max-height: 56px;
  opacity: 1;
}

.league-tray-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 4px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.league-tray-scroll::-webkit-scrollbar { display: none; }

.league-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.league-pill:hover {
  background: var(--bg-glass-hover);
}
.league-pill.active {
  background: var(--brand-blue-dim);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue-glow);
}
.league-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.league-pill svg {
  width: 16px;
  height: 16px;
}
.league-pill-letter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .sport-rail-item {
    width: 42px;
    height: 42px;
  }
  .sport-rail-badge {
    width: 32px;
    height: 32px;
  }
  .sport-rail-badge img {
    width: 20px;
    height: 20px;
  }
  .league-pill {
    width: 32px;
    height: 32px;
  }
  .league-pill img {
    width: 18px;
    height: 18px;
  }
}

/* Date Status Bar */
/* date-status removed — calendar icon now lives in day separator bars */

/* Calendar Popup */
.calendar-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  min-width: 280px;
  animation: fadeInUp 0.2s ease;
}

.calendar-popup.open { display: block; }

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition);
}

.calendar-nav button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}

.calendar-day {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  margin: 0 auto;
}

.calendar-day:hover {
  background: var(--bg-glass);
  color: var(--text);
}

.calendar-day.today {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.calendar-day.other-month {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ============================================================
   FIXTURE CARDS
   ============================================================ */
/* --- Date & Week Separators --- */
.date-separator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: none;
}
.date-separator:first-child { margin-top: 0; }

.date-separator-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  transition: all var(--transition);
}
.date-separator-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.date-separator-btn:active {
  transform: scale(0.97);
}
.date-separator-btn svg { color: var(--text-muted); width: 12px; height: 12px; }
.date-separator.today .date-separator-btn { border-color: #66b32e; color: #66b32e; }
.date-separator.today .date-separator-btn svg { color: #66b32e; }
.date-separator.tomorrow .date-separator-btn { border-color: var(--accent); color: var(--accent); }
.date-separator.tomorrow .date-separator-btn svg { color: var(--accent); }
.date-separator-count {
  display: inline-flex !important; gap: 8px !important; align-items: center !important;
  background: none !important; border: none !important; padding: 0 !important;
  border-radius: 0 !important;
}
.date-separator-count .status-pill {
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 20px;
  display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap; line-height: 1; height: 24px; box-sizing: border-box;
}
.date-separator-count .status-pill-live {
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
  color: var(--live, #ef4444);
}
.date-separator-count .status-pill-live .live-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--live, #ef4444);
  animation: pulse-live 1.5s infinite;
}
.date-separator-count .status-pill-upcoming {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}

.week-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin-top: 12px;
}
.week-separator span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px;
  position: relative;
}
.week-separator span::before,
.week-separator span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border-glass);
}
.week-separator span::before { right: 100%; }
.week-separator span::after { left: 100%; }

.league-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 4px;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.league-group-header img {
  border-radius: 4px;
  object-fit: contain;
}
.league-group-count {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.6;
}
.date-separator + .league-group-header { margin-top: 0; padding-top: 6px; }

.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fixture-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 8px;
}

.fixture-card:hover {
  border-color: var(--border-glow);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.fixture-card:active {
  transform: scale(0.985);
  box-shadow: none;
}

.fixture-card-main {
  display: grid;
  grid-template-columns: 60px 1fr auto 1fr 60px;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

/* Motorsport card: 3-column layout (league | event+info | status) */
.fixture-card-main.fixture-motorsport {
  grid-template-columns: 60px 1fr 60px;
}
.fixture-motor-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.fixture-motor-event {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.fixture-motor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixture-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fixture-league img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.fixture-league-name {
  display: none;
}

.fixture-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.fixture-team img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.fixture-team-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.fixture-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  background: none;
}

.status-pill .status-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.status-pill .status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-pill .status-dot.live::after {
  background: #ef4444;
  animation: pulse-live 1.5s ease-in-out infinite;
}
.status-pill .status-dot.ft::after { background: var(--text-muted); }
.status-pill .status-dot.cancelled::after { background: var(--brand-orange); }

/* Bookable fixtures: orange pulsating dot, blue pulsating chevron */
.fixture-card.card-bookable .status-dot::after,
.fixture-card.card-live-bookable .status-dot::after,
.fixture-card.card-starting-bookable .status-dot::after {
  background: var(--brand-orange);
  animation: pulse-bookable 2s ease-in-out infinite;
}
.fixture-card.card-bookable .status-chevron-wrap,
.fixture-card.card-live-bookable .status-chevron-wrap,
.fixture-card.card-starting-bookable .status-chevron-wrap {
  animation: pulse-chevron 2s ease-in-out infinite;
}

.status-pill .status-dot {
  transition: background 0.2s ease;
}
.status-pill .status-dot:hover {
  background: rgba(255,255,255,0.12);
}

.status-chevron-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
}
.status-chevron-wrap:hover {
  background: var(--brand-blue);
}
.fixture-card.card-open .status-chevron-wrap {
  background: var(--brand-blue);
}

.status-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.status-chevron-wrap:hover .status-chevron {
  color: #000;
}

.fixture-card.card-open .status-chevron {
  transform: rotate(180deg);
  color: #000;
}

.fixture-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.fixture-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.fixture-date-sm {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.fixture-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.fixture-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  display: block;
}

.fixture-score.live { color: #fff; }

.fixture-status {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fixture-status.live { color: var(--live); }
.fixture-status.finished { color: var(--text-secondary); }
.fixture-status.cancelled { color: var(--brand-orange); }

.fixture-period {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.fixture-extra {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.fixture-sets {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.status-dot.cancelled { background: var(--brand-orange); }

.fixture-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.fixture-status-badge.live {
  background: var(--live-dim);
  color: var(--live);
}

.fixture-status-badge.live .live-dot {
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.fixture-status-badge.ft {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.fixture-status-badge.upcoming {
  background: var(--accent-dim);
  color: var(--accent);
}

.fixture-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-left: 8px;
}

/* Bookable strip — always visible on bookable fixtures */
.fixture-card-bookable-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--brand-blue);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fixture-card-bookable-strip svg {
  color: #000;
  flex-shrink: 0;
}
.fixture-card-bookable-strip:hover {
  background: #3a91c9;
}

/* Fixture card bottom strip */
.fixture-card-footer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-glass);
  cursor: pointer;
  font-size: 0.75rem;
}
.fixture-card.card-open .fixture-card-footer {
  display: flex;
}

.fixture-card-footer .footer-text {
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 0;
}

.fixture-card-footer.footer-bookable .footer-text {
  color: var(--accent);
}

.fixture-card-footer.footer-live .footer-text,
.fixture-card-footer.footer-starting .footer-text {
  color: var(--brand-orange);
}

.fixture-card-footer.footer-unavailable .footer-text {
  color: var(--text-muted);
  font-style: italic;
}

.footer-watch-text {
  color: var(--text-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  padding-bottom: 0 !important;
}
.footer-bookable-text {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.flr-sep {
  border-top: 1px solid var(--border-glass);
  margin: 0;
}

.footer-location-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.flr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flr-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flr-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
}

.flr-loc svg {
  color: var(--accent);
  flex-shrink: 0;
}

.flr-geo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.flr-geo svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.flr-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.flr-avail svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: background var(--transition);
  margin-left: auto;
}

.footer-action-btn svg, .ev-footer-ticket-btn svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.footer-action-btn:hover {
  background: rgba(74,161,217,0.25);
}

/* Event card footer — hidden by default, shown on card-open */
.fixture-card-footer.ev-footer {
  gap: 0;
}

/* Single strip — flexbox row on desktop, wraps on mobile */
.ev-footer-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.ev-footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-footer-loc svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ev-footer-geo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-footer-geo svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ev-footer-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ev-cat-pill {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.ev-footer-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-footer-avail svg {
  color: var(--accent);
  flex-shrink: 0;
}
.ev-footer-avail strong {
  color: var(--text);
  font-weight: 600;
}

.ev-footer-ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s;
}
.ev-footer-ticket-btn:hover {
  background: #3a8bc2;
}

/* Desktop: single row — location | city | pills | avail | tickets */
@media (min-width: 640px) {
  .ev-footer-strip {
    flex-wrap: nowrap;
  }
}

/* Mobile: multi-row */
@media (max-width: 639px) {
  .ev-footer-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
  }
  .ev-footer-loc { grid-column: 1; }
  .ev-footer-geo { grid-column: 2; justify-self: end; }
  .ev-footer-pills { grid-column: 1 / -1; }
  .ev-footer-avail { grid-column: 1; }
  .ev-footer-ticket-btn { grid-column: 2; justify-self: end; margin-left: 0; }
}

/* Fixture card state classes — unified accent border */
.fixture-card.card-past {
  opacity: 1;
}

.fixture-card.card-bookable,
.fixture-card.card-live,
.fixture-card.card-live-bookable,
.fixture-card.card-starting,
.fixture-card.card-starting-bookable,
.fixture-card.card-unavailable {
  border-left-color: var(--accent);
}

/* Empty state — compact single line */
.fixture-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.fixture-empty svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.next-fixtures-section {
  margin-top: 8px;
}

.next-fixtures-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.more-events-section {
  margin-top: 8px;
}
.more-events-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: none;
  border-radius: 0;
  padding: 0;
  border: none;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: fit-content;
  background: linear-gradient(135deg, rgba(74,161,217,0.06) 0%, rgba(15,15,25,0.8) 50%, rgba(243,147,34,0.04) 100%);
  border: 1px solid rgba(74,161,217,0.1);
}

.tab:hover {
  color: var(--text);
  border-color: rgba(74,161,217,0.25);
}
.tab:active {
  transform: scale(0.95);
}

.tab.active {
  background: linear-gradient(135deg, rgba(74,161,217,0.14) 0%, var(--bg-card) 50%, rgba(243,147,34,0.06) 100%);
  color: var(--text);
  border-color: rgba(74,161,217,0.3);
  box-shadow: 0 2px 12px rgba(74,161,217,0.1);
}

.tab .tab-count {
  font-size: 0.7rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 6px;
}

.tab.active .tab-count {
  background: var(--accent);
  color: #000;
}

.tab .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-bookable {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(243,147,34,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 6px 2px rgba(243,147,34,0.3); }
}

@keyframes pulse-chevron {
  0%, 100% { background: rgba(74,161,217,0.2); }
  50% { background: rgba(74,161,217,0.4); }
}

/* ============================================================
   BROWSE SPORTS & LEAGUES
   ============================================================ */
.browse-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

/* Browse groups (World Sports, Soccer Leagues, Made in the USA) */
.browse-group {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}

.browse-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}
.browse-group-title .accent {
  color: var(--brand-blue);
}
.browse-group-title .usa-u { color: #B31942; }
.browse-group-title .usa-s { color: #FFFFFF; }
.browse-group-title .usa-a { color: var(--brand-blue);
}

.browse-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.browse-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 52px;
  cursor: pointer;
  transition: transform var(--transition);
}
.browse-badge:hover {
  transform: translateY(-2px);
}
.browse-badge:active {
  transform: scale(0.92);
}

.browse-badge-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.browse-badge-img img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.browse-badge-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.browse-badge-name {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.15;
  max-width: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .browse-section { padding: 40px 0; }
  .browse-group { padding: 12px 14px 16px; }
  .browse-soccer-leagues .browse-badge:nth-child(n+17) { display: none; }
  .browse-group-title { font-size: 1.1rem; margin-bottom: 10px; }
  .browse-badges-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .browse-badge { width: auto; }
  .browse-badge-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .browse-badge-img img {
    width: 26px;
    height: 26px;
  }
  .browse-badge-name {
    font-size: 0.5rem;
    max-width: 70px;
  }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 60px 0;
  position: relative;
  scroll-margin-top: var(--nav-height);
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.how-tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.how-track {
  position: relative;
}

.how-track-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-track-title .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.how-track-title .icon.fans {
  background: var(--accent-dim);
}

.how-track-title .icon.bars {
  background: var(--accent2-dim);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.how-step:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.how-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.fans .how-step-num {
  background: var(--accent-dim);
  color: var(--accent);
}

.bars .how-step-num {
  background: var(--accent2-dim);
  color: var(--accent2);
}

.how-step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   FEATURED BARS
   ============================================================ */
.bars-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

.bars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.bar-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.bar-card:active {
  transform: scale(0.98);
  box-shadow: none;
}

.bar-card-image {
  height: 160px;
  background: var(--bg-glass);
  position: relative;
  overflow: hidden;
}

.bar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-card-image .bar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-glow);
}

.bar-card-body {
  padding: 16px;
}

.bar-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-card-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.bar-card-sports {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bar-card-sport-tag {
  padding: 3px 8px;
  background: var(--bg-glass);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bar-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   UPCOMING EVENTS (homepage)
   ============================================================ */
.events-home-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}
.events-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ev-home-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.ev-home-card:hover {
  border-color: var(--brand-blue-dim);
  transform: translateY(-2px);
}
.ev-home-card-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ev-home-card-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ev-home-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-width: 80px;
}
.ev-home-card-vs {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.ev-home-card-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--brand-blue);
  font-weight: 500;
}
.ev-home-card-venue {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   FAVORITES TEASER
   ============================================================ */
.favorites-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
}

.favorites-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,240,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.favorites-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.favorites-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.favorites-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.favorites-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.favorites-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  animation: float 3s ease infinite;
}

.favorites-badge:nth-child(2) { animation-delay: 0.3s; }
.favorites-badge:nth-child(3) { animation-delay: 0.6s; }
.favorites-badge:nth-child(4) { animation-delay: 0.9s; }
.favorites-badge:nth-child(5) { animation-delay: 1.2s; }
.favorites-badge:nth-child(6) { animation-delay: 1.5s; }

.favorites-badge:hover {
  border-color: var(--accent);
  transform: scale(1.15);
}
.favorites-badge:active {
  transform: scale(0.9);
}

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

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 0%, rgba(0,240,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 100%, rgba(124,58,237,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.social-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.social-btn:active {
  transform: scale(0.96);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.signup-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.signup-buttons .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.signup-buttons .btn svg { flex-shrink: 0; }
.signup-buttons .btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.signup-buttons .btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-glass);
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  background: var(--bg-secondary);
}

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

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

.footer-logo-link { display: inline-block; }

.footer-brand-img {
  height: 28px;
  width: auto;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue-dim);
  background: var(--brand-blue-dim);
}

.footer-link-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--brand-blue); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-startivent-logo {
  height: 14px;
  width: auto;
  opacity: 0.5;
}

/* ============================================================
   STATIC PAGES (About, Partners)
   ============================================================ */
.static-hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}

.static-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,161,217,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(124,58,237,0.08) 0%, transparent 50%);
  z-index: 0;
}

.static-hero .container { position: relative; z-index: 1; }

.static-hero-content {
  max-width: 680px;
}

.static-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

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

.static-page {
  padding: 24px 0 60px;
}

.sp-section {
  margin-bottom: 64px;
}

.sp-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sp-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sp-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.accent { color: var(--brand-blue); }

.sp-grid {
  display: grid;
  gap: 20px;
}

.sp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Ultra plan feature-grid. 3 columns on desktop, stacks to 1 on mobile.
   Column separators become a bottom-border when stacked. */
.sp-ultra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.sp-ultra-grid > div {
  padding: 28px 32px;
  border-right: 1px solid rgba(74, 161, 217, 0.1);
}
.sp-ultra-grid > div:last-child { border-right: 0; }
@media (max-width: 860px) {
  .sp-ultra-grid { grid-template-columns: 1fr; }
  .sp-ultra-grid > div {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(74, 161, 217, 0.1);
  }
  .sp-ultra-grid > div:last-child { border-bottom: 0; }
}

/* Ultra header + CTA bar mobile padding. The desktop values (52px/40px /
   28px 40px) feel cramped under 480px. */
@media (max-width: 640px) {
  .sp-ultra-head { padding: 48px 20px 28px !important; }
  .sp-ultra-head > span { font-size: 1.6rem !important; }
  .sp-ultra-head > p { font-size: 0.95rem !important; }
  .sp-ultra-cta { padding: 20px !important; gap: 14px !important; }
  .sp-ultra-cta > a { width: 100%; text-align: center; }
}

.sp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.sp-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.sp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 16px 0 10px;
}

.sp-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sp-card-accent {
  border-color: var(--brand-blue-dim);
  background: linear-gradient(135deg, rgba(74,161,217,0.06) 0%, var(--bg-card) 60%);
}

.sp-card-accent2 {
  border-color: var(--accent2-dim);
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, var(--bg-card) 60%);
}

.sp-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.sp-icon-circle.accent2 {
  background: var(--accent2-dim);
  color: var(--accent2);
}

/* Features with number */
.sp-feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: border-color var(--transition);
}

.sp-feature:hover {
  border-color: rgba(255,255,255,0.12);
}

.sp-feature-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.sp-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Feature cards (icon + text side by side) */
.sp-feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: border-color var(--transition);
}

.sp-feature-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.sp-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sp-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Stats bar */
.sp-stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74,161,217,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.sp-stat {
  text-align: center;
}

.sp-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sp-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Steps */
.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.sp-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.sp-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sp-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Company card */
.sp-company-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  align-items: flex-start;
  max-width: 640px;
  margin: 0 auto;
}

.sp-company-logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  margin-top: 4px;
}

.sp-company-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sp-company-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sp-company-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing card */
.sp-pricing-card {
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--brand-blue-dim);
  overflow: hidden;
}

.sp-pricing-header {
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(74,161,217,0.1) 0%, rgba(74,161,217,0.03) 100%);
  border-bottom: 1px solid var(--border-glass);
}

.sp-pricing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-weight: 600;
}

.sp-pricing-value {
  margin-top: 8px;
}

.sp-pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sp-pricing-plus {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sp-pricing-list {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* CTA block */
.sp-cta {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74,161,217,0.1) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid var(--border-glass);
}

.sp-cta h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.sp-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sp-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tier cards */
.sp-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sp-tier-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-glass); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.sp-tier-featured { border-color: var(--brand-blue); box-shadow: 0 0 24px rgba(74,161,217,0.1); }
.sp-tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand-blue); color: #fff; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.sp-tier-header { margin-bottom: 8px; }
.sp-tier-name { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; }
.sp-tier-price { display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand-blue); margin-top: 4px; }
.sp-tier-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 20px; }
.sp-tier-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-tier-features li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.sp-tier-disabled { opacity: 0.45; }
.sp-tier-btn { width: 100%; text-align: center; margin-top: auto; }

@media (max-width: 900px) { .sp-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sp-tiers { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .sp-stats-bar { gap: 24px; padding: 28px 20px; }
  .sp-stat-value { font-size: 1.5rem; }
  .sp-company-card { flex-direction: column; }
  .sp-feature-card { flex-direction: column; gap: 12px; }
  .static-hero { padding: 100px 0 40px; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(74,161,217,0.3);
}

.faq-question {
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover { color: var(--brand-blue); }

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   HELP / SUPPORT CARDS
   ============================================================ */
.help-topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

a.help-topic-card:hover {
  border-color: rgba(74,161,217,0.3);
  transform: translateY(-2px);
}

.help-topic-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.help-topic-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.help-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.help-guide-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-blue-dim);
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-guide-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.help-guide-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.help-link-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.help-link-list a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-blue);
  opacity: 0.5;
  flex-shrink: 0;
}

.help-link-list a:hover { color: var(--brand-blue); }

/* ============================================================
   KB SIDEBAR LAYOUT
   ============================================================ */
.kb-page.static-page {
  display: grid !important;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.kb-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 16px 0;
  border-right: 1px solid var(--border-glass);
}

.kb-sidebar::-webkit-scrollbar { width: 3px; }
.kb-sidebar::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 3px; }

.kb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 16px;
}

.kb-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border-left: 2px solid transparent;
}

.kb-nav-link:hover {
  color: var(--text);
  background: var(--bg-glass);
}

.kb-nav-link.active {
  color: var(--brand-blue);
  background: rgba(74,161,217,0.06);
  border-left-color: var(--brand-blue);
  font-weight: 600;
}

.kb-nav-link svg {
  flex-shrink: 0;
  opacity: 0.4;
}

.kb-nav-link.active svg {
  opacity: 1;
}

.kb-content {
  min-width: 0;
  max-width: 800px;
}

.kb-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-glass);
  scroll-margin-top: 80px;
}

.kb-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.kb-section > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.kb-section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.kb-section .faq-list {
  max-width: none;
}

.kb-article {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.kb-article:hover {
  border-color: rgba(255,255,255,0.1);
}

.kb-article h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.kb-article-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.kb-article-body strong {
  color: var(--text);
  font-weight: 600;
}

.kb-article-body a {
  color: var(--brand-blue);
  text-decoration: none;
}

.kb-article-body a:hover {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 960px) {
  .kb-page.static-page {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 24px 20px 60px;
  }
}

/* Mobile: sidebar becomes horizontal scroll strip */
@media (max-width: 768px) {
  .kb-page.static-page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 16px 40px;
  }

  .kb-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 16px;
    margin-bottom: 24px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

  .kb-nav {
    flex-direction: row;
    gap: 4px;
    min-width: max-content;
    padding-right: 0;
  }

  .kb-nav-link {
    font-size: 0.75rem;
    padding: 7px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .kb-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--brand-blue);
  }

  .kb-nav-link svg { display: none; }

  .kb-content { max-width: none; }

  .kb-section { padding-bottom: 32px; margin-bottom: 32px; }

  .kb-article { padding: 18px 20px; }
}

/* ============================================================
   HELP SEARCH
   ============================================================ */
.help-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 16px;
  text-align: center;
}

.help-search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.help-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.help-search-box:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(74,161,217,0.15);
}

.help-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.help-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}

.help-search-input::placeholder {
  color: var(--text-muted);
}

.help-search-kbd {
  font-size: 0.65rem;
  font-family: inherit;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  flex-shrink: 0;
}

.help-search-results {
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
}

.help-result-item {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition);
}

.help-result-item:last-child { border-bottom: none; }

.help-result-item:hover {
  background: rgba(74,161,217,0.06);
}

.help-result-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.help-result-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-no-results {
  padding: 20px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.help-contact-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.help-contact-link:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(74,161,217,0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.contact-form select option {
  background: var(--bg-surface);
  color: var(--text);
}

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

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status-success {
  background: rgba(102,179,46,0.1);
  border: 1px solid rgba(102,179,46,0.3);
  color: #66b32e;
}

.form-status-error {
  background: rgba(238,50,46,0.1);
  border: 1px solid rgba(238,50,46,0.3);
  color: #ee322e;
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  height: var(--bottom-nav-height);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 500;
}
.bottom-nav-item.bookvelt-chat-nav-btn {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item:active {
  transform: scale(0.9);
}

.bottom-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(0,240,255,0.4));
}

/* ============================================================
   FIXTURES PAGE
   ============================================================ */

.calendar-page, .fixtures-page {
  padding-top: 16px;
}

.page-header {
  margin-bottom: 16px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  padding-top: 40px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.legal-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.legal-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

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

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

.legal-contact {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.legal-contact a {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal Policy Detail */
.container-narrow {
  max-width: 780px;
}

.legal-policy-nav {
  margin-bottom: 32px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}

.legal-back:hover { opacity: 0.7; }

/* Prose styles for markdown content */
.prose {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

.prose h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 16px; }

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.prose th, .prose td {
  padding: 10px 12px;
  border: 1px solid var(--border-glass);
  text-align: left;
}

.prose th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
}

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

/* Legal Modal */
.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-overlay.open {
  display: flex;
}

.legal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}

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

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.legal-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

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

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.legal-modal-body .prose h1 {
  display: none;
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.login-modal-overlay.open { display: flex; }

html.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}
html.modal-open body {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

.login-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  animation: modalIn 0.2s ease;
  text-align: center;
  margin: auto 0;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.login-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.login-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.login-modal .social-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.login-modal .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.login-modal .social-btn:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.login-modal .social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.login-method-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.login-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.55;
  filter: grayscale(0.3);
}
.login-method-btn.active {
  opacity: 1;
  filter: none;
}
.login-method-btn.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.login-method-btn.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}
.login-method-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.login-method-btn.btn-whatsapp.active {
  border-color: #25D366;
  box-shadow: 0 0 0 1px #25D366;
}

/* Login form */
.login-form {
  text-align: left;
}
.login-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.login-form input:focus { border-color: var(--accent); }
.login-form input::placeholder { color: var(--text-muted); }

/* Phone input with country code */
.phone-input-wrap {
  display: flex;
  position: relative;
  margin-bottom: 10px;
}
.phone-input-wrap input[type="tel"] {
  flex: 1;
  border-radius: 0 8px 8px 0;
  border-left: none;
  margin-bottom: 0;
}
.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.phone-code-btn:hover { border-color: var(--accent); }
.phone-code-btn svg { stroke: var(--text-muted); flex-shrink: 0; }
.phone-code-btn img { flex-shrink: 0; }
.phone-code-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 220px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.phone-code-dropdown.open { display: block; }
.phone-code-search {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: none;
  border-bottom: 1px solid var(--border-glass);
  border-radius: 8px 8px 0 0;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 0;
}
.phone-code-search::placeholder { color: var(--text-muted); }
.phone-code-list {
  max-height: 170px;
  overflow-y: auto;
}
.phone-code-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.1s;
}
.phone-code-item:hover { background: rgba(255,255,255,0.05); }
.phone-code-item.active { background: rgba(74,161,217,0.15); }
.phone-code-item img { flex-shrink: 0; }
.phone-code-item-name { flex: 1; }
.phone-code-item-dial { color: var(--text-muted); font-size: 0.8rem; }

.login-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-error {
  color: #ef4444;
  font-size: 0.8rem;
  min-height: 20px;
  margin-bottom: 6px;
}

.login-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-toggle {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.login-toggle button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  margin-left: 4px;
}
.login-toggle button:hover { text-decoration: underline; }

/* Forgot password */
.login-forgot {
  text-align: right;
  margin: -4px 0 8px;
}
.login-forgot button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.login-forgot button:hover { color: var(--accent); }
.login-sendpw-text { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.forgot-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.4;
}
.forgot-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.forgot-form input:focus { border-color: var(--accent); }
.forgot-form input::placeholder { color: var(--text-muted); }
.forgot-success {
  color: #22c55e;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 8px;
}

/* Panel inline login */
.panel-login-gate {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 16px;
}
.panel-login-gate .login-modal {
  position: static;
  animation: none;
  margin: 0 auto;
}

/* ============================================================
   NAVBAR AUTH (User Menu)
   ============================================================ */
.nav-user-menu {
  position: relative;
}

/* legacy .nav-avatar kept for reference, replaced by .nav-user-btn + .nav-avatar-circle */

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  min-width: 180px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown.open { display: block; }

.nav-dropdown a,
.nav-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 640px) {
  .bars-grid { grid-template-columns: repeat(2, 1fr); }
  .how-tracks { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .fixture-card-main { gap: 16px; }
}

/* Desktop */
@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .hero {
    min-height: 100vh;
    padding: 40px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content { text-align: left; }
  .hero-subtitle { margin: 0 0 32px; }
  .hero-cta { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }


  .bars-grid { grid-template-columns: repeat(3, 1fr); }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: auto;
    bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    padding: 0 12px;
    gap: 4px;
    height: auto;
    background: rgba(10,10,15,0.85);
  }
  .bottom-nav-item {
    flex-direction: row;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .footer-top { grid-template-columns: 1fr 2fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }

  .fixture-card-main {
    padding: 18px 24px;
    gap: 20px;
  }

  .fixture-team-name { font-size: 0.6rem; }
  .fixture-time { font-size: 1.2rem; }

  .how-steps { flex-direction: row; gap: 16px; align-items: stretch; }
  .how-step { flex: 1; flex-direction: column; text-align: center; }
}

@media (min-width: 1440px) {
  :root { --container: 1320px; }
}

/* --- Mobile fixture card adaptation --- */
@media (max-width: 639px) {
  .fixture-card-main {
    grid-template-columns: 40px 1fr auto 1fr 40px;
    padding: 12px 12px;
    gap: 6px;
  }

  .fixture-league img { width: 32px; height: 32px; }

  .fixture-team img { width: 40px; height: 40px; }
  .fixture-team-name { font-size: 0.45rem; max-width: 70px; }
  .fixture-center { min-width: 60px; }
  .fixture-time { font-size: 0.9rem; }
  .fixture-score { font-size: 1rem; }
  .status-pill .status-dot { width: 24px; height: 24px; }
  .status-pill .status-dot::after { width: 6px; height: 6px; }
  .status-chevron-wrap { width: 24px; height: 24px; }
  .status-chevron { width: 12px; height: 12px; }
}

/* --- Loading States --- */
.loading-fixture {
  height: 80px;
  margin-bottom: 8px;
}

.loading-sport {
  height: 100px;
}

.loading-bar {
  height: 260px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Events Page --- */
.events-page { padding-top: 24px; padding-bottom: 80px; }

/* ═══ Events Header ═══ */
.ev-header {
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}
.ev-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.ev-header p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.ev-header-b, .ph-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}
.ev-header-b-left, .ph-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ev-header-b-accent, .ph-bar-accent {
  width: 4px;
  height: 48px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-orange));
  flex-shrink: 0;
}
.ev-header-b h1, .ph-bar h1 { font-size: 1.5rem; }
.ev-header-b p, .ph-bar p { margin-top: 2px; font-size: 0.8rem; }
.ev-header-b-search, .ph-bar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  min-width: 240px;
  transition: border-color 0.2s;
}
.ev-header-b-search:focus-within, .ph-bar-search:focus-within {
  border-color: var(--brand-blue);
}
.ev-header-b-search svg, .ph-bar-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.ev-header-b-search input, .ph-bar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.82rem;
  width: 100%;
}
.ev-header-b-search input::placeholder, .ph-bar-search input::placeholder {
  color: var(--text-muted);
}
@media (max-width: 639px) {
  .ev-header-b, .ph-bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 18px; }
  .ev-header-b-search, .ph-bar-search { width: 100%; min-width: 0; }
}

.ev-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
}
.ev-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.ev-tab:hover { color: var(--text); }
.ev-tab.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ev-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue-dim);
  box-shadow: var(--shadow-glow);
}

.ev-card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}
.ev-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.ev-card-cover-sports {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}
.ev-sports-league-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 8px;
  opacity: 0.6;
}
.ev-sports-teams {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ev-sports-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ev-sports-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ev-sports-team span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-sports-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ev-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ev-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ev-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}
.ev-badge-sports {
  background: var(--brand-blue-dim);
  color: var(--brand-blue);
}
.ev-badge-general {
  background: var(--accent2-dim);
  color: var(--accent2);
}
.ev-league-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ev-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-card-date, .ev-card-venue {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-card-date svg, .ev-card-venue svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.ev-card-org {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border-glass);
}

.ev-load-more {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.ev-load-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--brand-blue);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.ev-load-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--brand-blue-dim);
}

.ev-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.ev-empty h3 { font-size: 1.1rem; color: var(--text-secondary); }
.ev-empty p { font-size: 0.85rem; }

@media (max-width: 900px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .ev-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev-sports-team img { width: 36px; height: 36px; }
  .ev-sports-teams { gap: 12px; }
}

/* ─── Locations Page ─────────────────────────────────── */

.locations-page .page-header { margin-bottom: 16px; }
.locations-page .page-title { font-size: 1.5rem; font-weight: 700; }

.loc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.loc-search:focus-within {
  border-color: var(--brand-blue-dim);
}
.loc-search svg { color: var(--text-muted); flex-shrink: 0; }
.loc-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
}
.loc-search-input::placeholder { color: var(--text-muted); }

.loc-map-wrap { position: relative; margin-bottom: 16px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.loc-map { height: 300px; width: 100%; background: var(--bg-card); z-index: 1; }
.loc-map-locate-btn { position: absolute; bottom: 12px; right: 12px; z-index: 500; display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(18,18,30,0.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.loc-map-locate-btn:hover { border-color: var(--accent); color: var(--accent); }
.loc-map-locate-btn.active { border-color: var(--accent); color: var(--accent); }
.loc-map-locate-btn.denied { opacity: 0.4; cursor: default; }
.loc-map-locate-btn svg { flex-shrink: 0; }
.loc-map-popup .leaflet-popup-content-wrapper { background: rgba(18,18,30,0.95); color: #e4e4e7; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.loc-map-popup .leaflet-popup-tip { background: rgba(18,18,30,0.95); border: 1px solid rgba(255,255,255,0.1); }
.loc-map-popup .leaflet-popup-close-button { color: rgba(255,255,255,0.5); }
.loc-map-popup .leaflet-popup-close-button:hover { color: #fff; }

.loc-marker-logo {
  background: none !important;
  border: none !important;
}
.loc-marker-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--bg-card);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.loc-marker-dot {
  background: none !important;
  border: none !important;
}
.loc-marker-dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 600px) { .loc-map { height: 220px; } }

.loc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.loc-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.loc-tab:hover { color: var(--text); }
.loc-tab.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Location Cards (Premium) --- */
.loc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.loc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74,161,217,0.3);
  box-shadow: 0 8px 32px rgba(74,161,217,0.12), 0 4px 16px rgba(0,0,0,0.3);
}

/* Cover with overlay */
.loc-card-cover {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.loc-card-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.loc-card:hover .loc-card-cover > img {
  transform: scale(1.05);
}
.loc-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.loc-card-initial {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(74,161,217,0.2);
  user-select: none;
}

/* Overlay: gradient + name + location on cover */
.loc-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.loc-card-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px;
}
.loc-card-overlay-text {
  min-width: 0;
}
.loc-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-card-location {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.loc-card-location svg { flex-shrink: 0; opacity: 0.7; }

/* Body: meta bar + description */
.loc-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.loc-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-card-rating {
  font-size: 0.72rem;
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.loc-card-rating svg { width: 12px; height: 12px; }
.loc-card-rating span { color: var(--text-muted); font-size: 0.65rem; font-weight: 400; }
.loc-feature {
  font-size: 0.65rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.loc-feature svg { width: 10px; height: 10px; opacity: 0.5; }
.loc-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  color: var(--accent, #4aa1d9);
  background: rgba(74, 161, 217, 0.08);
  border: 1px solid rgba(74, 161, 217, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.loc-pill svg { opacity: 0.7; }
.loc-card-desc {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loc-load-more {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.loc-load-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--brand-blue);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.loc-load-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--brand-blue-dim);
}

.loc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.loc-empty h3 { font-size: 1.1rem; color: var(--text-secondary); }
.loc-empty p { font-size: 0.85rem; }

.loc-geo-prompt {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .loc-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ─── Location Detail (Premium) ──────────────────────── */

.ld-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ld-breadcrumb a { color: var(--brand-blue); text-decoration: none; }
.ld-breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.ld-hero {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.ld-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ld-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.ld-hero-content {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
}
.ld-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.ld-hero-text { flex: 1; }
.ld-hero-name {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ld-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ld-type-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--brand-blue);
  color: #fff;
}
.ld-hero-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}
.ld-hero-location svg { width: 14px; height: 14px; }
.ld-hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--brand-orange);
  font-weight: 600;
}
.ld-hero-rating svg { width: 14px; height: 14px; }
.ld-hero-price {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.ld-hero-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.4;
}

/* Action bar */
.ld-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.ld-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--brand-blue);
  color: #fff;
}
.ld-action-btn:hover { background: #3b8ec5; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,161,217,0.3); }
.ld-action-btn-secondary {
  background: var(--bg-card);
  color: var(--brand-blue);
  border: 1px solid var(--border-glass);
}
.ld-action-btn-secondary:hover { background: var(--bg-glass-hover); border-color: var(--brand-blue-dim); }

/* Two-column layout */
.ld-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Main column sections */
.ld-col-main { display: flex; flex-direction: column; gap: 24px; }

.ld-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 22px;
}
.ld-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.ld-section-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.ld-section-text svg { vertical-align: -3px; margin-right: 4px; opacity: 0.6; }

/* Reservation widget */
.ld-reserve-widget { background: var(--bg-card, #12121e); border: 1px solid var(--border-glass, #1e1e2e); border-radius: 12px; padding: 20px; }
.ld-res-form { display: flex; flex-direction: column; gap: 12px; }
.ld-res-row { display: flex; gap: 10px; }
.ld-res-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ld-res-field label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted, #9ca3af); text-transform: uppercase; letter-spacing: 0.05em; }
.ld-res-input { background: var(--bg-glass, #1a1a2e); color: var(--text, #e4e4e7); border: 1px solid var(--border-glass, #2a2a3e); border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; width: 100%; box-sizing: border-box; }
.ld-res-input:focus { outline: none; border-color: var(--brand-blue, #4aa1d9); }
.ld-res-slots-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-res-slot { padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border-glass, #2a2a3e); background: var(--bg-glass, #1a1a2e); color: var(--text, #e4e4e7); cursor: pointer; transition: 0.15s; }
.ld-res-slot-open:hover { border-color: var(--brand-blue, #4aa1d9); background: rgba(74,161,217,0.1); }
.ld-res-slot-selected { border-color: var(--brand-blue, #4aa1d9) !important; background: rgba(74,161,217,0.2) !important; color: var(--brand-blue, #4aa1d9) !important; }
.ld-res-slot-full { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.ld-res-slot-event { opacity: 0.3; cursor: not-allowed; background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: var(--danger, #ef4444); }
.ld-res-confirm { margin-top: 16px; border-top: 1px solid var(--border-glass, #1e1e2e); padding-top: 16px; }
.ld-res-confirm-header { margin-bottom: 12px; }
.ld-res-confirm-header strong { display: block; font-size: 0.95rem; }
.ld-res-confirm-header span { font-size: 0.82rem; color: var(--text-muted, #9ca3af); }
.ld-res-confirm-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ld-res-submit { width: 100%; padding: 12px; border: none; border-radius: 8px; background: var(--brand-blue, #4aa1d9); color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: 0.15s; }
.ld-res-submit:hover { opacity: 0.9; }
.ld-res-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ld-res-success { text-align: center; padding: 20px 0; }
.ld-res-success h3 { color: #22c55e; margin: 12px 0 8px; }
.ld-res-success p { color: var(--text-muted, #9ca3af); font-size: 0.85rem; margin: 4px 0; }
.ld-res-ref { font-family: monospace; color: var(--brand-blue, #4aa1d9) !important; font-weight: 700; font-size: 0.9rem !important; margin-top: 12px !important; }
@media (max-width: 600px) { .ld-res-row { flex-direction: column; } }

.ld-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ld-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.ld-feature-item svg { color: var(--brand-blue); opacity: 0.8; flex-shrink: 0; }

.ld-capacity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.ld-capacity svg { opacity: 0.6; }

.ld-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ld-package-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-glass);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.ld-package-tag svg { color: var(--brand-blue); opacity: 0.8; }

/* Sports & Leagues */
.ld-sports-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ld-sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--brand-blue-dim);
  border: 1px solid rgba(74,161,217,0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.ld-sport-chip:hover { background: var(--brand-blue-glow); border-color: var(--brand-blue); }
.ld-sport-chip img { border-radius: 4px; object-fit: contain; }

.ld-leagues-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ld-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.ld-league-chip:hover { background: var(--bg-glass-hover); border-color: var(--brand-blue-dim); color: var(--text); }
.ld-league-chip img { border-radius: 3px; object-fit: contain; }

/* Sidebar cards */
.ld-col-side { display: flex; flex-direction: column; gap: 16px; }

.ld-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 20px;
}
.ld-sidebar-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.ld-sidebar-card h3 svg { opacity: 0.6; }

.ld-addr-line {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 2px;
}
.ld-addr-region { color: var(--text-muted); font-size: 0.78rem; }

.ld-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.ld-sidebar-actions .ld-action-btn {
  justify-content: center;
  font-size: 0.78rem;
  padding: 8px 16px;
}

/* Hours */
.ld-hours-list { display: flex; flex-direction: column; gap: 6px; }
.ld-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 4px 0;
}
.ld-hours-day { color: var(--text-secondary); }
.ld-hours-time { color: var(--text); font-weight: 500; }
.ld-hours-today { background: var(--brand-blue-dim); margin: 0 -12px; padding: 6px 12px; border-radius: 6px; }
.ld-hours-today .ld-hours-day { color: var(--text); font-weight: 600; }
.ld-today-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--brand-blue);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Contact rows */
.ld-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--brand-blue);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--transition);
}
.ld-contact-row:hover { color: #3b8ec5; }
.ld-contact-row svg { opacity: 0.7; flex-shrink: 0; }

/* Map */
.ld-map {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  border: 1px solid var(--border-glass);
  overflow: hidden;
}
.ld-map-marker { background: none; border: none; }
.leaflet-container { background: var(--bg-card) !important; }

/* Error state */
.ld-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.ld-error svg { margin-bottom: 16px; opacity: 0.4; }
.ld-error h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 8px; }
.ld-error p { font-size: 0.85rem; margin-bottom: 16px; }
.ld-error-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.ld-error-btn:hover { text-decoration: underline; }

/* Location Events */
.ld-events-list { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .ld-columns { grid-template-columns: 1fr; }
  .ld-hero { height: 260px; }
  .ld-hero-name { font-size: 1.3rem; }
  .ld-hero-logo { width: 56px; height: 56px; }
}
@media (max-width: 600px) {
  .ld-hero { height: 220px; border-radius: var(--radius); }
  .ld-hero-overlay { padding: 16px; }
  .ld-hero-name { font-size: 1.1rem; }
  .ld-hero-logo { width: 48px; height: 48px; }
  .ld-hero-meta { gap: 6px; }
  .ld-hero-desc { display: none; }
  .ld-feature-grid { grid-template-columns: 1fr; }
  .ld-actions { flex-direction: column; }
  .loc-card-logo { width: 30px; height: 30px; }
  .loc-card-name { font-size: 0.82rem; }
  .loc-card-overlay { padding: 24px 10px 10px; }
}

.text-accent { color: var(--accent); }
.text-live { color: var(--live); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ─── Hold Timer (navbar seat countdown) ─── */
#holdTimerSlot { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; }
.hold-timer { display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 6px; background: rgba(74,161,217,0.06); border: 1.5px solid rgba(74,161,217,0.25); color: rgba(255,255,255,0.75); font-size: 0.75rem; font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; min-width: 170px; justify-content: center; animation: holdBorderPulse 2s ease-in-out infinite; }
.hold-timer svg { color: rgba(255,255,255,0.85); flex-shrink: 0; }
.hold-timer-warn { background: rgba(243,147,34,0.06); border-color: rgba(243,147,34,0.25); color: #f39322; animation: holdBorderPulseWarn 2s ease-in-out infinite; }
.hold-timer-warn svg { color: rgba(255,255,255,0.85); }
.hold-timer-urgent { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.25); color: #ef4444; animation: holdBorderPulseUrgent 1s ease-in-out infinite; }
.hold-timer-urgent svg { color: rgba(255,255,255,0.85); }
.hold-timer-expired { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #ef4444; animation: holdBorderPulseUrgent 1s ease-in-out infinite; }
.hold-timer-expired svg { color: rgba(255,255,255,0.85); }
@keyframes holdBorderPulse { 0%,100% { border-color: rgba(74,161,217,0.15); } 50% { border-color: rgba(74,161,217,0.6); } }
@keyframes holdBorderPulseWarn { 0%,100% { border-color: rgba(243,147,34,0.15); } 50% { border-color: rgba(243,147,34,0.6); } }
@keyframes holdBorderPulseUrgent { 0%,100% { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.08); } 50% { border-color: rgba(239,68,68,0.7); background: rgba(239,68,68,0.2); } }
@media (max-width: 640px) { .hold-timer { font-size: 0.7rem; padding: 4px 10px; gap: 4px; } }

/* ── Uber Panel + Map Buttons (shared across event/location detail) ── */
.ed-uber-panel { margin: 12px 0; }
.ed-uber-btn, .ed-uber-placeholder { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #000; border-radius: 12px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; border: none; height: 80px; box-sizing: border-box; }
.ed-uber-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.ed-uber-btn:active { transform: scale(0.98); }
.ed-uber-loading { opacity: 0.6; }
.ed-uber-badge { width: 40px; height: 40px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ed-uber-img { width: 26px; height: auto; }
.ed-uber-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ed-uber-title { font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.ed-uber-sub { font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.01em; }
.ed-uber-chevron { width: 20px; height: 20px; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.ed-uber-placeholder .ed-uber-sub-blur { filter: blur(5px); }
.ed-uber-placeholder.ed-uber-loading .ed-uber-sub-blur { filter: none; }
.ed-uber-placeholder.ed-uber-loading .ed-uber-activate { display: none; }
.ed-uber-activate { display: inline-flex; align-items: center; gap: 5px; padding: 0; margin-top: 2px; background: none; border: none; color: #4aa1d9; font-size: 0.75rem; font-weight: 600; cursor: pointer; pointer-events: auto; }
.ed-map-btns { display: flex; gap: 8px; margin-top: 12px; }
.ed-map-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius-sm, 8px); font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: background 0.2s, border-color 0.2s; flex: 1; justify-content: center; }
.ed-map-btn svg { width: 14px; height: 14px; }
.ed-map-apple { background: rgba(255,255,255,0.06); color: #e4e4e7; border: 1px solid rgba(255,255,255,0.12); }
.ed-map-apple:hover { background: rgba(255,255,255,0.1); }
.ed-map-google { background: rgba(255,255,255,0.06); color: #e4e4e7; border: 1px solid rgba(255,255,255,0.12); }
.ed-map-google:hover { background: rgba(255,255,255,0.1); }
