/* ===================================================================
   HANDBALL TRACKER - USER-FRIENDLY POLISH
   Enhanced UX while keeping Black & Yellow aesthetic
   =================================================================== */

/* Fonts loaded via <link> in HTML — no @import needed */

:root {
  /* Keep original black & yellow colors */
  --bg: #0a0c10;
  --surface: #12151c;
  --surface2: #1a1f2a;
  --border: #252b38;
  --accent: #e8ff00;
  --accent2: #00d4ff;
  --red: #ff3b3b;
  --yellow: #ffc700;
  --green: #00e87a;
  --text: #f0f2f6;
  --muted: #6b7585;
  --gk-accent: #7b5cfa;

  /* Z-index scale */
  --z-topbar: 100;
  --z-mobile-tab: 200;
  --z-modal: 1000;
  --z-setup: 2000;
  --z-history: 3000;
  --z-auth: 4000;
  --z-system: 9999;
  
  /* Design system - consistent spacing & radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Shadows for depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(232, 255, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   LIGHT MODE
   =================================================================== */

body.light-mode {
  --bg:       #f0f2f5;
  --surface:  #ffffff;
  --surface2: #e4e7ed;
  --border:   #cdd2db;
  --text:     #1a1e28;
  --muted:    #8a93a0;

  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 30px rgba(180, 200, 0, 0.10);
}

/* ── Stat cards, timer block, attack counter ── */
body.light-mode .stat-card,
body.light-mode .timer-block,
body.light-mode .attack-counter-container {
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%) !important;
  border: 1px solid #cdd2db !important;
}

/* ── Scoreboard ── */
body.light-mode .scoreboard {
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%) !important;
  border: 1px solid #cdd2db !important;
}

/* Yellow text is unreadable on light — use dark ink instead */
body.light-mode .scoreboard-score,
body.light-mode .timer-display,
body.light-mode .stat-value {
  color: #1a1e28 !important;
  text-shadow: none !important;
}

/* Running timer: use a darker olive/green so it stays readable */
body.light-mode .timer-display.running {
  color: #6b7200 !important;
  text-shadow: none !important;
}

/* Labels */
body.light-mode .stat-label,
body.light-mode .timer-label,
body.light-mode .scoreboard-label,
body.light-mode .scoreboard-teams {
  color: var(--muted) !important;
}

/* ── Topbar ── */
body.light-mode .topbar {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ── Buttons: hover glow toned down ── */
body.light-mode .btn-sm:hover {
  box-shadow: 0 4px 12px rgba(140, 160, 0, 0.20) !important;
}

body.light-mode .btn-sm.active {
  box-shadow: 0 0 20px rgba(140, 160, 0, 0.25) !important;
}

/* ── Player row hover ── */
body.light-mode .player-row:hover {
  background: rgba(140, 160, 0, 0.06) !important;
}

/* ── Event item hover ── */
body.light-mode .event-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

/* ── Modal ── */
body.light-mode .modal {
  background: linear-gradient(135deg, #ffffff 0%, #f5f6f9 100%) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* ── Scrollbars ── */
body.light-mode ::-webkit-scrollbar-track {
  background: #e4e7ed;
}

body.light-mode ::-webkit-scrollbar-thumb {
  border-color: #e4e7ed;
}

/* ── Stat bar track ── */
body.light-mode .stat-bar-bg {
  background: #d5d9e0 !important;
}

/* ── Timer group border ── */
body.light-mode .timer-btn-group {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ── Mobile tab active state ── */
body.light-mode .mobile-tab.active {
  background: rgba(140, 160, 0, 0.08) !important;
}

/* ── Action buttons: replace hardcoded dark fills with light surfaces ── */
body.light-mode .btn-goal {
  background: #f5ffd6 !important;
  color: #4a5500 !important;
  border: 1px solid #b8cc00 !important;
}

body.light-mode .btn-shot {
  background: #e8fdf0 !important;
  color: #0a5e2a !important;
  border: 1px solid #00b85e !important;
}

body.light-mode .btn-assist {
  background: #e6f8ff !important;
  color: #005f7a !important;
  border: 1px solid #00a8cc !important;
}

body.light-mode .btn-yellow {
  background: #fffbe6 !important;
  color: #7a5500 !important;
  border: 1px solid #e6a800 !important;
}

body.light-mode .btn-suspend {
  background: #fff3e6 !important;
  color: #7a3d00 !important;
  border: 1px solid #e07000 !important;
}

body.light-mode .btn-red {
  background: #fff0f0 !important;
  color: #8a0000 !important;
  border: 1px solid #cc2222 !important;
}

body.light-mode .btn-save {
  background: #f0ecff !important;
  color: #3d1f99 !important;
  border: 1px solid #7b5cfa !important;
}

/* ── Attack counter: yellow accent → dark ink ── */
body.light-mode #attackCounter {
  color: #1a1e28 !important;
}

/* ── +1 Attack button: yellow bg → dark button ── */
body.light-mode button[onclick="recordAttack()"] {
  background: #1a1e28 !important;
  color: #ffffff !important;
}

/* ── Team names (scoreboard) ── */
body.light-mode .scoreboard-teams span,
body.light-mode .team-vs {
  color: #1a1e28 !important;
}

/* ── Topbar brand icon ── */
body.light-mode .topbar-brand {
  color: #1a1e28 !important;
}

/* ── Accent-coloured text elements ── */
body.light-mode .pstat.goals,
body.light-mode .half-badge {
  color: #4a5500 !important;
  border-color: #b8cc00 !important;
}

/* ── Topbar btn-sm hover/active: keep readable ── */
body.light-mode .btn-sm:hover {
  border-color: #6b7200 !important;
  color: #4a5000 !important;
}

body.light-mode .btn-sm.active {
  background: #1a1e28 !important;
  color: #ffffff !important;
  border-color: #1a1e28 !important;
}

/* ── Auth accent (sign in button, active tab) ── */
body.light-mode .auth-tab.active {
  color: #4a5500 !important;
  border-bottom-color: #4a5500 !important;
}

body.light-mode .auth-submit {
  background: #1a1e28 !important;
  color: #ffffff !important;
}

body.light-mode .auth-submit:hover {
  background: #2e3545 !important;
}

/* ── Team names header (inline accent colour) ── */
body.light-mode #teamNamesInner,
body.light-mode #teamNamesInner span:not([style*="muted"]) {
  color: #1a1e28 !important;
}

/* ── Focus ring ── */
body.light-mode button:focus-visible,
body.light-mode .btn-sm:focus-visible {
  outline-color: #6b7200 !important;
}

/* ===================================================================
   TYPOGRAPHY UPGRADE
   =================================================================== */

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.5;
}

/* Keep Bebas Neue for display text */
.topbar-brand,
.timer-display,
.scoreboard-score,
.scoreboard-sep,
.stat-value,
.sidebar-title,
#attackCounter {
  font-family: 'Bebas Neue', cursive !important;
}

/* ===================================================================
   1. VISUAL HIERARCHY - Make important things BIGGER
   =================================================================== */

/* Scoreboard - Keep original size but add polish */
.scoreboard {
  padding: 8px 20px !important; /* Back to smaller size */
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%) !important;
  box-shadow: 
    var(--shadow-glow),
    var(--shadow-lg) !important;
  border-radius: var(--radius-lg) !important;
}

.scoreboard-score {
  font-size: 34px !important; /* Back to original size - was 52px */
  font-weight: 700 !important;
  text-shadow: 0 4px 24px rgba(232, 255, 0, 0.4) !important;
  letter-spacing: 2px !important;
}

.scoreboard-sep {
  font-size: 24px !important; /* Back to original size - was 32px */
}

.scoreboard-label {
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  margin-bottom: 4px !important; /* Smaller margin */
}

.scoreboard-teams {
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  margin-top: 4px !important; /* Smaller margin */
}

.scoreboard-teams .team-dash {
  color: var(--muted) !important;
  margin: 0 4px;
}

/* Timer - Back to original size */
.timer-block {
  padding: 8px 20px !important; /* Back to smaller - was 10px 24px */
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-base);
  min-height: 48px !important; /* Set standard height - reduced from 58px */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.timer-block:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

.timer-display {
  font-size: 32px !important; /* Back to original - was 36px */
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-shadow: 0 2px 12px rgba(232, 255, 0, 0.3) !important;
}

.timer-label {
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
}

/* Scoreboard - Match timer size */
.scoreboard {
  padding: 8px 20px !important;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%) !important;
  box-shadow: 
    var(--shadow-glow),
    var(--shadow-lg) !important;
  border-radius: var(--radius-lg) !important;
  min-height: 48px !important; /* Match timer height - reduced from 58px */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Half badge - Match timer height */
.half-badge {
  min-height: 48px !important; /* Match timer height - reduced from 58px */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
}

/* Buttons - Match timer height */
.btn-sm {
  min-height: 48px !important; /* Match timer height - reduced from 58px */
  padding: 0 20px !important; /* Horizontal padding only */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===================================================================
   2. BREATHING ROOM - More spacious layout
   =================================================================== */

/* More spacious buttons */
.btn-sm {
  padding: 10px 20px !important; /* Was 6px 14px */
  margin: 4px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-family: 'Manrope', sans-serif !important;
  letter-spacing: 0.5px;
}

.timer-btn-group {
  gap: 8px !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(232, 255, 0, 0.08);
}

/* More spacious player rows */
.player-row {
  padding: 12px 16px !important; /* Was 8px 12px */
  margin-bottom: 6px !important;
  border-radius: var(--radius-sm) !important;
}

/* Section spacing */
.sidebar-title {
  margin-top: 24px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  letter-spacing: 3px !important;
  font-size: 18px !important;
}

/* Stat cards spacing */
.stat-card {
  padding: 16px !important; /* Was 12px 14px */
  margin-bottom: 12px !important;
  border-radius: var(--radius-md) !important;
}

/* Event log spacing */
.event-item {
  padding: 10px 12px !important;
  margin-bottom: 6px !important;
  border-radius: var(--radius-sm) !important;
}

/* Attack counter spacing */
.attack-counter-container {
  padding: 14px !important;
  margin-top: 16px !important;
  border-radius: var(--radius-md) !important;
}

/* ===================================================================
   3. INTERACTIVE FEEDBACK - Make clicks feel good
   =================================================================== */

/* Button interactions */
.btn-sm {
  transition: all var(--transition-base) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-sm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(232, 255, 0, 0.25) !important;
  border-color: var(--accent) !important;
}

.btn-sm:active {
  transform: translateY(0) !important;
  transition: all 0.1s !important;
}

.btn-sm.active {
  box-shadow: 0 0 20px rgba(232, 255, 0, 0.4) !important;
  transform: translateY(0) !important;
}

/* Button ripple effect */
.btn-sm::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(232, 255, 0, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-sm:hover::before {
  width: 200px;
  height: 200px;
}

/* Player row interactions */
.player-row {
  transition: all var(--transition-base) !important;
  cursor: pointer;
}

.player-row:hover {
  background: rgba(232, 255, 0, 0.05) !important;
  transform: translateX(4px) !important;
  border-color: var(--accent) !important;
}

.player-row.gk-row:hover {
  border-color: var(--gk-accent) !important;
  background: rgba(123, 92, 250, 0.05) !important;
}

/* Event log item interactions */
.event-item {
  transition: all var(--transition-base) !important;
  cursor: pointer;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: translateX(4px) !important;
}

/* Stat card interactions */
.stat-card {
  transition: all var(--transition-base) !important;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ===================================================================
   4. VISUAL DEPTH - Shadows and gradients
   =================================================================== */

/* Scoreboard depth */
.scoreboard {
  position: relative;
}

.scoreboard::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 255, 0, 0.03) 0%, transparent 70%);
  animation: gentleGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gentleGlow {
  0%, 100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.8; transform: translate(5%, 5%) scale(1.05); }
}

/* Cards with depth */
.stat-card,
.timer-block,
.attack-counter-container {
  background: linear-gradient(135deg, var(--surface2) 0%, #16181f 100%) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Event log depth */
.event-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Topbar depth */
.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 24px !important;
}

/* Topbar sections */
.topbar-left,
.topbar-center,
.topbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.topbar-left {
  flex: 0 0 auto !important;
}

.topbar-center {
  flex: 0 0 auto !important;
}

.topbar-right {
  flex: 0 0 auto !important;
}

/* Logo smaller and simpler */
.topbar-brand {
  font-size: 28px !important;
  padding: 0 8px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

/* Hide user email and cloud status (removed from topbar) */
.user-badge,
#userEmail,
#cloudStatus {
  display: none !important;
}

/* ===================================================================
   5. SMART COLOR USAGE - Yellow for important things only
   =================================================================== */

/* Dim labels - make values pop */
.stat-label,
.timer-label,
.scoreboard-label {
  color: var(--muted) !important; /* More muted */
  font-size: 10px !important;
}

.stat-value {
  color: var(--text) !important; /* Bright white for data */
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
}

/* Yellow only for active/important */
.timer-display.running {
  color: var(--accent) !important;
  text-shadow: 0 0 24px rgba(232, 255, 0, 0.5) !important;
  animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

/* Scoreboard teams - subtle */
.scoreboard-teams {
  color: #c1c7d0 !important;
}

/* Event log timestamps - very subtle */
.event-time {
  color: var(--muted) !important;
  font-size: 11px !important;
}

/* ===================================================================
   6. ANIMATIONS - Score bump and micro-interactions
   =================================================================== */

/* Dramatic score bump */
.scoreboard-score.bump {
  animation: scorePulse var(--transition-bounce) !important;
}

@keyframes scorePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(3deg); }
  100% { transform: scale(1); }
}

/* Attack counter bump */
#attackCounter {
  transition: all var(--transition-bounce);
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
}

/* Event log slide in */
.event-item {
  animation: slideIn 0.3s ease;
}

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

/* Suspension timer urgency */
.suspension-timer.urgent {
  animation: urgentPulse 1s ease-in-out infinite !important;
  font-weight: 700 !important;
}

@keyframes urgentPulse {
  0%, 100% { 
    color: #ff3b3b;
    transform: scale(1);
  }
  50% { 
    color: #ff6b6b;
    transform: scale(1.08);
  }
}

/* Half badge */
.half-badge {
  padding: 6px 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  border-radius: var(--radius-sm) !important;
  border-width: 2px !important;
}

/* ===================================================================
   7. MOBILE IMPROVEMENTS - Better touch targets
   =================================================================== */

/* Team names header - show on desktop, hide on mobile initially */
.team-names-header {
  display: block !important;
}

/* ===================================================================
   MEDIUM VIEWPORT (769px – 1024px)
   Narrow the sidebars; protect the center player area.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .main {
    grid-template-columns: 220px 1fr 200px !important;
  }

  .stat-value {
    font-size: 24px !important;
  }

  .action-btns {
    max-width: 220px !important;
  }

  .action-btn {
    padding: 5px 7px !important;
    font-size: 10px !important;
  }

  .topbar-brand {
    font-size: 20px !important;
  }

  .timer-display {
    font-size: 26px !important;
  }

  .scoreboard-score {
    font-size: 28px !important;
  }
}

@media (max-width: 768px) {
  /* Topbar mobile layout - stack or scroll */
  .topbar {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  
  .topbar-left,
  .topbar-center,
  .topbar-right {
    gap: 6px !important;
  }
  
  /* Hide some buttons on mobile topbar */
  .topbar-right .btn-sm.history,
  .topbar-right .btn-sm.export,
  .topbar-right .btn-sm.signout {
    display: none !important; /* Available in mobile tabs instead */
  }
  
  /* Smaller elements on mobile */
  .topbar-brand {
    font-size: 20px !important;
  }
  
  .half-badge {
    min-height: 44px !important;
    padding: 0 10px !important;
    font-size: 9px !important;
  }
  
  .timer-block,
  .scoreboard {
    min-height: 44px !important;
  }
  
  .btn-sm {
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
  
  .team-names-header {
    display: none !important;
  }
  
  /* Show team names in More tab on mobile */
  .mobile-team-names {
    display: block;
    text-align: center;
    padding: 20px;
    background: var(--surface2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
  }
  
  .mobile-team-names .team-vs {
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--accent);
  }
  
  @media (max-width: 768px) {
  /* Bigger tap targets */
  .mobile-tab {
    padding: 18px 12px !important;
    min-height: 68px !important;
    transition: all var(--transition-base) !important;
  }
  
  /* Clear active indicator */
  .mobile-tab.active {
    background: rgba(232, 255, 0, 0.08) !important;
    border-top: 3px solid var(--accent) !important;
  }
  
  .mobile-tab.active .tab-icon {
    transform: scale(1.1);
  }
  
  /* Smooth panel transitions */
  .mobile-active {
    animation: fadeSlideIn 0.3s ease;
  }
  
  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Bigger buttons on mobile */
  .btn-sm {
    padding: 12px 20px !important;
    font-size: 13px !important;
  }
  
  /* Bigger player tap targets */
  .player-row {
    padding: 14px 16px !important;
  }
}

/* ===================================================================
   8. PROFESSIONAL POLISH - Small details matter
   =================================================================== */

/* Focus states for accessibility */
button:focus-visible,
.player-row:focus-visible,
.btn-sm:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

body.light-mode input:focus-visible,
body.light-mode textarea:focus-visible {
  outline-color: #6b7200 !important;
}

/* Better disabled states */
.btn-sm:disabled,
button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent) 0%, #d4e600 100%);
  border-radius: 5px;
  border: 2px solid var(--surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection color */
::selection {
  background: rgba(232, 255, 0, 0.3);
  color: #ffffff;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================================
   9. MODAL IMPROVEMENTS
   =================================================================== */

.modal {
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%) !important;
}

.modal-title {
  font-size: 24px !important;
  letter-spacing: 3px !important;
  margin-bottom: 12px !important;
}

.modal-sub {
  color: var(--muted) !important;
  margin-bottom: 20px !important;
}

/* Zone buttons */
.zone-btn {
  transition: all var(--transition-fast) !important;
  cursor: pointer;
  border-radius: var(--radius-sm) !important;
}

.zone-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.zone-btn:active {
  transform: scale(0.95) !important;
}

/* ===================================================================
   10. LOADING & EMPTY STATES
   =================================================================== */

.no-suspensions,
.history-empty {
  color: var(--muted) !important;
  padding: 24px !important;
  text-align: center;
  font-size: 14px !important;
  line-height: 1.6;
}

/* Loading animation */
@keyframes gentlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loading {
  animation: gentlePulse 1.5s ease-in-out infinite;
}

/* ===================================================================
   STAT HIERARCHY
   =================================================================== */

/* Primary cards (Shot Efficiency, GK Save Rate) — enlarged */
.stat-card--primary .stat-value {
  font-size: 36px !important;
}

.stat-card--primary {
  border-bottom: 2px solid var(--accent) !important;
}

.stat-card--gk {
  border-bottom-color: var(--gk-accent) !important;
}

/* Compact count row (Shots / Yellows / 2-Min) */
.stat-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.stat-count-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-count-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-count-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
  letter-spacing: 1px;
}

.stat-count-item--yellow .stat-count-value { color: var(--yellow); }
.stat-count-item--suspend .stat-count-value { color: #ff9800; }

.stat-count-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* ===================================================================
   BONUS: Stat bars
   =================================================================== */

.stat-bar-bg {
  background: var(--surface2) !important;
  border-radius: 3px !important;
  overflow: hidden;
  height: 6px !important;
}

.stat-bar {
  background: linear-gradient(90deg, var(--accent) 0%, #d4e600 100%) !important;
  box-shadow: 0 0 8px rgba(232, 255, 0, 0.4) !important;
  border-radius: 3px !important;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ===================================================================
   FINAL TOUCHES
   =================================================================== */

/* Topbar brand animation */
.topbar-brand {
  transition: transform var(--transition-base);
}

.topbar-brand:hover {
  transform: scale(1.05);
}

/* Player stats numbers */
.pstat {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}

/* Delete buttons */
.event-item-del,
.history-card-del {
  transition: all var(--transition-fast) !important;
  border-radius: 4px !important;
}

.event-item-del:hover,
.history-card-del:hover {
  transform: scale(1.2) rotate(90deg) !important;
  background: rgba(255, 59, 59, 0.2) !important;
}

/* Cloud status indicator */
.cloud-status {
  transition: all var(--transition-base) !important;
  font-weight: 600 !important;
}

