/* ==========================================================================
   PICKLESCORE SAAS DESIGN SYSTEM
   Inspired by Linear, Stripe, and Vercel. Engineered for Real-Time Pickleball.
   ========================================================================== */

:root {
  /* Surface & Background Colors */
  --bg-canvas: #080A0F;
  --bg-surface: #0E121B;
  --bg-card: rgba(18, 23, 34, 0.78);
  --bg-card-hover: rgba(24, 30, 45, 0.9);
  --bg-elevated: #161D2B;
  --bg-court-green: #064E3B;
  --bg-court-blue: #0C4A6E;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(204, 255, 0, 0.35);

  /* Brand Accents */
  --brand-lime: #CCFF00;
  --brand-lime-hover: #b8e600;
  --brand-lime-rgb: 204, 255, 0;
  --brand-lime-glow: rgba(204, 255, 0, 0.22);
  --brand-cyan: #38BDF8;
  --brand-cyan-glow: rgba(56, 189, 248, 0.22);
  --brand-emerald: #10B981;
  --brand-amber: #F59E0B;
  --brand-rose: #F43F5E;

  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #080A0F;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(204, 255, 0, 0.15);
  --shadow-glow-cyan: 0 0 30px rgba(56, 189, 248, 0.15);

  /* Fonts */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base Document Reset */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.saas-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Backdrop Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.25) 0%, rgba(56, 189, 248, 0.15) 60%, transparent 100%);
}

.glow-court {
  top: 40%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
}

/* Utility Colors & Typography */
.text-lime {
  color: var(--brand-lime) !important;
}

.bg-lime {
  background-color: var(--brand-lime) !important;
  color: #0A0D05 !important;
}

.badge-code-name {
  background: rgba(204, 255, 0, 0.12) !important;
  color: var(--brand-lime) !important;
  border: 1px solid rgba(204, 255, 0, 0.35) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.08);
}

.text-cyan {
  color: var(--brand-cyan) !important;
}

.bg-cyan {
  background-color: var(--brand-cyan) !important;
  color: #03131F !important;
}

/* High Contrast Winner Badges for Dark Tables */
.badge-winner-t1 {
  background: rgba(204, 255, 0, 0.18) !important;
  color: #CCFF00 !important;
  border: 1px solid rgba(204, 255, 0, 0.6) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.badge-winner-t2 {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.text-secondary {
  color: var(--text-muted) !important;
}

.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Announcement Top Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.8125rem;
  position: relative;
  z-index: 1010;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-pill {
  background: var(--brand-lime);
  color: #000;
  font-weight: 800;
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.announcement-text {
  color: #E2E8F0;
}

.announcement-link {
  color: var(--brand-lime);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.announcement-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Header & Sticky Navigation */
.saas-header {
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  z-index: 1000;
  transition: all 0.2s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
}

.paddle-svg {
  width: 100%;
  height: 100%;
}

.pulse-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
  animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: rgba(204, 255, 0, 0.12);
  color: var(--brand-lime);
  border: 1px solid rgba(204, 255, 0, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.nav-link-item:hover {
  color: var(--text-main);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-lime);
  transition: width 0.2s ease;
}

.nav-link-item:hover::after {
  width: 100%;
}

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

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle .bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

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

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.drawer-link:hover, .drawer-link:focus {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--brand-lime);
}

.drawer-icon {
  font-size: 1.15rem;
}

.drawer-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-lime);
  border-radius: 50%;
  display: inline-block;
}

/* Button System */
.btn-primary-lime {
  background: var(--brand-lime);
  color: #0A0D05;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 12px var(--brand-lime-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.btn-primary-lime:hover, .btn-primary-lime:focus {
  background: var(--brand-lime-hover);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.2s;
  min-height: 44px;
}

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

.btn-outline-saas {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-outline-saas:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 70px 0 50px 0;
  z-index: 1;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-lime);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.1);
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #CCFF00 0%, #38BDF8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.metric-pill strong {
  color: #FFF;
}

/* ==========================================================================
   INTERACTIVE LIVE COURT ENGINE & SCOREBOARD
   ========================================================================== */
.interactive-court-wrapper {
  margin: 40px auto 0 auto;
  max-width: 1040px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(204, 255, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.court-app-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.court-live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  background: #DC2626;
  color: #FFF;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #FFF;
  border-radius: 50%;
  animation: pulse-ping 1.5s infinite;
}

.court-name-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.court-division-pill {
  font-size: 0.75rem;
  color: var(--brand-lime);
  background: rgba(204, 255, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.app-mode-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.mode-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.mode-tab-btn.active {
  background: var(--bg-surface);
  color: var(--brand-lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Court Center Display */
.court-display-stage {
  padding: 24px;
  background: radial-gradient(circle at center, rgba(14, 22, 36, 0.9) 0%, rgba(8, 10, 15, 0.98) 100%);
}

/* Big Scoreboard Header */
.live-scoreboard-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.team-card.is-serving {
  border-color: rgba(204, 255, 0, 0.4);
  background: rgba(204, 255, 0, 0.04);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.08);
}

.team-details {
  display: flex;
  flex-direction: column;
}

.team-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFF;
}

.serving-ball-tag {
  background: var(--brand-lime);
  color: #000;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.team-players {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.team-score-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #FFF;
  line-height: 1;
}

.scoreboard-center-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.official-score-call {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.score-call-caption {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.score-call-digits {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-lime);
  letter-spacing: 2px;
}

.server-number-indicator {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.match-game-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* PICKLEBALL COURT 2D VISUALIZER */
.pickle-court-visual {
  background: #111A24;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  position: relative;
  height: 200px;
  margin-bottom: 24px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.court-half {
  flex: 1;
  position: relative;
  display: flex;
}

.court-half-left {
  border-right: 3px solid #E2E8F0; /* Net line */
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.5) 0%, rgba(6, 78, 59, 0.7) 100%);
}

.court-half-right {
  background: linear-gradient(180deg, rgba(12, 74, 110, 0.5) 0%, rgba(12, 74, 110, 0.7) 100%);
}

/* Kitchen (Non-Volley Zone) */
.court-kitchen {
  width: 35%;
  height: 100%;
  background: rgba(220, 38, 38, 0.15);
  border-right: 1px dashed rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-half-left .court-kitchen {
  right: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
  border-right: none;
}

.court-half-right .court-kitchen {
  left: 0;
}

.kitchen-label {
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

/* Service Boxes */
.service-court-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 65%;
  display: flex;
  flex-direction: column;
}

.court-half-left .service-court-area {
  left: 0;
}

.court-half-right .service-court-area {
  right: 0;
}

.service-box {
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-box:last-child {
  border-bottom: none;
}

/* Centerline */
.court-net-banner {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: #FFF;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.net-badge {
  background: #000;
  color: #FFF;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 2px;
  writing-mode: vertical-rl;
}

/* Player Tokens on Court */
.player-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.player-token.serving {
  border-color: var(--brand-lime);
  background: rgba(204, 255, 0, 0.15);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

.player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
}

.player-token.serving .player-dot {
  background: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
}

/* REFEREE SCORING CONTROLS (Big touch targets for referees) */
.referee-touch-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.court-action-btn {
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 72px;
  touch-action: manipulation;
  user-select: none;
}

.court-action-btn:active {
  transform: scale(0.97);
}

.btn-point-serve {
  background: linear-gradient(135deg, #CCFF00 0%, #A3E635 100%);
  color: #0B1104;
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.25);
}

.btn-point-serve:hover {
  background: #B5E600;
  box-shadow: 0 6px 25px rgba(204, 255, 0, 0.4);
}

.btn-fault-sideout {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.btn-fault-sideout:hover {
  background: #E11D48;
}

.btn-court-undo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

.btn-court-undo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-timeout {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.btn-timeout:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-voice-call {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-cyan);
}

.btn-voice-call:hover {
  background: rgba(56, 189, 248, 0.22);
}

.court-control-subtext {
  font-size: 0.6875rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Court Control Footer / Quick Settings */
.court-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.court-rule-mode-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.mini-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.mini-link-btn:hover {
  color: var(--text-main);
}

/* Alternate Court Views (Spectator & Jumbotron) */
.view-spectator-container, .view-jumbotron-container {
  display: none;
}

.view-spectator-container.active, .view-jumbotron-container.active {
  display: block;
}

.spectator-phone-mockup {
  max-width: 380px;
  margin: 0 auto;
  background: #000;
  border-radius: 40px;
  border: 4px solid #334155;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  background: #0F172A;
  border-radius: 28px;
  padding: 16px;
  overflow: hidden;
}

.phone-header-notch {
  width: 120px;
  height: 18px;
  background: #000;
  margin: 0 auto 14px auto;
  border-radius: 10px;
}

.spectator-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  font-size: 0.8rem;
}

/* Jumbotron view */
.jumbotron-screen-box {
  background: #030712;
  border: 4px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.jumbotron-score-hero {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--brand-lime);
  letter-spacing: 4px;
  text-shadow: 0 0 40px rgba(204, 255, 0, 0.4);
}

/* ==========================================================================
   FEATURE BENTO GRID (Linear Style)
   ========================================================================== */
.section-padding {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-tagline {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-lime);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #FFF;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 50px;
}

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

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.bento-card-8 {
  grid-column: span 8;
}

.bento-card-4 {
  grid-column: span 4;
}

.bento-card-6 {
  grid-column: span 6;
}

.bento-card-12 {
  grid-column: span 12;
}

@media (max-width: 991px) {
  .bento-card-8, .bento-card-4, .bento-card-6 {
    grid-column: span 12;
  }
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.bento-icon-cyan {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-visual-preview {
  margin-top: auto;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  padding: 16px;
}

/* ==========================================================================
   TOURNAMENT DIRECTOR COMMAND CENTER PREVIEW
   ========================================================================== */
.director-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.hub-top-toolbar {
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.hub-search-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  color: #FFF;
  font-size: 0.8125rem;
  min-width: 220px;
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--brand-lime);
}

.hub-court-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.court-monitor-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.2s;
}

.court-monitor-tile:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.tile-court-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.court-id-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.tile-match-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.tile-player-name {
  font-weight: 600;
  color: #E2E8F0;
}

.tile-score-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.125rem;
  color: #FFF;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   PRICING SECTION (SaaS Tiers with toggle)
   ========================================================================== */
.pricing-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.billing-cycle-switch {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  position: relative;
}

.billing-cycle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.billing-cycle-btn.active {
  background: var(--brand-lime);
  color: #0A0D05;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(204, 255, 0, 0.3);
}

.discount-pill {
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card.featured {
  border-color: var(--brand-lime);
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.05) 0%, rgba(14, 18, 27, 0.95) 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(204, 255, 0, 0.12);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-lime);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
}

.plan-price-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
}

.plan-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #CBD5E1;
  margin-bottom: 12px;
}

.check-icon {
  color: var(--brand-lime);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   TESTIMONIALS & TRUST
   ========================================================================== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: #E2E8F0;
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-lime);
  border: 1px solid var(--border-medium);
}

.author-info h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: #FFF;
}

.author-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.saas-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.saas-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.saas-faq-button {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 44px;
}

.saas-faq-button:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.saas-faq-button[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-lime);
}

.saas-faq-content {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   CALL TO ACTION BANNER (HIGH CONVERTING)
   ========================================================================== */
.cta-banner-wrapper {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #FFF;
  margin-bottom: 16px;
}

.cta-banner-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px auto;
}

.cta-input-group {
  display: flex;
  max-width: 480px;
  margin: 0 auto 20px auto;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-input-group input {
  flex: 1;
  min-width: 240px;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: #FFF;
  font-size: 0.9375rem;
}

.cta-input-group input:focus {
  outline: none;
  border-color: var(--brand-lime);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.saas-footer {
  background: #05070B;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 1;
}

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

.system-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.status-indicator-ping {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-ping 2s infinite;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-list a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

/* ==========================================================================
   MODALS & FORM CONTROLS
   ========================================================================== */
.saas-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  color: var(--text-main);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.saas-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFF;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.saas-input:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--brand-lime);
  color: #FFF;
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 767px) {
  .hero-section {
    padding: 40px 0 30px 0;
  }
  .live-scoreboard-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .scoreboard-center-meta {
    order: -1;
    margin-bottom: 8px;
  }
  .referee-touch-controls {
    grid-template-columns: 1fr 1fr;
  }
  .pickle-court-visual {
    height: 150px;
  }
  .player-token {
    padding: 2px 6px;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   MODERN AUTH / LOGIN MODAL & GOOGLE AUTH STYLING
   ========================================================================== */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: #1F2937;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  padding: 11px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn-google-auth:hover {
  background: #F3F4F6;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

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

.auth-divider span {
  position: relative;
  background: var(--bg-surface);
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input-group {
  position: relative;
}

.auth-icon-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.auth-input-padded {
  padding-left: 38px !important;
}

.auth-role-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.auth-role-pill {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 999px;
}

/* SaaS Dark Theme Pagination */
.saas-page-link {
  background-color: #0F172A !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px !important;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saas-page-link:hover {
  background-color: #1E293B !important;
  color: var(--brand-lime) !important;
  border-color: rgba(204, 255, 0, 0.4) !important;
}

.page-item.active .saas-page-link {
  background-color: var(--brand-lime) !important;
  color: #0A0D05 !important;
  border-color: var(--brand-lime) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.page-item.disabled .saas-page-link {
  background-color: rgba(15, 23, 42, 0.5) !important;
  color: #475569 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===================================================================
   TOURNAMENT MATCHES & COURT LIVELINESS STYLES
   =================================================================== */
.arena-hero-card {
  background: linear-gradient(135deg, rgba(22, 31, 48, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%),
              radial-gradient(circle at 100% 0%, rgba(204, 255, 0, 0.08) 0%, transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

.arena-hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.paddle-cross-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paddle-cross-emblem::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.25) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.match-card-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.match-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(204, 255, 0, 0.25) !important;
}

.match-card-item.is-live {
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12) !important;
}

.match-card-item.is-live:hover {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.22) !important;
}

.match-card-watermark {
  position: absolute;
  right: -15px;
  bottom: 25px;
  width: 160px;
  height: 160px;
  opacity: 0.045;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.match-card-item:hover .match-card-watermark {
  opacity: 0.1;
  transform: scale(1.08) rotate(-6deg);
}

.court-net-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.court-net-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(204, 255, 0, 0.5) 50%, rgba(255, 255, 255, 0.1) 100%);
  margin: 2px 0;
}

.serving-pulse-ball {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(204, 255, 0, 0.16);
  color: #CCFF00;
  border: 1px solid rgba(204, 255, 0, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.25);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(204, 255, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(204, 255, 0, 0.5);
  }
}

.stat-chip-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.hero-stats-actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stats-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Universal Filter Button & Action Styling */
.btn-filter-submit {
  min-height: 38px !important;
  height: 38px !important;
  font-size: 0.85rem !important;
  padding: 6px 16px !important;
  line-height: 1 !important;
  box-shadow: 0 2px 10px rgba(204, 255, 0, 0.18) !important;
}

.btn-filter-reset {
  min-height: 38px !important;
  height: 38px !important;
  width: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.filter-view-mode-toggle {
  height: 38px !important;
}

.filter-view-mode-toggle .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding: 0 10px !important;
}

.paddle-cross-svg-sm {
  width: 24px;
  height: 24px;
}

.paddle-cross-svg-md {
  width: 44px;
  height: 44px;
}

.paddle-cross-svg-lg {
  width: 68px;
  height: 68px;
}

/* ==========================================================================
   MINI PICKLEBALL COURT UI FOR TOURNAMENT MATCH CARDS
   ========================================================================== */
.court-surface-card {
  background: radial-gradient(circle at center, #111A27 0%, #0B111A 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.court-surface-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.4) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(204, 255, 0, 0.12) !important;
}

.court-surface-card.is-live {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15) !important;
}

.court-surface-card.is-live:hover {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.25) !important;
}

/* 2D Mini Court Graphic Canvas */
.mini-court-visual {
  background: #0D1622;
  border: 2px solid #334155;
  border-radius: 12px;
  position: relative;
  height: 180px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mini-court-half {
  flex: 1;
  position: relative;
  display: flex;
  transition: all 0.25s ease;
}

.mini-court-half-team1 {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.45) 0%, rgba(6, 78, 59, 0.7) 100%);
  border-right: 3px solid #E2E8F0; /* Net center line */
}

.mini-court-half-team2 {
  background: linear-gradient(180deg, rgba(12, 74, 110, 0.45) 0%, rgba(12, 74, 110, 0.7) 100%);
}

.mini-court-half.serving-active {
  box-shadow: inset 0 0 30px rgba(204, 255, 0, 0.18);
}

/* Kitchen (Non-Volley Zone) */
.mini-court-kitchen {
  width: 32%;
  height: 100%;
  background: rgba(220, 38, 38, 0.15);
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mini-court-half-team1 .mini-court-kitchen {
  right: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
}

.mini-court-half-team2 .mini-court-kitchen {
  left: 0;
  border-right: 1px dashed rgba(255, 255, 255, 0.45);
}

.mini-kitchen-label {
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  pointer-events: none;
}

/* Service Boxes */
.mini-service-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 68%;
  display: flex;
  flex-direction: column;
}

.mini-court-half-team1 .mini-service-area {
  left: 0;
}

.mini-court-half-team2 .mini-service-area {
  right: 0;
}

.mini-service-box {
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-service-box:last-child {
  border-bottom: none;
}

/* Center Net */
.mini-court-net {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: #FFFFFF;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-net-badge {
  background: #000;
  color: #FFF;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 2px 3px;
  border-radius: 2px;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}

/* Mini Player Tokens */
.mini-player-token {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFF;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.mini-player-token.is-server {
  border-color: #CCFF00;
  background: rgba(204, 255, 0, 0.2);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.45);
}

.mini-player-token .player-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38BDF8;
  display: inline-block;
  flex-shrink: 0;
}

.mini-player-token.is-server .player-dot {
  background: #CCFF00;
  animation: pulse-ping 1.2s infinite;
}

/* Mini Big Score Display floating on the sides */
.mini-team-scoreboard-badge {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-team-scoreboard-badge.active-server {
  border-color: rgba(204, 255, 0, 0.5);
  background: rgba(204, 255, 0, 0.05);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.15);
}

.court-ref-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HEADER MEGA MENU SYSTEM
   ========================================================================== */
.mega-menu-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mega-menu-trigger:hover,
.mega-menu-trigger[aria-expanded="true"] {
  background: rgba(204, 255, 0, 0.12);
  border-color: rgba(204, 255, 0, 0.45);
  color: #CCFF00;
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.2);
}

.mega-menu-trigger .chevron-icon {
  transition: transform 0.2s ease;
}

.mega-menu-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.mega-menu-dropdown {
  width: min(780px, 92vw);
  background: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(204, 255, 0, 0.08) !important;
  padding: 20px !important;
  margin-top: 14px !important;
  backdrop-filter: blur(20px);
}

.mega-menu-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mega-menu-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transform: translateX(2px);
}

.mega-menu-card:hover .mega-card-icon {
  background: rgba(204, 255, 0, 0.18);
  border-color: #CCFF00;
  color: #CCFF00;
  transform: scale(1.08);
}

.mega-menu-card:hover .mega-card-title {
  color: #CCFF00;
}

.mega-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mega-card-content {
  display: flex;
  flex-direction: column;
}

.mega-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.mega-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.mega-column-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
  padding-left: 12px;
}

.mega-footer-bar {
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Match Action Buttons (Start Live Match, Reopen Match, Quick Score) */
.match-action-btn {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE TUNING FOR TOURNAMENT MATCHES & COURTS
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Stats Chips Row: 1 Row on Mobile / Small Screens */
  .hero-stats-actions-wrap {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-left: 0 !important;
  }

  .hero-stats-chips-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .stat-chip-pill {
    padding: 6px 8px !important;
    border-radius: 10px !important;
    gap: 6px !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }

  .stat-chip-pill .stat-chip-num {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  .stat-chip-pill .stat-chip-label {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .stat-chip-pill .stat-chip-icon {
    font-size: 1rem !important;
  }

  .stat-chip-pill .live-dot {
    width: 8px !important;
    height: 8px !important;
    flex-shrink: 0 !important;
  }

  .btn-schedule-hero {
    width: 100% !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    min-height: 38px !important;
    height: 38px !important;
    margin-left: 0 !important;
  }

  /* Universal Responsive Filter Button & Parameter Card Forms */
  .btn-filter-submit {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
  }

  .btn-filter-reset {
    min-height: 34px !important;
    height: 34px !important;
    width: 34px !important;
    font-size: 0.85rem !important;
  }

  .filter-view-mode-toggle {
    height: 34px !important;
  }

  .filter-view-mode-toggle .btn {
    font-size: 0.8rem !important;
    padding: 0 8px !important;
  }

  /* Filter form inputs on mobile */
  .saas-input {
    font-size: 0.84rem !important;
    padding: 7px 11px !important;
  }

  .auth-input-padded {
    padding-left: 32px !important;
  }

  .auth-icon-prefix {
    left: 10px !important;
    font-size: 0.85rem !important;
  }

  /* Status Filter Tabs - Scrollable horizontal pills on phone */
  .status-filter-pills-wrap {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
  }

  .status-filter-pills-wrap::-webkit-scrollbar {
    height: 4px;
  }

  .status-filter-pills-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
  }

  .status-filter-pills-wrap .btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }

  /* Mini Court Visualizer scaled for phone */
  .mini-court-visual {
    height: 150px !important;
    border-width: 1.5px !important;
  }

  .mini-kitchen-label {
    font-size: 0.5rem !important;
    letter-spacing: 0.5px !important;
  }

  .mini-net-badge {
    font-size: 0.45rem !important;
    padding: 1px 2px !important;
  }

  /* Player Tokens inside Court on phone */
  .mini-player-token {
    padding: 2px 6px !important;
    font-size: 0.62rem !important;
    gap: 3px !important;
    max-width: 90% !important;
  }

  .mini-player-token .player-dot {
    width: 4px !important;
    height: 4px !important;
  }

  /* Scoreboard numbers & badges below court */
  .mini-team-scoreboard-badge {
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  .mini-team-scoreboard-badge .display-6 {
    font-size: 1.5rem !important;
  }

  .mini-team-scoreboard-badge .small {
    font-size: 0.72rem !important;
  }

  /* Court Meta Strip & notes */
  .court-ref-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
  }

  /* Match Card Header & Badges */
  .match-card-header {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  .match-card-header .badge {
    font-size: 0.65rem !important;
    padding: 3px 7px !important;
  }

  .match-card-header .badge-code-name {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
  }

  /* Card Title & Format Label */
  .match-card-item h6 {
    font-size: 0.88rem !important;
  }

  /* Match Card Action Buttons - Strict Height & Sizing Equality */
  .match-action-btn {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    padding: 0 14px !important;
  }

  /* Start Live Match & Quick Score Buttons (Touch-friendly, proportional) */
  .card-bottom-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }

  .card-bottom-actions .btn {
    white-space: nowrap !important;
  }

  .card-bottom-actions .btn-outline-danger {
    padding: 6px 10px !important;
  }

  .card-bottom-actions .btn-primary-lime {
    padding: 6px 12px !important;
  }

  /* Pagination Footer Card & Links */
  .matches-pagination-card {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .pagination-info-label {
    font-size: 0.75rem !important;
  }

  .matches-pagination-card .pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  .matches-pagination-card .page-link {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    min-width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Top Quick Per Page row on mobile */
  .quick-perpage-wrap {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   RESPONSIVE TABLE WITH COLUMN PRIORITIZATION & MOBILE EXPANDABLE ROWS
   ========================================================================== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll on small viewports */
}

.responsive-match-table {
  width: 100% !important;
  table-layout: auto;
}

/* Row hover and active transition */
.match-main-row {
  transition: background-color 0.15s ease;
}

.match-main-row:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.match-main-row.row-expanded-active {
  background-color: rgba(204, 255, 0, 0.04) !important;
  border-bottom-color: transparent !important;
}

/* Expand Chevron Button - Perfect Circle (Mobile/Small Screens Only) */
.row-expand-btn {
  display: none !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  aspect-ratio: 1 / 1 !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 auto;
  box-sizing: border-box !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.row-expand-btn .chevron-icon {
  font-size: 0.55rem;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.row-expand-btn.is-expanded .chevron-icon {
  transform: rotate(180deg);
  color: var(--brand-lime);
}

.row-expand-btn.is-expanded {
  background: rgba(204, 255, 0, 0.15);
  border-color: rgba(204, 255, 0, 0.35);
}

/* Table action button sizing */
.table-action-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0 !important;
  line-height: 1;
}

/* Compact Score dial */
.compact-score-box {
  transition: transform 0.15s ease;
}

/* Mobile Drawer Row animation & layout */
.match-detail-row {
  border-top: none !important;
}

.mobile-drawer-content {
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile viewport adjustments (<768px) */
@media (max-width: 768px) {
  .row-expand-btn {
    display: inline-flex !important;
  }

  .responsive-match-table thead th {
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
    font-weight: 600 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    white-space: nowrap;
  }

  .responsive-match-table th,
  .responsive-match-table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .col-status {
    width: 68px;
    padding-right: 4px !important;
  }

  .col-matchname {
    min-width: 130px;
    max-width: 175px;
  }

  .col-score {
    width: 86px;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .col-action {
    width: 68px;
    padding-left: 2px !important;
    padding-right: 6px !important;
  }

  .compact-score-box {
    min-width: 76px !important;
    padding: 3px 5px !important;
  }

  .compact-score-box .fs-6 {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .responsive-match-table thead th {
    font-size: 0.62rem !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    letter-spacing: 0.02em !important;
  }

  .col-matchname {
    max-width: 140px;
  }

  .col-matchname .small.text-truncate {
    max-width: 125px !important;
    font-size: 0.78rem !important;
  }

  .compact-score-box {
    min-width: 68px !important;
  }
}

/* ==========================================================================
   STATUS FILTER TABS REDESIGN (Desktop & Mobile Segmented Control)
   ========================================================================== */
.status-filter-nav {
  width: 100%;
}

.status-filter-track {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.status-tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.status-tab-item:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
}

/* Tab Icon & Pulse */
.tab-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tab-icon-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ping 1.5s infinite;
}

/* Tab Labels: Desktop vs Mobile */
.tab-label-desktop {
  display: inline;
}

.tab-label-mobile {
  display: none;
}

/* Tab Counter Badge */
.tab-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  transition: all 0.2s ease;
}

/* Active State Styles */
.status-tab-item.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.status-tab-item.active.active-all {
  background: var(--brand-lime, #CCFF00);
  color: #0F172A;
  border-color: rgba(204, 255, 0, 0.4);
}

.status-tab-item.active.active-all .tab-badge {
  background: #0F172A;
  color: var(--brand-lime, #CCFF00);
}

.status-tab-item.active.active-live {
  background: #EF4444;
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.status-tab-item.active.active-live .live-dot-pulse {
  background: #FFFFFF;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

.status-tab-item.active.active-live .tab-badge {
  background: #FFFFFF;
  color: #DC2626;
}

.status-tab-item.active.active-sched {
  background: var(--brand-lime, #CCFF00);
  color: #0F172A;
  border-color: rgba(204, 255, 0, 0.4);
}

.status-tab-item.active.active-sched .tab-badge {
  background: #0F172A;
  color: var(--brand-lime, #CCFF00);
}

.status-tab-item.active.active-history {
  background: #F59E0B;
  color: #0F172A;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.status-tab-item.active.active-history .tab-badge {
  background: #0F172A;
  color: #F59E0B;
}

/* ==========================================================================
   MOBILE RESPONSIVE TAB REDESIGN (<768px and <480px)
   ========================================================================== */
@media (max-width: 768px) {
  .status-filter-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .status-tab-item {
    padding: 7px 4px;
    gap: 5px;
    font-size: 0.78rem;
    border-radius: 10px;
    flex-direction: row;
    justify-content: center;
  }

  .tab-label-desktop {
    display: none;
  }

  .tab-label-mobile {
    display: inline;
    font-weight: 700;
    font-size: 0.76rem;
  }

  .tab-badge {
    font-size: 0.68rem;
    padding: 1px 5px;
  }
}

@media (max-width: 480px) {
  .hero-stats-chips-row {
    gap: 4px !important;
  }

  .stat-chip-pill {
    padding: 5px 6px !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  .stat-chip-pill .stat-chip-num {
    font-size: 0.95rem !important;
  }

  .stat-chip-pill .stat-chip-label {
    font-size: 0.58rem !important;
  }

  .stat-chip-pill .stat-chip-icon {
    font-size: 0.85rem !important;
  }

  .btn-filter-submit {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
  }

  .btn-filter-reset {
    min-height: 32px !important;
    height: 32px !important;
    width: 32px !important;
  }

  .filter-view-mode-toggle {
    height: 32px !important;
  }

  .status-filter-track {
    gap: 3px;
    padding: 3px;
    border-radius: 12px;
  }

  .status-tab-item {
    padding: 6px 2px;
    gap: 4px;
    border-radius: 8px;
  }

  .tab-icon {
    font-size: 0.82rem;
  }

  .tab-label-mobile {
    font-size: 0.7rem;
  }

  .tab-badge {
    font-size: 0.62rem;
    padding: 1px 4px;
  }
}

/* ==========================================================================
   ADMIN USERS TABLE RESPONSIVENESS
   ========================================================================== */
.responsive-users-table {
  width: 100%;
}

.responsive-users-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  white-space: nowrap;
}

.col-player {
  min-width: 175px;
}

.col-roles {
  width: 100px;
}

.col-user-action {
  width: 90px;
}

.table-dots-btn {
  width: 30px !important;
  height: 30px !important;
  aspect-ratio: 1/1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #CBD5E1 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.table-dots-btn:hover,
.table-dots-btn:focus,
.table-dots-btn[aria-expanded="true"] {
  background: rgba(204, 255, 0, 0.15) !important;
  border-color: rgba(204, 255, 0, 0.4) !important;
  color: var(--brand-lime, #CCFF00) !important;
}

.dots-icon {
  line-height: 1;
  display: inline-block;
  margin-top: -2px;
}

.user-detail-row {
  border-top: none !important;
}

/* Mobile Viewport Optimizations (<768px) */
@media (max-width: 768px) {
  .responsive-users-table thead th {
    font-size: 0.68rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .responsive-users-table th,
  .responsive-users-table td {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .col-player {
    min-width: 140px;
    max-width: 175px;
  }

  .col-player .user-name-label {
    max-width: 125px !important;
    font-size: 0.84rem !important;
  }

  .col-codename {
    width: 86px;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .col-roles {
    width: 74px;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .col-user-action {
    width: 50px !important;
    padding-left: 2px !important;
    padding-right: 6px !important;
  }
}

@media (max-width: 480px) {
  .responsive-users-table thead th {
    font-size: 0.62rem !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .col-player {
    max-width: 130px;
  }

  .col-player .user-name-label {
    max-width: 95px !important;
    font-size: 0.8rem !important;
  }

  .col-codename .badge-code-name {
    font-size: 0.7rem !important;
    padding: 2px 5px !important;
  }
}

/* ==========================================================================
   HUMAN-CRAFTED EDITORIAL LANDING PAGE DESIGN SYSTEM
   Replaces AI-generated card grids with authentic editorial sports layouts.
   ========================================================================== */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-lime);
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.22);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 10px var(--brand-lime);
}

/* Human Editorial Metrics Bar */
.human-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
  margin: 44px auto 0 auto;
  max-width: 960px;
}

.human-metric-item {
  text-align: center;
  padding: 0 20px;
}

.human-metric-item:not(:first-child) {
  border-left: 1px solid var(--border-subtle);
}

.human-metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.human-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .human-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .human-metric-item:nth-child(2) {
    border-left: 1px solid var(--border-subtle);
  }
  .human-metric-item:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
  }
  .human-metric-item:nth-child(4) {
    border-left: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
  }
}

/* Editorial Storyboard (2-Column Feature Walkthrough) */
.editorial-feature-section {
  padding: 90px 0;
  position: relative;
}

.editorial-header-block {
  max-width: 720px;
  margin-bottom: 56px;
}

.editorial-section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.editorial-section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 18px;
}

.editorial-section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.editorial-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .editorial-feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.editorial-step-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.editorial-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 0.2s ease;
}

.editorial-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.editorial-step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-lime);
  opacity: 0.85;
  padding-top: 2px;
}

.editorial-step-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.editorial-step-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.editorial-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editorial-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #CBD5E1;
}

.editorial-tag.tag-accent {
  background: rgba(204, 255, 0, 0.1);
  border-color: rgba(204, 255, 0, 0.25);
  color: var(--brand-lime);
}

/* Editorial Live Inspector Console */
.editorial-console {
  background: #0C1019;
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 100px;
}

.editorial-console-header {
  padding: 16px 20px;
  background: #111724;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editorial-console-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.console-live-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.editorial-console-body {
  padding: 24px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.telemetry-row:last-of-type {
  border-bottom: none;
}

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

.telemetry-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
}

.telemetry-value.accent-lime {
  color: var(--brand-lime);
}

.telemetry-value.accent-cyan {
  color: var(--brand-cyan);
}

/* 3-Role Panoramic Showcase (Replaces 3 pricing cards) */
.roles-panoramic-section {
  padding: 90px 0;
  background: rgba(10, 14, 22, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

@media (max-width: 991px) {
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.role-panel {
  background: #0E131E;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--border-medium);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.role-panel:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.role-panel.role-referee {
  border-top-color: var(--brand-lime);
}

.role-panel.role-spectator {
  border-top-color: var(--brand-cyan);
}

.role-panel.role-director {
  border-top-color: #A855F7;
}

.role-badge-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.role-referee .role-badge-label { color: var(--brand-lime); }
.role-spectator .role-badge-label { color: var(--brand-cyan); }
.role-director .role-badge-label { color: #A855F7; }

.role-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.role-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.role-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
}

.role-features li {
  font-size: 0.85rem;
  color: #CBD5E1;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-features li:last-child {
  border-bottom: none;
}

.role-icon-bullet {
  font-size: 0.9rem;
  line-height: 1;
}

.role-action-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  text-decoration: none;
  display: block;
}

.role-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

/* Editorial Testimonial Showcase (Replaces 3 card row) */
.editorial-testimonials-section {
  padding: 90px 0;
}

.featured-quote-wrapper {
  background: #0E131E;
  border-left: 4px solid var(--brand-lime);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 16px 16px 0;
  padding: 44px 40px;
  margin-bottom: 40px;
  position: relative;
}

.featured-quote-text {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  color: #F1F5F9;
  margin-bottom: 24px;
}

.featured-quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.featured-author-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.featured-author-tag {
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--brand-lime);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.dispatch-quotes-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .featured-quote-wrapper {
    padding: 28px 20px;
  }
  .dispatch-quotes-row {
    grid-template-columns: 1fr;
  }
}

.dispatch-quote-item {
  padding: 20px 24px;
  border-left: 2px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.015);
}

.dispatch-quote-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 14px;
  font-style: italic;
}

.dispatch-quote-byline {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
}

.dispatch-quote-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Editorial CTA Section */
.editorial-cta-container {
  background: linear-gradient(180deg, #0F1420 0%, #080A0F 100%);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
}

.editorial-cta-headline {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.editorial-cta-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}