/* app.bundle.css — auto-generated bundle, do not edit manually.
   Built: 2026-03-14 11:14 UTC | Commit: 9050c4f
   Sources: variables.css, style.css, icons.css
   Total: 148,724 bytes (3 files) */

/* === variables.css (6,969 bytes) === */
/**
 * Fantasy Fairways - CSS Design System Variables
 *
 * This file contains all shared CSS variables for consistent styling across the app.
 * Import this file in base.html before other stylesheets.
 */

:root {
  /* ========================================
     PRIMARY COLORS
     ======================================== */
  --primary-green: #006a4e;
  --primary-green-dark: #004d38;
  --primary-green-light: #00805d;
  --primary-blue: #3498db;
  --primary-blue-dark: #2980b9;

  /* ========================================
     TEXT COLORS
     ======================================== */
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  /* ========================================
     BACKGROUND COLORS
     ======================================== */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-gray: #f3f4f6;
  --bg-dark: #1f2937;

  /* ========================================
     BORDER COLORS
     ======================================== */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;

  /* ========================================
     STATUS COLORS
     ======================================== */
  /* Success */
  --success-bg: #dcfce7;
  --success-border: #86efac;
  --success-text: #166534;
  --success-icon: #22c55e;

  /* Error */
  --error-bg: #fee2e2;
  --error-border: #fecaca;
  --error-text: #991b1b;
  --error-icon: #ef4444;

  /* Warning */
  --warning-bg: #fef3c7;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --warning-icon: #f59e0b;

  /* Info */
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #0369a1;
  --info-icon: #0ea5e9;

  /* ========================================
     SCORE COLORS (Golf specific)
     ======================================== */
  --score-under: #166534;    /* Under par - green */
  --score-under-bg: #dcfce7;
  --score-over: #991b1b;     /* Over par - red */
  --score-over-bg: #fee2e2;
  --score-even: #374151;     /* Even par - gray */
  --score-even-bg: #f3f4f6;

  /* ========================================
     RANK COLORS
     ======================================== */
  --rank-gold: #fbbf24;
  --rank-gold-dark: #f59e0b;
  --rank-silver: #9ca3af;
  --rank-silver-dark: #6b7280;
  --rank-bronze: #d97706;
  --rank-bronze-dark: #b45309;

  /* ========================================
     SHADOWS
     ======================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Colored shadows */
  --shadow-green: 0 4px 12px rgba(0, 106, 78, 0.2);
  --shadow-green-lg: 0 10px 25px rgba(0, 106, 78, 0.3);
  --shadow-blue: 0 4px 12px rgba(52, 152, 219, 0.2);

  /* ========================================
     BORDER RADIUS
     ======================================== */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ========================================
     SPACING
     ======================================== */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* ========================================
     TRANSITIONS
     ======================================== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 500;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-popover: 1100;
  --z-tooltip: 1200;

  /* ========================================
     LAYOUT
     ======================================== */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1200px;
  --max-width-2xl: 1400px;

  /* Navigation height */
  --nav-height: 72px;
  --nav-height-mobile: 64px;

  /* Bottom navbar (mobile) */
  --bottom-nav-height: 60px;

  /* App layout offset — distance from viewport top to content area.
     Updated by JS to reflect actual header + banner height.
     Fallback: safe-area + brand header (44px). */
  --app-top-offset: calc(env(safe-area-inset-top, 0px) + 44px);

  /* ========================================
     GRADIENTS
     ======================================== */
  --gradient-green: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  --gradient-green-blue: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
  --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  --gradient-gold: linear-gradient(135deg, var(--rank-gold), var(--rank-gold-dark));
  --gradient-silver: linear-gradient(135deg, var(--rank-silver), var(--rank-silver-dark));
  --gradient-bronze: linear-gradient(135deg, var(--rank-bronze), var(--rank-bronze-dark));
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text colors */
.text-primary { color: var(--primary-green); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-text); }
.text-error { color: var(--error-text); }
.text-warning { color: var(--warning-text); }

/* Background colors */
.bg-primary { background-color: var(--primary-green); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Border radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }


/* === style.css (140,418 bytes) === */
/* ~~~~~~~~~~~~~~~~~~ */
/* VARIABLES & RESET  */
/* ~~~~~~~~~~~~~~~~~~ */
:root {
    --primary-green: #006a4e;
    --secondary-green: #6b9e86;
    --background-light: #f9fbfb;
    --white: #ffffff;
    --border-color: #e9ecef;
    --text-dark: #3b3e41;
    --text-light: hsl(0, 0%, 65%);
    --text-red: #dc3545;
    --live-green: #aeecbc;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --button-bg: #FFEB3B;

    /* Enhanced Professional Variables */
    --primary-gradient: linear-gradient(135deg, #006a4e 0%, #4a7c59 100%);
    --secondary-gradient: linear-gradient(135deg, #6b9e86 0%, #81b295 100%);
    --success-gradient: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    --surface-white: #ffffff;
    --surface-light: #f8fafc;
    --surface-border: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* iOS safe area support for notch/dynamic island */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ── Layout Containment — prevents hydration-triggered reflow propagation ── */
.page-section,
.hydrate-shell {
    contain: layout paint;
}

/* ── Hydration animation class — used by IntersectionObserver in main.js ── */
.hydrate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── CSS hover effects — replaces JS mouseenter/mouseleave ── */
.dashboard-league-card:not(.no-hover):hover,
.btn:not(.no-hover):hover {
    transform: translateY(-2px);
}

/* ── Skeleton loaders — reserve layout space before hydration ── */
.skeleton-shell { min-height: 200px; }
.skeleton-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
}
.skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-text {
    height: 16px;
    width: 100%;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom subtle scrollbar for main browser */
body::-webkit-scrollbar,
html::-webkit-scrollbar,
.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
.dashboard-content::-webkit-scrollbar-track {
    background: rgba(0, 106, 78, 0.05);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
.dashboard-content::-webkit-scrollbar-thumb {
    background: rgba(0, 106, 78, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 106, 78, 0.35);
}

/* Firefox scrollbar styling for main browser */
body,
html,
.dashboard-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 106, 78, 0.2) rgba(0, 106, 78, 0.05);
}

/* Enhanced Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }

/* ~~~~~~~~~~~~~~~~~~ */
/* MOBILE BRAND HEADER */
/* ~~~~~~~~~~~~~~~~~~ */
.mobile-brand-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--primary-green, #006a4e);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
}

.brand-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-header-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.brand-header-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.brand-header-action {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-header-action:hover {
    color: #fff;
}

.brand-header-action .icon {
    width: 1.1em;
    height: 1.1em;
}

@media (max-width: 768px) {
    .mobile-brand-header {
        display: block;
    }

    .has-brand-header {
        padding-top: calc(44px + env(safe-area-inset-top, 0px));
    }

    /* Controlled 12px gap below brand header — tighter content start on mobile */
    .has-brand-header .content-container {
        padding-top: 12px;
    }

    /* Zero out section-level top spacing on the dashboard section */
    .has-brand-header #dashboard-section {
        padding-top: 0;
        margin-top: 0;
    }

    .has-brand-header .leagues-section {
        margin-top: 0;
    }
}

/* In standalone PWA mode, body already applies safe-area-inset-top padding,
   so .has-brand-header must NOT add it again — use just the 44px header height */
@media (max-width: 768px) and (display-mode: standalone) {
    .has-brand-header {
        padding-top: 44px;
    }
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL DASHBOARD LAYOUT */
/* ~~~~~~~~~~~~~~~~~~ */
.dashboard-wrapper {
    display: flex;
    flex-direction: row;
    height: calc(100vh - env(safe-area-inset-top));
    height: calc(100dvh - env(safe-area-inset-top));
    overflow: hidden;
    background: var(--background-light);
}

/* When inside dashboard-wrapper (sidebar layout), content is the scroll region */
.dashboard-wrapper .dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--background-light);
}

/* Standalone dashboard-content (no wrapper) flows naturally — body scrolls */
.dashboard-content {
    background: var(--background-light);
}

/* Professional Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(105, 105, 105);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Professional Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--primary-gradient);
    color: var(--white);
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

/* Custom subtle scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1);
}

.sidebar-logo-link {
    display: block;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(1.1);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-header .username {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.sidebar-header .user-level {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Enhanced Sidebar Navigation */
.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0.25rem 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--white);
    font-weight: 600;
}

.sidebar-nav i,
.sidebar-nav .icon {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

/* --- Navigation Groups --- */
.nav-group {
    padding: var(--space-sm, 0.5rem) 0;
}

.nav-group + .nav-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-group-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding: var(--space-sm, 0.5rem) var(--space-lg, 1.5rem) var(--space-xs, 0.25rem);
}

/* --- Scheduling Dropdown --- */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-dropdown-toggle .icon {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

.dropdown-chevron {
    margin-left: auto;
    margin-right: 0;
    width: 12px !important;
    height: 12px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    padding-left: 3rem;
    font-size: 0.875rem;
}

/* --- Manage Section Separator --- */
.nav-manage {
    margin-top: var(--space-sm, 0.5rem);
    padding-top: var(--space-sm, 0.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Enhanced Active State --- */
.sidebar-nav li.active > a {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border-left-color: var(--white);
    font-weight: 700;
}

/* --- Sidebar Secondary Separator --- */
.sidebar-secondary {
    margin-top: var(--space-sm, 0.5rem);
    padding-top: var(--space-sm, 0.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Sidebar Join Button (styled as nav link) --- */
.sidebar-join-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-join-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-join-btn .icon {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.support-links {
    margin-bottom: 1.5rem;
}

.support-links span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.support-links a {
    display: block;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.support-links a:hover {
    color: var(--white);
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-theme-toggle .theme-toggle {
    width: 60px;
    height: 34px;
}

.sidebar-theme-toggle .theme-toggle::before {
    width: 26px;
    height: 26px;
    left: 2px;
    top: 2px;
}

.sidebar-theme-toggle .theme-toggle.dark-active::before {
    left: calc(100% - 28px);
}

.logout-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.logout-link:hover {
    color: var(--white);
}

.logout-link i,
.logout-link .icon {
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL DASHBOARD HERO */
/* ~~~~~~~~~~~~~~~~~~ */
.dashboard-hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.user-info {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.avatar {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.user-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.welcome-message h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.dashboard-subheading {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Club-specific styling */
.club-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.club-details h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.subtitle {
    color: rgb(151 151 151 / 90%);
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Professional Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 0.875rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.stat-card .value {
    display: block;
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.65rem;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL CONTENT CONTAINER */
/* ~~~~~~~~~~~~~~~~~~ */
.content-container {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL SECTIONS */
/* ~~~~~~~~~~~~~~~~~~ */
.page-section {
    margin-bottom: 1.5rem;
}

.page-section.hidden {
    display: none;
}

.dashboard-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--surface-border);
}

.dashboard-header > div {
    flex: 1;
    min-width: 200px;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.dashboard-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
}

/* Schedule link button in browse leagues */
.schedule-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.schedule-link-btn i,
.schedule-link-btn .icon {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .schedule-link-btn span {
        display: none;
    }

    .schedule-link-btn {
        padding: 0.5rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL LEAGUES SECTION */
/* ~~~~~~~~~~~~~~~~~~ */
.leagues-section {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-md);
}

.leagues-section h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Filter-style tabs — lightweight inline chips */
.tabs-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: var(--space-lg);
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--surface-border, #e5e7eb);
}

.tabs.capsule-tabs {
    display: flex;
    gap: 0;
    background: none;
    padding: 0;
    border-radius: 0;
}

.tab-button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #9ca3af);
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-button:hover {
    background: transparent;
    color: var(--text-primary);
}

.tab-button.active {
    background: transparent;
    color: var(--primary-green);
    box-shadow: none;
    border-bottom-color: var(--primary-green);
}

/* Browse Leagues Filter Tabs - Icon Only Style */
#browse-league-filter-tabs .tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-width: 60px;
}

#browse-league-filter-tabs .tab-button i,
#browse-league-filter-tabs .tab-button .icon {
    font-size: 1.5rem;
    margin: 0;
}

#browse-league-filter-tabs .tab-button:hover {
    transform: translateY(-2px);
}

#browse-league-filter-tabs .tab-button.active {
    transform: translateY(0);
}

/* Professional League Cards Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Browse Leagues Grid - 3 Column Layout */
.dashboard-leagues-grid,
#browse-leagues-section-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-leagues-grid,
    #browse-leagues-section-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .dashboard-leagues-grid,
    #browse-leagues-section-grid {
        grid-template-columns: 1fr !important;
    }
}

.info-cards-grid,
.wallet-grid,
.settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* League card styles moved to .league-card below (after hero removal) */

/* New unified league card */
.league-card {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    border: 1px solid var(--surface-border, #e5e7eb);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.league-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.league-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.league-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.league-card__host {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.league-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.league-card__date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.league-card__stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.league-card__stats {
    display: flex;
    gap: 1rem;
}

.league-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.league-card__stat .stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.league-card__stat .stat-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.league-card__cta-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.league-card__cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-green, #006a4e);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.league-card__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Legacy alias — keeps old JS/CSS selectors working during transition */
.dashboard-league-card { }

/* League type badge */
.league-card__type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: var(--surface-alt, #f3f4f6);
    color: var(--text-muted);
}

/* Tournament grouping on Browse page */
.leagues-by-tournament {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tournament-group__header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--surface-border, #e5e7eb);
    margin-bottom: 0.75rem;
}

.tournament-group__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

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

.league-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Tour Badge */
.tour-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.tour-badge-pga {
    background: rgba(10, 35, 66, 0.08);
    color: #0A2342;
}

.tour-badge-euro,
.tour-badge-dp {
    background: rgba(123, 63, 242, 0.08);
    color: #7B3FF2;
}

/* Major tournament badges */
.tour-badge-masters,
.tour-badge-pga-championship,
.tour-badge-us-open,
.tour-badge-the-open,
.tour-badge-the-players {
    background: rgba(180, 138, 37, 0.10);
    color: #B48A25;
    font-weight: 700;
}

/* Body Section */
.card-body-section {
    flex: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* League Name - Now in body */
.card-body-section .league-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.league-card__type-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.league-card__type-rank-row .card-rank-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* Rank badge — inline chip, sits inside type-rank-row */
.card-rank-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}
.card-rank-badge--gold     { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.card-rank-badge--silver   { background: rgba(156, 163, 175, 0.2); color: #374151; }
.card-rank-badge--bronze   { background: rgba(180, 83, 9, 0.15);   color: #7c2d12; }
.card-rank-badge--standard { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

.card-rank-badge .icon {
    width: 12px;
    height: 12px;
    color: var(--warning-text, #b45309);
}

.card-rank-badge.card-rank-loading {
    opacity: 0.5;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}

/* Share button — inline beside CTA */
.card-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    transition: color 0.2s;
}

.card-share-btn:hover {
    color: var(--primary, #006a4e);
}

.card-share-btn .icon {
    width: 14px;
    height: 14px;
}

/* Host badge — below league name */
.card-host-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.25rem;
}

/* Host CTA variant */
.cta-button.host-cta {
    background: var(--surface-light, #f8f9fa);
    color: var(--text-secondary, #6b7280);
    border: 1px solid var(--surface-border, #e5e7eb);
}

/* Live pill — card footer */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--success-text, #166534);
    background: var(--success-bg, #f0fdf4);
    border: 1px solid var(--success-border, #bbf7d0);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full, 9999px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.6875rem;
    font-weight: 600;
}

.live-pill .icon {
    width: 6px;
    height: 6px;
    color: var(--success-icon, #22c55e);
    animation: tournament-pulse 2s ease-in-out infinite;
}

/* League Date */
.league-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 1rem;
}

.league-date i,
.league-date .icon {
    color: #9ca3af;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.stat-icon-inline {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

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

.stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

/* Footer Section - Entry Fee & CTA */
.card-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.entry-fee {
    display: flex;
    flex-direction: column;
}

.fee-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.fee-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #374151;
    transition: all 0.2s ease;
}

.cta-button.join-cta {
    background-color: #006a4e;
    color: white;
}

.dashboard-league-card:hover .cta-button {
    background-color: #e5e7eb;
}

.dashboard-league-card:hover .cta-button.join-cta {
    background-color: #005a42;
}

/* Legacy support for old classes */
.tour-logo-bg {
    display: none;
}

.header-content {
    display: none;
}

/* Status indicators (kept for compatibility) */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator.live {
    background: #10b981;
    color: white;
}

.status-indicator.live .fa-circle {
    animation: pulse-live 2s ease-in-out infinite;
}

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

.status-indicator.upcoming {
    background: #3b82f6;
    color: white;
}

.status-indicator.completed {
    background: #6b7280;
    color: white;
}

/* Legacy cta-link support */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    transition: gap 0.2s ease;
}

.cta-link i,
.cta-link .icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dashboard-league-card:hover .cta-link {
    gap: 0.5rem;
}

.dashboard-league-card:hover .cta-link i {
    transform: translateX(2px);
}

/* Club League Badge */
.club-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.club-badge i,
.club-badge .icon {
    font-size: 0.625rem;
    color: #3b82f6;
}


/* Join CTA for unjoined club leagues */
.cta-link.join-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-link.join-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.dashboard-league-card:hover .cta-link.join-cta {
    gap: 0.375rem;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.675rem;
    border-radius: 9999px;
    width: fit-content;
    white-space: nowrap;
}

.rank-badge.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-badge.rank-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: #2d1b0e;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-badge.rank-standard {
    background: var(--surface-light);
    color: var(--text-secondary);
    border: 1px solid var(--surface-border);
}

.status-and-tour {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-tag-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-live {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.status-badge.status-upcoming {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(113, 128, 150, 0.3);
}

/* Visual Body Section */
.card-body-visual {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
}

.prize-showcase {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #bbf7d0;
}

.prize-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.prize-icon i,
.prize-icon .icon {
    font-size: 1.75rem;
    color: white;
}

.prize-info {
    flex: 1;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #065f46;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.prize-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
}

.compact-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.compact-stat i,
.compact-stat .icon {
    font-size: 1rem;
    color: var(--primary-green);
}

.stat-divider {
    color: var(--text-muted);
    font-weight: 400;
}

.participant-avatars {
    display: flex;
    align-items: center;
    gap: -0.5rem;
    margin-left: -0.25rem;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}

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

.avatar-circle i,
.avatar-circle .icon {
    font-size: 0.75rem;
    color: #4f46e5;
}

.avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
}

/* Visual Footer */
.card-footer-visual {
    padding: 1.25rem 1.5rem;
    background: var(--background-light);
    border-top: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-item i,
.meta-item .icon {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-button i,
.cta-button .icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dashboard-league-card:hover .cta-button {
    background: #059669;
}

.dashboard-league-card:hover .cta-button i {
    transform: translateX(3px);
}

/* ~~~~~~~~~~~~~~~~~~ */
/* PROFESSIONAL BUTTONS & NAVIGATION */
/* ~~~~~~~~~~~~~~~~~~ */
.nav-item-club, .nav-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-item-club {
    position: relative;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* No background fallback — every .club-btn-* variant sets its own gradient */
}

.nav-item-club:hover {
    transform: translateY(-2px);
}

/* Club Actions Container */
.club-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.club-actions .nav-item-club {
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

.platform-fee-hint {
    margin: 0.4rem 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.platform-fee-hint .icon {
    width: 0.68rem;
    height: 0.68rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.platform-fee-hint strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.platform-fee-hint a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.platform-fee-hint a:hover {
    color: white;
}

/* Blue - Members */
.nav-item-club.club-btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.nav-item-club.club-btn-blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Green - Leaderboard */
.nav-item-club.club-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.nav-item-club.club-btn-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Purple - TV Mode */
.nav-item-club.club-btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.nav-item-club.club-btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* Amber - Create League */
.nav-item-club.club-btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.nav-item-club.club-btn-amber:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Tier Plan Buttons */
.nav-item-club.club-btn-tier-bronze {
    background: linear-gradient(135deg, #c07a3a 0%, #8b4e1e 100%);
    box-shadow: 0 4px 15px rgba(160, 82, 45, 0.35);
}
.nav-item-club.club-btn-tier-bronze:hover {
    background: linear-gradient(135deg, #a56530 0%, #74400e 100%);
    box-shadow: 0 8px 25px rgba(160, 82, 45, 0.55);
}

.nav-item-club.club-btn-tier-silver {
    background: linear-gradient(135deg, #8fa3b8 0%, #5d7a96 100%);
    box-shadow: 0 4px 15px rgba(100, 130, 160, 0.35);
}
.nav-item-club.club-btn-tier-silver:hover {
    background: linear-gradient(135deg, #7a8fa6 0%, #4a6a84 100%);
    box-shadow: 0 8px 25px rgba(100, 130, 160, 0.55);
}

.nav-item-club.club-btn-tier-gold {
    background: linear-gradient(135deg, #f0b429 0%, #c8860a 100%);
    box-shadow: 0 4px 15px rgba(200, 134, 10, 0.4);
}
.nav-item-club.club-btn-tier-gold:hover {
    background: linear-gradient(135deg, #d49a1a 0%, #a86e00 100%);
    box-shadow: 0 8px 25px rgba(200, 134, 10, 0.6);
}

/* Notification Badge */
.badge-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

/* Responsive adjustments — club dashboard hero */
@media (max-width: 768px) {
    /* Hero shell */
    .dashboard-hero {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }

    /* Avatar + greeting row — shrink avatar, tighten gap */
    .user-info {
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto;   /* Single row — no phantom empty row */
        gap: 0 0.75rem;
        margin-bottom: 0.75rem;
        align-items: start;
    }

    .avatar {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        grid-row: 1 / 2;
    }

    /* Stack welcome text above the action buttons */
    .club-details {
        flex-direction: column;
        gap: 0.6rem;
    }

    .club-details h1 {
        font-size: 1.05rem;
        margin-bottom: 0.1rem;
    }

    .subtitle {
        font-size: 0.78rem;
        margin-top: 0.15rem;
    }

    /* Actions — 2×2 + 1 (or 3×2) grid, full width */
    .club-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
        width: 100%;
    }

    .club-actions .nav-item-club {
        padding: 0.55rem 0.35rem;
        font-size: 0.75rem;
        border-radius: 10px;
        gap: 0.3rem;
    }

    /* Fee hint — tighter */
    .platform-fee-hint {
        font-size: 0.62rem;
        margin-top: 0.3rem;
    }
}

/* Golf Ball CTA Button */
.nav-item.nav-item-cta {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, #e8e8e8 100%),
        repeating-radial-gradient(circle at center, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 3px);
    color: #006a4e;
    padding: 0;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    transform: translateY(-16px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-direction: column;
    gap: 2px;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.nav-item-cta:hover {
    transform: translateY(-18px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.nav-item-cta i,
.nav-item-cta .icon,
.nav-item-cta .icon {
    font-size: 1.5rem;
    margin-bottom: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-item-cta .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-item-cta span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-item-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.05), transparent 30%);
    pointer-events: none;
}

/* Golf ball dimple pattern */
.nav-item-cta::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 35% 12%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 55% 15%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 18%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 25% 35%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 45% 32%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 85% 38%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 15% 55%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 35% 52%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 55% 55%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 58%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 45% 72%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 65% 75%, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 85% 78%, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.join-league-hero-btn {
    background: var(--success-gradient);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.4);
    border: none;
    cursor: pointer;
}

.join-league-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.6);
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 106, 78, 0.5);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 158, 134, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 158, 134, 0.5);
}

.btn-outline {
    color: var(--primary-green);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

/* Professional Join League Modal - Fixed positioning */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal, .modal-content {
    background: var(--surface-white);
    margin: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal,
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn, .modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover, .modal-close-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

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

.modal-body {
    margin-bottom: 2rem;
}

.modal-body .icon-container {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

.modal-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}

.modal-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.modal-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.info-box {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.info-box h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.info-box li:before {
    content: '•';
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Simplified Join League Modal - Sleeper.com inspired */
.join-league-modal-simplified {
    background: var(--surface-white);
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .join-league-modal-simplified {
    transform: scale(1);
}

.join-league-modal-simplified .modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.join-league-modal-simplified .modal-close-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.join-league-modal-simplified .modal-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.join-league-modal-simplified .modal-input-wrapper {
    margin-bottom: 1rem;
}

.join-league-modal-simplified .modal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-light);
    border: 2px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.join-league-modal-simplified .modal-input::placeholder {
    color: var(--text-muted);
}

.join-league-modal-simplified .modal-input:focus {
    border-color: #006a4e;
    background: var(--surface-white);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}

.join-league-modal-simplified .modal-message {
    margin: 0.75rem 0 1.25rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.join-league-modal-simplified .modal-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.join-league-modal-simplified .modal-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.join-league-modal-simplified .modal-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #006a4e 0%, #00805d 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

.join-league-modal-simplified .modal-submit-btn:hover {
    background: linear-gradient(135deg, #00805d 0%, #009668 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 106, 78, 0.4);
}

.join-league-modal-simplified .modal-submit-btn:active {
    transform: translateY(0);
}

.join-league-modal-simplified .modal-submit-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.join-league-modal-simplified .modal-submit-btn:disabled:hover {
    transform: none;
}

/* Helper text below input */
.join-league-modal-simplified .modal-helper {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    line-height: 1.3;
}

/* Live league preview */
.join-league-modal-simplified .modal-league-preview {
    background: var(--surface-light, #f8f9fa);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-left: 3px solid #006a4e;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.join-league-modal-simplified .modal-league-preview.preview-fade {
    animation: previewFadeIn 0.25s ease;
}

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

.join-league-modal-simplified .preview-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 0.2rem;
}

.join-league-modal-simplified .preview-meta {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

/* Browse link below CTA */
.join-league-modal-simplified .modal-browse-link {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    margin: 1rem 0 0;
}

.join-league-modal-simplified .modal-browse-link a {
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color 0.2s;
}

.join-league-modal-simplified .modal-browse-link a:hover {
    color: #006a4e;
}

/* Success state */
.join-league-modal-simplified .modal-success-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.join-league-modal-simplified .modal-success-sub {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.join-league-modal-simplified .modal-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: none;
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 10px;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.join-league-modal-simplified .modal-share-btn:hover {
    background: var(--surface-light, #f8f9fa);
    border-color: var(--text-muted, #9ca3af);
    color: var(--text-primary, #1a1a2e);
}

.join-league-modal-simplified .modal-share-confirm {
    text-align: center;
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
    margin: 0.5rem 0 0;
}

/* Success state CTA as link styled like button */
#join-modal-success-state .modal-submit-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .join-league-modal-simplified {
        padding: 2.5rem 1.75rem;
        max-width: 95%;
    }

    .join-league-modal-simplified .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Fixed Mobile Navigation - Floating design */
.mobile-nav {
    position: fixed;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    height: 72px;
    background: linear-gradient(135deg, #006a4e 0%, #008060 50%, #00a078 100%);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: space-around;
    align-items: center;
    border-radius: 24px;
    z-index: 1000;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Desktop sidebar - Only show on desktop */
.sidebar {
    display: flex;
    flex-direction: column;
}

/* Responsive Navigation Control */
@media (max-width: 1023px) {
    .mobile-nav {
        display: flex;
    }

    /* Remove desktop sidebar scroll architecture on mobile.
       Without the sidebar, the wrapper doesn't need viewport-height
       containment. Let the document flow naturally so there's ONE
       scroll context (the body), not a nested inner scroll. */
    .dashboard-wrapper {
        height: auto;
        overflow: visible;
    }

    .dashboard-wrapper .dashboard-content {
        overflow-y: visible;
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
        max-width: 100vw;
    }

    /* Standalone dashboard-content (no wrapper) — just needs bottom padding for nav */
    .dashboard-content {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
        max-width: 100vw;
    }

    .sidebar {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex !important;
        flex-direction: column;
    }

    .mobile-nav {
        display: none !important;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 60px;
    letter-spacing: 0.025em;
    overflow: hidden;
}

.nav-item i,
.nav-item .icon,
.nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.nav-item .icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Hide text labels in nav items */
.nav-item span {
    display: none;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item.active i,
.nav-item.active .icon,
.nav-item.active .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Hover effects */
.nav-item:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item:hover:not(.active) i,
.nav-item:hover:not(.active) .icon,
.nav-item:hover:not(.active) .icon {
    transform: scale(1.05);
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 106, 78, 0.1) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

/* Active indicator dot */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #006a4e;
    border-radius: 50%;
    animation: activeIndicator 0.3s ease-out;
}

.nav-item:active::before {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.15s ease;
}

@keyframes activeIndicator {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}


/* Stagger animation on load */
.nav-item:nth-child(1) { animation-delay: 0ms; }
.nav-item:nth-child(2) { animation-delay: 50ms; }
.nav-item:nth-child(3) { animation-delay: 100ms; }
.nav-item:nth-child(4) { animation-delay: 150ms; }
.nav-item:nth-child(5) { animation-delay: 200ms; }

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

.nav-item {
    animation: slideUpFade 0.4s ease-out both;
}

/* Mobile More Options */
.more-options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.more-options-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.more-options-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
    padding: 1.25rem 1.5rem;
    z-index: 1020;
    transform: translateY(100%);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    max-height: 72vh;
    overflow-y: auto;
}


.more-options-menu.open {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

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

#close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

#close-menu-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

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

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition);
}

.menu-list li:last-child a {
    border-bottom: none;
}

.menu-list li a:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.menu-list li a i,
.menu-list li a .icon,
.menu-list li a .icon {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.menu-list li a .icon {
    height: 1.25rem;
}

.menu-list .logout-link {
    color: var(--text-red);
}

.menu-list .logout-link:hover {
    color: #c53030;
}

/* --- More Menu Group Labels --- */
.menu-list .menu-group-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.4);
    padding: var(--space-md, 1rem) 0 var(--space-xs, 0.25rem);
    list-style: none;
    border-bottom: none;
}

.menu-list .menu-group-label:first-child {
    padding-top: var(--space-sm, 0.5rem);
}

/* ─── iOS-safe scroll lock ──────────────────────────────────────── */
html.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* ─── Action Sheet (+ button bottom sheet) ─────────────────────── */
.action-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.action-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.action-sheet-overlay.hidden {
    display: none;
}
.action-sheet {
    width: 100%;
    background: var(--surface-white, #fff);
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.action-sheet-overlay.active .action-sheet {
    transform: translateY(0);
}
.action-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--surface-border, #d1d5db);
    border-radius: 999px;
    margin: 0 auto 1rem;
    flex-shrink: 0;
}
.action-sheet-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}
.action-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.action-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.4rem;
    background: var(--surface-light, #f9fafb);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.action-sheet-item:active {
    background: var(--surface-border, #e5e7eb);
}
.action-sheet-item svg,
.action-sheet-item .icon {
    flex-shrink: 0;
    color: var(--primary-green, #006a4e);
}
.action-sheet-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.action-sheet-cancel:active {
    background: var(--surface-light, #f9fafb);
}

/* ─── Org Cards (replaces .club-badge pills in dashboard) ───────── */
.org-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.org-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--surface-light, #f9fafb);
    border: 1px solid var(--surface-border, #e5e7eb);
    border-radius: 10px;
}
.org-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.org-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
}
.org-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}
.org-card-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(0, 106, 78, 0.1);
    color: var(--primary-green, #006a4e);
    white-space: nowrap;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* RESPONSIVE DESIGN */
/* ~~~~~~~~~~~~~~~~~~ */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.55rem 0.4rem;
        border-radius: 10px;
    }

    .stat-card .value {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }

    .stat-card .label {
        font-size: 0.58rem;
        letter-spacing: 0.03em;
    }

    .card-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Dashboard hero — tablet */
    .dashboard-hero {
        padding: 1rem 1.25rem;
    }

    .club-details h1,
    .welcome-message h1 {
        font-size: 1.25rem;
    }

    .subtitle,
    .dashboard-subheading {
        font-size: 0.85rem;
    }

    .club-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .club-actions .nav-item-club {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 0.5rem 0.75rem;
    }

    .dashboard-header {
        margin-bottom: 0.75rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .leagues-section h2 {
        font-size: 1.15rem;
    }

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

    .dashboard-league-card {
        margin-bottom: 0;
    }

    .card-header {
        padding: 1rem;
    }

    .card-info-grid {
        padding: 1rem;
        flex-direction: column;
        gap: 0.875rem;
    }

    .info-item {
        min-width: unset;
    }

    .card-footer {
        padding: 1rem;
    }

    .league-name {
        font-size: 1.125rem;
    }

    .rank-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 0.45rem 0.5rem;
        font-size: 0.72rem;
    }

    .content-container {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 375px) {
    .mobile-nav {
        height: 68px;
        bottom: max(4px, env(safe-area-inset-bottom));
        left: max(4px, env(safe-area-inset-left));
        right: max(4px, env(safe-area-inset-right));
    }

    .dashboard-content {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .nav-item {
        padding: 8px;
        min-width: 48px;
    }

    .nav-item i,
    .nav-item .icon,
    .nav-item .icon {
        font-size: 1.4rem;
    }

    .nav-item .icon {
        width: 1.4rem;
        height: 1.4rem;
    }

    .nav-item-cta {
        width: 56px;
        height: 56px;
        transform: translateY(-14px);
    }

    .nav-item-cta i,
    .nav-item-cta .icon,
    .nav-item-cta .icon {
        font-size: 1.3rem;
    }

    .nav-item-cta .icon {
        width: 1.3rem;
        height: 1.3rem;
    }
}

@media (min-width: 430px) {
    .mobile-nav {
        height: 72px;
    }

    .nav-item {
        padding: 10px 12px;
        min-width: 60px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.dashboard-league-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

.stat-card {
    animation: slideInRight 0.6s ease-out forwards;
}

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

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


/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .dashboard-league-card {
        border-width: 2px;
    }

    .btn {
        border-width: 2px;
    }
}

/* Additional Professional Styles for JavaScript Components */

/* Professional Loading and Error States */
.loading-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.loading-state i,
.loading-state .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.loading-state p {
    margin: 0;
    font-weight: 500;
}

.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.error-state i,
.error-state .icon {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1.5rem;
}

.error-state h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.empty-content {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-muted);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--surface-border);
}

/* Large decorative icon at top of empty state */
.empty-content > i,
.empty-content > .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    opacity: 0.15;
    display: block;
    text-align: center;
}

.empty-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: auto;
}

.empty-content .btn i,
.empty-content .btn .icon {
    font-size: 0.875rem;
    margin: 0;
    opacity: 1;
    color: inherit;
}

/* Professional Schedule Item Styling */
.schedule-item {
    background: var(--background-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.schedule-tour-tabs{
    margin-bottom: 1rem;
}

.schedule-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-title strong {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.schedule-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-meta i,
.schedule-meta .icon {
    color: var(--primary-green);
    width: 14px;
}

/* Professional Status Tags */
.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-tag.upcoming {
    background: linear-gradient(135deg, #4299e1 0%, #63b3ed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.status-tag.completed {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(113, 128, 150, 0.3);
}

.status-tag.live {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

/* Professional Leaderboard Enhancements */
.leader-row {
    background: linear-gradient(135deg, #fef7cd 0%, #fef3c7 100%) !important;
    border-left: 4px solid #fbbf24;
    font-weight: 600;
}

.highlighted {
    background: var(--surface-light) !important;
}

.live-score {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.score-negative {
    color: #16a34a;
    font-weight: 700;
}

.score-positive {
    color: #dc2626;
    font-weight: 700;
}

.score-even {
    color: var(--text-secondary);
    font-weight: 600;
}

/* No Results Search State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Professional Player Profile Grid */
.player-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.player-profile-card {
    background: var(--white);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.player-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

/* Search Bar Enhancement */
.search-bar {
    position: relative;
    margin-bottom: 2rem;
}

.search-bar i,
.search-bar .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Enhanced Form Input States */
.input-group input:focus,
.modal-body input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

/* Professional Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .schedule-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .schedule-title {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .modal, .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

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

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .empty-content,
    .empty-state-enhanced {
        padding: 2rem 1.5rem;
    }

    .empty-content > i,
    .empty-content > .icon,
    .empty-state-enhanced > i,
    .empty-state-enhanced > .icon {
        font-size: 2.5rem;
    }

    .empty-content h3,
    .empty-state-enhanced h3 {
        font-size: 1rem;
    }

    .empty-content p,
    .empty-state-enhanced p {
        font-size: 0.85rem;
    }

    .empty-content .btn,
    .empty-state-enhanced .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .empty-content .btn i,
    .empty-content .btn .icon,
    .empty-state-enhanced .btn i,
    .empty-state-enhanced .btn .icon {
        font-size: 0.8125rem;
    }

    .loading-state,
    .error-state {
        padding: 2rem 1rem;
    }
}

/* ~~~~~~~~~~~~~~~~~~ */
/* FORM CONTROLS - Professional Styling */
/* ~~~~~~~~~~~~~~~~~~ */

/* Select dropdowns and form controls */
select,
.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 2px solid var(--surface-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--surface-white);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
    background-color: var(--surface-white);
}

select:hover,
.form-control:hover {
    border-color: var(--primary-green);
}

select option,
.form-control option {
    padding: 0.5rem;
    background: var(--surface-white);
    color: var(--text-primary);
}

/* Remove hover transform to prevent movement */
select,
.form-control {
    transform: none !important;
}

/* ~~~~~~~~~~~~~~~~~~ */
/* INTERACTIVE UTILITIES - Inspired by Sleeper */
/* ~~~~~~~~~~~~~~~~~~ */

/* Hover Scale Effects */
.hover-scale-sm {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-scale-md {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-scale-lg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-lg:hover {
    transform: scale(1.08);
}

/* Enhanced Focus States - Sleeper Style */
.focus-ring {
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.focus-ring:focus,
.focus-ring:focus-visible {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(0, 106, 78, 0.15);
}

/* Apply enhanced focus to all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.2);
    border-color: var(--primary-green);
}

/* Card Interactive States */
.interactive-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px -10px rgba(0, 106, 78, 0.2),
                0 8px 16px -8px rgba(0, 0, 0, 0.1);
}

.interactive-card:active {
    transform: translateY(-2px) scale(1.01);
}

/* Button Interactive Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 106, 78, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trend-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trend-up::before {
    content: '↑';
    font-size: 1rem;
}

.trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trend-down::before {
    content: '↓';
    font-size: 1rem;
}

.trend-neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.trend-neutral::before {
    content: '—';
    font-size: 0.875rem;
}

/* Smooth Entry Animation */
.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Loading/Active States */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Enhanced Empty States */
.empty-state-enhanced {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.02) 0%, rgba(107, 158, 134, 0.02) 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
}

/* Large decorative icon at top of enhanced empty state */
.empty-state-enhanced > i,
.empty-state-enhanced > .icon {
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.15;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

.empty-state-enhanced h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-enhanced p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.empty-state-enhanced .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: auto;
}

.empty-state-enhanced .btn i,
.empty-state-enhanced .btn .icon {
    font-size: 0.875rem;
    margin: 0;
    opacity: 1;
    color: inherit;
}

/* ======================= */
/* NEW TOUR SCHEDULE STYLES */
/* ======================= */

.schedule-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-header-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.schedule-header-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Schedule Filter Tabs */
.schedule-filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--surface-light);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-border);
}

.schedule-filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.schedule-filter-btn:hover {
    color: var(--primary-green);
    background: rgba(0, 106, 78, 0.05);
}

.schedule-filter-btn.active {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Schedule List Container */
.schedule-list-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.schedule-loading i,
.schedule-loading .icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

/* Month Groups */
.schedule-month-group {
    background: var(--surface-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.schedule-month-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface-light);
    border-bottom: 1px solid var(--surface-border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-month-header i,
.schedule-month-header .icon {
    color: var(--primary-green);
}

.schedule-month-events {
    display: flex;
    flex-direction: column;
}

/* Event Rows */
.schedule-event-row {
    display: grid;
    grid-template-columns: 80px 50px 1fr auto 30px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition);
    cursor: pointer;
}

.schedule-event-row:last-child {
    border-bottom: none;
}

.schedule-event-row:hover {
    background: rgba(0, 106, 78, 0.03);
}

/* Event Date */
.schedule-event-date {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.event-date-month {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.event-date-range {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tour Badge */
.schedule-event-tour {
    display: flex;
    justify-content: center;
}

.schedule-tour-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-tour-badge.tour-pga {
    background: #006a4e;
    color: white;
}

.schedule-tour-badge.tour-dp {
    background: #c9a227;
    color: #1a1a1a;
}

.schedule-tour-badge.tour-major {
    background: linear-gradient(135deg, #ffd700 0%, #f4c430 100%);
    color: #1a1a1a;
    border: 1px solid #d4a800;
    font-weight: 700;
}

/* Event Row - Clickable */
.schedule-event-row {
    cursor: pointer;
}

.schedule-event-row.expanded {
    background: rgba(0, 106, 78, 0.05);
    border-left: 3px solid var(--primary-green);
}

.schedule-event-row.expanded .schedule-event-action i,
.schedule-event-row.expanded .schedule-event-action .icon {
    color: var(--primary-green);
}

/* Tournament History Panel */
.tournament-history-panel {
    background: var(--surface-light);
    border-left: 3px solid var(--primary-green);
    margin: 0;
    padding: 1.25rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 1.25rem;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 1.25rem;
    }
}

.tournament-history-panel.loading {
    padding: 1rem 1.25rem;
}

.history-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-loading i,
.history-loading .icon {
    color: var(--primary-green);
}

.tournament-history-content {
    max-width: 100%;
}

.history-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface-border);
}

.history-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-header h4 i,
.history-header h4 .icon {
    color: var(--primary-green);
}

.history-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.history-years {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-year-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.history-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-course {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-course i,
.history-course .icon {
    color: var(--primary-green);
    font-size: 0.8rem;
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.history-date i,
.history-date .icon {
    font-size: 0.7rem;
}

.history-winner {
    display: flex;
    align-items: center;
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
}

.winner-badge i,
.winner-badge .icon {
    font-size: 0.7rem;
}

.no-winner {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Tournament History */
@media (max-width: 768px) {
    .history-year-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .history-year {
        font-size: 0.9rem;
    }

    .history-winner {
        justify-content: flex-start;
    }
}

/* Event Details */
.schedule-event-details {
    min-width: 0;
}

.event-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location i,
.event-location .icon {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Event Status */
.schedule-event-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 140px;
}

.schedule-winner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.winner-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.winner-label i,
.winner-label .icon {
    font-size: 0.6rem;
}

.winner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.schedule-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-live 2s infinite;
}

.schedule-live-badge i,
.schedule-live-badge .icon {
    font-size: 0.5rem;
}

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

/* Event Action Arrow */
.schedule-event-action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.schedule-event-action i,
.schedule-event-action .icon {
    font-size: 0.85rem;
    transition: var(--transition);
}

.schedule-event-row:hover .schedule-event-action i {
    color: var(--primary-green);
    transform: translateX(3px);
}

/* Responsive Schedule Styles */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-filter-btn {
        flex: 1;
        text-align: center;
        min-width: max-content;
    }

    .schedule-event-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .schedule-event-date {
        order: 1;
    }

    .schedule-event-tour {
        order: 2;
        justify-content: flex-start;
    }

    .schedule-event-details {
        order: 3;
    }

    .schedule-event-status {
        order: 4;
        justify-content: flex-start;
        min-width: auto;
    }

    .schedule-winner {
        align-items: flex-start;
    }

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

    .schedule-event-action {
        display: none;
    }
}

@media (max-width: 480px) {
    .schedule-page-container {
        padding: 0.75rem;
    }

    .schedule-header-text h1 {
        font-size: 1.5rem;
    }

    .schedule-month-header {
        padding: 0.75rem 1rem;
    }

    .schedule-event-row {
        padding: 0.75rem;
    }
}

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

    .hover-scale-sm:hover,
    .hover-scale-md:hover,
    .hover-scale-lg:hover,
    .interactive-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CLUB DASHBOARD V2 — Status Bar, Priority Actions, Panels
   ═══════════════════════════════════════════════════════════════ */

/* ── Section 1: Status Bar ─────────────────────────────────────── */
.dash-status-bar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 0.625rem 1rem;
  margin: 0 0 0.75rem 0;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.dash-status-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.dstat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}

.dstat .icon { font-size: 0.875rem; flex-shrink: 0; }
.dstat strong { color: var(--text-primary); font-weight: 600; }
.dstat__label { color: var(--text-muted); font-size: 0.75rem; }

.dstat--tier {
  font-weight: 600;
  border: 1px solid transparent;
}

.dstat--tier-bronze { background: rgba(205,127,50,0.1); color: #7a4f1e; border-color: rgba(205,127,50,0.3); }
.dstat--tier-silver { background: rgba(120,120,140,0.1); color: #444; border-color: rgba(120,120,140,0.3); }
.dstat--tier-gold   { background: rgba(212,175,55,0.1);  color: #7a6200; border-color: rgba(212,175,55,0.3); }

.dstat--good    { color: var(--primary-green); }
.dstat--warn    { color: #d97706; }
.dstat--neutral { color: var(--text-muted); }
.dstat--sync    { color: var(--text-muted); font-style: italic; }

/* Invite button in status bar */
.dstat--invite {
  margin-left: auto;
  background: var(--primary-green);
  color: white !important;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
}
.dstat--invite:hover { background: #005a40; }
.dstat--invite .icon { color: white; }

/* ── Invite Members Modal ─────────────────────────────────────── */
.dsb-invite-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dsb-invite-modal {
  background: var(--surface-white, #fff);
  border-radius: var(--border-radius-lg, 12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.dsb-invite-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--surface-border, #e5e7eb);
  background: linear-gradient(135deg, #006a4e, #004d38);
  color: white;
}

.dsb-invite-modal__header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.dsb-invite-modal__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.15s;
}
.dsb-invite-modal__close:hover { color: white; }

.dsb-invite-modal__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dsb-invite-modal__intro {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.5;
  margin: 0;
}

/* Code block */
.dsb-invite-code-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.dsb-invite-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #166534;
}

.dsb-invite-code {
  font-family: 'Courier New', monospace;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #166534;
}

/* Link block */
.dsb-invite-link-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsb-invite-link-row {
  display: flex;
  gap: 0.5rem;
}

.dsb-invite-link-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border: 1.5px solid var(--surface-border, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  background: #f9fafb;
  color: var(--text-secondary, #6b7280);
  min-width: 0;
  cursor: pointer;
}

.dsb-invite-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--primary-green, #006a4e);
  color: white;
  border: none;
  border-radius: var(--border-radius, 8px);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.dsb-invite-copy-btn:hover { background: #005a40; }
.dsb-invite-copy-btn:disabled { opacity: 0.7; cursor: default; }

/* "or share via" divider */
.dsb-invite-or {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
}

.dsb-invite-share-btns {
  display: flex;
  gap: 0.5rem;
}

.dsb-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--border-radius, 8px);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.dsb-share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.dsb-share-whatsapp { background: #25d366; color: white; }
.dsb-share-email    { background: #3b82f6; color: white; }

@media (max-width: 480px) {
  .dsb-invite-modal__body { padding: 1.1rem; }
  .dsb-invite-code { font-size: 1.75rem; }
  .dsb-invite-share-btns { flex-direction: column; }
}

/* ── Section 2: Priority Actions ───────────────────────────────── */
.dash-priority-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dpa-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid transparent;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.dpa-card--p1 { border-left-color: #dc2626; }
.dpa-card--p2 { border-left-color: #d97706; }
.dpa-card--p3 { border-left-color: var(--primary-green); }

.dpa-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.dpa-card--p1 .dpa-card__icon { background: rgba(220,38,38,0.08);  color: #dc2626; }
.dpa-card--p2 .dpa-card__icon { background: rgba(217,119,6,0.08);  color: #d97706; }
.dpa-card--p3 .dpa-card__icon { background: rgba(0,106,78,0.08);   color: var(--primary-green); }

.dpa-card__body {
  flex: 1;
  min-width: 0;
}

.dpa-card__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dpa-card__desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dpa-card__cta {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  font-size: 0.775rem;
}

.dash-all-clear {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 106, 78, 0.05);
  border: 1px solid rgba(0, 106, 78, 0.2);
  border-radius: var(--border-radius);
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ── Section 3: Active Leagues (details/summary) ───────────────── */
.dash-active-leagues {
  margin-bottom: 1.75rem;
}

.dal-group {
  margin-bottom: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.dal-group__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0.875rem 1rem;
}

.dal-group__heading--live {
  color: var(--primary-green);
}

.dal-group summary.dal-group__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  cursor: pointer;
  list-style: none;
  padding: 0.875rem 1rem;
  user-select: none;
  transition: background 0.15s;
}

.dal-group summary.dal-group__summary:hover {
  background: #f3f4f6;
}

/* Hide native browser triangle */
.dal-group summary.dal-group__summary::-webkit-details-marker { display: none; }
.dal-group summary.dal-group__summary::marker { display: none; }

/* Title row — chevron + icon + label + count in one flex row */
.dal-group__summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
}

/* Chevron LEFT — closed = › (pointing right), open = › rotated 90° (pointing down) */
.dal-group__summary-title::before {
  content: '›';
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dal-group[open] .dal-group__summary-title::before {
  transform: rotate(90deg);
}

.dal-group__summary--muted .dal-group__summary-title {
  color: var(--text-muted);
}

/* Subtitle — rendered below the title row */
.dal-group__subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  padding-left: 1.5rem;
}

.dal-prize-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.dal-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.35rem;
  background: var(--surface-light);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.dal-group__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.club-leagues-container {
  margin-top: 0.5rem;
}

/* ── Sections 4+5: Performance Grid ────────────────────────────── */
.dash-perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

/* ── Panel Base (used by Sections 4-7) ─────────────────────────── */
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.dash-panel__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
}

.dash-panel__subheading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0 0.6rem 0;
}

.dash-panel__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.dash-panel__hint a {
  color: var(--primary-green);
}

.dash-panel__empty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
}

.dash-panel__footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-border);
}

/* ── Performance stats rows ─────────────────────────────────────── */
.dash-perf-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--surface-light);
  border-radius: 6px;
}

.dps-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dps-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dps-value--good { color: var(--primary-green); }
.dps-value--warn { color: #d97706; }
.dps-value--low  { color: #dc2626; }

/* ── Leaderboard mini (top 3) ──────────────────────────────────── */
.dash-leaderboard-mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dlm-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-light);
  font-size: 0.825rem;
}

.dlm-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dlm-name { flex: 1; font-weight: 500; color: var(--text-primary); }
.dlm-pts  { color: var(--text-muted); font-size: 0.775rem; }

/* ── Recent entries list ────────────────────────────────────────── */
.dash-recent-entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dre-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-light);
  font-size: 0.8rem;
  overflow: hidden;
}

.dre-user  { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.dre-league { flex: 1; color: var(--text-secondary); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dre-time  { color: var(--text-muted); font-size: 0.725rem; white-space: nowrap; flex-shrink: 0; }

/* ── Revenue Panel ──────────────────────────────────────────────── */
.dash-rev-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .dash-rev-summary { grid-template-columns: repeat(2, 1fr); }
}

.drev-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--surface-light);
  border-radius: 8px;
}

.drev-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.drev-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-league-revenue {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dlr-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-light);
  font-size: 0.8rem;
}

.dlr-name    { flex: 1; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlr-entries { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.dlr-rev     { font-weight: 700; color: var(--primary-green); white-space: nowrap; }

/* ── Activity Feed ──────────────────────────────────────────────── */
.dash-panel--activity,
.dash-panel--revenue {
  /* inherits .dash-panel */
}

.dash-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-light);
  border-radius: 8px;
  font-size: 0.825rem;
}

.dal-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,106,78,0.08);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dal-item__body {
  flex: 1;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dal-item__user   { font-weight: 600; color: var(--text-primary); }
.dal-item__league { font-weight: 500; color: var(--primary-green); }
.dal-item__time   { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 600px) {
  .dash-status-bar { padding: 0.5rem 0.75rem; }
  .dstat { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
  .dpa-card { flex-wrap: wrap; }
  .dpa-card__cta { width: 100%; text-align: center; }
  .dash-panel { padding: 1rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — /clubs  SaaS conversion landing page  (v2)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.hiw-page { background: var(--background-light); }

/* ── Shared section primitives ────────────────────────────────────────────── */
.hiw-section {
  padding: 5rem 1.5rem;
  background: var(--white);
}
.hiw-section--alt { background: var(--surface-light); }

.hiw-container {
  max-width: 960px;
  margin: 0 auto;
}
.hiw-container--narrow { max-width: 680px; }

.hiw-section__title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.hiw-section__sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 2.75rem;
}

/* ── CTA button (reused across sections) ─────────────────────────────────── */
.hiw-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--border-radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  background: var(--primary-green);
  color: white;
}
.hiw-cta-btn:hover { background: #004d3a; color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hiw-cta-btn--inverted { background: white; color: var(--primary-green); }
.hiw-cta-btn--inverted:hover { background: rgba(255,255,255,0.92); color: var(--primary-green); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Outline variant — used alongside inverted on dark backgrounds */
.hiw-cta-btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}
.hiw-cta-btn--outline:hover { background: rgba(255,255,255,0.12); color: white; border-color: white; transform: translateY(-2px); }

/* Outline variant on light/dark CTA section backgrounds */
.hiw-cta-btn--outline-dark {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.hiw-cta-btn--outline-dark:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; transform: translateY(-2px); }

/* Hero action row */
.hiw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* CTA section action row */
.hiw-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Book-a-Demo Modal ─────────────────────────────────────────────────────── */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.demo-modal {
  background: var(--surface-white, #fff);
  border-radius: var(--border-radius-lg, 12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.demo-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.75rem 0;
}

.demo-modal__header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin: 0 0 0.25rem;
}

.demo-modal__header p {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}

.demo-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-top: -0.25rem;
}
.demo-modal__close:hover { color: var(--text-primary, #1a1a2e); }

.demo-modal__form {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
}

.demo-required { color: #dc2626; }

.demo-field input {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-family, inherit);
  border: 2px solid var(--surface-border, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  background: var(--surface-white, #fff);
  color: var(--text-primary, #1a1a2e);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.demo-field input:focus {
  outline: none;
  border-color: var(--primary-green, #006a4e);
  box-shadow: 0 0 0 4px rgba(0,106,78,0.1);
}

.demo-field input::placeholder { color: var(--text-muted, #9ca3af); font-weight: 400; }

.demo-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary-green, #006a4e);
  color: white;
  border: none;
  border-radius: var(--border-radius, 8px);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 0.25rem;
}
.demo-modal__submit:hover { background: #004d3a; transform: translateY(-1px); }
.demo-modal__submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.demo-modal__note {
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Flash bar on clubs landing page */
.hiw-flash {
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius, 8px);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hiw-flash--success { background: #006a4e; color: white; }
.hiw-flash--danger  { background: #dc2626; color: white; }

@media (max-width: 480px) {
  .hiw-hero__actions { flex-direction: column; align-items: center; }
  .hiw-cta-actions   { flex-direction: column; align-items: center; }
  .demo-modal__header,
  .demo-modal__form  { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── 1. Hero ──────────────────────────────────────────────────────────────── */
.hiw-hero {
  background: var(--primary-gradient);
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
}
.hiw-hero__inner { max-width: 780px; margin: 0 auto; }
.hiw-hero__headline {
  font-size: 2.85rem;
  font-weight: 800;
  color: white;
  line-height: 1.18;
  margin: 0 0 2rem;
}

/* Reassurance pill row */
.hiw-hero__pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.hiw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── 2. Trust band ────────────────────────────────────────────────────────── */
.hiw-trust-band {
  background: #0d2b1f;
  padding: 1.25rem 1.5rem;
}
.hiw-trust-band__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hiw-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}
.hiw-trust-item i { color: #7fffd4; font-size: 0.9rem; }

/* ── 3. Step cards ────────────────────────────────────────────────────────── */
.hiw-section--steps { background: var(--white); }

.hiw-step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}
.hiw-step-card {
  position: relative;
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.hiw-step-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.hiw-step-card__num {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.625rem;
  height: 1.625rem;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-step-card__icon {
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}
.hiw-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}
.hiw-step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── 4. Timeline ──────────────────────────────────────────────────────────── */
.hiw-section--timeline { background: var(--surface-light); }

.hiw-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 0.5rem;
}
.hiw-timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(12.5% + 0.75rem);
  right: calc(12.5% + 0.75rem);
  height: 2px;
  background: linear-gradient(to right, var(--primary-green), rgba(0,106,78,0.2));
  z-index: 0;
}
.hiw-tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
.hiw-tl-item__dot {
  width: 3rem;
  height: 3rem;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border: 3px solid var(--surface-light);
  flex-shrink: 0;
}
.hiw-tl-item__label {
  display: block;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.hiw-tl-item__body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── 5. Social proof ──────────────────────────────────────────────────────── */
.hiw-section--proof { background: var(--white); }

.hiw-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.hiw-quote {
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  position: relative;
}
.hiw-quote__mark {
  font-size: 3.5rem;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.25;
  font-family: Georgia, serif;
  margin-top: -0.5rem;
}
.hiw-quote__text {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.hiw-quote__attr {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── 6. Stat tiles ────────────────────────────────────────────────────────── */
.hiw-section--example { background: var(--surface-light); }

.hiw-stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.hiw-stat-tile {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hiw-stat-tile--result {
  background: var(--primary-green);
  border-color: var(--primary-green);
}
.hiw-stat-tile--result .hiw-stat-tile__val,
.hiw-stat-tile--result .hiw-stat-tile__lbl { color: white; }
.hiw-stat-tile__emoji { font-size: 1.5rem; }
.hiw-stat-tile__val { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.hiw-stat-tile__lbl { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.hiw-example-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 1.25rem 0 0; font-style: italic; }

/* ── 7. Member actions ────────────────────────────────────────────────────── */
.hiw-section--members { background: var(--white); }

.hiw-member-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hiw-member-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem 2.25rem;
  flex: 1;
  min-width: 160px;
  text-align: center;
}
.hiw-member-action__emoji { font-size: 2rem; }
.hiw-member-action span:last-child { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }

/* ── 8. Risk removal ──────────────────────────────────────────────────────── */
.hiw-section--risk {
  background: #f7f9f7;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.hiw-no-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hiw-no-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}
.hiw-no-item__cross {
  width: 1.75rem;
  height: 1.75rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── 9. Final CTA ─────────────────────────────────────────────────────────── */
.hiw-cta-section {
  background: var(--primary-gradient);
  text-align: center;
  padding: 5.5rem 1.5rem;
}
.hiw-cta-section h2 { color: white; font-size: 2.25rem; font-weight: 800; margin: 0 0 0.75rem; }
.hiw-cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 0 auto 2.25rem; max-width: 520px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hiw-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .hiw-timeline::before { display: none; }
  .hiw-stat-tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hiw-hero                { padding: 4rem 1.25rem 3.5rem; }
  .hiw-hero__headline      { font-size: 2rem; }
  .hiw-section             { padding: 3.5rem 1.25rem; }
  .hiw-cta-section         { padding: 3.5rem 1.25rem; }
  .hiw-step-cards          { grid-template-columns: 1fr 1fr; }
  .hiw-timeline            { grid-template-columns: 1fr; }
  .hiw-tl-item             { flex-direction: row; text-align: left; gap: 1rem; }
  .hiw-tl-item__dot        { margin-bottom: 0; flex-shrink: 0; }
  .hiw-stat-tiles          { grid-template-columns: 1fr 1fr; }
  .hiw-member-actions      { flex-direction: column; }
  .hiw-cta-btn             { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .hiw-hero__headline { font-size: 1.75rem; }
  .hiw-step-cards     { grid-template-columns: 1fr; }
}

/* ── Tournament Countdown Strip (base.html, logged-out) ──────────────────── */
.tc-strip {
  position: relative;
  background: linear-gradient(90deg, #006a4e, #10b981);
  color: white;
  padding: 0.55rem 3rem 0.55rem 1rem;
  z-index: 1100;
}
.tc-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.tc-badge { font-size: 1rem; flex-shrink: 0; }
.tc-text { flex: 1; min-width: 0; }
.tc-countdown {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}
.tc-unit { display: flex; align-items: baseline; gap: 0.1rem; }
.tc-unit small { font-size: 0.65rem; opacity: 0.8; }
.tc-sep { opacity: 0.6; }
.tc-cta {
  background: white;
  color: #006a4e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tc-cta:hover { opacity: 0.9; color: #006a4e; text-decoration: none; }
.tc-dismiss {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.tc-dismiss:hover { color: white; }
.tc-name-short { display: none; }
@media (max-width: 540px) {
  .tc-strip { padding: 0.5rem 2.5rem 0.5rem 0.75rem; }
  .tc-inner { gap: 0.3rem 0.5rem; align-items: center; }
  .tc-badge { display: none; }
  .tc-name-full { display: none; }
  .tc-name-short { display: inline; }
  .tc-text { flex-basis: 100%; font-size: 0.78rem; }
  .tc-countdown { font-size: 0.82rem; padding: 0.15rem 0.45rem; }
  .tc-cta { font-size: 0.75rem; padding: 0.25rem 0.55rem; margin-left: auto; }
}

/* ── Founding Player Badge ───────────────────────────────────────────────── */
.founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.leagues-header-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.founding-star {
  display: inline-flex;
  align-items: center;
  color: #d97706;
  font-size: 0.8rem;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

/* ── Pre-deadline leaderboard bar ───────────────────────────────────────── */
.leaderboard-pre-deadline-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #fef9c3;
  border-bottom: 1px solid #fde68a;
  font-size: 0.85rem;
  color: #92400e;
}
.leaderboard-main-row:not([data-target]) {
  cursor: default;
}
.leaderboard-main-row:not([data-target]):hover {
  background: inherit;
}

/* ── Activity Signals Widget ─────────────────────────────────────────────── */
.as-widget {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.as-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.as-stats { display: flex; flex-direction: column; gap: 0.5rem; }
.as-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #4b5563;
}
.as-icon { color: #006a4e; flex-shrink: 0; }
.as-founding-callout {
  margin-top: 1rem;
  background: #fef3c7;
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  font-size: 0.82rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Tournament Promo Widget ─────────────────────────────────────────────── */
.tp-promo-widget {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.tp-promo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tp-promo-icon { font-size: 1.5rem; flex-shrink: 0; }
.tp-promo-title { font-weight: 700; font-size: 0.95rem; }
.tp-promo-sub { font-size: 0.8rem; opacity: 0.85; }
.tp-promo-cd {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  flex-shrink: 0;
}
.tp-promo-cd-unit { display: flex; align-items: baseline; gap: 0.1rem; }
.tp-promo-cd-unit small { font-size: 0.65rem; opacity: 0.8; }
.tp-promo-cd-sep { opacity: 0.5; }
.tp-promo-social {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tp-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  color: #065f46;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
}
.tp-promo-cta:hover { opacity: 0.9; color: #065f46; text-decoration: none; }

/* ── Homepage Hero — Tournament Block ───────────────────────────────────── */
.hero-tournament-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.hero-tournament-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
.hc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  min-width: 58px;
}
.hc-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hc-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  margin-top: 0.15rem;
}
.hc-sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero-activity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
}
.hact-item { white-space: nowrap; }
.hact-sep { opacity: 0.5; }
.btn-hero-tournament {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  color: #006a4e;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-hero-tournament:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #006a4e;
  text-decoration: none;
}


/* === icons.css (1,337 bytes) === */
/* ==========================================================
   SVG Icon System — CSS Utilities
   Replaces Font Awesome webfont rendering with inline SVGs.
   Icons inherit color from parent via currentColor.
   ========================================================== */

/* Base icon style — matches Font Awesome's inline behavior */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em; /* Matches FA's baseline alignment */
  overflow: hidden;
  flex-shrink: 0;
}

/* Size variants — matches Font Awesome's size classes */
.icon-xs  { width: 0.75em; height: 0.75em; }
.icon-sm  { width: 0.875em; height: 0.875em; }
/* .icon-md is the default 1em — no extra class needed */
.icon-lg  { width: 1.25em; height: 1.25em; }
.icon-xl  { width: 1.5em; height: 1.5em; }
.icon-2x  { width: 2em; height: 2em; }
.icon-3x  { width: 3em; height: 3em; }

/* Spin animation — replaces fa-spin */
.icon.spin,
.icon-spin {
  animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Pulse animation — replaces fa-pulse */
.icon.pulse,
.icon-pulse {
  animation: icon-spin 1s steps(8) infinite;
}

/* Fixed width — replaces fa-fw (useful in menus/lists) */
.icon-fw {
  width: 1.25em;
  text-align: center;
}


