/*
 * FAIRWAY ANALYTICS - Modern Athletic Golf Dashboard
 * A bold, data-driven sports analytics design system
 */

/* ============================================
   IMPORTS & FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   CSS VARIABLES - Athletic Design Tokens
   ============================================ */
:root {
  /* Core Athletic Palette - Dark Mode First */
  --color-bg-primary: #0A0E14;
  --color-bg-secondary: #0F1419;
  --color-bg-tertiary: #151B23;
  --color-bg-elevated: #1A222D;
  --color-bg-card: #151B23;

  /* Accent Colors */
  --color-accent-primary: #CCFF00;
  /* Electric Lime - The athletic signature */
  --color-accent-secondary: #00D4FF;
  /* Cyan */
  --color-accent-tertiary: #FF3366;
  /* Hot Pink/Magenta */
  --color-accent-gold: #FFD700;
  /* Gold for highlights */

  /* Golf Score Colors - PGA Tour Broadcast Standard */
  --color-eagle: #1E40AF;
  /* Dark Blue - exceptional under par */
  --color-birdie: #3B82F6;
  /* Light Blue - one under par */
  --color-par: #6B7280;
  /* Gray - even par (neutral) */
  --color-bogey: #F59E0B;
  /* Orange/Yellow - one over */
  --color-double: #EA580C;
  /* Orange/Red - two over */
  --color-triple: #DC2626;
  /* Dark Red - three+ over */

  /* Score Background Colors */
  --color-eagle-bg: rgba(30, 64, 175, 0.15);
  --color-birdie-bg: rgba(59, 130, 246, 0.15);
  --color-par-bg: rgba(107, 114, 128, 0.15);
  --color-bogey-bg: rgba(245, 158, 11, 0.15);
  --color-double-bg: rgba(234, 88, 12, 0.15);
  --color-triple-bg: rgba(220, 38, 38, 0.15);

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-border-accent: rgba(204, 255, 0, 0.3);

  /* Text */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0AEC0;
  --color-text-tertiary: #718096;
  --color-text-muted: #4A5568;

  /* Status */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(204, 255, 0, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
}

/* Light Theme Override */
[data-theme="light"] {
  --color-bg-primary: #F8FAFC;
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #F1F5F9;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;

  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  --color-border-accent: rgba(0, 100, 50, 0.3);

  --color-text-primary: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-tertiary: #718096;
  --color-text-muted: #A0AEC0;

  --color-accent-primary: #059669;
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(204, 255, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: var(--text-6xl);
}

h2 {
  font-size: var(--text-5xl);
}

h3 {
  font-size: var(--text-4xl);
}

h4 {
  font-size: var(--text-3xl);
}

h5 {
  font-size: var(--text-2xl);
}

h6 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-secondary);
}

/* ============================================
   APP LAYOUT - Sidebar + Main Content
   ============================================ */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  box-shadow: var(--shadow-glow);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

.sidebar-subtitle {
  font-size: var(--text-xs);
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) 0;
  overflow-y: auto;
}

.nav-section {
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
}

.nav-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2) var(--space-4);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-1) var(--space-3);
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-link.active {
  background: rgba(204, 255, 0, 0.1);
  color: var(--color-accent-primary);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--color-accent-primary);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  font-size: var(--text-lg);
  width: 24px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.theme-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.content-wrapper {
  padding: var(--space-8);
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  animation: fadeInUp 0.5s ease-out;
}

.page-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-title {
  font-size: var(--text-5xl);
  margin: 0;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  font-weight: 400;
}

.page-actions {
  display: flex;
  gap: var(--space-3);
}

/* Golfer Handicap Badges */
.golfer-handicaps {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.handicap-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  min-width: 90px;
}

.handicap-badge-primary {
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.handicap-badge-secondary {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.handicap-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.handicap-badge-primary .handicap-label {
  color: rgba(204, 255, 0, 0.8);
}

.handicap-badge-secondary .handicap-label {
  color: rgba(0, 212, 255, 0.8);
}

.handicap-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  line-height: 1.1;
}

/* Handicap Cards - Golfer Profile */
.handicap-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.handicap-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-base);
}

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

.handicap-card-primary {
  border-color: rgba(204, 255, 0, 0.2);
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.05) 0%, transparent 100%);
}

.handicap-card-primary:hover {
  border-color: rgba(204, 255, 0, 0.4);
}

.handicap-card-secondary {
  border-color: rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.handicap-card-secondary:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.handicap-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.handicap-card-primary .handicap-card-header {
  color: var(--color-accent-primary);
}

.handicap-card-secondary .handicap-card-header {
  color: var(--color-accent-secondary);
}

.handicap-card-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.handicap-card-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-text-primary);
  line-height: 1;
}

.handicap-card-value.plus-handicap {
  color: var(--color-accent-gold);
}

.handicap-card-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Plus handicap styling for leaderboards */
.value-plus-handicap {
  color: var(--color-accent-gold) !important;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  margin-top: var(--space-8);
}

.section-header:first-child {
  margin-top: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.section-badge {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ============================================
   STATS GRID - Dashboard KPIs
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.2s;
}

.stat-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  background: var(--color-bg-tertiary);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.stat-description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-3);
}

.stat-trend.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

/* ============================================
   CARDS - General Purpose
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out;
  margin-bottom: var(--space-6);
}

.card:hover {
  border-color: var(--color-border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}

/* Card Variations */
.card-modern {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out;
}

.card-modern:hover {
  border-color: var(--color-border-hover);
}

.card-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.card-title-modern {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.card-action-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-action-link:hover {
  color: var(--color-accent-secondary);
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* ============================================
   GOLFER CARDS
   ============================================ */
.golfer-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

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

.golfer-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.golfer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.golfer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.golfer-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.golfer-handicap {
  display: flex;
  align-items: center;
}

.golfer-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.golfer-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.golfer-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.golfer-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.golfer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.golfer-admin-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

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

.team-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.team-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-secondary);
  flex-shrink: 0;
}

.team-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.team-members .badge {
  text-decoration: none;
  transition: all var(--transition-fast);
}

.team-members .badge:hover {
  border-color: var(--color-accent-secondary);
  color: var(--color-accent-secondary);
}

.team-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.team-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.team-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.team-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.team-admin-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

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

.course-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(204, 255, 0, 0.1);
  border: 2px solid rgba(204, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.course-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.course-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.course-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.course-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.course-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.course-admin-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

/* ============================================
   QUICK ACTIONS GRID
   ============================================ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.action-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  text-decoration: none;
  animation: fadeInUp 0.5s ease-out backwards;
}

.action-card:nth-child(1) {
  animation-delay: 0.1s;
}

.action-card:nth-child(2) {
  animation-delay: 0.15s;
}

.action-card:nth-child(3) {
  animation-delay: 0.2s;
}

.action-card:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
}

.action-card-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
}

.action-card-badge.primary {
  background: rgba(204, 255, 0, 0.15);
  color: var(--color-accent-primary);
}

.action-card-badge.secondary {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-accent-secondary);
}

.action-card-badge.tertiary {
  background: rgba(255, 51, 102, 0.15);
  color: var(--color-accent-tertiary);
}

.action-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
}

.action-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0;
}

.action-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

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

.activity-item:hover {
  background: var(--color-bg-tertiary);
}

.activity-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
}

.activity-icon.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.activity-icon.info {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-accent-secondary);
}

.activity-icon.warning {
  background: rgba(204, 255, 0, 0.15);
  border-color: rgba(204, 255, 0, 0.3);
  color: var(--color-accent-primary);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}

.activity-description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  font-family: var(--font-mono);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-primary);
  color: #000000;
  border-color: var(--color-accent-primary);
}

.btn-primary:hover {
  background: #E5FF4D;
  border-color: #E5FF4D;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: #000000;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: white;
}

.btn-success {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
  color: white;
}

.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Button compatibility classes */
.btn-modern {
  @extend .btn;
}

.btn-primary-modern {
  background: var(--color-accent-primary);
  color: #000000;
  border-color: var(--color-accent-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-primary-modern:hover {
  background: #E5FF4D;
  border-color: #E5FF4D;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: #000000;
}

.btn-secondary-modern {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-secondary-modern:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.btn-danger-modern {
  background: var(--color-danger);
  color: white;
  border: 1px solid var(--color-danger);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-danger-modern:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: white;
}

.btn-success-modern {
  background: var(--color-success);
  color: white;
  border: 1px solid var(--color-success);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.btn-small {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

.btn-large {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.filter-form {
  display: flex;
  align-items: center;
}

.filter-select {
  appearance: none;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 160px;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-secondary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

.filter-clear {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.filter-clear:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.filter-clear svg {
  opacity: 0.7;
}

/* Search input styles */
.filter-group-search {
  flex: 1;
}

.filter-form-search {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  appearance: none;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-10);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

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

.filter-search-input:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-secondary);
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
  background-color: var(--color-bg-secondary);
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.table-modern,
.table {
  width: 100%;
  border-collapse: collapse;
}

.table-modern thead,
.table thead {
  background: var(--color-bg-tertiary);
}

.table-modern th,
.table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.table-modern td,
.table td {
  padding: var(--space-4) var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-modern tbody tr,
.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table-modern tbody tr:hover,
.table tbody tr:hover {
  background: var(--color-bg-tertiary);
}

.table-modern tbody tr:last-child td,
.table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Striped */
.table-striped tbody tr:nth-of-type(odd) {
  background: var(--color-bg-tertiary);
}

/* Table Size Variants */
.table-sm th,
.table-sm td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

/* Scorecard Table Styling */
.table-bordered {
  border: 1px solid var(--color-border);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--color-border);
}

/* Score-based table cell colors */
.table-warning {
  background: var(--color-eagle-bg) !important;
  color: var(--color-eagle) !important;
  font-weight: 600;
}

.table-danger {
  background: var(--color-birdie-bg) !important;
  color: var(--color-birdie) !important;
  font-weight: 600;
}

.table-primary {
  background: var(--color-par-bg) !important;
  color: var(--color-par) !important;
  font-weight: 600;
}

.table-success {
  background: var(--color-bogey-bg) !important;
  color: var(--color-bogey) !important;
  font-weight: 600;
}

.table-secondary {
  background: var(--color-double-bg) !important;
  color: var(--color-double) !important;
}

.table-light {
  background: var(--color-bg-tertiary) !important;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table Actions */
.table-actions {
  text-align: right;
  white-space: nowrap;
}

.table-actions .btn {
  margin-left: var(--space-2);
}

.table-actions .btn:first-child {
  margin-left: 0;
}

/* Table Text Utilities */
.table-mono {
  font-family: var(--font-mono);
}

.table-primary-text {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-primary,
.badge-modern.badge-primary {
  background: rgba(204, 255, 0, 0.15);
  color: var(--color-accent-primary);
}

.badge-secondary,
.badge-modern.badge-secondary {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-accent-secondary);
}

.badge-success,
.badge-modern.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-danger,
.badge-modern.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.badge-warning,
.badge-modern.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.badge-accent,
.badge-modern.badge-accent {
  background: rgba(255, 51, 102, 0.15);
  color: var(--color-accent-tertiary);
}

.badge-neutral {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.badge-muted {
  background: var(--color-bg-tertiary);
  color: var(--color-text-muted);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Bootstrap badge compatibility */
.bg-secondary {
  background: var(--color-bg-tertiary) !important;
  color: var(--color-text-secondary) !important;
}

/* ============================================
   SCORE DISPLAY
   ============================================ */
.score-eagle,
.text-warning {
  color: var(--color-eagle) !important;
  font-weight: 600;
}

.score-birdie,
.text-danger {
  color: var(--color-birdie) !important;
  font-weight: 600;
}

.score-par,
.text-primary {
  color: var(--color-par) !important;
  font-weight: 600;
}

.score-bogey,
.text-success {
  color: var(--color-bogey) !important;
  font-weight: 600;
}

.score-double,
.text-dark {
  color: var(--color-double) !important;
}

.score-triple {
  color: var(--color-triple) !important;
}

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

.text-white {
  color: var(--color-text-primary) !important;
}

/* Big Score Display */
.score-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1;
}

.score-relative {
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
}

/* ============================================
   ROUND STATISTICS CARD
   ============================================ */
.round-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 1200px) {
  .round-stats-grid {
    grid-template-columns: 1fr;
  }
}

.round-stats-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.round-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.round-stats-player {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.round-stats-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.1);
  border: 2px solid rgba(204, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
}

.round-stats-avatar-team {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-accent-secondary);
}

.round-stats-player-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.round-stats-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.round-stats-type {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.round-stats-score {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.round-stats-total {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.round-stats-diff {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
}

.round-stats-diff.under {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-eagle);
}

.round-stats-diff.over {
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-bogey);
}

.round-stats-diff.even {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-par);
}

.round-stats-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-6);
  padding: var(--space-6);
}

@media (max-width: 768px) {
  .round-stats-body {
    grid-template-columns: 1fr;
  }
}

.round-stats-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-4) 0;
}

/* Score Distribution Chart */
.round-stats-chart-section {
  flex: 1;
}

.score-distribution-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.score-bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.score-bar-label {
  width: 70px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.score-bar-container {
  flex: 1;
  height: 28px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.score-bar {
  height: 100%;
  width: var(--bar-width, 0%);
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--space-3);
  border-radius: var(--radius-md);
  transition: width 0.5s ease-out;
}

.score-bar-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #000;
}

.score-bar-eagle {
  background: var(--color-eagle);
}

.score-bar-birdie {
  background: var(--color-birdie);
}

.score-bar-par {
  background: var(--color-par);
}

.score-bar-bogey {
  background: var(--color-bogey);
}

.score-bar-double {
  background: var(--color-double);
}

.score-bar-triple {
  background: var(--color-triple);
}

/* Putting Stats */
.round-stats-putting-section {
  display: flex;
  flex-direction: column;
}

.putting-stats-grid {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}

.putting-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.putting-stat-circle {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.putting-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.putting-gauge-bg {
  fill: none;
  stroke: var(--color-bg-tertiary);
  stroke-width: 3;
}

.putting-gauge-fill {
  fill: none;
  stroke: var(--color-accent-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease-out;
}

.fairway-gauge-fill {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease-out;
}

.putting-stat-value {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.putting-stat-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.putting-stat-value-lg {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.putting-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Fairway Stats Row */
.round-stats-fairway-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.round-stats-fairway-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.round-stats-fairway-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-success);
}

/* Score Pills Footer */
.round-stats-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
}

.score-pills {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.score-pill-count {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
}

.score-pill-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.score-pill-eagle .score-pill-count {
  color: var(--color-eagle);
}

.score-pill-birdie .score-pill-count {
  color: var(--color-birdie);
}

.score-pill-par .score-pill-count {
  color: var(--color-par);
}

.score-pill-bogey .score-pill-count {
  color: var(--color-bogey);
}

.score-pill-double .score-pill-count {
  color: var(--color-double);
}

/* ============================================
   GOLFER PROFILE STATS CARDS
   ============================================ */
.golfer-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .golfer-stats-grid {
    grid-template-columns: 1fr;
  }
}

.golfer-stats-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.golfer-stats-card-secondary {
  border-color: rgba(0, 212, 255, 0.2);
}

.golfer-stats-card-tertiary {
  border-color: rgba(255, 51, 102, 0.2);
}

.golfer-stats-card-tertiary .golfer-stats-card-title {
  color: var(--color-accent-tertiary);
}

.golfer-stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.golfer-stats-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-accent-primary);
}

.golfer-stats-card-secondary .golfer-stats-card-title {
  color: var(--color-accent-secondary);
}

.golfer-stats-card-title h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.golfer-stats-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.golfer-stats-card-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
}

.golfer-stats-card-empty {
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
}

.golfer-stats-card-empty p {
  margin: 0;
}

/* Stats Section Labels */
.stats-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-4) 0;
}

/* Donut Chart */
.stats-distribution-section {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

@media (max-width: 600px) {
  .stats-distribution-section {
    flex-direction: column;
  }
}

.stats-donut-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.stats-donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stats-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stats-donut-value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.stats-donut-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Legend */
.stats-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.stats-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stats-legend-color {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.stats-legend-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex: 1;
}

.stats-legend-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Putting Stats */
.stats-putting-section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

.stats-putting-gauges {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.stats-gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stats-gauge-circle {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stats-gauge-bg {
  fill: none;
  stroke: var(--color-bg-tertiary);
  stroke-width: 3;
}

.stats-gauge-fill {
  fill: none;
  stroke: var(--color-accent-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease-out;
}

.stats-gauge-fill-secondary {
  fill: none;
  stroke: var(--color-accent-secondary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease-out;
}

.stats-gauge-fill-tertiary {
  fill: none;
  stroke: var(--color-accent-tertiary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease-out;
}

.stats-gauge-value {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.stats-gauge-large {
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-border);
  border-radius: 50%;
}

.stats-gauge-value-lg {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.stats-gauge-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Putting Breakdown Bars */
.stats-putting-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stats-putt-bar {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: var(--space-3);
}

.stats-putt-bar-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.stats-putt-bar-track {
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stats-putt-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.stats-putt-bar-good {
  background: linear-gradient(90deg, var(--color-success) 0%, rgba(16, 185, 129, 0.7) 100%);
}

.stats-putt-bar-neutral {
  background: linear-gradient(90deg, var(--color-par) 0%, rgba(59, 130, 246, 0.7) 100%);
}

.stats-putt-bar-bad {
  background: linear-gradient(90deg, var(--color-danger) 0%, rgba(239, 68, 68, 0.7) 100%);
}

.stats-putt-bar-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  min-width: 80px;
  text-align: right;
}

/* Year Comparison */
.stats-year-comparison {
  display: flex;
  gap: var(--space-6);
}

.stats-year-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stats-year-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stats-year-pills {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: center;
}

.stats-year-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-bg-secondary);
}

/* Sand and Penalty Gauge Styles */
.stats-gauge-sand {
  background: rgba(230, 184, 0, 0.1);
  border: 2px solid rgba(230, 184, 0, 0.3);
}

.stats-gauge-sand .stats-gauge-value-lg {
  color: #E6B800;
}

.stats-gauge-penalty {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.stats-gauge-penalty .stats-gauge-value-lg {
  color: var(--color-danger);
}

/* Short Game Stats Grid */
.stats-short-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stats-short-game-section {
  padding: var(--space-4);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
}

.stats-short-game-section h4 {
  margin: 0 0 var(--space-3) 0;
}

.stats-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-metric-row:last-child {
  border-bottom: none;
}

.stats-metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.stats-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ============================================
   TEAM OVERVIEW CARD
   ============================================ */
.team-overview-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.5s ease-out;
}

.team-overview-header {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 51, 102, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.team-overview-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
}

.team-overview-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.team-overview-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.team-overview-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-overview-members {
  padding: var(--space-5) var(--space-6);
}

.team-overview-members-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-4) 0;
  text-align: center;
}

.team-overview-members-list {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.team-member-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.team-member-chip:hover {
  border-color: var(--color-accent-secondary);
  color: var(--color-accent-secondary);
  transform: translateY(-2px);
}

.team-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-secondary);
}

/* ============================================
   ALERTS
   ============================================ */
.alert,
.alert-modern {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slideInDown 0.3s ease-out;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
}

.alert-info {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-accent-secondary);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-control,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

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

/* Select dropdown arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0AEC0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Checkboxes */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.form-check:hover {
  background: var(--color-bg-tertiary);
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  appearance: none;
}

.form-check-input:checked {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M10 3L4.5 8.5L2 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

.form-check-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
}

/* Form sections */
.form-section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tee-box-distances {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Date input */
input[type="date"].form-control {
  color-scheme: dark;
}

[data-theme="light"] input[type="date"].form-control {
  color-scheme: light;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  animation: fadeIn 0.5s ease-out;
}

.empty-state-icon {
  font-size: var(--text-7xl);
  margin-bottom: var(--space-6);
  opacity: 0.3;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.empty-state-description {
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CHARTS
   ============================================ */
canvas {
  max-width: 100%;
  height: auto !important;
  border-radius: var(--radius-md);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--space-3);
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.primary {
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
}

.progress-bar-fill.success {
  background: var(--color-success);
}

.progress-bar-fill.warning {
  background: var(--color-warning);
}

.progress-bar-fill.danger {
  background: var(--color-danger);
}

/* ============================================
   LEADERBOARD STYLING
   ============================================ */
.leaderboard {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.leaderboard-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

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

.leaderboard-item:hover {
  background: var(--color-bg-tertiary);
}

.leaderboard-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin-right: var(--space-4);
}

.leaderboard-rank.gold {
  color: #FFD700;
}

.leaderboard-rank.silver {
  color: #C0C0C0;
}

.leaderboard-rank.bronze {
  color: #CD7F32;
}

.leaderboard-info {
  flex: 1;
}

.leaderboard-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.leaderboard-meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.leaderboard-score {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }

  50% {
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.5);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.flex-column {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.mt-3 {
  margin-top: var(--space-3) !important;
}

.mt-4 {
  margin-top: var(--space-4) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: var(--space-1) !important;
}

.mb-2 {
  margin-bottom: var(--space-2) !important;
}

.mb-3 {
  margin-bottom: var(--space-3) !important;
}

.mb-4 {
  margin-bottom: var(--space-4) !important;
}

.me-1 {
  margin-right: var(--space-1) !important;
}

.me-2 {
  margin-right: var(--space-2) !important;
}

.py-4 {
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-4) !important;
}

.small {
  font-size: var(--text-sm);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}

/* ============================================
   BOOTSTRAP GRID COMPATIBILITY
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--space-3) * -1);
  margin-left: calc(var(--space-3) * -1);
}

.col-md-3,
.col-md-4,
.col-md-6 {
  padding-right: var(--space-3);
  padding-left: var(--space-3);
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 {
    width: 25%;
  }

  .col-md-4 {
    width: 33.333%;
  }

  .col-md-6 {
    width: 50%;
  }
}

.row-cols-1>* {
  width: 100%;
}

.row-cols-md-3>* {
  width: 100%;
}

@media (min-width: 768px) {
  .row-cols-md-3>* {
    width: 33.333%;
  }
}

.g-3 {
  gap: var(--space-3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-7xl: 4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .content-wrapper {
    padding: var(--space-4);
  }

  .stat-value {
    font-size: var(--text-5xl);
  }

  .card-body {
    padding: var(--space-4);
  }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 101;
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: flex;
  }
}

/* ============================================
   SCORECARD SPECIFIC STYLES
   ============================================ */
.scorecard-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.scorecard-table {
  min-width: 800px;
}

.scorecard-table th,
.scorecard-table td {
  text-align: center;
  min-width: 45px;
}

.scorecard-table th:first-child,
.scorecard-table td:first-child {
  text-align: left;
  min-width: 100px;
  position: sticky;
  left: 0;
  background: var(--color-bg-card);
  z-index: 1;
}

/* Hole number styling */
.hole-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

/* Par row styling */
.par-row {
  background: var(--color-bg-tertiary);
  font-weight: 600;
}

/* Score cell with putt count */
.score-cell {
  position: relative;
}

.score-cell .putts {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================
   MODERN SCORECARD LAYOUT
   ============================================ */
.scorecard-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.scorecard-nine {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.scorecard-nine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-border);
}

.scorecard-nine-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scorecard-nine-summary {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.scorecard-holes-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1px;
  background: var(--color-border);
  padding: 1px;
}

.scorecard-hole-card {
  background: var(--color-bg-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 100px;
}

.scorecard-hole-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scorecard-hole-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.scorecard-hole-par {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
}

.scorecard-hole-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.scorecard-hole-yds {
  font-size: 10px;
  color: var(--color-text-muted);
}

.scorecard-hole-distance {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.scorecard-hole-scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}

/* Vertical score card layout for each golfer */
.scorecard-golfer-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2);
  min-width: 50px;
}

.scorecard-score-par {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.scorecard-score-info {
  display: flex;
  gap: 4px;
  font-size: 10px;
}

.scorecard-score-info .score-putts {
  color: var(--color-text-secondary);
}

.scorecard-score-info .score-sand {
  color: #E6B800;
}

.scorecard-score-info .score-penalty {
  color: var(--color-danger);
}

.scorecard-golfer-score .score-player {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  background: var(--color-bg-tertiary);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.scorecard-hole-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  position: relative;
  margin: 0 auto;
}

.scorecard-hole-score .score-value {
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
}

.scorecard-hole-score .score-putts {
  font-size: 9px;
  color: inherit;
  opacity: 0.7;
}

.scorecard-hole-score .score-sand {
  font-size: var(--text-xs);
  color: #E6B800;
  /* Sand/bunker color - amber/tan */
  opacity: 0.9;
  font-weight: 500;
}

.scorecard-hole-score .score-penalty {
  font-size: var(--text-xs);
  color: var(--color-danger);
  opacity: 0.9;
  font-weight: 500;
}

.scorecard-hole-score .score-player {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 9px;
  font-weight: 600;
  background: var(--color-bg-tertiary);
  color: var(--color-text-tertiary);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* Score color coding - Traditional Golf Symbols */
/* Eagle: Double circle, Birdie: Circle, Par: Nothing, Bogey: Square, Double+: Double square */

.scorecard-hole-score.score-eagle {
  background: transparent;
  color: var(--color-eagle);
  border: 2px solid var(--color-eagle);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-eagle);
}

.scorecard-hole-score.score-birdie {
  background: transparent;
  color: var(--color-birdie);
  border: 2px solid var(--color-birdie);
  border-radius: 50%;
}

.scorecard-hole-score.score-par {
  background: transparent;
  color: var(--color-par);
  border: none;
}

.scorecard-hole-score.score-bogey {
  background: transparent;
  color: var(--color-bogey);
  border: 2px solid var(--color-bogey);
  border-radius: 2px;
}

.scorecard-hole-score.score-double {
  background: transparent;
  color: var(--color-double);
  border: 2px solid var(--color-double);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-double);
}

.scorecard-hole-score.score-triple {
  background: transparent;
  color: var(--color-triple);
  border: 2px solid var(--color-triple);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-triple), 0 0 0 6px var(--color-bg-secondary), 0 0 0 8px var(--color-triple);
}

.scorecard-hole-score.score-none {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
}

/* Subtotal card styling */
.scorecard-subtotal-card {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
}

.scorecard-subtotal-card .scorecard-hole-number {
  color: var(--color-accent);
}

.scorecard-subtotal-score {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border) !important;
  flex-direction: column;
  padding: var(--space-2) !important;
}

.scorecard-subtotal-score .score-value {
  color: var(--color-text-primary);
}

.scorecard-subtotal-score .score-diff {
  font-size: var(--text-xs);
  font-weight: 600;
}

.scorecard-subtotal-score .score-diff.under {
  color: #10b981;
}

.scorecard-subtotal-score .score-diff.over {
  color: #ef4444;
}

.scorecard-subtotal-score .score-diff.even {
  color: var(--color-text-tertiary);
}

/* Total card */
.scorecard-total-card {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-accent-dark) 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.scorecard-total-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(204, 255, 0, 0.2);
}

.scorecard-total-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scorecard-total-par {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.scorecard-total-scores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.scorecard-player-total {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  flex: 1;
  min-width: 200px;
}

.scorecard-player-name {
  font-weight: 600;
  color: var(--color-text-secondary);
  flex: 1;
}

.scorecard-player-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scorecard-score-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.scorecard-score-diff {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.scorecard-score-diff.under {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.scorecard-score-diff.over {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.scorecard-score-diff.even {
  background: var(--color-bg-tertiary);
  color: var(--color-text-tertiary);
}

/* Scorecard Final Total - Right aligned under back nine */
.scorecard-final-total {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-4);
  flex-wrap: wrap;
}

/* Responsive adjustments for scorecard */
@media (max-width: 1200px) {
  .scorecard-holes-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .scorecard-subtotal-card {
    grid-column: span 5;
  }
}

@media (max-width: 768px) {
  .scorecard-holes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scorecard-subtotal-card {
    grid-column: span 3;
  }

  .scorecard-hole-card {
    min-height: 90px;
    padding: var(--space-2);
  }

  .scorecard-hole-number {
    font-size: var(--text-lg);
  }

  .scorecard-hole-score .score-value {
    font-size: var(--text-base);
  }
}

/* ============================================
   BEST ROUNDS CARDS
   ============================================ */
.best-rounds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 900px) {
  .best-rounds-grid {
    grid-template-columns: 1fr;
  }
}

.best-rounds-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.best-rounds-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-border);
}

.best-rounds-type {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.best-rounds-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-tertiary);
  color: var(--color-text-tertiary);
  border-radius: var(--radius-md);
}

.best-rounds-table {
  padding: var(--space-2);
}

.best-rounds-table-header {
  display: grid;
  grid-template-columns: 1fr repeat(4, 100px);
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.best-rounds-table-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 100px);
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.best-rounds-table-row:hover {
  background: var(--color-bg-tertiary);
}

.best-rounds-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.best-rounds-col-name {
  justify-content: flex-start;
  font-weight: 500;
  color: var(--color-text-primary);
}

.best-rounds-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.best-rounds-score:hover {
  background: var(--color-bg-secondary);
}

.best-rounds-strokes {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.best-rounds-diff {
  font-size: var(--text-sm);
  font-weight: 600;
}

.best-rounds-diff.under {
  color: #10b981;
}

.best-rounds-diff.over {
  color: #ef4444;
}

.best-rounds-diff.even {
  color: var(--color-text-tertiary);
}

.best-rounds-empty {
  color: var(--color-text-muted);
}

/* Best Scores by Course Card */
.best-scores-course-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.best-scores-course-header {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-border);
}

.best-scores-course-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.best-scores-course-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
}

.best-scores-course-icon svg {
  stroke: var(--color-bg-primary);
}

.best-scores-course-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.best-scores-course-par {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   BEST POSSIBLE SCORECARDS
   ============================================ */
.best-scorecard-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.best-scorecard-header {
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-bottom: 1px solid var(--color-border);
}

.best-scorecard-player {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.best-scorecard-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
}

.best-scorecard-avatar-team {
  background: linear-gradient(135deg, #FF3366 0%, #FF6B6B 100%);
  color: white;
}

.best-scorecard-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.best-scorecard-round-type {
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.best-scorecard-round-type:last-of-type {
  border-bottom: none;
}

.best-scorecard-type-header {
  margin-bottom: var(--space-4);
}

.best-scorecard-type-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.best-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .best-scorecard-grid {
    grid-template-columns: 1fr;
  }
}

.best-scorecard-nine {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.best-scorecard-nine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-secondary);
}

.best-scorecard-nine-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.best-scorecard-nine-par {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.best-scorecard-holes {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1px;
  background: var(--color-border);
}

.best-scorecard-hole {
  background: var(--color-bg-card);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 70px;
}

.best-scorecard-hole-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
}

.best-scorecard-hole-par {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.best-scorecard-hole-score {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 0 auto;
}

.best-scorecard-hole-score.score-eagle {
  background: transparent;
  color: var(--color-eagle);
  border: 2px solid var(--color-eagle);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-eagle);
}

.best-scorecard-hole-score.score-birdie {
  background: transparent;
  color: var(--color-birdie);
  border: 2px solid var(--color-birdie);
  border-radius: 50%;
}

.best-scorecard-hole-score.score-par {
  background: transparent;
  color: var(--color-par);
  border: none;
}

.best-scorecard-hole-score.score-bogey {
  background: transparent;
  color: var(--color-bogey);
  border: 2px solid var(--color-bogey);
  border-radius: 2px;
}

.best-scorecard-hole-score.score-double {
  background: transparent;
  color: var(--color-double);
  border: 2px solid var(--color-double);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-double);
}

.best-scorecard-hole-score.score-triple {
  background: transparent;
  color: var(--color-triple);
  border: 2px solid var(--color-triple);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-secondary), 0 0 0 4px var(--color-triple), 0 0 0 6px var(--color-bg-secondary), 0 0 0 8px var(--color-triple);
}

.best-scorecard-hole-score.score-none {
  background: transparent;
  color: var(--color-text-muted);
}

.best-scorecard-hole-putts {
  font-size: 9px;
  color: var(--color-text-muted);
}

.best-scorecard-hole-subtotal {
  background: var(--color-bg-secondary);
}

.best-scorecard-hole-subtotal .best-scorecard-hole-num {
  color: var(--color-accent);
}

.best-scorecard-hole-diff {
  font-size: var(--text-xs);
  font-weight: 600;
}

.best-scorecard-hole-diff.under {
  color: #10b981;
}

.best-scorecard-hole-diff.over {
  color: #ef4444;
}

.best-scorecard-hole-diff.even {
  color: var(--color-text-tertiary);
}

.best-scorecard-total {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-accent-dark) 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.best-scorecard-total-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.best-scorecard-total-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.best-scorecard-total-diff {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.best-scorecard-total-diff.under {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.best-scorecard-total-diff.over {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.best-scorecard-total-diff.even {
  background: var(--color-bg-tertiary);
  color: var(--color-text-tertiary);
}

.best-scorecard-total-putts {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-left: auto;
}

@media (max-width: 768px) {
  .best-scorecard-holes {
    grid-template-columns: repeat(5, 1fr);
  }

  .best-scorecard-hole-subtotal {
    grid-column: span 5;
  }
}

/* ============================================
   PROFILE/DETAIL PAGE HERO
   ============================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.profile-name {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  margin-bottom: var(--space-2);
}

.profile-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

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

.profile-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent-primary);
}

/* ============================================
   STATS COMPARISON TABLE
   ============================================ */
.stats-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.stat-comparison-item {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.stat-comparison-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.stat-comparison-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
}

/* ============================================
   YEAR TABS / PERIOD SELECTOR
   ============================================ */
.period-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.period-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-tab:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.period-tab.active {
  color: var(--color-accent-primary);
  background: rgba(204, 255, 0, 0.1);
}

/* ============================================
   COMPATIBILITY - OLD CLASS NAMES
   ============================================ */
.stats-grid-dashboard {
  @extend .stats-grid;
}

.stat-card-dashboard {
  @extend .stat-card;
}

.stat-card-header {
  @extend .stat-card-header;
}

.stat-card-title {
  @extend .stat-label;
}

.stat-value-large {
  @extend .stat-value;
}

.stat-description {
  @extend .stat-description;
}

.stat-trend-indicator {
  @extend .stat-trend;
}

.stat-trend-indicator.up {
  @extend .stat-trend.up;
}

.category-grid {
  @extend .quick-actions-grid;
}

.category-card {
  @extend .action-card;
}

.category-card-header {
  @extend .action-card-header;
}

.category-icon {
  @extend .action-card-icon;
}

.category-badge {
  @extend .action-card-badge;
}

.category-title {
  @extend .action-card-title;
}

.category-subtitle {
  @extend .action-card-description;
}

/* Since @extend doesn't work in pure CSS, let's create proper aliases */
.stats-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card-dashboard {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card-dashboard:nth-child(1) {
  animation-delay: 0.05s;
}

.stat-card-dashboard:nth-child(2) {
  animation-delay: 0.1s;
}

.stat-card-dashboard:nth-child(3) {
  animation-delay: 0.15s;
}

.stat-card-dashboard:nth-child(4) {
  animation-delay: 0.2s;
}

.stat-card-dashboard:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.stat-card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stat-value-large {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.stat-trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.stat-trend-indicator.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.stat-trend-indicator.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-card:nth-child(2) {
  animation-delay: 0.15s;
}

.category-card:nth-child(3) {
  animation-delay: 0.2s;
}

.category-card:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
}

.category-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
}

.category-badge.primary {
  background: rgba(204, 255, 0, 0.15);
  color: var(--color-accent-primary);
}

.category-badge.success {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-accent-secondary);
}

.category-badge.warning {
  background: rgba(255, 51, 102, 0.15);
  color: var(--color-accent-tertiary);
}

.category-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
}

.category-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0;
}

/* h6 styling for section headers */
.h5,
.h6 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.h5 {
  font-size: var(--text-xl);
}

/* ============================================
   HOLE BY HOLE - GRID LAYOUT
   Compact 3-column grid for desktop
   ============================================ */

.hole-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Individual hole tile */
.hole-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-base);
  animation: holeTileIn 0.3s ease-out backwards;
  animation-delay: var(--hole-delay, 0s);
}

@keyframes holeTileIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hole-tile:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-elevated);
  transform: translateY(-2px);
}

/* Hole Tile Header */
.hole-tile-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.hole-tile-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.hole-tile:hover .hole-tile-number {
  border-color: var(--color-accent-secondary);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.hole-tile-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1;
}

.hole-tile-par,
.hole-tile-yards,
.hole-tile-hcp {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.hole-tile-par {
  background: var(--color-birdie-bg);
  color: var(--color-birdie);
}

.hole-tile-yards {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.hole-tile-hcp {
  background: var(--color-bg-tertiary);
  color: var(--color-text-muted);
}

/* Hole Tile Scores */
.hole-tile-scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hole-tile-score-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  position: relative;
  margin-bottom: var(--space-1);
}

.hole-tile-player {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.hole-tile-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--color-accent-secondary);
  letter-spacing: 0.05em;
}

.hole-tile-avatar.team {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.05) 100%);
  border-color: rgba(255, 51, 102, 0.3);
}

.hole-tile-avatar.team svg {
  stroke: var(--color-accent-tertiary);
}

.hole-tile-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hole-tile-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

/* Wrapper for score number - receives circle/square styling */
.hole-tile-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hole-tile-strokes-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

/* Score type styling for strokes wrapper */
.hole-tile-strokes-wrap.score-eagle {
  border: 2px solid var(--color-eagle);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-eagle);
}

.hole-tile-strokes-wrap.score-birdie {
  border: 2px solid var(--color-birdie);
  border-radius: 50%;
}

.hole-tile-strokes-wrap.score-par {
  border: none;
}

.hole-tile-strokes-wrap.score-bogey {
  border: 2px solid var(--color-bogey);
  border-radius: 2px;
}

.hole-tile-strokes-wrap.score-double {
  border: 2px solid var(--color-double);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-double);
}

.hole-tile-strokes-wrap.score-triple {
  border: 2px solid var(--color-triple);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-triple), 0 0 0 6px var(--color-bg-primary), 0 0 0 8px var(--color-triple);
}

.hole-tile-strokes-wrap.score-none {
  border: 1px dashed var(--color-border);
}

/* Score type colors for strokes text */
.hole-tile-strokes-wrap.score-eagle .hole-tile-strokes {
  color: var(--color-eagle);
}

.hole-tile-strokes-wrap.score-birdie .hole-tile-strokes {
  color: var(--color-birdie);
}

.hole-tile-strokes-wrap.score-par .hole-tile-strokes {
  color: var(--color-par);
}

.hole-tile-strokes-wrap.score-bogey .hole-tile-strokes {
  color: var(--color-bogey);
}

.hole-tile-strokes-wrap.score-double .hole-tile-strokes {
  color: var(--color-double);
}

.hole-tile-strokes-wrap.score-triple .hole-tile-strokes {
  color: var(--color-triple);
}

.hole-tile-strokes {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
}

.hole-tile-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.hole-tile-extra-info {
  display: flex;
  gap: 6px;
  font-size: var(--text-xs);
}

.hole-tile-putts {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.7;
}

.hole-tile-sand {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #E6B800 !important;
  /* Sand/bunker color - amber/tan */
  opacity: 0.9;
  font-weight: 500;
}

.hole-tile-penalty {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-danger) !important;
  opacity: 0.9;
  font-weight: 500;
}

/* Score type styling for tiles - Traditional Golf Symbols */
.hole-tile-result.score-eagle {
  background: transparent;
  border: 2px solid var(--color-eagle);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-eagle);
}

.hole-tile-result.score-eagle .hole-tile-strokes,
.hole-tile-result.score-eagle .hole-tile-label,
.hole-tile-result.score-eagle .hole-tile-putts {
  color: var(--color-eagle);
}

.hole-tile-result.score-birdie {
  background: transparent;
  border: 2px solid var(--color-birdie);
  border-radius: 50%;
}

.hole-tile-result.score-birdie .hole-tile-strokes,
.hole-tile-result.score-birdie .hole-tile-label,
.hole-tile-result.score-birdie .hole-tile-putts {
  color: var(--color-birdie);
}

.hole-tile-result.score-par {
  background: transparent;
  border: none;
}

.hole-tile-result.score-par .hole-tile-strokes,
.hole-tile-result.score-par .hole-tile-label,
.hole-tile-result.score-par .hole-tile-putts {
  color: var(--color-par);
}

.hole-tile-result.score-bogey {
  background: transparent;
  border: 2px solid var(--color-bogey);
  border-radius: 2px;
}

.hole-tile-result.score-bogey .hole-tile-strokes,
.hole-tile-result.score-bogey .hole-tile-label,
.hole-tile-result.score-bogey .hole-tile-putts {
  color: var(--color-bogey);
}

.hole-tile-result.score-double {
  background: transparent;
  border: 2px solid var(--color-double);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-double);
}

.hole-tile-result.score-double .hole-tile-strokes,
.hole-tile-result.score-double .hole-tile-label,
.hole-tile-result.score-double .hole-tile-putts {
  color: var(--color-double);
}

.hole-tile-result.score-triple {
  background: transparent;
  border: 2px solid var(--color-triple);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-triple), 0 0 0 6px var(--color-bg-primary), 0 0 0 8px var(--color-triple);
}

.hole-tile-result.score-triple .hole-tile-strokes,
.hole-tile-result.score-triple .hole-tile-label,
.hole-tile-result.score-triple .hole-tile-putts {
  color: var(--color-triple);
}

.hole-tile-result.score-none {
  background: transparent;
  border: 1px dashed var(--color-border);
}

.hole-tile-result.score-none .hole-tile-strokes {
  color: var(--color-text-muted);
}

/* Edit button */
.hole-tile-edit {
  position: absolute;
  right: var(--space-2);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  opacity: 0;
  transition: all var(--transition-fast);
}

.hole-tile-score-row:hover .hole-tile-edit {
  opacity: 1;
}

.hole-tile-edit:hover {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* Turn Divider */
.hole-grid-turn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) 0;
}

.hole-grid-turn span {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent-tertiary);
  letter-spacing: 0.3em;
  padding: var(--space-2) var(--space-6);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-lg);
}

/* Final Summary */
.hole-grid-final {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.final-player-score {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.final-player-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.final-score-value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.final-score-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
}

.final-score-diff {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.final-score-diff.under {
  background: rgba(255, 51, 102, 0.15);
  color: var(--color-birdie);
}

.final-score-diff.over {
  background: rgba(204, 255, 0, 0.15);
  color: var(--color-bogey);
}

.final-score-diff.even {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-par);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .hole-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hole-grid {
    grid-template-columns: 1fr;
  }

  .hole-grid-final {
    justify-content: center;
  }
}

/* ============================================
   HEAD-TO-HEAD RIVALRY STYLES
   ============================================ */

/* Rivalry Grid - Opponent Cards */
.rivalry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.rivalry-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.rivalry-card:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rivalry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rivalry-opponent {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rivalry-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
}

.rivalry-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}

.rivalry-arrow {
  color: var(--color-text-tertiary);
  transition: transform 0.2s ease;
}

.rivalry-card:hover .rivalry-arrow {
  transform: translateX(4px);
  color: var(--color-accent-primary);
}

.rivalry-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.05em;
}

.rivalry-stat {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.rivalry-wins {
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.15);
}

.rivalry-losses {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.15);
}

.rivalry-ties {
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
}

.rivalry-divider {
  color: var(--color-text-tertiary);
}

.rivalry-total {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Rivalry Stats Grid - Detailed Stats */
.rivalry-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.rivalry-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.rivalry-stat-card .rivalry-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.rivalry-stat-card .rivalry-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rivalry-stat-wins .rivalry-stat-value {
  color: var(--color-success);
}

.rivalry-stat-losses .rivalry-stat-value {
  color: var(--color-danger);
}

.rivalry-stat-ties .rivalry-stat-value {
  color: var(--color-text-secondary);
}

.rivalry-stat-diff .rivalry-stat-value.diff-good {
  color: var(--color-success);
}

.rivalry-stat-diff .rivalry-stat-value.diff-bad {
  color: var(--color-danger);
}

/* Hole-by-Hole Dominance Bar */
.dominance-container {
  padding: var(--space-4);
}

.dominance-bar {
  display: flex;
  height: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.dominance-segment {
  transition: width 0.3s ease;
}

.dominance-segment.dominance-wins {
  background: linear-gradient(135deg, var(--color-success), #059669);
}

.dominance-segment.dominance-ties {
  background: var(--color-bg-tertiary);
}

.dominance-segment.dominance-losses {
  background: linear-gradient(135deg, var(--color-danger), #DC2626);
}

.dominance-labels {
  display: flex;
  justify-content: space-between;
}

.dominance-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.dominance-label-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.dominance-label-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.dominance-label-wins .dominance-label-value {
  color: var(--color-success);
}

.dominance-label-ties .dominance-label-value {
  color: var(--color-text-secondary);
}

.dominance-label-losses .dominance-label-value {
  color: var(--color-danger);
}

/* Matchup Row Styling */
.matchup-row.matchup-win {
  background: rgba(16, 185, 129, 0.05);
}

.matchup-row.matchup-loss {
  background: rgba(239, 68, 68, 0.05);
}

.matchup-score {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
}

.matchup-score-winner {
  color: var(--color-success);
  font-weight: 700;
}

.matchup-diff {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.matchup-diff.under {
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.15);
}

.matchup-diff.over {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.15);
}

.matchup-diff.even {
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
}

/* Badge Variants */
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

/* Page Avatar Variants */
.page-avatar-rivalry {
  background: linear-gradient(135deg, var(--color-success), var(--color-danger));
}

@media (max-width: 768px) {
  .rivalry-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rivalry-stat-card .rivalry-stat-value {
    font-size: var(--text-4xl);
  }
}

/* ============================================
   COURSE RECORDS STYLES - Clean Tabular Design
   ============================================ */

/* Records Board - 3-column grid */
.records-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Record Tile */
.record-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.record-tile-header {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(255, 215, 0, 0.1));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: var(--space-3) var(--space-4);
  position: relative;
}

.record-tile-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FFD700, #B8860B);
}

.record-tile-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record-tile-body {
  padding: 0;
}

/* Record Table */
.record-tile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.record-tile-table thead {
  background: var(--color-bg-tertiary);
}

.record-tile-table th {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-weight: 500;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.record-tile-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.record-tile-table tbody tr:last-child td {
  border-bottom: none;
}

.record-tile-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Column widths */
.record-col-format {
  width: 28%;
}

.record-col-score {
  width: 22%;
}

.record-col-holder {
  width: 30%;
}

.record-col-date {
  width: 15%;
}

.record-col-action {
  width: 5%;
  text-align: center;
}

/* Format Tag */
.record-format-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Score Display */
.record-col-score {
  font-family: var(--font-mono);
}

.record-score-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent-gold);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.record-score-diff {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-left: var(--space-1);
}

.record-score-diff.under {
  color: var(--color-birdie);
}

.record-score-diff.over {
  color: var(--color-bogey);
}

.record-score-diff.even {
  color: var(--color-par);
}

/* Holder Link */
.record-holder-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-holder-link:hover {
  color: var(--color-accent-primary);
}

/* Date */
.record-col-date {
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  white-space: nowrap;
}

/* History Link */
.record-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--color-text-tertiary);
  transition: all 0.15s ease;
}

.record-history-link:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-accent-gold);
}

/* Record History Page */
.page-avatar-record {
  background: linear-gradient(135deg, #B8860B, #FFD700);
  color: #0A0E14;
}

.record-row-current {
  background: rgba(255, 215, 0, 0.05);
}

.record-row-current td:first-child {
  position: relative;
}

.record-row-current td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent-gold);
}

.record-history-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent-gold);
}

/* Responsive */
@media (max-width: 1200px) {
  .records-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .records-board {
    grid-template-columns: 1fr;
  }

  .record-tile-table th,
  .record-tile-table td {
    padding: var(--space-2);
  }

  .record-col-date {
    display: none;
  }

  .record-col-format {
    width: 30%;
  }

  .record-col-score {
    width: 25%;
  }

  .record-col-holder {
    width: 35%;
  }

  .record-col-action {
    width: 10%;
  }
}

/* ============================================
   LEADERBOARDS
   ============================================ */
.leaderboard-filters {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-form {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 180px;
}

.filter-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:hover {
  border-color: var(--color-border-hover);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent-primary);
}

/* Leaderboard Tabs */
.leaderboard-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-2);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.leaderboard-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.leaderboard-tab:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.leaderboard-tab.active {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.leaderboard-tab svg {
  opacity: 0.7;
}

.leaderboard-tab.active svg {
  opacity: 1;
}

/* Leaderboard Content */
.leaderboard-content {
  animation: fadeIn 0.3s ease-out;
}

.tab-content {
  animation: fadeIn 0.3s ease-out;
}

/* Leaderboard Grid */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-6);
}

/* Leaderboard Card */
.leaderboard-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease-out backwards;
}

.leaderboard-card:nth-child(1) {
  animation-delay: 0.05s;
}

.leaderboard-card:nth-child(2) {
  animation-delay: 0.1s;
}

.leaderboard-card:nth-child(3) {
  animation-delay: 0.15s;
}

.leaderboard-card:nth-child(4) {
  animation-delay: 0.2s;
}

.leaderboard-card:nth-child(5) {
  animation-delay: 0.25s;
}

.leaderboard-card:nth-child(6) {
  animation-delay: 0.3s;
}

.leaderboard-card:nth-child(7) {
  animation-delay: 0.35s;
}

.leaderboard-card:hover {
  border-color: var(--color-border-hover);
}

.leaderboard-card-header {
  padding: var(--space-5);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.leaderboard-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.leaderboard-card-title h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.leaderboard-icon {
  color: var(--color-accent-primary);
}

.leaderboard-description {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Leaderboard Table */
.leaderboard-table {
  padding: var(--space-3);
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.leaderboard-row:hover {
  background: var(--color-bg-tertiary);
}

.leaderboard-row.top-three {
  background: rgba(255, 215, 0, 0.03);
}

.leaderboard-row.top-three:hover {
  background: rgba(255, 215, 0, 0.08);
}

/* Rank */
.leaderboard-rank {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-medal {
  font-size: var(--text-xl);
}

.rank-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Entity */
.leaderboard-entity {
  flex: 1;
  min-width: 0;
}

.leaderboard-entity-link {
  display: block;
  text-decoration: none;
}

.entity-name {
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color var(--transition-fast);
}

.leaderboard-entity-link:hover .entity-name {
  color: var(--color-accent-primary);
}

/* Value */
.leaderboard-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-shrink: 0;
}

.value-primary {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
}

.value-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.value-link {
  text-decoration: none;
}

.value-link:hover .value-primary {
  color: var(--color-accent-primary);
}

.value-improvement {
  font-size: var(--text-xl);
}

.value-improvement.positive {
  color: var(--color-success);
}

.value-improvement.negative {
  color: var(--color-danger);
}

.value-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.value-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Records Toggle & List */
.records-toggle {
  display: block;
  background: none;
  border: none;
  padding: var(--space-1) 0;
  font-size: var(--text-xs);
  color: var(--color-accent-primary);
  cursor: pointer;
  text-align: left;
}

.records-toggle:hover {
  text-decoration: underline;
}

.records-list {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--color-border);
}

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

.record-type {
  font-weight: 600;
  color: var(--color-text-primary);
}

.record-course {
  color: var(--color-text-muted);
}

.record-value {
  color: var(--color-accent-primary);
  font-weight: 500;
}

.record-date {
  color: var(--color-text-tertiary);
  font-style: italic;
  margin-left: auto;
}

/* Show More */
.leaderboard-show-more {
  width: 100%;
  padding: var(--space-3);
  margin-top: var(--space-2);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.leaderboard-show-more:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
}

/* Empty State */
.leaderboard-empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
  .leaderboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-filters {
    flex-direction: column;
    gap: var(--space-4);
  }

  .filter-group {
    width: 100%;
  }

  .leaderboard-tabs {
    width: 100%;
  }

  .leaderboard-tab {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   GOLFER RANKINGS PAGE
   ============================================ */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.ranking-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: all var(--transition-fast);
}

.ranking-card:hover {
  border-color: var(--color-border-hover);
}

.ranking-card.has-rank {
  background: rgba(204, 255, 0, 0.03);
  border-color: rgba(204, 255, 0, 0.2);
}

.ranking-category {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ranking-category-icon {
  color: var(--color-accent-primary);
}

.ranking-category-name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.ranking-position {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ranking-position-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent-primary);
}

.ranking-position-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.ranking-unranked {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Season Rankings Section on Golfer Profile */
.season-rankings-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.season-rankings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.season-rankings-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.season-rankings-title h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
}

.season-rankings-year {
  font-size: var(--text-sm);
  color: var(--color-accent-primary);
  background: rgba(204, 255, 0, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.season-rankings-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.season-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
}

.season-ranking-category {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.season-ranking-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent-primary);
}

.season-ranking-value.first-place {
  color: var(--color-accent-gold);
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-primary);
  padding: var(--space-4);
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.login-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2) 0;
  letter-spacing: 0.05em;
}

.login-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-form .form-group {
  margin-bottom: 0;
}

.login-form .form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px var(--color-accent-primary-alpha);
}

.login-form .form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.login-form .btn-block {
  width: 100%;
  margin-top: var(--space-2);
}

.login-card .alert {
  margin-bottom: var(--space-4);
}

/* Logout button in sidebar */
.logout-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: var(--space-3);
}

.logout-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border-color: var(--color-text-secondary);
}

/* Round Awards */
.round-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.round-award-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.round-award-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.round-award-card.award-positive {
  border-left: 3px solid var(--color-success);
}

.round-award-card.award-negative {
  border-left: 3px solid var(--color-warning);
}

.round-award-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.round-award-content {
  flex: 1;
  min-width: 0;
}

.round-award-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.round-award-winner {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.round-award-winner a {
  color: var(--color-accent-primary);
  text-decoration: none;
}

.round-award-winner a:hover {
  text-decoration: underline;
}

.round-award-value {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .round-awards-grid {
    grid-template-columns: 1fr;
  }
}

/* Round Content Area - consistent spacing for Rounds#show */
.round-content-area {
  display: block;
}

.round-content-area>.stats-grid,
.round-content-area>.round-stats-grid,
.round-content-area>.round-awards-grid,
.round-content-area>.scorecard-modern,
.round-content-area>.hole-grid,
.round-content-area>.section-header,
.round-content-area>.card {
  /* Ensure consistent display and no overflow issues */
  width: 100%;
  box-sizing: border-box;
}