/* ===== main.bundled.css — ALL base styles in one file ===== */
/* Eliminates @import waterfall + extra <link> tags */
/* Do NOT edit — regenerate with: python3 scripts/bundle_css.py */

/* ====== 00-settings/_variables.css ====== */
/* Theme Variables */
:root {
    /* ========================================
     * SPACING SCALE
     * Based on 4px base unit for consistent rhythm
     * ======================================== */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-xxl: 3rem;     /* 48px */

    /* ========================================
     * TYPOGRAPHY
     * Font weights and sizes
     * ======================================== */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */

    /* ========================================
     * BORDER RADIUS
     * Consistent corner rounding
     * ======================================== */
    --border-radius-sm: 0.25rem;  /* 4px */
    --border-radius-md: 0.5rem;   /* 8px */
    --border-radius-lg: 0.75rem;  /* 12px */
    --border-radius-xl: 1rem;     /* 16px */

    /* ========================================
     * SHADOWS
     * Elevation and depth
     * ======================================== */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);

    /* ========================================
     * COLOR SCALES
     * Brand color palette from brand-color-palette.md
     * ======================================== */

    /* Teal Scale - Primary Brand Color */
    --color-teal-50: #ECFDF5;
    --color-teal-100: #D1FAE5;
    --color-teal-200: #A7F3D0;
    --color-teal-300: #6EE7B7;
    --color-teal-400: #34D399;
    --color-teal-500: #10B981;
    --color-teal-600: #059669;
    --color-teal-700: #047857;
    --color-teal-800: #065F46;
    --color-teal-900: #064E3B;

    /* Neutral Scale - Grays for text, backgrounds, borders */
    --neutral-50: #F8F9FA;
    --neutral-100: #E9ECEF;
    --neutral-200: #DEE2E6;
    --neutral-300: #CED4DA;
    --neutral-400: #ADB5BD;
    --neutral-500: #6C757D;
    --neutral-600: #495057;
    --neutral-700: #343A40;
    --neutral-800: #212529;
    --neutral-900: #121416;

    /* ========================================
     * SEMANTIC COLOR TOKENS
     * Meaningful names for consistent usage
     * ======================================== */

    /* Brand Tokens */
    --brand-primary: var(--color-teal-500);
    --brand-primary-light: var(--color-teal-50);
    --brand-primary-dark: var(--color-teal-700);

    /* Feedback Tokens */
    --feedback-success: #28A745;
    --feedback-success-light: #D4EDDA;
    --feedback-error: #DC3545;
    --feedback-error-light: #F8D7DA;
    --feedback-warning: #FFC107;
    --feedback-warning-light: #FFF3CD;
    --feedback-info: #17A2B8;
    --feedback-info-light: #D1ECF1;

    /* ========================================
     * LIGHT MODE COLORS
     * Refined Off-White Palette
     * ======================================== */
    --bg-primary: var(--neutral-50);
    --bg-secondary: #F1F3F4;
    --bg-card: #FCFDFE;
    --bg-elevated: var(--neutral-100);
    --text-primary: #2F3349;
    --text-secondary: var(--neutral-500);
    --text-muted: var(--neutral-400);
    --nav-bg: var(--neutral-50);
    --nav-text: var(--neutral-800);
    --border-color: #E5E7EB;
    --border-subtle: var(--neutral-100);
    --border-strong: var(--neutral-300);
    --accent-subtle: #D1D5DB;
    --graph-line-color: var(--accent-subtle);

    /* Text styles */
    --heading-color: var(--text-primary);
    --emphasis-color: var(--text-secondary);

    /* Table styles */
    --table-bg: var(--bg-card);
    --table-header-bg: var(--bg-secondary);
    --table-stripe-bg: var(--bg-primary);

    /* Form elements */
    --input-bg: var(--bg-card);
    --toggle-container-bg: var(--border-color);
    --toggle-bg: var(--accent-subtle);
    --toggle-handle: var(--bg-card);
    --button-text: #FFFFFF;

    /* Field and player specific */
    --field-color: #4a8f29;
    --player-bg: var(--bg-card);
    --player-shadow: rgba(0,0,0,0.04);
    --name-bg: rgba(252, 253, 254, 0.9);
    --line-marker: rgba(209, 213, 219, 0.7);

    /* Button colors - Reference teal scale */
    --primary-color: var(--color-teal-500);
    --primary-color-hover: var(--color-teal-600);
    --primary-color-active: var(--color-teal-700);
    --button-bg: var(--neutral-600);
    --button-hover: var(--neutral-700);
    --button-purchase-bg: var(--color-teal-500);
    --button-purchase-hover: var(--color-teal-600);
    --button-secondary-bg: var(--neutral-500);
    --button-secondary-hover: #545B62;

    /* Card colors */
    --card-bg-color: var(--bg-card);
    --card-bg-color-rgb: 252, 253, 254;
    --accent-primary: var(--brand-primary);
    --accent-primary-rgb: 16, 185, 129;

    /* Status colors - Reference feedback tokens */
    --status-success: var(--feedback-success);
    --status-error: var(--feedback-error);
    --status-warning: var(--feedback-warning);
    --status-info: var(--feedback-info);

    /* Chart Colors (Light Mode) - Neutral tones */
    --chart-team1-bg: rgba(209, 213, 219, 0.5);
    --chart-team1-border: var(--accent-subtle);
    --chart-team2-bg: rgba(229, 231, 235, 0.5);
    --chart-team2-border: var(--border-color);

    /* Aliases for backward compatibility */
    --bg-color: var(--bg-primary);
    --cta-primary: var(--primary-color);
    --cta-primary-hover: var(--primary-color-hover);
    --error: var(--status-error);
    --success: var(--status-success);
    --warning: var(--status-warning);

    /* ========================================
     * RESPONSIVE BREAKPOINTS
     * Standardized breakpoints for mobile-first design
     * ======================================== */
    --bp-xs: 320px;
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;

    /* Touch-friendly design (Apple HIG) */
    --touch-target-min: 44px;

    /* Mobile spacing scale */
    --mobile-spacing-xs: 0.25rem;
    --mobile-spacing-sm: 0.5rem;
    --mobile-spacing-md: 1rem;
    --mobile-spacing-lg: 1.5rem;

    /* Mobile container padding - edge-to-edge support */
    --container-padding-mobile: 4px;
    --container-padding-tablet: 1rem;
    --gutter-mobile: 8px;
    --gutter-tablet: 1rem;

    /* Team logo responsive sizes */
    --logo-mobile-sm: 60px;
    --logo-mobile-md: 70px;
    --logo-mobile-lg: 80px;
}

/* ========================================
 * DARK MODE - Slate Palette
 * Per brand-color-palette.md specification
 * ======================================== */
[data-theme="dark"] {
    /* Backgrounds - Slate palette */
    --bg-primary: #0F172A;      /* Slate-900 */
    --bg-secondary: #1E293B;    /* Slate-800 */
    --bg-card: #1E293B;         /* Slate-800 */
    --bg-elevated: #334155;     /* Slate-700 */

    /* Text - Slate palette */
    --text-primary: #F1F5F9;    /* Slate-100 */
    --text-secondary: #94A3B8;  /* Slate-400 */
    --text-muted: #64748B;      /* Slate-500 */
    --nav-bg: #0F172A;          /* Slate-900 */
    --nav-text: #F1F5F9;        /* Slate-100 */

    /* Borders - Slate palette */
    --border-color: #334155;    /* Slate-700 */
    --border-subtle: #1E293B;   /* Slate-800 */
    --border-strong: #475569;   /* Slate-600 */
    --accent-subtle: #64748B;   /* Slate-500 */
    --graph-line-color: var(--accent-subtle);

    /* Text styles */
    --heading-color: var(--text-primary);
    --emphasis-color: var(--text-secondary);

    /* Table styles */
    --table-bg: var(--bg-card);
    --table-header-bg: var(--bg-secondary);
    --table-stripe-bg: var(--bg-primary);

    /* Form elements */
    --input-bg: #334155;        /* Slate-700 */
    --toggle-container-bg: var(--border-color);
    --toggle-bg: var(--accent-subtle);
    --toggle-handle: var(--bg-card);
    --button-text: #F1F5F9;

    /* Button colors - Shifted lighter for visibility */
    --primary-color: var(--color-teal-400);     /* Brighter in dark mode */
    --primary-color-hover: var(--color-teal-500);
    --primary-color-active: var(--color-teal-600);
    --button-bg: #475569;       /* Slate-600 */
    --button-hover: #64748B;    /* Slate-500 */
    --button-purchase-bg: var(--color-teal-400);
    --button-purchase-hover: var(--color-teal-500);
    --button-secondary-bg: #64748B;
    --button-secondary-hover: #94A3B8;

    /* Card colors */
    --card-bg-color: var(--bg-card);
    --card-bg-color-rgb: 30, 41, 59;
    --accent-primary: var(--color-teal-400);
    --accent-primary-rgb: 52, 211, 153;

    /* Status colors - Adjusted for dark backgrounds */
    --status-success: #4ADE80;  /* Green-400 */
    --status-error: #F87171;    /* Red-400 */
    --status-warning: #FBBF24;  /* Amber-400 */
    --status-info: #38BDF8;     /* Sky-400 */

    /* Chart Colors (Dark Mode) - Slate tones */
    --chart-team1-bg: rgba(100, 116, 139, 0.5);
    --chart-team1-border: var(--accent-subtle);
    --chart-team2-bg: rgba(51, 65, 85, 0.5);
    --chart-team2-border: var(--border-color);

    /* Aliases for backward compatibility */
    --bg-color: var(--bg-primary);
    --cta-primary: var(--primary-color);
    --cta-primary-hover: var(--primary-color-hover);
    --error: var(--status-error);
    --success: var(--status-success);
    --warning: var(--status-warning);
}


/* ====== 01-base/_reset.css ====== */
/* Base Reset and Layout */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: color 0.3s ease, background-color 0.3s ease;
}


/* Main Layout */
.main-wrapper {
    min-height: calc(100% - 56px - 60px);
    flex: 1 0 auto;
    padding: 16px;
}

.container-fluid {
    width: 100%;
    padding: 0 10px;
    margin-right: auto;
    margin-left: auto;
}

/* Animations */
@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

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

/* Utility Classes */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Theme Toggle */
#theme-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

#theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#theme-toggle i {
    font-size: 0.875rem;
}


/* ====== 01-base/_typography.css ====== */
/* Font Imports */
@font-face {
    font-family: 'UpperClock';
    src: url('../fonts/Upper_Clock_WOFF2/UpperClock-Regular.woff2') format('woff2'),
         url('../fonts/Upper_Clock_WOFF/UpperClock-Regular.woff') format('woff'),
         url('../fonts/Upper_Clock_TTF/UpperClock-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Google Fonts loaded via <link> tags in base.html — not @import */

/* Base Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
}

    font-weight: bold;
    margin-bottom: 30px;
    text-align: left;
}

    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

    font-weight: bold;
    margin-bottom: 15px;
    text-align: left;
}

/* Text Styles */
p, ul, li {
    font-family: 'Inter', sans-serif;
    font-size: smaller;
    color: var(--text-primary);
}

    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* Responsive Typography */
@media (min-width: 768px) {
    }

    }

    }
}


/* ====== 02-layout/_navigation.css ====== */
/* Navbar */
.navbar-main {
    background-color: var(--nav-bg); /* Use global variable */
    color: var(--nav-text); /* Use global variable */
    z-index: 1030;
    min-height: 60px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border-color); /* Add subtle border */
    /* Ensure navbar is always opaque */
    opacity: 1 !important;
}

.navbar-brand {
    /* width: 30%; */ /* Remove fixed width */
    display: flex;
    align-items: center; /* Vertically align */
    font-family: 'Saira Condensed', sans-serif; /* Keep font */
    font-size: 1rem; /* Increase size slightly */
    color: var(--nav-text); /* Use global variable */
    font-weight: 600; /* Make brand bolder */
    margin-right: 1.5rem; /* Add margin to the right */
    padding: 0.25rem 0; /* Add vertical padding */
}

/* Logo styling */
.navbar-logo {
    height: 28px; /* Fixed height for consistency */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Prevent overflow */
    transition: opacity 0.3s ease; /* Smooth hover effect */
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8; /* Subtle hover effect */
}

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

.navbar-toggler {
    border: none;
    touch-action: manipulation; /* Prevent double-tap zoom, enable fast clicks */
}

.navbar-collapse {
    flex-grow: 1;
}

.nav-item {
    margin-right: 1rem; /* Adjust margin */
}

.nav-link {
    color: var(--nav-text); /* Use global variable */
    font-family: 'Inter', sans-serif; /* Use Inter font */
    font-size: 0.9rem; /* Increase size */
    text-decoration: none;
    padding: 0.5rem 0; /* Adjust padding */
    transition: color 0.3s ease;
}

  }
*/

/* Sidebar - Keep existing styles for now, not directly related to index page */
.sidebar {
    width: 100%;
    padding: 20px;
    position: relative;
    height: auto;
    background-color: var(--bg-secondary);
    border-right: none;
    text-align: center;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

/* Border Divider - Keep existing styles for now */
    padding-right: 15px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .sidebar {
        width: 15%;
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        border-right: 2px solid var(--border-color);
    }

    }

    .nav-link {
        padding: 0.5rem 0; /* Ensure consistent padding */
    }
}

@media (max-width: 991.98px) {
    /* Adjust logo size on mobile */
    .navbar-logo {
        height: 24px; /* Slightly smaller on mobile */
    }
    
    .navbar-collapse {
        background-color: var(--nav-bg); /* Use global variable */
        padding: 1rem;
        border-radius: 0 0 4px 4px;
        /* Add box shadow and ensure opaque background */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1050;
        /* Add border for better definition */
        border: 1px solid var(--border-color);
        border-top: none;
        /* Ensure the collapse menu has a distinct background */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navbar-nav {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color); /* Use global variable */
        padding-top: 1rem;
        background-color: var(--nav-bg); /* Ensure background on nav items */
    }

    .nav-item {
        margin-right: 0; /* Remove right margin on mobile */
        margin-bottom: 0.5rem; /* Add bottom margin on mobile */
    }

    .nav-link {
        padding: 0.5rem 0; /* Ensure consistent padding */
        color: var(--nav-text); /* Ensure text color is set */
    }
}

/* Theme toggle button style */
#theme-toggle {
    background-color: var(--button-bg); /* Use button background for better contrast */
    border-color: var(--button-bg); /* Match border to background */
    color: #FFFFFF; /* Always use white for the icon for maximum visibility */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 0.375rem 0.75rem; /* Standard button padding */
    border-radius: 0.25rem; /* Standard button border-radius */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
    white-space: nowrap; /* Prevent wrapping */
}

/* Ensure theme toggle is visible in mobile */
@media (max-width: 991.98px) {
    #theme-toggle {
        margin-right: 0.5rem;
    }
}

#theme-toggle:hover {
    background-color: var(--button-hover); /* Use button hover color */
    color: #FFFFFF; /* Keep white color on hover */
    border-color: var(--button-hover); /* Match border to background */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background-color: var(--nav-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    /* Fix scrollbar issue - ensure dropdown displays properly */
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.dropdown-item {
    color: var(--nav-text);
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Fix for dropdown menu in regular screen mode */
@media (min-width: 992px) {
    /* Keep standard Bootstrap dropdown behavior */
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Ensure dropdown items are properly displayed */
    .dropdown-menu .dropdown-item {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }
}

/* Ensure dropdown menu is fully opaque in responsive mode */
@media (max-width: 991.98px) {
    .dropdown-menu {
        background-color: var(--nav-bg) !important;
        opacity: 1 !important;
        position: static !important;
        width: 100%;
    }
}

/* Credit Display in Navbar */
.nav-credit-display {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.credit-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.credit-balance {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-credit-display .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Force opaque navbar collapse in all screen sizes */
.navbar-collapse {
    /* Use explicit colors as fallback */
    background-color: #F8F9FA !important; /* Light mode fallback */
    background-color: var(--nav-bg) !important;
    opacity: 1 !important;
}

/* Dark mode explicit background */
[data-theme="dark"] .navbar-collapse {
    background-color: #121212 !important; /* Dark mode fallback */
    background-color: var(--nav-bg) !important;
}

/* Bootstrap navbar overrides for mobile */
@media (max-width: 991.98px) {
    /* Target the specific navbar ID with explicit colors */
    #navbarNav {
        background-color: #F8F9FA !important; /* Light mode fallback */
        background-color: var(--nav-bg) !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Dark mode navbar */
    [data-theme="dark"] #navbarNav {
        background-color: #121212 !important; /* Dark mode fallback */
        background-color: var(--nav-bg) !important;
    }
    
    /* Target Bootstrap's collapsing class during animation */
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        background-color: #F8F9FA !important; /* Light mode fallback */
        background-color: var(--nav-bg) !important;
        opacity: 1 !important;
    }
    
    /* Dark mode for collapsing */
    [data-theme="dark"] .navbar-collapse.collapsing,
    [data-theme="dark"] .navbar-collapse.show {
        background-color: #121212 !important; /* Dark mode fallback */
        background-color: var(--nav-bg) !important;
    }
    
    /* Make sure the container has solid background */
    .navbar-main .navbar-collapse {
        background-color: #F8F9FA !important; /* Light mode fallback */
        background-color: var(--nav-bg) !important;
        opacity: 1 !important;
    }
    
    /* Dark mode container */
    [data-theme="dark"] .navbar-main .navbar-collapse {
        background-color: #121212 !important; /* Dark mode fallback */
        background-color: var(--nav-bg) !important;
    }
}

/* Credit Package Cards (for modal) */
.credit-package-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.credit-package-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-savings {
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 600;
}

.package-body {
    text-align: center;
}

.credit-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.credit-amount i {
    color: var(--warning-color);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.package-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.package-features i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.purchase-btn {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .nav-credit-display {
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .credit-package-card {
        margin-bottom: 1rem;
    }
}


/* ====== 02-layout/_footer.css ====== */
/* Footer Styles */
.footer-main {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Dark mode specific styling */
[data-theme="dark"] .footer-main {
    background-color: #0a0a0a;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Footer content wrapper */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer sections */
.footer-section {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem; /* Additional breathing room */
}

/* Footer headings */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

/* Footer links list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover,
.social-link:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Dark mode social links */
[data-theme="dark"] .social-link {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-link:hover {
    background-color: var(--primary-color);
}

/* Footer contact */
.footer-contact {
    font-size: 0.9rem;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.footer-email {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus {
    color: var(--primary-color-hover);
    text-decoration: underline;
}

/* Footer bottom section */
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0 0 2rem 0;
    opacity: 0.4;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    height: 1px;
}

/* Footer disclaimer */
.footer-disclaimer {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

.copyright,
.company-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.9;
}

/* Desktop-specific enhancements */
@media (min-width: 992px) {
    .footer-section {
        padding: 0 1rem; /* More breathing room on desktop */
    }
    
    .footer-heading {
        margin-bottom: 1.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.8rem;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .footer-section {
        margin-bottom: 2.5rem;
    }
    
    .footer-heading {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 2.5rem;
        padding: 0; /* Remove desktop padding on mobile */
    }
    
    .footer-heading {
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.6rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 2.5rem;
    }
    
    .footer-bottom .row > div:last-child {
        margin-top: 0.5rem;
    }
}

/* Sticky footer support */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1 0 auto;
}

/* Accessibility improvements */
.footer-links a:focus,
.social-link:focus,
.footer-email:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer-main {
        border-top-width: 2px;
    }
    
    .footer-links a,
    .social-link {
        font-weight: 500;
    }
}

/* X/Twitter icon fallback styling */
.social-link .fa-x-twitter,
.social-link .fa-twitter {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Ensure icon visibility */
.social-link i {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ====== 02-layout/_grid.css ====== */
/* Grid Layouts */
.main-content {
    background-color: var(--bg-secondary);
    margin-left: 0px;
    padding: 5px 8px 0 8px;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 px 1px rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Stats Summary Grid */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Scoreboard Grid */
.scoreboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    padding: 1px;
    justify-content: center;
}

/* Chart Container */
.chart-container {
    justify-content: space-around;
    width: 100%;
    margin: 30px;
    padding-right: 15px;
    padding-bottom: 15px;
}

.chart-wrapper {
    flex: 1 1 60%;
    min-width: 300px;
    height: 55vh;
    margin: 10px;
    padding-bottom: 25px;
}

/* Teams Header */
.teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 50px;
    overflow: visible;
    width: 100%;
}

.team-section {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    min-width: 0; /* Allows flex items to shrink below content size */
}

/* Formation Grid */
.formation-container {
    width: 90%;
    margin: 20px auto;
    overflow-x: auto;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .formation-container {
        width: 100%;
    }
    
    .field {
        width: 100%;
        min-width: 1000px;
    }
}

/* Dashboard Layout */
    background: var(--bg-color);
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Main Wrapper */
.main-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    position: relative;
}


/* ====== 03-components/alerts.css ====== */
/* Alert Component Styles */

/* Base alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.alert-message {
    margin-bottom: 0;
}

.alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    margin-left: 0.75rem;
}

.alert-close:hover {
    opacity: 1;
}

/* Alert variations */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Dark theme variations */
    color: #f8d7da;
    border-color: #571e26;
}

    color: #fff3cd;
    border-color: #684f05;
}

    color: #d1ecf1;
    border-color: #0c5460;
}

    color: #d4edda;
    border-color: #155724;
}

/* Alert animations */
}

}

}

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

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

/* Toast notifications (floating alerts) */
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 350px;
}

    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

    transform: translateX(0);
}

/* Inline form validation errors */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

}

}

/* API error states */
.api-error-container {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

}

.api-error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.api-error-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.api-error-message {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.api-error-action {
    margin-top: 1rem;
}

/* Loading state with error fallback */
.loading-container {
    position: relative;
    min-height: 100px;
}

.loading-error {
    display: none;
    padding: 1rem;
}

}

}


/* ====== 03-components/warning-system.css ====== */
/**
 * Warning System Styles
 * 
 * Comprehensive styles for the UI warning system following the design principles
 * of calm technology, harmonious aesthetics (Wa), and strategic use of space (Ma).
 */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 2rem);
}

@media (max-width: 576px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Toast Notifications */
.warning-toast {
    background: var(--bg-secondary, #FFFFFF);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    transition: all 0.3s ease-out;
}

.warning-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.warning-toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.warning-toast-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary, #212529);
}

.warning-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary, #6C757D);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.warning-toast-close:hover {
    color: var(--text-primary, #212529);
}

/* Progress bar for auto-dismiss */
.warning-toast-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.warning-toast-progress-bar {
    height: 100%;
    background: currentColor;
    animation: progress-countdown linear forwards;
    transform-origin: left;
}

@keyframes progress-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Toast Level Variants */
.warning-toast-info {
    border-left: 4px solid var(--cta-primary, #10B981);
}

.warning-toast-info .warning-toast-icon {
    color: var(--cta-primary, #10B981);
}

.warning-toast-info .warning-toast-progress-bar {
    background-color: var(--cta-primary, #10B981);
}

.warning-toast-warning {
    border-left: 4px solid #FFA500;
}

.warning-toast-warning .warning-toast-icon {
    color: #FFA500;
}

.warning-toast-warning .warning-toast-progress-bar {
    background-color: #FFA500;
}

.warning-toast-error {
    border-left: 4px solid var(--error, #DC3545);
}

.warning-toast-error .warning-toast-icon {
    color: var(--error, #DC3545);
}

.warning-toast-error .warning-toast-progress-bar {
    background-color: var(--error, #DC3545);
}

.warning-toast-success {
    border-left: 4px solid var(--success, #28A745);
}

.warning-toast-success .warning-toast-icon {
    color: var(--success, #28A745);
}

.warning-toast-success .warning-toast-progress-bar {
    background-color: var(--success, #28A745);
}

/* Inline Warnings */
.warning-inline {
    background: var(--bg-secondary, #FFFFFF);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #DEE2E6);
    margin-bottom: 1rem;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.warning-inline-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.warning-inline-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.warning-inline-message {
    flex: 1;
}

.warning-inline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #212529);
}

.warning-inline-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary, #6C757D);
}

.warning-inline-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary, #6C757D);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.warning-inline-close:hover {
    color: var(--text-primary, #212529);
}

/* Inline Level Variants */
.warning-inline-info {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.warning-inline-info .warning-inline-icon {
    color: var(--cta-primary, #10B981);
}

.warning-inline-warning {
    background-color: rgba(255, 165, 0, 0.05);
    border-color: rgba(255, 165, 0, 0.2);
}

.warning-inline-warning .warning-inline-icon {
    color: #FFA500;
}

.warning-inline-error {
    background-color: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

.warning-inline-error .warning-inline-icon {
    color: var(--error, #DC3545);
}

.warning-inline-success {
    background-color: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.2);
}

.warning-inline-success .warning-inline-icon {
    color: var(--success, #28A745);
}

/* Form Validation Styles */
.is-invalid {
    border-color: var(--error, #DC3545) !important;
}

.invalid-feedback {
    display: block;
    font-size: 0.75rem;
    color: var(--error, #DC3545);
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Confirmation Modal */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.warning-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

.warning-modal-dialog {
    background: var(--bg-secondary, #FFFFFF);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.warning-modal-content {
    padding: 0;
}

.warning-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #DEE2E6);
}

.warning-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.warning-modal-body {
    padding: 1.5rem;
}

.warning-modal-body p {
    margin: 0;
    color: var(--text-secondary, #6C757D);
    line-height: 1.5;
}

.warning-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, #DEE2E6);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warning-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
}

/* Dark mode support */
[data-theme="dark"] .warning-toast {
    background: #1E1E1E;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .warning-toast-message {
    color: #E0E0E0;
}

[data-theme="dark"] .warning-inline {
    background: #1E1E1E;
    border-color: #333;
}

[data-theme="dark"] .warning-inline-title {
    color: #E0E0E0;
}

[data-theme="dark"] .warning-inline-text {
    color: #B0B0B0;
}

[data-theme="dark"] .warning-modal-dialog {
    background: #1E1E1E;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .warning-modal-header,
[data-theme="dark"] .warning-modal-footer {
    border-color: #333;
}

[data-theme="dark"] .warning-modal-title {
    color: #E0E0E0;
}

[data-theme="dark"] .warning-modal-body p {
    color: #B0B0B0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .warning-toast,
    .warning-inline,
    .warning-modal-dialog,
    .warning-modal-backdrop {
        animation: none;
        transition: none;
    }
    
    .warning-toast-progress-bar {
        animation-duration: 0.01ms;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .warning-toast,
    .warning-inline {
        border: 2px solid currentColor;
    }
    
    .warning-toast-close,
    .warning-inline-close {
        border: 1px solid currentColor;
        padding: 0.25rem;
    }
}

/* ====== 03-components/buttons.css ====== */
/* Button Base Styles */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add glossy highlight effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Primary Button */
    color: var(--button-text);
    border-color: var(--primary-color);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--button-text);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

    border-color: var(--primary-color);
    color: var(--button-text);
    box-shadow: 
        0 0 0 0.2rem rgba(16, 185, 129, 0.25),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

    box-shadow: 
        0 2px 10px var(--shadow-color, rgba(0, 0, 0, 0.2)),
        inset 0 2px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Button */
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 10px;
}

/* Navbar Button */
.navbar-nav .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .btn-primary i {
    font-size: 0.875rem;
}

/* Submit Button */
    padding: 12px 24px;
    border-radius: 8px;
}

/* Secondary/Outline Button */
.btn-secondary, .btn-outline-secondary {
    background: var(--button-secondary-bg);
    color: var(--button-text);
    border-color: var(--button-secondary-bg);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    background: var(--button-secondary-hover);
    border-color: var(--button-secondary-hover);
    color: var(--button-text);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:focus, .btn-outline-secondary:focus {
    background: var(--button-secondary-bg);
    border-color: var(--button-secondary-bg);
    color: var(--button-text);
    box-shadow: 
        0 0 0 0.2rem rgba(108, 117, 125, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

/* Form Submit Button */
.submit-btn {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%);
    transform: rotate(-30deg);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .btn-primary {
        width: 100%;
        margin: 0.25rem 0;
    }
}


/* ====== 03-components/forms.css ====== */
/* Form Base Styles */
.form-group {
    margin-bottom: 16px;
    max-width: 150px;
}

.form-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--text-primary);
    text-align: left;
}

.form-control, .form-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Schedule Form */
    max-width: 300px;
    margin: 0 auto;
}

/* Team Selectors */
.selector-form {
    display: flex;
    justify-content: center;
}

.selector-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.team-select {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary) !important;
    cursor: pointer;
    width: 250px;
}

/* Ensure dropdown options are visible in both light and dark modes */
.team-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark mode specific overrides */
    color: #fff !important;
    border-color: #555;
}

    color: #fff;
}

}

/* Input Simulations */
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Modal Form Styles */
.modal-body .form-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-body .form-select,
.modal-body .form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Navbar Form */
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color, #80bdff);
}

.toggle-label {
    margin: 0 10px;
    color: var(--text-primary);
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
        width: 100%;
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
        margin: 0.25rem 0;
    }
}


/* ====== 03-components/cards.css ====== */
/* Card Base Styles */
.card {
    background-color: var(--card-bg-color);
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    margin-left: 2px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 6px var(--shadow-color, rgba(0, 0, 0, 0.1));
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

/* Modal Card */
.modal-content {
    background-color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color, rgba(0, 0, 0, 0.1));
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Scoreboard Container */
.scoreboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Scoreboard Card */
.scoreboard-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px var(--shadow-color, rgba(0,0,0,0.1));
    background-color: var(--card-bg-color);
    height: 260px;
    display: flex;
    flex-direction: column;
}

.scoreboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/card_background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.scoreboard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color, rgba(0,0,0,0.2));
}

.card-content {
    padding: 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Game Details Section */
.game-details {
    margin-top: auto;
    padding: 8px;
    background-color: rgba(var(--card-bg-color-rgb), 0.95);
    border-radius: 6px;
    text-align: center;
}

/* Game Glance Section */
.game-glance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    margin: -10px 0 0;
    border-radius: 8px;
    flex: .8;
    position: relative;
}


.team-score {
    font-size: .9rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-top: 4px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 110px;
}

/* Team logo sizing now centralized in global.css */
/* Base .team-logo styles inherit from global.css */
.scoreboard-item .team-logo {
    /* Override for scoreboard - use small variant */
    width: 48px;
    height: 48px;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.15);
}

.team-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Coverage Section */
.coverage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(var(--card-bg-color-rgb), 0.95);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    margin-bottom: 0;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ML Prediction Results Specific Styles */
.badge {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.bg-success {
    background-color: var(--status-success);
    color: var(--text-on-primary, white);
}

.bg-danger {
    background-color: var(--status-error);
    color: var(--text-on-primary, white);
}

.bg-warning {
    background-color: var(--status-warning);
    color: var(--text-on-primary, white);
}

/* Dashboard Cards */
.stat-card {
    background: var(--player-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--player-shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-card {
    background: var(--player-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--player-shadow);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Bet Card */
.bet-card {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow-color, rgba(0, 0, 0, 0.1));
    margin-bottom: 20px;
    display: grid;
    transition: background-color 0.3s ease;
}

/* Stats Categories */
.stats-grid .stat-category h4 {
    font-weight: bold;
    color: var(--text-primary);
}

.stats-grid .stat-category .stat p {
    font-weight: bold;
    color: var(--text-primary);
}

.stats-grid .stat-category .stat .stat-label {
    color: var(--text-primary);
}

.stats-grid .stat-category .stat .stat-value {
    color: var(--text-primary);
}

.stats-grid .stat-category .stat .stat-rank {
    color: var(--text-primary);
}


/* ====== 03-components/team-cards.css ====== */
/* ========================================
 * Team Trading Cards Component
 * Collectible-style cards for team browsing
 * ======================================== */

.team-trading-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    /* Deal the Deck entrance */
    opacity: 0;
    transform: translateY(16px);
    animation: cardDealIn 0.4s ease forwards;
}

/* Staggered entrance — rows of 5, then 4, 3, 2 via CSS */
.team-trading-card:nth-child(5n+1) { animation-delay: calc(var(--card-index, 0) * 30ms); }
.team-trading-card:nth-child(5n+2) { animation-delay: calc(var(--card-index, 0) * 30ms + 40ms); }
.team-trading-card:nth-child(5n+3) { animation-delay: calc(var(--card-index, 0) * 30ms + 80ms); }
.team-trading-card:nth-child(5n+4) { animation-delay: calc(var(--card-index, 0) * 30ms + 120ms); }
.team-trading-card:nth-child(5n+5) { animation-delay: calc(var(--card-index, 0) * 30ms + 160ms); }

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

/* Hover: lift + team-color glow */
.team-trading-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 20px color-mix(in srgb, var(--card-primary, #333) 30%, transparent);
    color: var(--text-primary);
    text-decoration: none;
}

.team-trading-card:focus-visible {
    outline: 2px solid var(--cta-primary);
    outline-offset: 2px;
}

/* Holographic refraction shine on hover */
.team-trading-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 120, 200, 0.04) 38%,
        rgba(120, 200, 255, 0.08) 42%,
        rgba(255, 255, 255, 0.14) 48%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.14) 52%,
        rgba(200, 255, 120, 0.08) 58%,
        rgba(255, 180, 100, 0.04) 62%,
        transparent 70%
    );
    mix-blend-mode: overlay;
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.team-trading-card:hover::after {
    left: 120%;
}

/* Smooth filter transitions */
.team-trading-card.card-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.team-trading-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
    visibility: visible;
}

/* Accent bar */
.team-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--card-primary, #333), var(--card-secondary, #666));
    flex-shrink: 0;
    transition: height 0.2s ease;
}

.team-trading-card:hover .team-card-accent {
    height: 5px;
}

/* Card body */
.team-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 12px;
    gap: 6px;
    flex-grow: 1;
}

/* Logo */
.team-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 4px;
}

/* Typography */
.team-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--text-primary);
}

.team-card-mascot {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.team-card-location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

/* Footer */
.team-card-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.team-card-conference {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Dark mode adjustments */
[data-theme="dark"] .team-trading-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .team-trading-card:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 24px color-mix(in srgb, var(--card-primary, #333) 25%, transparent);
}

[data-theme="dark"] .team-trading-card::after {
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 120, 200, 0.03) 38%,
        rgba(120, 200, 255, 0.05) 42%,
        rgba(255, 255, 255, 0.08) 48%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.08) 52%,
        rgba(200, 255, 120, 0.05) 58%,
        rgba(255, 180, 100, 0.03) 62%,
        transparent 70%
    );
}

/* Loading state — shown on click while profile loads */
.team-trading-card.card-loading .team-card-body,
.team-trading-card.card-loading .team-card-footer {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.team-trading-card.card-loading .team-card-accent {
    background: linear-gradient(
        90deg,
        var(--card-primary, #333) 0%,
        var(--card-secondary, #666) 50%,
        var(--card-primary, #333) 100%
    );
    background-size: 200% 100%;
    animation: accentShimmer 1s ease infinite;
    height: 5px;
}

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

.team-card-loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.team-trading-card.card-loading .team-card-loading-spinner {
    display: block;
}

.team-card-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-color);
    border-top-color: var(--card-primary, var(--cta-primary));
    border-radius: 50%;
    animation: cardSpin 0.7s linear infinite;
}

@keyframes cardSpin {
    to { transform: rotate(360deg); }
}

/* Responsive: tablet / small screens */
@media (max-width: 768px) {
    .team-trading-card {
        border-radius: 10px;
    }

    .team-card-logo {
        width: 56px;
        height: 56px;
    }

    .team-card-body {
        padding: 14px 10px 8px;
        gap: 4px;
    }

    .team-card-name {
        font-size: 0.85rem;
    }

    .team-card-mascot {
        font-size: 0.72rem;
    }

    .team-card-location {
        font-size: 0.68rem;
    }

    .team-card-footer {
        padding: 6px 10px;
    }

    .team-card-conference {
        font-size: 0.65rem;
    }
}

/* Responsive: small mobile */
@media (max-width: 480px) {
    .team-card-logo {
        width: 44px;
        height: 44px;
    }

    .team-card-body {
        padding: 10px 8px 6px;
    }

    .team-card-name {
        font-size: 0.8rem;
    }

    .team-card-location {
        display: none;
    }

    .team-card-footer {
        padding: 5px 8px;
    }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .team-trading-card {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
    .team-trading-card::after {
        display: none;
    }
    .team-trading-card.card-hidden {
        display: none;
    }
    .team-trading-card.card-visible {
        display: flex;
    }
}


/* ====== 03-components/tables.css ====== */
/* Table Base Styles */
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    width: 100%;
}

    background-color: var(--bg-secondary);
    padding: 10px 40px;
    text-align: left;
    color: var(--text-primary);
}

/* Rankings Table */
.table-striped {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.table-striped th, .table-striped td {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 10px 40px;
    text-align: left;
    color: var(--text-primary);
}

/* Game Scores Table */
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
    border: 4px solid var(--border-color);
    text-align: left;
    padding-left: 3px;
    padding-right: 3px;
    width: 100%;
}

    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-secondary);
    padding: 10px;
    text-align: left;
    color: var(--text-primary);
}

/* Progress Bar */
.progress {
    height: 30px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--success-color, #28a745);
    transition: width 0.4s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-primary, #fff);
}

/* Alert */
.alert {
    padding: 15px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: left;
}

.alert-danger {
    background-color: var(--danger-color, #f8d7da);
    color: var(--text-primary);
}

/* Stat Trend */
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

    background-color: rgba(28, 200, 138, 0.1);
}

    background-color: rgba(231, 74, 59, 0.1);
}


/* ====== 03-components/hero.css ====== */
/* Hero Section */
.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text-primary);
    border-radius: 8px;
    margin-bottom: 2rem;
    background-color: var(--bg-secondary);
}

.hero-title-container {
    margin: 0 auto;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-title-main {
    display: block;
}

.hero-title-secondary {
    display: block;
    color: var(--cta-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Hero CTA Section */
.hero-cta-section {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-primary-cta {
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.hero-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-secondary-cta {
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.hero-secondary-cta:hover {
    transform: translateY(-2px);
}

/* Hero Stats Section */
.hero-stats-section {
    margin-bottom: 3rem;
}

.win-rate-context {
    margin-top: 1rem;
}

.benchmark-explanation {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
    background-color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    display: inline-block;
    box-shadow: var(--shadow-subtle);
}

.win-rate-container {
    position: relative;
    display: inline-block;
}

.win-rate-tooltip-btn {
    position: absolute;
    top: -5px;
    right: -25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.win-rate-tooltip-btn:hover {
    color: var(--cta-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta-section {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-primary-cta,
    .hero-secondary-cta {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .win-rate-tooltip-btn {
        position: static;
        margin-top: 0.5rem;
        margin-left: 0.5rem;
    }

    .win-rate-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .benchmark-explanation {
        font-size: 0.9rem;
    }
}

/* ====== 03-components/player-stats-chart.css ====== */
/* Player Stats Chart Modal */
.stats-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.stats-modal-content {
    position: relative;
    background-color: var(--card-bg-color);
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.stats-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.stats-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.stats-modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.stats-modal-close:hover {
    color: var(--text-primary);
}

/* Chart container */
.stats-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

/* Loading spinner */
.loading-spinner {
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 100px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error and message styles */
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

    color: var(--text-primary);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Stats table */
.stats-table {
    margin-top: 20px;
    overflow-x: auto;
}

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

.stats-table th, .stats-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background-color: rgba(74, 144, 226, 0.1);
    font-weight: bold;
}

.stats-table tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Make player icons clickable */
.player-icon {
    cursor: pointer;
}

.player-icon:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}


/* ====== 03-components/position-icons.css ====== */
/* Position Icons Styling */

/* Base icon styling */
.player-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: all 0.2s ease-in-out;
}

.player-icon:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Position-specific icons - Default to variant1 for each position */

/* Offense Positions */
}

}

}

}

}

/* Defense Positions */
}

}

}

}

}

/* Specific positions like LT, RT, MLB, etc. inherit from their base position */
}

}

/* Fallback for any position that doesn't have a specific icon */
.player-icon:not(.qb):not(.rb):not(.wr):not(.te):not(.ol):not(.de):not(.dt):not(.lb):not(.cb):not(.s):not(.lt):not(.lg):not(.c):not(.rg):not(.rt):not(.mlb)::before {
    /* Generic football icon as fallback */
    background-image: url('/static/position_icons/default.png');
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-icon::before {
        width: 55%;
        height: 55%;
    }
}

@media (max-width: 480px) {
    .player-icon::before {
        width: 50%;
        height: 50%;
    }
}


/* ====== 03-components/report-modal.css ====== */
/* Report Modal Styling */

/* Modal Header Styling */
#reportModal .modal-header.bg-gradient {
    background: linear-gradient(135deg, 
                var(--primary-color) 0%, 
                var(--bg-secondary) 100%);
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
}

#reportModal .modal-title {
    color: var(--emphasis-color);
    margin-bottom: 0.2rem;
}

#reportModal .modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emphasis-color);
}

/* Modal Body Styling */
#reportModal .modal-body {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#reportModal .modal-content {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

/* Team Selection Styling */
#reportModal .team-select-group {
    position: relative;
    transition: all 0.3s ease;
}

#reportModal .team-select {
    height: 48px;
    font-size: 1.1rem;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

#reportModal .team-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--card-bg-color-rgb), 0.25);
}

#reportModal .input-group-text {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--emphasis-color);
}

#reportModal select option {
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* Report Preview Section */
#reportModal .report-preview {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#reportModal .report-icon {
    color: var(--emphasis-color);
    opacity: 0.8;
}

#reportModal .report-features {
    margin-top: 1.5rem;
    text-align: left;
    color: var(--text-primary);
}

#reportModal .report-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

#reportModal h6 {
    color: var(--heading-color);
}

/* Button Styling */
#reportModal .btn-primary {
    transition: all 0.3s ease;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text);
}

#reportModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--button-text);
}

#reportModal .btn-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

#reportModal .btn-outline-secondary, #reportModal .btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-text);
    border-color: var(--button-secondary-bg);
}

#reportModal .btn-outline-secondary:hover, #reportModal .btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    border-color: var(--button-secondary-hover);
    color: var(--button-text);
    transform: translateY(-1px);
}

#reportModal .btn-outline-secondary:focus, #reportModal .btn-secondary:focus {
    background-color: var(--button-secondary-bg);
    border-color: var(--button-secondary-bg);
    color: var(--button-text);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Team Logo Preview */
#reportModal .team-logo-preview {
    margin-top: 1.5rem;
}

/* Placeholder logo style - light/dark mode versions */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 80px;
    display: inline-block;
}

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 80px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #reportModal .modal-header {
        padding: 1rem;
    }
    
    #reportModal .modal-body {
        padding: 1rem;
    }
    
    #reportModal .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation for the select box when a team is selected */
#reportModal .team-select:not([value=""]) {
    border-color: var(--primary-color);
    background-color: rgba(var(--card-bg-color-rgb), 0.1);
}

/* Fix for fa-analytics icon if it's not defined in Font Awesome */
.fa-analytics:before {
    content: "\f643"; /* This is the chart-line icon as fallback */
}

/* Dark mode specific adjustments for the close button */
}

/* Form input year field */
#reportModal #year {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

#reportModal #year:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--card-bg-color-rgb), 0.25);
}

/* Text color for modal description */
#reportModal .text-muted {
    color: var(--text-secondary) !important;
}


/* ====== 03-components/simulation-modal.css ====== */
/* Simulation Modal Styling */

/* Modal Header Styling */
#simulationModal .modal-header.bg-gradient {
    background: linear-gradient(135deg, 
                var(--primary-color) 0%, 
                var(--bg-secondary) 100%);
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
}

#simulationModal .modal-title {
    color: var(--emphasis-color);
    margin-bottom: 0.2rem;
}

#simulationModal .modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emphasis-color);
}

/* Modal Body Styling */
#simulationModal .modal-body {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#simulationModal .modal-content {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

/* Team Selection Styling */
#simulationModal .team-select-group {
    position: relative;
    transition: all 0.3s ease;
}

#simulationModal .form-select {
    height: 48px;
    font-size: 1.1rem;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

#simulationModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

#simulationModal .input-group-text {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--emphasis-color);
}

#simulationModal select option {
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* Simulation Preview Section */
#simulationModal .simulation-preview {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#simulationModal .simulation-icon {
    color: var(--emphasis-color);
    opacity: 0.8;
}

#simulationModal .simulation-features {
    margin-top: 1.5rem;
    text-align: left;
    color: var(--text-primary);
}

#simulationModal .simulation-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

#simulationModal h6 {
    color: var(--heading-color);
}

/* Button Styling */
#simulationModal .btn-primary {
    transition: all 0.3s ease;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text);
}

#simulationModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--button-text);
}

#simulationModal .btn-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

#simulationModal .btn-outline-secondary, #simulationModal .btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-text);
    border-color: var(--button-secondary-bg);
}

#simulationModal .btn-outline-secondary:hover, #simulationModal .btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    border-color: var(--button-secondary-hover);
    color: var(--button-text);
    transform: translateY(-1px);
}

#simulationModal .btn-outline-secondary:focus, #simulationModal .btn-secondary:focus {
    background-color: var(--button-secondary-bg);
    border-color: var(--button-secondary-bg);
    color: var(--button-text);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* The VS Badge between teams */
#simulationModal .vs-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--button-text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 10px;
    font-size: 14px;
}

/* Team Logo Preview */
#simulationModal .team-logos-preview {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#simulationModal .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Placeholder image for team logos */
#simulationModal .team-logo[src$="team-placeholder.png"] {
    background-image: url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><rect width="200" height="200" fill="%23f8f9fa" rx="20" ry="20" /><path d="M100 45 L130 95 L160 145 H40 L70 95 Z" fill="%236c757d" stroke="%23495057" stroke-width="2" /><circle cx="100" cy="85" r="15" fill="%236c757d" /><text x="100" y="175" font-family="Arial" font-size="18" text-anchor="middle" fill="%23495057">Team</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 80px;
    height: 80px;
    display: inline-block;
}

/* Matchup Visualization */
#simulationModal .matchup-preview {
    text-align: center;
    margin-top: 1rem;
}

#simulationModal .team-name {
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Stats Visualization */
#simulationModal .simulation-stats {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #simulationModal .modal-header {
        padding: 1rem;
    }
    
    #simulationModal .modal-body {
        padding: 1rem;
    }
    
    #simulationModal .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation for the select box when a team is selected */
#simulationModal .form-select:not([value=""]) {
    border-color: var(--primary-color);
    background-color: rgba(16, 185, 129, 0.1);
}

/* Slider Styling */
#simulationModal .range-slider {
    width: 100%;
}

#simulationModal .range-slider-container {
    padding: 1rem 0;
}

#simulationModal input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    transition: opacity 0.2s;
}

#simulationModal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

#simulationModal input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#simulationModal input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

#simulationModal input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

#simulationModal .range-value {
    display: inline-block;
    min-width: 60px;
    color: var(--button-text);
    line-height: 20px;
    text-align: center;
    border-radius: 6px;
    background: var(--primary-color);
    padding: 6px 12px;
    font-weight: 600;
}

/* Animation for logos */
@keyframes teamLogoHighlight {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

}


/* ====== 03-components/simulation-modal-enhanced.css ====== */
/* Enhanced Simulation Modal - Light/Dark Theme Support */

/* Base modal styles loaded from main.bundled.css — no @import needed */

/* Modal Dialog - Compact and clean */
#simulationModal {
    z-index: 9999 !important;
}

#simulationModal .modal-dialog {
    max-width: 420px;
    z-index: 9999 !important;
}

/* Modal Content - Theme-aware */
#simulationModal .modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Ensure modal backdrop */
.modal-backdrop {
    opacity: 0.6 !important;
}

[data-theme="dark"] .modal-backdrop {
    opacity: 0.8 !important;
    background-color: #000 !important;
}

/* Modal Header */
#simulationModal .modal-header.bg-gradient {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Modal Icon */
#simulationModal .modal-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] #simulationModal .modal-icon {
    background: rgba(16, 185, 129, 0.15);
}

#simulationModal .modal-icon::before {
    display: none;
}

#simulationModal .modal-icon i {
    color: var(--cta-primary);
    font-size: 1rem;
}

#simulationModal .modal-title {
    font-size: 1rem;
    color: var(--text-primary);
}

#simulationModal .modal-header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Modal Body */
#simulationModal .modal-body {
    padding: 1rem;
    background-color: var(--bg-secondary);
}

/* Compact Team Selection */
#simulationModal .team-selection-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

/* Form Labels */
#simulationModal .form-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Select Styling - Theme-aware */
#simulationModal .form-select {
    height: 38px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-tertiary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] #simulationModal .form-select {
    background-color: var(--bg-primary);
}

#simulationModal .form-select:focus {
    border-color: var(--cta-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
    outline: none;
}

#simulationModal .form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

#simulationModal .team-select-group .input-group-text {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 1;
    color: var(--primary-color);
}

#simulationModal .form-select:has(option:checked:not([value=""])) {
    border-color: var(--primary-color);
    background-color: rgba(16, 185, 129, 0.05);
}

/* VS Divider Enhancement */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    position: relative;
}

.vs-divider::before,
.vs-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.vs-badge {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Enhanced Slider Section */
.simulation-controls {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #10B981;
    position: relative;
    z-index: 2;
}

/* Ensure label and value are visible */
.simulation-controls .form-label {
    color: #f3f4f6 !important;
}

.simulation-controls .text-muted {
    color: #9ca3af !important;
}

/* Modern Range Slider */
#simulationModal input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, 
        var(--primary-color) 0%, 
        var(--primary-color) var(--value, 0%), 
        rgba(16, 185, 129, 0.1) var(--value, 0%), 
        rgba(16, 185, 129, 0.1) 100%);
    outline: none;
    transition: all 0.3s ease;
}

#simulationModal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#simulationModal input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Enhanced Range Value Display - positioned next to label */
#simulationModal .range-value {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 32px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    background-color: #10B981 !important;
    padding: 0 0.75rem;
}

/* Credit Cost Display Enhancement */
#simulationModal .credit-cost-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

#simulationModal .credit-cost-info:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

#simulationModal .credit-cost-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Button Styling - Theme-aware */
#simulationModal .btn-primary {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    background: var(--cta-primary);
    color: var(--button-text);
    border: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease;
}

#simulationModal .btn-primary:hover {
    background: var(--cta-primary-hover);
}

#simulationModal .btn-outline-secondary {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: transparent;
    padding: 0.5rem 1rem;
}

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

[data-theme="dark"] #simulationModal .btn-outline-secondary:hover {
    background: var(--bg-primary);
}

/* Enhanced Preview Section */
#simulationModal .simulation-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Enhanced Team Logo Display */
#simulationModal .team-logos-preview {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#simulationModal .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(50%);
    opacity: 0.7;
    position: relative;
}

#simulationModal .team-logo.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Feature List */
#simulationModal .simulation-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

#simulationModal .simulation-features li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

#simulationModal .simulation-features li i {
    position: absolute;
    left: 0;
    top: 0.125rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes backgroundShift {
    from { background-position: 0 0; }
    to { background-position: 40px 70px; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

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

/* Advanced Settings Section (New Addition) */
.advanced-settings {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.advanced-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advanced-settings-toggle:hover {
    background: rgba(16, 185, 129, 0.05);
}

.advanced-settings-content {
    margin-top: 1.5rem;
    display: none;
}

.advanced-settings-content.show {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* Responsive Enhancements */
@media (max-width: 767.98px) {
    #simulationModal .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
        height: calc(100vh - 1rem);
        display: flex;
        flex-direction: column;
    }

    #simulationModal .modal-content {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #simulationModal .modal-body {
        padding: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
    }

    #simulationModal .modal-header {
        padding: 1rem;
        flex-shrink: 0;
    }

    #simulationModal .modal-footer {
        padding: 1rem;
        flex-shrink: 0;
    }

    #simulationModal .team-logo {
        width: 60px;
        height: 60px;
    }

    #simulationModal .team-logos-preview {
        flex-direction: column;
        gap: 1rem;
    }

    .simulation-controls,
    .team-selection-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    #simulationModal .form-select {
        height: 48px;
        font-size: 1rem;
    }

    #simulationModal .range-value {
        min-width: 60px;
        height: 32px;
        font-size: 0.875rem;
    }

    #simulationModal .btn-primary {
        width: 100%;
        height: 48px;
        font-size: 1rem;
    }

    /* Fix preview section on mobile */
    #simulationModal .simulation-preview {
        display: none;
    }

    /* Stack form elements */
    #simulationModal .row {
        margin: 0;
    }

    #simulationModal .col-md-6,
    #simulationModal .col-lg-6 {
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Ensure simulation controls don't overflow */
    .simulation-controls-v2 {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    #simulationModal .modal-dialog {
        max-width: 720px;
        margin: 1.75rem auto;
    }
    
    #simulationModal .team-logo {
        width: 70px;
        height: 70px;
    }
    
    #simulationModal .modal-body {
        padding: 1.5rem;
    }
    
    .simulation-controls,
    .team-selection-section {
        padding: 1.5rem;
    }
}

/* Small Desktop Optimizations */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #simulationModal .modal-dialog {
        max-width: 800px;
    }
}

/* Prevent content overflow in all screen sizes */
#simulationModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#simulationModal .modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    #simulationModal .modal-dialog {
        height: -webkit-fill-available;
    }
}

/* Landscape mobile specific */
@media (max-width: 767.98px) and (orientation: landscape) {
    #simulationModal .modal-dialog {
        max-height: 90vh;
        margin: 0.5rem;
    }
    
    #simulationModal .team-logo {
        width: 60px;
        height: 60px;
    }
    
    #simulationModal .modal-header {
        padding: 0.5rem 1rem;
    }
}

/* ====== 03-components/vs-unified.css ====== */
/* Unified VS Styling - Subdued but Artistic */
/* ========================================= */

/* Base VS Badge - Consistent across all contexts */
.vs-unified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Size Variants */
.vs-unified.vs-small {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    min-width: 2.5rem;
}

.vs-unified.vs-medium {
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    min-width: 3.5rem;
}

.vs-unified.vs-large {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
    min-width: 5rem;
}

/* Artistic Variants */

/* Variant 1: Subtle Line - For inline contexts like game cards */
.vs-unified.vs-line {
    background: transparent;
    position: relative;
}

.vs-unified.vs-line::before,
.vs-unified.vs-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-color) 50%, 
        transparent 100%
    );
    transform: translateY(-50%);
}

.vs-unified.vs-line::before {
    right: 100%;
    margin-right: 0.5rem;
}

.vs-unified.vs-line::after {
    left: 100%;
    margin-left: 0.5rem;
}

/* Variant 2: Soft Badge - For selection contexts */
.vs-unified.vs-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vs-unified.vs-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Variant 3: Artistic Circle - For hero sections */
.vs-unified.vs-circle {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.vs-unified.vs-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    transform: rotate(-45deg);
    pointer-events: none;
}

.vs-unified.vs-circle:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(var(--accent-primary-rgb), 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vs-unified.vs-small {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .vs-unified.vs-medium {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    .vs-unified.vs-large {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    .vs-unified.vs-circle {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Animation States */
.vs-unified.vs-animated {
    animation: vs-pulse 2s ease-in-out infinite;
}

@keyframes vs-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .vs-unified {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .vs-unified.vs-badge {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* ====== 03-components/accessibility.css ====== */
/* ==========================================================================
   Accessibility Styles
   - Skip links
   - Focus indicators
   - Keyboard navigation hints
   - High contrast support
   - Reduced motion support
   - Print styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Skip Links
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color, #3B82F6);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Focus Indicators
   -------------------------------------------------------------------------- */
:focus {
    outline: 2px solid var(--focus-color, #3B82F6);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--focus-color, #3B82F6);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus-color, #3B82F6);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Game card focus state */
.game-card:focus-within {
    outline: 2px solid var(--focus-color, #3B82F6);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Keyboard Navigation Hints
   -------------------------------------------------------------------------- */
.keyboard-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted, #6B7280);
    margin-top: 4px;
}

/* Show hints when using keyboard navigation */
body.keyboard-nav .keyboard-hint {
    display: block;
}

.kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.75rem;
    background: var(--bg-secondary, #374151);
    border: 1px solid var(--border-color, #4B5563);
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 var(--border-color, #4B5563);
}

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

.sr-only-focusable:focus,
.visually-hidden-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* --------------------------------------------------------------------------
   ARIA Live Regions - Screen Reader Only Announcements
   Only hide dedicated announcement elements, not visible containers
   -------------------------------------------------------------------------- */
#aria-live-announcer,
.sr-only[aria-live="polite"],
.sr-only[aria-live="assertive"],
.visually-hidden[aria-live="polite"],
.visually-hidden[aria-live="assertive"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   High Contrast Support
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
    :root {
        --focus-color: #FFFF00;
        --border-color: #FFFFFF;
    }

    button,
    a,
    input,
    select {
        border: 2px solid currentColor !important;
    }

    :focus-visible {
        outline: 3px solid #FFFF00 !important;
        outline-offset: 3px;
    }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
    :focus-visible {
        outline: 3px solid CanvasText;
        outline-offset: 3px;
    }

    .game-card {
        border: 2px solid CanvasText;
    }

    button {
        border: 2px solid ButtonText;
    }
}

/* --------------------------------------------------------------------------
   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;
        scroll-behavior: auto !important;
    }

    .skip-link {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .skip-link,
    .keyboard-hint,
    [aria-hidden="true"] {
        display: none !important;
    }

    :focus {
        outline: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
}


/* ====== 03-components/contrast-fixes.css ====== */
/* WCAG AA Color Contrast Fixes */

/* Ensure minimum contrast ratios:
   - Normal text: 4.5:1
   - Large text (18pt+): 3:1
   - UI components: 3:1
*/

/* Light mode contrast improvements */
:root {
    /* Enhanced text colors for better contrast */
    --text-primary-enhanced: #1F2937; /* Darker than original for 7:1 contrast */
    --text-secondary-enhanced: #4B5563; /* Darker secondary text */
    --nav-text-enhanced: #111827; /* Very dark for nav links */
    
    /* Enhanced button contrast */
    --button-bg-enhanced: #374151; /* Darker button background */
    --button-text-enhanced: #FFFFFF; /* Pure white for buttons */
    
    /* Form field borders */
    --input-border-enhanced: #6B7280; /* Darker border for form fields */
    
    /* Link colors with proper contrast */
    --link-color: #0066CC; /* Blue with 4.5:1 contrast on white */
    --link-hover: #0052A3; /* Darker blue for hover */
    --link-visited: #551A8B; /* Purple for visited links */
}

/* Dark mode contrast improvements */
[data-theme="dark"] {
    /* Enhanced text colors for dark mode */
    --text-primary-enhanced: #F3F4F6; /* Lighter for better contrast */
    --text-secondary-enhanced: #D1D5DB; /* Lighter secondary text */
    --nav-text-enhanced: #F9FAFB; /* Very light for nav */
    
    /* Enhanced button contrast in dark mode */
    --button-bg-enhanced: #6B7280; /* Lighter button background */
    --button-text-enhanced: #FFFFFF; /* Pure white text */
    
    /* Form field borders in dark mode */
    --input-border-enhanced: #9CA3AF; /* Lighter border */
    
    /* Link colors for dark mode */
    --link-color: #60A5FA; /* Light blue with proper contrast */
    --link-hover: #93C5FD; /* Lighter blue for hover */
    --link-visited: #C084FC; /* Light purple for visited */
}

/* Apply enhanced colors */
body {
    color: var(--text-primary-enhanced);
}

/* Navigation contrast fixes */
.navbar-main {
    background-color: var(--nav-bg) !important;
    color: var(--nav-text) !important; /* Set base color for inherited styles */
}

.navbar-main .nav-link {
    color: var(--nav-text-enhanced) !important;
    font-weight: 500; /* Slightly bolder for readability */
}

/* Ensure navbar brand text has proper color in dark mode */
.navbar-main .navbar-brand {
    color: var(--nav-text) !important;
}

.navbar-main .navbar-brand .brand-tagline {
    color: var(--text-secondary) !important;
}

/* Navbar toggler icon for dark mode */
.navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(233, 236, 239, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown items in navbar */
.navbar-main .dropdown-item {
    color: var(--nav-text) !important;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Button contrast fixes */
.btn {
    color: var(--button-text-enhanced) !important;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    border-color: var(--button-secondary-bg);
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: #FFFFFF !important;
}

/* Form control contrast */
.form-control,
.form-select {
    border-color: var(--input-border-enhanced);
    color: var(--text-primary-enhanced);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-primary-rgb), 0.25);
}

/* Label contrast */
.form-label {
    color: var(--text-primary-enhanced);
    font-weight: 500;
}

/* Link contrast */
a:not(.btn):not(.nav-link) {
    color: var(--link-color);
}

a:not(.btn):not(.nav-link):hover {
    color: var(--link-hover);
}

a:not(.btn):not(.nav-link):visited {
    color: var(--link-visited);
}

/* Table contrast improvements */
table th {
    color: var(--text-primary-enhanced);
    font-weight: 600;
}

table td {
    color: var(--text-primary-enhanced);
}

/* Card contrast */
.card {
    border-color: var(--input-border-enhanced);
}

.card-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary-enhanced);
    font-weight: 600;
}

/* Alert contrast */
.alert {
    font-weight: 500;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-color: #BFDBFE;
}

/* Dark mode alert contrast */
[data-theme="dark"] .alert-success {
    background-color: #064E3B;
    color: #D1FAE5;
    border-color: #065F46;
}

[data-theme="dark"] .alert-danger {
    background-color: #7F1D1D;
    color: #FEE2E2;
    border-color: #991B1B;
}

[data-theme="dark"] .alert-warning {
    background-color: #78350F;
    color: #FEF3C7;
    border-color: #92400E;
}

[data-theme="dark"] .alert-info {
    background-color: #1E3A8A;
    color: #DBEAFE;
    border-color: #1E40AF;
}

/* Badge contrast */
.badge {
    font-weight: 600;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #FFFFFF !important;
}

.badge.bg-secondary {
    background-color: var(--button-secondary-bg) !important;
    color: #FFFFFF !important;
}

/* Dropdown contrast */
.dropdown-menu {
    border-color: var(--input-border-enhanced);
}

.dropdown-item {
    color: var(--text-primary-enhanced);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* Modal contrast */
.modal-header {
    border-bottom-color: var(--input-border-enhanced);
}

.modal-footer {
    border-top-color: var(--input-border-enhanced);
}

/* Text utilities with proper contrast */
.text-muted {
    color: var(--text-secondary-enhanced) !important;
}

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

.text-success {
    color: #059669 !important; /* Darker green for contrast */
}

.text-danger {
    color: #DC2626 !important; /* Darker red for contrast */
}

.text-warning {
    color: #D97706 !important; /* Darker yellow for contrast */
}

.text-info {
    color: #0891B2 !important; /* Darker cyan for contrast */
}

/* Dark mode text utilities */
[data-theme="dark"] .text-success {
    color: #34D399 !important;
}

[data-theme="dark"] .text-danger {
    color: #F87171 !important;
}

[data-theme="dark"] .text-warning {
    color: #FBBF24 !important;
}

[data-theme="dark"] .text-info {
    color: #67E8F9 !important;
}

/* Ensure focus indicators meet contrast requirements */
:focus-visible {
    outline-color: var(--primary-color) !important;
    outline-width: 3px !important;
}

/* High contrast mode overrides */
@media (prefers-contrast: high) {
    body {
        color: #000000;
        background-color: #FFFFFF;
    }
    
    [data-theme="dark"] body {
        color: #FFFFFF;
        background-color: #000000;
    }
    
    .btn {
        border-width: 2px !important;
    }
    
    a {
        text-decoration: underline !important;
    }
}

/* ====== 03-components/navbar-link-overrides.css ====== */
/* Navbar and Hero Section Link Overrides */
/* This file should be loaded after accessibility.css to override its link underline rules */

/* Override Bootstrap's default link colors */
.navbar a,
.picks-hero-section a,
.hero-section a {
    color: inherit;
}

.navbar a:visited,
.picks-hero-section a:visited,
.hero-section a:visited {
    color: inherit;
}

/* Remove underlines and purple visited color from navbar links */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-item,
.navbar a {
    text-decoration: none !important;
    text-underline-offset: 0 !important;
}

/* Prevent purple visited link color on navbar */
.navbar a:visited,
.navbar .nav-link:visited,
.navbar .navbar-brand:visited,
.navbar .dropdown-item:visited {
    color: inherit !important;
}

/* Maintain hover effects without underlines */
.navbar a:hover,
.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
    text-decoration: none !important;
}

/* Hero section link overrides */
.picks-hero-section a,
.hero-section a,
.hero a {
    text-decoration: none !important;
    text-underline-offset: 0 !important;
}

/* Prevent purple visited links in hero sections */
.picks-hero-section a:visited,
.hero-section a:visited,
.hero a:visited {
    color: inherit !important;
}

/* Maintain button styles without underlines */
.picks-hero-section .btn,
.hero-section .btn,
.hero .btn,
.navbar .btn {
    text-decoration: none !important;
}

/* Ensure buttons in these sections don't get underlines on hover */
.picks-hero-section .btn:hover,
.hero-section .btn:hover,
.hero .btn:hover,
.navbar .btn:hover {
    text-decoration: none !important;
}

/* Credit display links */
.nav-credit-display a {
    text-decoration: none !important;
}

.nav-credit-display a:visited {
    color: inherit !important;
}

/* Modal trigger buttons styled as links */
.navbar button.nav-link,
.navbar button.btn-link {
    text-decoration: none !important;
}

.navbar button.nav-link:hover,
.navbar button.btn-link:hover {
    text-decoration: none !important;
}

/* Focus states - remove underlines but keep outline for accessibility */
.navbar a:focus,
.navbar .nav-link:focus,
.navbar .dropdown-item:focus,
.picks-hero-section a:focus,
.hero-section a:focus {
    text-decoration: none !important;
    /* Keep outline for accessibility */
}

/* Active states */
.navbar .nav-link:active,
.navbar a:active,
.picks-hero-section a:active,
.hero-section a:active {
    color: inherit !important;
}

/* ====== 03-components/dropdown-fix.css ====== */
/* Dropdown Menu Fix for Desktop View */
/* This file ensures dropdown menus work properly without scrollbars */

/* CRITICAL FIX: Override parent container overflow that causes dropdown issues */
@media (min-width: 992px) {
    /* Fix container overflow issue that clips dropdowns */
    /* Only apply to navbar container to avoid affecting other page elements */
    .navbar-main .container-fluid {
        overflow: visible !important;
    }

    /* Ensure navbar itself doesn't clip dropdown */
    .navbar-main {
        overflow: visible !important;
    }

    /* Ensure navbar collapse doesn't clip dropdown */
    .navbar-collapse {
        overflow: visible !important;
    }

    /* Fix the dropdown menu itself */
    .navbar .dropdown-menu {
        /* Use Bootstrap's standard positioning */
        position: absolute !important;

        /* Ensure proper display */
        z-index: 1030 !important;
        min-width: 10rem !important;
        padding: 0.5rem 0 !important;

        /* Fix overflow issues */
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;

        /* Visual styles */
        background-color: var(--nav-bg, #ffffff) !important;
        border: 1px solid var(--border-color, rgba(0,0,0,.15)) !important;
        border-radius: 0.25rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

    /* Ensure dropdown-menu-end positions correctly */
    .navbar .dropdown-menu.dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }

    /* Make sure dropdown items don't cause overflow */
    .navbar .dropdown-menu .dropdown-item {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Remove any accidental scrollbars */
    .navbar .dropdown-menu::-webkit-scrollbar {
        display: none !important;
    }

    .navbar .dropdown-menu {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    /* Ensure the dropdown parent is positioned correctly */
    .navbar .nav-item.dropdown {
        position: relative !important;
    }
}

/* Mobile view - ensure dropdown works */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding-left: 2rem !important;
    }
}

/* Dark theme support */
[data-theme="dark"] .navbar .dropdown-menu {
    background-color: var(--nav-bg, #212529) !important;
    border-color: var(--border-color, rgba(255,255,255,.15)) !important;
}

[data-theme="dark"] .navbar .dropdown-menu .dropdown-item {
    color: var(--nav-text, #ffffff) !important;
}

[data-theme="dark"] .navbar .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--bg-secondary, #343a40) !important;
    color: var(--text-primary, #ffffff) !important;
}

[data-theme="dark"] .navbar .dropdown-menu .dropdown-divider {
    border-top-color: var(--border-color, rgba(255,255,255,.15)) !important;
}

/* ====== 03-components/confidence-meter.css ====== */
/**
 * Confidence Meter Component
 *
 * A circular progress indicator showing AI prediction confidence levels
 * with smooth animations and accessibility support.
 *
 * Features:
 * - Circular SVG-based meter with thin stroke
 * - Color gradient: red (low) → yellow (medium) → green (high)
 * - Subtle fill animation on load
 * - Percentage display on hover/tap
 * - Light/dark mode support
 * - GPU-accelerated animations
 */

/* Container - GPU Accelerated */
.confidence-meter-container {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 48px;
    height: 48px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* GPU acceleration */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.confidence-meter-container:hover {
    transform: scale(1.1) translateZ(0);
}

/* SVG Circle Base - Only apply to circular meter inside container */
.confidence-meter-container .confidence-meter {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start from top */
    will-change: transform; /* GPU acceleration hint */
}

.confidence-meter__background {
    fill: none;
    stroke: var(--confidence-bg-color, rgba(0, 0, 0, 0.1));
    stroke-width: 3;
}

.confidence-meter__progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* GPU acceleration - SVG animations run on compositor thread */
    will-change: stroke-dashoffset;
    transform: translateZ(0);
}

/* Color States - Using CSS custom properties for dynamic theming */
.confidence-meter__progress[data-confidence="low"] {
    stroke: var(--confidence-low-color, #DC3545);
}

.confidence-meter__progress[data-confidence="medium-low"] {
    stroke: var(--confidence-medium-low-color, #FD7E14);
}

.confidence-meter__progress[data-confidence="medium"] {
    stroke: var(--confidence-medium-color, #FFC107);
}

.confidence-meter__progress[data-confidence="medium-high"] {
    stroke: var(--confidence-medium-high-color, #20C997);
}

.confidence-meter__progress[data-confidence="high"] {
    stroke: var(--confidence-high-color, #28A745);
}

/* Percentage Label - Hidden by default, shown on hover/tap - GPU Accelerated */
.confidence-meter__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-color, #212529);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    will-change: opacity;
    backface-visibility: hidden;
}

.confidence-meter-container:hover .confidence-meter__label,
.confidence-meter-container.show-label .confidence-meter__label {
    opacity: 1;
}

/* Icon - Shown when not hovering - GPU Accelerated */
.confidence-meter__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    font-size: 0.9rem;
    color: var(--text-color-secondary, #6C757D);
    opacity: 1;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity;
    backface-visibility: hidden;
}

.confidence-meter-container:hover .confidence-meter__icon,
.confidence-meter-container.show-label .confidence-meter__icon {
    opacity: 0;
}

/* Animation Keyframes */
@keyframes confidence-fill {
    from {
        stroke-dashoffset: var(--circle-circumference);
    }
    to {
        stroke-dashoffset: var(--target-offset);
    }
}

/* Tooltip for accessibility - appears on focus */
.confidence-meter__tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.confidence-meter-container:focus .confidence-meter__tooltip,
.confidence-meter-container:focus-within .confidence-meter__tooltip {
    opacity: 1;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .confidence-meter__background {
        stroke: rgba(255, 255, 255, 0.15);
    }

    .confidence-meter__label {
        color: #F8F9FA;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }

    .confidence-meter__icon {
        color: #ADB5BD;
    }

    .confidence-meter__tooltip {
        background: rgba(255, 255, 255, 0.9);
        color: #212529;
    }
}

/* Dark mode via class (for manual toggle) */
[data-theme="dark"] .confidence-meter__background {
    stroke: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .confidence-meter__label {
    color: #F8F9FA;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .confidence-meter__icon {
    color: #ADB5BD;
}

[data-theme="dark"] .confidence-meter__tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    .confidence-meter-container {
        width: 44px;
        height: 44px;
    }

    .confidence-meter__label {
        font-size: 0.65rem;
    }

    .confidence-meter__icon {
        font-size: 0.85rem;
    }

    /* Show label briefly on tap (controlled via JS) */
    .confidence-meter-container.tapped .confidence-meter__label {
        opacity: 1;
    }

    .confidence-meter-container.tapped .confidence-meter__icon {
        opacity: 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .confidence-meter__progress,
    .confidence-meter__label,
    .confidence-meter__icon,
    .confidence-meter-container {
        transition: none;
        animation: none;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .confidence-meter__background {
        stroke: currentColor;
        stroke-width: 4;
    }

    .confidence-meter__progress {
        stroke-width: 4;
    }

    .confidence-meter__label {
        text-shadow: none;
        background: white;
        padding: 2px 4px;
        border-radius: 2px;
    }
}


/* ====== 03-components/team-form-indicator.css ====== */
/**
 * Team Form Indicator Component Styles
 *
 * Visual indicator showing recent win/loss record as colored dots
 * with animated tooltips on hover.
 */

/* Container for form dots */
.team-form-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 0;
    min-height: 14px;
}

/* Loading state */
.team-form-indicator.loading {
    opacity: 0.6;
}

.form-loading {
    font-size: 10px;
    color: var(--text-muted, #6c757d);
    font-style: italic;
}

/* Individual form dots */
.form-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeInDot 0.3s ease forwards;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Fade-in animation for dots */
@keyframes fadeInDot {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 0.85;
        transform: scale(1);
    }
}

/* Win dot - green */
.form-dot-win {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-dot-win:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

/* Loss dot - red */
.form-dot-loss {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.form-dot-loss:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

/* Tie dot - yellow/amber */
.form-dot-tie {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.form-dot-tie:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* Tooltip */
.form-dot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    text-align: center;
}

/* Tooltip arrow */
.form-dot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

/* Show tooltip on hover */
.form-dot:hover .form-dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Tooltip content */
.tooltip-result {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-result.win {
    color: #28a745;
}

.tooltip-result.loss {
    color: #dc3545;
}

.tooltip-result.tie {
    color: #ffc107;
}

.tooltip-opponent {
    font-weight: 600;
    margin-bottom: 3px;
    color: #fff;
}

.tooltip-score {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.tooltip-details {
    font-size: 10px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
    margin-top: 5px;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .form-dot {
        width: 10px;
        height: 10px;
        /* Larger touch targets on mobile */
    }

    .team-form-indicator {
        gap: 6px;
    }

    .form-dot-tooltip {
        font-size: 13px;
        padding: 12px 14px;
        min-width: 140px;
    }

    /* Simplified tooltip on mobile - show on tap */
    .form-dot:active .form-dot-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-12px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .form-dot {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .form-loading {
        color: #adb5bd;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-dot {
        border-width: 2px;
    }

    .form-dot-win {
        border-color: #28a745;
    }

    .form-dot-loss {
        border-color: #dc3545;
    }

    .form-dot-tie {
        border-color: #ffc107;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-dot {
        animation: none;
        opacity: 0.85;
        transition: none;
    }

    .form-dot:hover {
        transform: none;
    }

    .form-dot-tooltip {
        transition: opacity 0.1s;
    }

    .form-dot:hover .form-dot-tooltip {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Integration with game cards */
.team-display .team-form-indicator {
    /* Ensure form indicator doesn't break team layout */
    max-width: 100%;
}

/* Ensure tooltips don't get cut off */
.team-display {
    position: relative;
    overflow: visible;
}

.team-logos-section {
    overflow: visible;
}


/* ====== 03-components/skeleton.css ====== */
/* Skeleton Loading States - Smooth loading animations for better UX */

/*
 * Skeleton-specific variables scoped to component.
 * These are unique to skeleton loaders - not duplicates of central variables.
 */
.skeleton,
.skeleton-container {
  --skeleton-base: var(--neutral-200);
  --skeleton-shine: var(--neutral-100);
  --skeleton-animation-duration: 2s;
  --skeleton-border-radius: var(--border-radius-sm);
}

/* Dark mode adjustments */
[data-theme="dark"] .skeleton,
[data-theme="dark"] .skeleton-container {
  --skeleton-base: #374151;
  --skeleton-shine: #4b5563;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .skeleton,
  .skeleton-container {
    --skeleton-base: var(--neutral-300);
    --skeleton-shine: var(--neutral-200);
  }

  [data-theme="dark"] .skeleton,
  [data-theme="dark"] .skeleton-container {
    --skeleton-base: #1f2937;
    --skeleton-shine: #374151;
  }
}

/* Base skeleton class with shimmer animation */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base);

  /* Shimmer effect gradient */
  background-image: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-shine) 20%,
    var(--skeleton-base) 40%,
    var(--skeleton-base) 100%
  );
  background-repeat: no-repeat;
  background-size: 200% 100%;

  /* GPU-accelerated animation */
  animation: skeleton-shimmer var(--skeleton-animation-duration) infinite linear;
  will-change: background-position;
}

/* Shimmer animation keyframes */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Reduced motion: disable animation */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background-image: none;
  }
}

/* Pick Card Skeleton */
.skeleton-card {
  border-radius: var(--skeleton-border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 280px;
}

.skeleton-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Team section skeleton */
.skeleton-teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.skeleton-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Team logo placeholder */
.skeleton-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Team name placeholder */
.skeleton-team-name {
  width: 80px;
  height: 14px;
  border-radius: var(--skeleton-border-radius);
}

/* VS indicator skeleton */
.skeleton-vs {
  width: 20px;
  height: 14px;
  border-radius: var(--skeleton-border-radius);
}

/* Team form dots skeleton */
.skeleton-form-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.skeleton-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Betting line skeleton */
.skeleton-line {
  width: 120px;
  height: 24px;
  border-radius: var(--skeleton-border-radius);
  margin: 0 auto;
}

/* Game info skeleton */
.skeleton-game-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
}

.skeleton-info-item {
  height: 12px;
  border-radius: var(--skeleton-border-radius);
}

.skeleton-info-item.time {
  width: 100px;
}

.skeleton-info-item.venue {
  width: 150px;
}

/* Confidence meter skeleton */
.skeleton-confidence {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Expandable stats panel skeleton */
.skeleton-stats-panel {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.skeleton-stat-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-stat-title {
  width: 100px;
  height: 16px;
  border-radius: var(--skeleton-border-radius);
  margin-bottom: 0.25rem;
}

.skeleton-stat-line {
  height: 12px;
  border-radius: var(--skeleton-border-radius);
}

/* Varied widths for natural look */
.skeleton-stat-line:nth-child(2) { width: 80%; }
.skeleton-stat-line:nth-child(3) { width: 65%; }
.skeleton-stat-line:nth-child(4) { width: 90%; }
.skeleton-stat-line:nth-child(5) { width: 75%; }

/* Text line skeleton utility classes */
.skeleton-text {
  height: 14px;
  border-radius: var(--skeleton-border-radius);
  margin: 0.25rem 0;
}

.skeleton-text.small {
  height: 12px;
}

.skeleton-text.large {
  height: 18px;
}

.skeleton-text.title {
  height: 24px;
  width: 60%;
}

/* Box skeleton for generic content */
.skeleton-box {
  border-radius: var(--skeleton-border-radius);
}

.skeleton-box.small {
  width: 50px;
  height: 50px;
}

.skeleton-box.medium {
  width: 100px;
  height: 100px;
}

.skeleton-box.large {
  width: 150px;
  height: 150px;
}

/* Circle skeleton utility */
.skeleton-circle {
  border-radius: 50%;
}

.skeleton-circle.small {
  width: 32px;
  height: 32px;
}

.skeleton-circle.medium {
  width: 48px;
  height: 48px;
}

.skeleton-circle.large {
  width: 64px;
  height: 64px;
}

/* Loading container with aria-busy */
.skeleton-container[aria-busy="true"] {
  position: relative;
  min-height: 100px;
}

/* Fade transition when content loads */
.skeleton-fade-out {
  animation: skeleton-fade 0.3s ease-out forwards;
}

@keyframes skeleton-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .skeleton-teams {
    gap: 1rem;
  }

  .skeleton-logo {
    width: 50px;
    height: 50px;
  }

  .skeleton-team-name {
    width: 70px;
  }

  .skeleton-card {
    min-height: 240px;
  }
}

/* Stagger animation for multiple skeletons */
.skeleton-stagger .skeleton:nth-child(1) {
  animation-delay: 0s;
}

.skeleton-stagger .skeleton:nth-child(2) {
  animation-delay: 0.1s;
}

.skeleton-stagger .skeleton:nth-child(3) {
  animation-delay: 0.2s;
}

.skeleton-stagger .skeleton:nth-child(4) {
  animation-delay: 0.3s;
}

.skeleton-stagger .skeleton:nth-child(5) {
  animation-delay: 0.4s;
}

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

/* Performance optimization: Use background-position-x for smoother animation */
/* Note: Removed @supports wrapper as it causes minification issues with clean-css */

/* ====== 03-components/expandable-panel.css ====== */
/* Expandable Stats Panel - Progressive disclosure for additional game statistics */

/*
 * Panel-specific variables scoped to component.
 * These are unique to expandable panels - not duplicates of central variables.
 */
.stats-panel-wrapper,
.expand-stats-btn,
.stats-panel {
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(74, 144, 226, 0.1);
  --panel-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --panel-padding: 1.25rem;
  --panel-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --chevron-size: 20px;
}

[data-theme="dark"] .stats-panel-wrapper,
[data-theme="dark"] .expand-stats-btn,
[data-theme="dark"] .stats-panel {
  --panel-bg: rgba(31, 41, 55, 0.98);
  --panel-border: rgba(128, 196, 255, 0.15);
  --panel-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Expand Toggle Button - GPU Accelerated */
.expand-stats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.75rem;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 0.375rem;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--panel-transition);
  position: relative;
  overflow: hidden;
  /* GPU acceleration */
  will-change: transform, background-color;
  backface-visibility: hidden;
}

.expand-stats-btn:hover {
  background: rgba(74, 144, 226, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-1px) translateZ(0);
}

.expand-stats-btn:active {
  transform: translateY(0) translateZ(0);
}

/* Chevron Icon - GPU Accelerated */
.expand-stats-btn .chevron {
  width: var(--chevron-size);
  height: var(--chevron-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  will-change: transform;
  backface-visibility: hidden;
}

.expand-stats-btn .chevron svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.expand-stats-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg) translateZ(0);
}

/* Stats Panel Container - GPU Accelerated */
.stats-panel-wrapper {
  overflow: hidden;
  /* Use transform instead of max-height for GPU acceleration */
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  /* Force GPU layer creation */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.stats-panel-wrapper.expanded {
  transform: scaleY(1);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

.stats-panel {
  padding: var(--panel-padding);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  margin-top: 0.75rem;
  box-shadow: var(--panel-shadow);
}

/* Stats Grid Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Stat Section */
.stat-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 0.25rem;
}

/* Individual Stats */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.stat-label {
  color: var(--text-secondary);
  flex: 1;
}

.stat-value {
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
  min-width: 60px;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

.stat-value.neutral {
  color: #6b7280;
}

/* H2H History */
.h2h-history {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.h2h-game {
  width: 24px;
  height: 24px;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  cursor: help;
  transition: transform 0.2s;
}

.h2h-game:hover {
  transform: scale(1.1);
}

.h2h-game.win {
  background: #10b981;
}

.h2h-game.loss {
  background: #ef4444;
}

.h2h-game.tie {
  background: #f59e0b;
}

/* ATS Record Display */
.ats-record {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ats-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

/* Recent Performance Bars */
.performance-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.performance-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 40px;
}

.performance-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.performance-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Weather & Venue Info */
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  font-size: 0.8125rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

[data-theme="dark"] .info-chip {
  background: rgba(255, 255, 255, 0.1);
}

.info-chip-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Loading State for Panel */
.stats-panel.loading {
  position: relative;
  min-height: 200px;
}

.stats-panel.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: panel-shimmer 1.5s infinite;
}

@keyframes panel-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-panel {
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .expand-stats-btn {
    padding: 0.625rem;
    font-size: 0.8125rem;
  }

  .stat-row {
    font-size: 0.8125rem;
  }

  .h2h-game {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .stats-panel-wrapper,
  .expand-stats-btn,
  .chevron,
  .performance-bar-fill {
    transition: none;
  }

  @keyframes panel-shimmer {
    0%, 100% {
      transform: none;
    }
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .expand-stats-btn {
    border-width: 2px;
  }

  .stats-panel {
    border-width: 2px;
  }

  .stat-section-title {
    border-bottom-width: 2px;
  }
}

/* Print Styles */
@media print {
  .expand-stats-btn {
    display: none;
  }

  .stats-panel-wrapper {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* ====== 03-components/tooltip.css ====== */
/* Smart Contextual Tooltips - Progressive information disclosure on hover */

/*
 * Tooltip-specific variables scoped to component.
 * These are unique to tooltips - not duplicates of central variables.
 */
.tooltip,
[data-tooltip] {
  --tooltip-bg: rgba(0, 0, 0, 0.9);
  --tooltip-text: #ffffff;
  --tooltip-border: rgba(255, 255, 255, 0.1);
  --tooltip-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --tooltip-max-width: 250px;
  --tooltip-padding: 8px 12px;
  --tooltip-font-size: 14px;
  --tooltip-z-index: 9999;
  --tooltip-arrow-size: 6px;
}

/* Tooltip Container */
.tooltip {
  position: absolute;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  border: 1px solid var(--tooltip-border);
  border-radius: 6px;
  padding: var(--tooltip-padding);
  max-width: var(--tooltip-max-width);
  font-size: var(--tooltip-font-size);
  line-height: 1.4;
  box-shadow: var(--tooltip-shadow);
  z-index: var(--tooltip-z-index);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  word-wrap: break-word;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip Arrow */
.tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: var(--tooltip-arrow-size);
  border-color: transparent;
}

/* Arrow positions */
.tooltip.top::before {
  bottom: calc(var(--tooltip-arrow-size) * -2);
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--tooltip-bg);
  border-bottom-width: 0;
}

.tooltip.bottom::before {
  top: calc(var(--tooltip-arrow-size) * -2);
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--tooltip-bg);
  border-top-width: 0;
}

.tooltip.left::before {
  right: calc(var(--tooltip-arrow-size) * -2);
  top: 50%;
  transform: translateY(-50%);
  border-left-color: var(--tooltip-bg);
  border-right-width: 0;
}

.tooltip.right::before {
  left: calc(var(--tooltip-arrow-size) * -2);
  top: 50%;
  transform: translateY(-50%);
  border-right-color: var(--tooltip-bg);
  border-left-width: 0;
}

/* Tooltip Content Types */
.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tooltip-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  gap: 8px;
}

.tooltip-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.tooltip-stat-value {
  font-weight: 500;
  color: #ffffff;
}

.tooltip-percentage {
  color: #10b981;
  font-weight: 600;
}

.tooltip-negative {
  color: #ef4444;
}

.tooltip-warning {
  color: #f59e0b;
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 4px;
}

/* Mobile-specific styles */
@media (hover: none) and (pointer: coarse) {
  .tooltip {
    /* On mobile, tooltips appear on long-press */
    max-width: calc(100vw - 32px);
    font-size: 15px;
    padding: 10px 14px;
  }

  .tooltip.mobile-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Add close button for mobile */
  .tooltip-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
  }

  .tooltip-close::before,
  .tooltip-close::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: white;
  }

  .tooltip-close::before {
    transform: rotate(45deg);
  }

  .tooltip-close::after {
    transform: rotate(-45deg);
  }
}

/* Trigger element styles */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover {
  z-index: 1;
}

/* Special tooltip types */
.tooltip.error {
  --tooltip-bg: rgba(220, 38, 38, 0.95);
  --tooltip-border: rgba(239, 68, 68, 0.3);
}

.tooltip.success {
  --tooltip-bg: rgba(16, 185, 129, 0.95);
  --tooltip-border: rgba(52, 211, 153, 0.3);
}

.tooltip.warning {
  --tooltip-bg: rgba(245, 158, 11, 0.95);
  --tooltip-border: rgba(251, 191, 36, 0.3);
}

.tooltip.info {
  --tooltip-bg: rgba(59, 130, 246, 0.95);
  --tooltip-border: rgba(96, 165, 250, 0.3);
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .tooltip {
    border-width: 2px;
    font-weight: 500;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tooltip {
    transition: none;
  }
}

/* Print styles - hide tooltips */
@media print {
  .tooltip {
    display: none !important;
  }
}

/* ====== 03-components/quick-actions.css ====== */
/* Quick Action Buttons - Contextual actions on hover */

:root {
  --qa-bg: rgba(0, 0, 0, 0.75);
  --qa-border: rgba(255, 255, 255, 0.1);
  --qa-button-size: 32px;
  --qa-button-bg: rgba(255, 255, 255, 0.1);
  --qa-button-hover: rgba(255, 255, 255, 0.2);
  --qa-icon-color: #ffffff;
  --qa-gap: 8px;
}

[data-theme="dark"] {
  --qa-bg: rgba(31, 41, 55, 0.85);
  --qa-border: rgba(128, 196, 255, 0.2);
}

/* Quick Actions Container */
.quick-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: var(--qa-gap);
  padding: 6px;
  background: var(--qa-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--qa-border);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

/* Show on card hover */
.game-card:hover .quick-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Quick Action Button */
.qa-btn {
  width: var(--qa-button-size);
  height: var(--qa-button-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--qa-button-bg);
  border: none;
  border-radius: 50%;
  color: var(--qa-icon-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  position: relative;
}

.qa-btn:hover {
  background: var(--qa-button-hover);
  transform: scale(1.1);
}

.qa-btn:active {
  transform: scale(0.95);
}

/* Button states */
.qa-btn.active {
  background: var(--primary-color);
  color: white;
}

.qa-btn.active::after {
  content: '✓';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  border: 2px solid var(--qa-bg);
}

/* Mobile adjustments */
@media (hover: none) and (pointer: coarse) {
  .quick-actions {
    opacity: 0;
    pointer-events: none;
  }

  /* Show on long-press */
  .game-card.show-actions .quick-actions {
    opacity: 1;
    pointer-events: auto;
  }

  .qa-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .quick-actions {
    gap: 12px;
    padding: 8px;
  }
}

/* Accessibility */
.qa-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .quick-actions {
    border-width: 2px;
  }

  .qa-btn {
    border: 1px solid white;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .quick-actions,
  .qa-btn {
    transition: none;
  }
}

/* Print - hide quick actions */
@media print {
  .quick-actions {
    display: none !important;
  }
}

/* ====== 03-components/mobile-touch-targets.css ====== */
/* ========================================
 * MOBILE TOUCH TARGET FIXES (WCAG 2.5.5)
 * Minimum 44x44px for all interactive elements
 * ======================================== */

/* ========================================
 * BUTTONS - ENSURE 44PX MINIMUM
 * ======================================== */

/* Small buttons - increase to meet minimum */
.btn-sm {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
}

/* Icon-only buttons */
.btn-icon,
.btn-close {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Theme toggle button - ensure 44px minimum */
#theme-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
}

/* ========================================
 * NAVIGATION LINKS
 * ======================================== */

/* Navbar links - ensure adequate touch target */
.navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
}

/* Navbar toggler - ensure adequate size */
.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
}

/* ========================================
 * DROPDOWN ITEMS
 * ======================================== */

.dropdown-item {
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
}

/* ========================================
 * SOCIAL MEDIA ICONS - FOOTER
 * ======================================== */

.social-link {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
 * MODAL CLOSE BUTTONS
 * ======================================== */

.modal-header .btn-close {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
}

/* ========================================
 * FORM CONTROLS
 * ======================================== */

/* Select dropdowns */
.form-select,
select {
    min-height: 44px;
    padding: 10px 12px;
}

/* Text inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
    min-height: 44px;
    padding: 10px 12px;
}

/* ========================================
 * INTERACTIVE CARDS & LINKS
 * ======================================== */

/* Ensure clickable cards have adequate touch area */
.card-link,
a.card,
.clickable-card {
    min-height: 44px;
    padding: 10px 12px;
}

/* ========================================
 * CHIPS, BADGES, TAGS
 * ======================================== */

/* Interactive badges/chips */
.badge.clickable,
.chip.clickable,
.tag.clickable {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
 * PAGINATION & TAB CONTROLS
 * ======================================== */

/* Pagination buttons */
.pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Tab navigation */
.nav-tabs .nav-link,
.nav-pills .nav-link {
    min-height: 44px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

/* ========================================
 * CUSTOM COMPONENTS
 * ======================================== */

/* Credit purchase buttons */
.credit-package-card .btn,
.purchase-btn {
    min-height: 44px;
    padding: 10px 16px;
}

/* Team selection links */
.team-link,
.team-selector {
    min-height: 44px;
    padding: 10px 12px;
}

/* Filter buttons */
.filter-btn,
.edge-ai-filters .btn {
    min-height: 44px;
    padding: 10px 16px;
}

/* ========================================
 * MOBILE-SPECIFIC ADJUSTMENTS
 * ======================================== */

@media (max-width: 768px) {
    /* Ensure all buttons meet minimum on mobile */
    .btn,
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }

    /* Navigation items - full touch target */
    .nav-item .nav-link {
        min-height: 44px;
        width: 100%;
        padding: 12px 16px;
    }

    /* Dropdown items in mobile nav */
    .navbar-nav .dropdown-menu .dropdown-item {
        min-height: 44px;
        padding: 12px 16px;
    }

    /* Social icons - ensure 44px on mobile */
    .social-links .social-link {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    /* Modal close - larger on mobile for easier tapping */
    .modal .btn-close {
        min-width: 48px;
        min-height: 48px;
        padding: 14px;
    }

    /* Icon-only buttons - ensure adequate spacing */
    .btn-icon,
    .icon-button {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }
}

/* ========================================
 * ACCESSIBILITY IMPROVEMENTS
 * ======================================== */

/* Ensure focus states are visible on all touch targets */
button:focus,
.btn:focus,
a:focus,
.nav-link:focus,
.dropdown-item:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color, #10B981);
    outline-offset: 2px;
}

/* Active/pressed state for touch feedback */
button:active,
.btn:active,
a.btn:active,
.nav-link:active,
.dropdown-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* ========================================
 * SPECIFIC COMPONENT FIXES
 * ======================================== */

/* Cookie consent buttons */
.cookie-consent .btn {
    min-height: 44px;
    padding: 10px 16px;
}

/* Alert close buttons */
.alert .btn-close {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
}

/* Toast close buttons */
.toast .btn-close {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
}

/* Accordion toggle buttons */
.accordion-button {
    min-height: 44px;
    padding: 12px 16px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    min-width: 44px;
    min-height: 44px;
}

/* ========================================
 * FOOTER LINKS - ENSURE ADEQUATE SPACING
 * ======================================== */

.footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
}

/* ========================================
 * RANGE SLIDERS & CUSTOM INPUTS
 * ======================================== */

/* Range slider thumb - ensure 44px touch target */
input[type="range"] {
    min-height: 44px;
    padding: 10px 0;
}

/* Custom checkboxes/radio buttons */
.form-check-input {
    min-width: 24px;
    min-height: 24px;
}

.form-check-label {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

/* ========================================
 * BREADCRUMB NAVIGATION
 * ======================================== */

.breadcrumb-item a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
}

/* ========================================
 * LIST GROUP ITEMS
 * ======================================== */

.list-group-item.list-group-item-action {
    min-height: 44px;
    padding: 12px 16px;
}

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

/* Very small screens - slightly larger targets */
@media (max-width: 414px) {
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 48px;
        padding: 12px 16px;
    }

    .social-link {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
    }
}

/* ========================================
 * ENSURE NO NEGATIVE IMPACTS
 * Preserve existing functionality while improving touch targets
 * ======================================== */

/* Maintain text alignment in buttons */
.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Preserve icon sizing */
.btn i,
.nav-link i,
.dropdown-item i {
    font-size: inherit;
    line-height: 1;
}


/* ====== 04-pages/_lineup.css ====== */
.formation-container {
    width: 100%;
    align-items: center;
}

/* Field Styles */
.field {
    position: relative;
    width: 1200px;
    height: 950px;
    background: var(--field-color);
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    margin: 0 auto;
}

/* Line of scrimmage */
.line-marker {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--line-marker);
    transform: translateY(-50%);
}

/* Defense Formation */
.defense-formation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 400px; /* Increased height to provide more space */
    position: relative;
    margin-bottom: 40px;
}

.defensive-line {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 35px; /* Adjusted position */
    transform: translateY(50%);
}

.defensive-line .player-icon.de {
    transform: translate(400px); /* Increased spacing */
}

.defensive-line .player-icon.de.right {
    transform: translate(-400px); /* Increased spacing */
}

.defensive-line .player-icon.dt.left {
    margin-right: 25px;
    transform: translate(150px); /* Adjusted spacing */
}

.defensive-line .player-icon.dt.right {
    margin-left: 25px;
    transform: translate(-150px); /* Adjusted spacing */
}

.linebackers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: 150px; /* Increased distance from defensive line */
}

.linebackers .player-icon.lb.middle {
    transform: translateY(-35px);
}

.linebackers .player-icon.lb.left {
    transform: translateX(350px);
}

.linebackers .player-icon.lb.right {
    transform: translateX(-350px);
}

.secondary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
    position: absolute;
    bottom: 270px; /* Increased distance from linebackers */
    gap: 100px; /* Added gap to prevent overlapping */
}

.secondary .player-icon.cb {
    transform: translateY(260px);
}

.secondary .player-icon.s {
    transform: translateY(-35px);
}

.secondary .player-icon.s.left {
    transform: translate(-230px, -85px); /* Adjusted spacing */
}

.secondary .player-icon.s.right {
    transform: translate(230px, -40px); /* Adjusted spacing */
}

/* Offense Formation */
.offense-formation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(35%);
}

/* Offensive Line */
.offensive-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.offensive-line .player-icon.ol {
    margin: 0 10px; /* Increased margin */
}

/* WR positions */
}

}

/* TE position */
}

/* Backfield positioning */
.backfield {
    position: absolute;
    top: 650px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 100px; /* Increased gap to prevent overlapping */
    z-index: 1;
}

}

}

/* Player Icons - Override size but keep styling from _player_buttons.css */
.player-icon {
    width: 80px; /* Match size from _player_buttons.css */
    height: 80px; /* Match size from _player_buttons.css */
    z-index: 10;
}

/* Focus state for accessibility */
.player-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fix for player hover effects to prevent wiggling */
/* Offense players */
}

}

}

}

}

/* Defense players */
.defensive-line .player-icon.de:hover {
    transform: translate(400px) scale(1.1); /* Updated to match new position */
}

.defensive-line .player-icon.de.right:hover {
    transform: translate(-400px) scale(1.1); /* Updated to match new position */
}

.defensive-line .player-icon.dt.left:hover {
    transform: translate(150px) scale(1.1); /* Updated to match new position */
}

.defensive-line .player-icon.dt.right:hover {
    transform: translate(-150px) scale(1.1); /* Updated to match new position */
}

.linebackers .player-icon.lb.middle:hover {
    transform: translateY(-35px) scale(1.1);
}

.linebackers .player-icon.lb.left:hover {
    transform: translateX(350px) scale(1.1);
}

.linebackers .player-icon.lb.right:hover {
    transform: translateX(-350px) scale(1.1);
}

.secondary .player-icon.cb:hover {
    transform: translateY(260px) scale(1.1);
}

.secondary .player-icon.s:hover {
    transform: translateY(-35px) scale(1.1);
}

.secondary .player-icon.s.left:hover {
    transform: translate(-230px, -85px) scale(1.1); /* Updated to match new position */
}

.secondary .player-icon.s.right:hover {
    transform: translate(230px, -40px) scale(1.1); /* Updated to match new position */
}

/* Ensure names are visible */
.player-icon .name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary, #333);
    border-radius: 3px;
    padding: 2px 6px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.75em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 20; /* Ensure name is above other elements */
}

/* Team Name */
.team-name {
    font-size: 1.8em;
    color: var(--text-primary);
    margin: 10px 0;
    font-weight: bold;
    white-space: nowrap;
    overflow: visible;
    width: auto;
    text-overflow: clip;
}


/* ====== 04-pages/_dashboard.css ====== */
/* Dashboard Layout */
    max-width: 1200px;
    margin: 0 auto;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.chart-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chart-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    flex-shrink: 0;
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Dashboard Header */
.dashboard-header h1 {
    color: var(--text-primary);
}

}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ====== 04-pages/_schedule.css ====== */
/* Schedule Page Styles */
}

.records p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.game-details {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

    padding-left: 0;
}


/* ====== 04-pages/_scoreboard.css ====== */
/* Scoreboard Styles */
.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.scoreboard-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-content {
    padding: 1rem;
}

.coverage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.scoreboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    padding: 1px;
    justify-content: center;
}

.game-glance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

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

.team-name {
    font-size: 1.2em;
    font-weight: bold;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: bold;
}

.game-details {
    text-align: center;
    padding: 5px;
    font-size: 0.8em;
}


/* ====== 04-pages/_splits.css ====== */
/* Splits Dashboard Specific Styles */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--player-shadow);
    border: 1px solid var(--border-color);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* PPA specific styling */
    font-family: monospace;
    font-size: 1.8rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--player-shadow);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

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

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


/* ====== 04-pages/_subscribe.css ====== */
    color: var(--text-primary);
}

    border: 1px solid var(--border-color);
}

}

    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

    color: var(--text-primary);
    border-color: var(--primary-color);
}

}

    color: var(--nav-text);
    border: none;
}

}

}

.badge {
    color: var(--nav-text);
}

}

}

    color: var(--text-primary);
}


/* ====== 04-pages/_results.css ====== */
/* Results Page - Redesigned
 * Compact, card-based design matching free simulation style
 * Features: circular logos, pill stats, matrix reveals, minimal charts
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.results-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

/* Dark theme background enhancement */
[data-theme="dark"] .results-page {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Subtle grid pattern - dark theme only */
[data-theme="dark"] .results-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(var(--accent-primary-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-primary-rgb), 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   UNIFIED SCOREBOARD CARD
   ============================================ */

.results-scoreboard {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .results-scoreboard {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

/* Top accent bar */
.results-scoreboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cta-primary);
}

[data-theme="dark"] .results-scoreboard::before {
    background: linear-gradient(90deg, var(--cta-primary), #34d399, var(--cta-primary));
}

/* Simulation Badge */
.results-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    border-radius: 100px;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
    color: var(--cta-primary);
    margin-bottom: var(--spacing-lg);
}

.results-badge i {
    font-size: 0.625rem;
}

/* ============================================
   SCORE DISPLAY WITH CIRCULAR LOGOS
   ============================================ */

.score-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.team-result {
    flex: 1;
    max-width: 200px;
    text-align: center;
    position: relative;
}

/* Circular Team Logo */
.team-logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-logo-circle .team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Winner styling */
.team-result.winner .team-logo-circle {
    border-color: var(--cta-primary);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
}

[data-theme="dark"] .team-result.winner .team-logo-circle {
    box-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.4);
}

/* Loser styling - de-emphasize losing team */
.team-result.loser .team-logo-circle {
    filter: grayscale(70%);
    opacity: 0.7;
    border-color: var(--border-color);
}

.team-result.loser .team-score {
    color: var(--text-muted);
}

.team-result.loser .team-name {
    color: var(--text-secondary);
}

[data-theme="dark"] .team-result.loser .team-logo-circle {
    filter: grayscale(60%);
    opacity: 0.6;
}

/* Confidence pulse for winner */
.team-result.winner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-primary-rgb), 0.3);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(1.4);
        opacity: 0;
    }
}

.team-result .team-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.team-result .team-name {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-result .team-score {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.team-result.winner .team-score {
    color: var(--cta-primary);
}

[data-theme="dark"] .team-result.winner .team-score {
    text-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
}

.team-result .score-range {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* VS Section */
.score-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: 2.5rem;
}

.score-vs .vs-badge {
    width: 44px;
    height: 44px;
    background: var(--cta-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    color: white;
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
    position: relative;
}

/* Orbiting ring - dark theme only */
[data-theme="dark"] .score-vs .vs-badge::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed rgba(var(--accent-primary-rgb), 0.3);
    border-radius: 50%;
    animation: vs-orbit 10s linear infinite;
}

@keyframes vs-orbit {
    to { transform: rotate(360deg); }
}

/* Spread Pill */
.spread-pill {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 100px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    color: #FBBF24;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.spread-pill i {
    font-size: 0.5rem;
}

/* ============================================
   WIN PROBABILITY BAR
   ============================================ */

.win-prob-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .win-prob-section {
    border-color: rgba(255, 255, 255, 0.06);
}

.win-prob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.win-prob-header .team-prob {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

.win-prob-header .team-prob.away { color: #3B82F6; }
.win-prob-header .team-prob.home { color: #EC4899; }

.win-prob-bar {
    height: 10px;
    background: var(--accent-subtle);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
}

.win-prob-bar .away-prob {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left center;
}

.win-prob-bar .home-prob {
    height: 100%;
    background: linear-gradient(90deg, #F472B6, #EC4899);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: right center;
}

.win-prob-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xs);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.win-prob-labels .prob-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   INSIGHT PILLS ROW
   ============================================ */

.insights-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.insight-pill {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.2s ease;
}

[data-theme="dark"] .insight-pill {
    background: rgba(20, 20, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

.insight-pill:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    transform: translateY(-2px);
}

.insight-pill.highlight {
    border-color: var(--cta-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
}

.insight-pill i {
    color: var(--cta-primary);
    font-size: 0.875rem;
}

.insight-pill .insight-value {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.insight-pill .insight-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   STATS COMPARISON GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stats-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
}

[data-theme="dark"] .stats-card {
    background: rgba(20, 20, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.stats-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .stats-card-header {
    border-color: rgba(255, 255, 255, 0.06);
}

.stats-card-header i {
    color: var(--cta-primary);
    font-size: 0.875rem;
}

.stats-card-header span {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Stat Bar Row (for yards) */
.stat-bar-row {
    padding: var(--spacing-sm) 0;
}

.stat-bar-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-bar-row:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.04);
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.stat-bar-label .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-bar-label .values {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-bar-label .values .away { color: #3B82F6; }
.stat-bar-label .values .home { color: #EC4899; }
.stat-bar-label .values .separator { color: var(--text-muted); }

.stat-bar-visual {
    height: 6px;
    background: var(--accent-subtle);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
}

.stat-bar-visual .away-bar {
    height: 100%;
    background: #3B82F6;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-bar-visual .home-bar {
    height: 100%;
    background: #EC4899;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stat Compare Row (for values) */
.stat-compare {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.stat-compare:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-compare:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.04);
}

.stat-compare .away-val {
    width: 50px;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: #3B82F6;
}

.stat-compare .stat-label {
    flex: 1;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    padding: 0 var(--spacing-xs);
}

.stat-compare .home-val {
    width: 50px;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: #EC4899;
}

/* ============================================
   PLAYER PROJECTIONS
   ============================================ */

.player-projections {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

[data-theme="dark"] .player-projections {
    background: rgba(20, 20, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.section-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.section-badge i {
    color: var(--cta-primary);
}

.section-note {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.player-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.team-players-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .team-players-header {
    border-color: rgba(255, 255, 255, 0.06);
}

.team-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name-small {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.player-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.player-pill {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .player-pill {
    background: rgba(30, 30, 45, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.player-pill:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
}

.player-pill .player-pos {
    font-weight: var(--font-weight-bold);
    color: var(--cta-primary);
    font-size: 0.625rem;
}

.player-pill .player-stat {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.player-pill.placeholder .player-stat {
    color: var(--text-muted);
}

.player-pill .player-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0 0.125rem;
    max-width: 6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-player-data {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.75rem;
    padding: var(--spacing-sm);
    text-align: center;
    width: 100%;
}

/* ============================================
   COMPACT SIMULATION RESULTS
   ============================================ */

.simulation-results-compact {
    margin-bottom: var(--spacing-lg);
}

.sim-results-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .sim-results-toggle {
    background: rgba(20, 20, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.sim-results-toggle:hover {
    border-color: var(--cta-primary);
    color: var(--cta-primary);
}

.sim-results-toggle i:first-child {
    color: var(--cta-primary);
}

.sim-results-toggle .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.sim-results-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.sim-results-content {
    display: none;
    margin-top: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.sim-results-content.expanded {
    display: block;
    animation: slideDown 0.3s ease;
}

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

[data-theme="dark"] .sim-results-content {
    background: rgba(20, 20, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.sim-results-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
}

.sim-results-table {
    width: 100%;
    font-size: 0.8125rem;
    border-collapse: collapse;
}

.sim-results-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

[data-theme="dark"] .sim-results-table thead {
    background: rgba(15, 15, 25, 0.95);
}

.sim-results-table th {
    padding: var(--spacing-sm);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.sim-results-table td {
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: center;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .sim-results-table td {
    border-color: rgba(255, 255, 255, 0.04);
}

.sim-results-table tbody tr:hover {
    background: rgba(var(--accent-primary-rgb), 0.05);
}

.sim-results-table .sim-num {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.sim-results-table .winner {
    color: var(--cta-primary);
    font-weight: var(--font-weight-semibold);
}

.margin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    background: var(--accent-subtle);
    color: var(--text-secondary);
}

.margin-badge.close {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.margin-badge.blowout {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* ============================================
   PREDICTION INSIGHT
   ============================================ */

.prediction-insight {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(var(--accent-primary-rgb), 0.05);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.prediction-insight .insight-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prediction-insight .insight-icon i {
    font-size: 1.25rem;
    color: var(--cta-primary);
}

.prediction-insight .insight-content {
    flex: 1;
}

.prediction-insight .insight-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cta-primary);
    margin-bottom: var(--spacing-xs);
}

.prediction-insight .insight-text {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* ============================================
   CTA BUTTON
   ============================================ */

.results-cta {
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--cta-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--cta-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-primary-rgb), 0.3);
}

/* Shimmer effect - dark theme only */
[data-theme="dark"] .cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

[data-theme="dark"] .cta-btn:hover::before {
    left: 100%;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--cta-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-primary-rgb), 0.4);
}

/* ============================================
   GLITCH/MATRIX TEXT EFFECTS
   ============================================ */

.glitch-score,
.glitch-text {
    font-family: 'Courier New', monospace;
    position: relative;
}

.glitch-score .glitch-char,
.glitch-text .glitch-char {
    display: inline-block;
    transition: color 0.1s;
}

.glitch-score .glitch-char.scrambling,
.glitch-text .glitch-char.scrambling {
    color: var(--cta-primary);
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

.glitch-score .glitch-char.splitting,
.glitch-text .glitch-char.splitting {
    animation: rgb-split 0.15s ease-out;
}

@keyframes rgb-split {
    0% {
        text-shadow:
            -2px 0 #ff0000,
            2px 0 #00ffff;
        opacity: 0.8;
    }
    50% {
        text-shadow:
            -1px 0 #ff0000,
            1px 0 #00ffff;
        opacity: 1;
    }
    100% {
        text-shadow: none;
        opacity: 1;
    }
}

/* Matrix rain effect for player pills */
.matrix-text {
    font-family: 'Courier New', monospace;
}

.matrix-text.revealing::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--cta-primary);
    opacity: 0.5;
    animation: matrix-flicker 0.1s infinite;
}

@keyframes matrix-flicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* ============================================
   DATA BLOOM (STAGGERED REVEAL)
   ============================================ */

.results-scoreboard,
.insights-pills,
.stats-card,
.player-projections,
.simulation-results-compact,
.prediction-insight,
.results-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.results-scoreboard { animation-delay: 0s; }
.insights-pills { animation-delay: 0.1s; }
.stats-card:nth-child(1) { animation-delay: 0.15s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.25s; }
.stats-card:nth-child(4) { animation-delay: 0.3s; }
.player-projections { animation-delay: 0.35s; }
.simulation-results-compact { animation-delay: 0.4s; }
.prediction-insight { animation-delay: 0.45s; }
.results-cta { animation-delay: 0.5s; }

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

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

@media (max-width: 768px) {
    .results-page {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .results-scoreboard {
        padding: var(--spacing-md);
    }

    .score-display {
        gap: var(--spacing-sm);
    }

    .team-logo-circle {
        width: 80px;
        height: 80px;
    }

    .team-result .team-score {
        font-size: 2rem;
    }

    .team-result .team-name {
        font-size: 0.875rem;
    }

    .score-vs {
        padding-top: 1.5rem;
    }

    .score-vs .vs-badge {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .insights-pills {
        gap: var(--spacing-xs);
    }

    .insight-pill {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .insight-pill .insight-value {
        font-size: 0.875rem;
    }

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

    .player-pills-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .score-display {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .team-result {
        max-width: none;
    }

    .score-vs {
        flex-direction: row;
        padding-top: 0;
    }

    .team-result .team-score {
        font-size: 2.5rem;
    }

    .insight-pill .insight-label {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

    .results-scoreboard,
    .insights-pills,
    .stats-card,
    .player-projections,
    .simulation-results-compact,
    .prediction-insight,
    .results-cta {
        opacity: 1;
        transform: none;
    }

    .team-result.winner::after {
        animation: none;
    }

    .score-vs .vs-badge::before {
        animation: none;
    }
}

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

#results-data {
    display: none;
}


/* ====== 04-pages/_results_layout.css ====== */
/* Results page layout styles */
}

    flex-wrap: wrap;
    justify-content: flex-start;
}

}

    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    }
}


/* ====== 04-pages/_simulation.css ====== */
/* Simulation page specific styles */
.main-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 30px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    text-align: center;
    line-height: 30px;
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

#status {
    margin-top: 1rem;
    color: var(--text-primary);
}

.fun-fact {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
    min-height: 1.5rem;
    transition: opacity 0.3s ease;
}


/* ====== 04-pages/_login.css ====== */
/* Login Page Styles */
.login-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--card-bg-color);
    box-shadow: 0 8px 24px rgba(var(--card-bg-color-rgb), 0.05), 
               0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(var(--card-bg-color-rgb), 0.07), 
               0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 85%;
    margin: 0 auto;
}

.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
    transition: all 0.3s ease;
}

.divider-text {
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-options {
    margin: 1.5rem 0;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
}

/* Legacy login styling */
.legacy-login {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}

.legacy-login p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Custom Google Sign-In Button Styling */
.custom-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    text-decoration: none;
}

.custom-google-btn:hover {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: var(--text-primary);
    border-color: var(--border-color);
    text-decoration: none;
}

.custom-google-btn i {
    color: #4285F4;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        margin: 30px 15px;
        padding: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
}

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

.login-container {
    animation: fadeInUp 0.5s ease-out forwards;
}


/* ====== 04-pages/_picks.css ====== */
/* Picks Page Specific Styles */
/* Main picks styles are in picks.css - this file contains minimal overrides */

/* Additional picks-specific utilities */
.picks-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments specific to picks page */
@media (max-width: 768px) {
    .picks-page-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    #user-credit-status {
        width: 100%;
        justify-content: center;
    }
}

/* ====== 04-pages/_profile.css ====== */
/* Profile Page Styles - Essential Dashboard Design */

/* Essential Dashboard Profile Styles */
.profile-essential {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg, 1.5rem) var(--spacing-md, 1rem);
}

/* Compact Header */
.profile-header-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-md, 1rem);
    padding: var(--spacing-lg, 1.5rem);
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 16px;
    margin-bottom: var(--spacing-lg, 1.5rem);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.profile-avatar-compact {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.profile-avatar-img-compact {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #10B981);
}

.profile-avatar-placeholder-compact {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #10B981), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-name-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.profile-email-compact {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-member-compact {
    font-size: 0.8rem;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards Container */
.profile-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
    margin-bottom: var(--spacing-lg, 1.5rem);
}

/* Essential Card */
.profile-card-essential {
    background: var(--card-bg, rgba(255,255,255,0.05));
    border-radius: 12px;
    padding: var(--spacing-md, 1rem);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    transition: all 0.2s ease;
}

.profile-card-essential:hover {
    border-color: var(--primary-color, #10B981);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.card-header-essential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm, 0.75rem);
}

.card-icon {
    color: var(--primary-color, #10B981);
    font-size: 1rem;
}

.card-content-essential {
    margin-bottom: var(--spacing-md, 1rem);
}

/* Credits Display */
.credits-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.credits-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #10B981);
    line-height: 1;
    font-family: var(--font-mono, monospace);
}

.credits-label {
    font-size: 1rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.credits-info {
    font-size: 0.85rem;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin: 0;
}

/* Account Items */
.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

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

.account-label {
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.account-value {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-admin-badge {
    color: #f59e0b;
}

/* Card Actions */
.card-actions-essential {
    display: flex;
    gap: 0.75rem;
}

.card-actions-split {
    justify-content: flex-end;
}

/* Buttons */
.btn-essential {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-essential {
    background: var(--primary-color, #10B981);
    color: white;
    flex: 1;
}

.btn-primary-essential:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary-essential {
    background: var(--bg-secondary, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff);
}

.btn-secondary-essential:hover {
    background: rgba(255,255,255,0.15);
}

.btn-outline-essential {
    background: transparent;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
}

.btn-outline-essential:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary, #fff);
}

/* Quick Links */
.profile-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--card-bg, rgba(255,255,255,0.03));
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
    color: var(--text-secondary, rgba(255,255,255,0.7));
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.quick-link i {
    font-size: 1.25rem;
    color: var(--primary-color, #10B981);
}

.quick-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color, #10B981);
    color: var(--text-primary, #fff);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
    .profile-essential {
        padding: var(--spacing-md, 1rem);
    }

    .profile-header-compact {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md, 1rem);
    }

    .profile-member-compact {
        justify-content: center;
    }

    .credits-value {
        font-size: 2rem;
    }

    .profile-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-actions-split {
        flex-direction: column;
    }

    .btn-essential {
        width: 100%;
    }
}

/* Light Mode Adjustments */
[data-theme="light"] .profile-header-compact,
[data-theme="light"] .profile-card-essential {
    background: #fff;
    border-color: #e5e7eb;
}

[data-theme="light"] .profile-name-compact {
    color: #111827;
}

[data-theme="light"] .profile-email-compact,
[data-theme="light"] .account-label {
    color: #6b7280;
}

[data-theme="light"] .account-value {
    color: #111827;
}

[data-theme="light"] .quick-link {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}

[data-theme="light"] .quick-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #111827;
}

[data-theme="light"] .btn-secondary-essential {
    background: #f3f4f6;
    color: #374151;
}

[data-theme="light"] .btn-outline-essential {
    color: #6b7280;
    border-color: #d1d5db;
}


/* ====== 04-pages/_privacy-dashboard.css ====== */
/* Privacy Dashboard Styles - Updated for UI/UX Style Guide */

.privacy-dashboard {
    max-width: 1200px;
    margin: 3rem auto; /* Increased for Ma principle - generous spacing */
    padding: 0 2rem; /* Increased padding for breathing room */
    background: var(--bg-primary);
    min-height: 100vh;
}

.privacy-header {
    margin-bottom: 3rem; /* Increased spacing between sections */
    padding: 2rem 0; /* Added vertical padding for spaciousness */
    text-align: center; /* Centered for harmony */
}

.privacy-header h1 {
    font-size: 2.5rem; /* Slightly larger for better hierarchy */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem; /* Increased margin for Ma principle */
    letter-spacing: -0.025em; /* Subtle letter spacing for refinement */
}

.privacy-header h1 i {
    color: var(--cta-primary);
    margin-right: 0.75rem;
    font-size: 2.25rem;
}

.privacy-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6; /* Improved readability */
    max-width: 600px; /* Constrained width for better reading */
    margin: 0 auto; /* Centered */
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Slightly wider for better content */
    gap: 2rem; /* Increased gap for Ma principle */
    margin-bottom: 3rem; /* Increased bottom margin */
}

.privacy-card {
    background: var(--bg-card); /* Use proper card background from variables */
    border-radius: 16px; /* Increased border radius for refined bubble aesthetic */
    padding: 2rem; /* Increased padding for Ma principle */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer, more elevated shadow */
    border: 1px solid var(--border-color);
    transition: all 0.2s ease; /* Smooth transitions for ambient interactions */
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.privacy-card:hover {
    transform: translateY(-2px); /* Subtle lift on hover */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
}

.privacy-card:hover::before {
    opacity: 1; /* Show accent bar on hover */
}

.privacy-card h2 {
    font-size: 1.4rem; /* Slightly larger for better hierarchy */
    font-weight: 600;
    margin-bottom: 1.5rem; /* Increased margin for spacing */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Increased gap */
    letter-spacing: -0.01em; /* Subtle letter spacing */
}

.privacy-card h2 i {
    color: var(--primary-color);
    font-size: 1.25rem; /* Slightly larger icon */
    width: 24px; /* Fixed width for alignment */
    text-align: center;
}

/* Toggle switches - Enhanced for Ma and Wa principles */
.toggle-group {
    margin-bottom: 2rem; /* Increased margin for breathing room */
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0; /* Increased padding for Ma principle */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

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

.toggle-item:hover {
    background-color: var(--bg-secondary); /* Subtle hover state */
    margin: 0 -1rem; /* Extend hover area */
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Increased gap for better separation */
    flex: 1;
}

.toggle-label strong {
    font-size: 1rem; /* Slightly larger for better hierarchy */
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.toggle-label small {
    font-size: 0.875rem; /* Standard small text size */
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 90%; /* Prevent text from running into toggle */
}

.toggle-switch {
    position: relative;
    width: 52px; /* Slightly larger for better touch targets */
    height: 28px;
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: 1rem; /* Space from label */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color); /* Use theme colors */
    transition: all 0.3s ease; /* Smoother transition */
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Inner shadow for depth */
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Shadow for handle */
}

input:checked + .slider {
    background-color: var(--primary-color); /* Use primary color from style guide */
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.2); /* Focus ring using theme colors */
}

/* Action buttons - Enhanced for security UX and refined aesthetic */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Increased gap for Ma principle */
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem; /* Increased padding for Ma principle */
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Refined bubble aesthetic */
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.15); /* Enhanced shadow with brand color */
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.action-btn span i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.action-btn > i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.action-btn:hover > i {
    transform: translateX(4px);
}

/* Enhanced delete button with security UX patterns */
.action-btn.danger {
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--status-error);
    background: var(--bg-card);
    position: relative;
}

.action-btn.danger:hover {
    background: rgba(220, 53, 69, 0.05);
    border-color: var(--status-error);
    color: var(--status-error);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
}

.action-btn.danger::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--status-error);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.action-btn.danger:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Consent history */
.consent-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.history-date {
    font-weight: 600;
    color: var(--text-primary);
}

.history-changes {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Enhanced alert messages following UI/UX principles */
.privacy-alert {
    padding: 1.25rem 1.5rem; /* Increased padding for Ma principle */
    border-radius: 12px; /* Refined bubble aesthetic */
    margin-bottom: 1.5rem; /* Increased margin for spacing */
    display: flex;
    align-items: flex-start; /* Align to top for better text flow */
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.privacy-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.6;
}

.privacy-alert i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.privacy-alert span {
    flex: 1;
    line-height: 1.5;
}

.privacy-alert .btn-close {
    flex-shrink: 0;
    padding: 0.25rem;
    margin: -0.25rem -0.25rem -0.25rem 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.privacy-alert .btn-close:hover {
    opacity: 1;
}

.privacy-alert.info {
    background: rgba(var(--accent-primary-rgb), 0.08); /* Use primary color for info */
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    color: var(--primary-color);
}

.privacy-alert.success {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--status-success);
}

.privacy-alert.error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--status-error);
}

.privacy-alert.warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--status-warning);
}

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

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal styles - Enhanced for security UX and refined aesthetic */
.privacy-modal .modal-content {
    border-radius: 16px; /* Refined bubble aesthetic */
    border: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15); /* Enhanced shadow for elevation */
    background: var(--bg-card);
    overflow: hidden;
}

.privacy-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem; /* Increased padding for Ma principle */
    background: var(--bg-card);
    position: relative;
}

.privacy-modal .modal-header.bg-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.05));
    border-bottom-color: rgba(220, 53, 69, 0.2);
}

.privacy-modal .modal-header .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.privacy-modal .modal-header .modal-title i {
    font-size: 1.25rem;
}

.privacy-modal .modal-body {
    padding: 2rem; /* Increased padding for Ma principle */
    line-height: 1.6;
}

.privacy-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem; /* Increased padding for Ma principle */
    background: var(--bg-secondary);
    gap: 1rem;
}

/* Enhanced delete modal with security patterns */
.privacy-modal .modal-content:has(.bg-danger) {
    position: relative;
}

.privacy-modal .modal-content:has(.bg-danger)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--status-error);
    z-index: 10;
}

.privacy-modal .alert-danger {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-modal .alert-danger i {
    color: var(--status-error);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.privacy-modal .alert-danger strong {
    color: var(--status-error);
    font-weight: 600;
}

/* Enhanced form styling for modals */
.privacy-modal .form-check {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.privacy-modal .form-check-input {
    margin-top: 0.1rem;
    margin-right: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
}

.privacy-modal .form-check-label {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    cursor: pointer;
}

/* Delete button specific styling */
.privacy-modal .btn-danger {
    background: var(--status-error);
    border-color: var(--status-error);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.privacy-modal .btn-danger:disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
    opacity: 0.6;
    cursor: not-allowed;
}

.privacy-modal .btn-danger:not(:disabled):hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.privacy-modal .btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.privacy-modal .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* Export options - Enhanced for UI/UX principles */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Increased gap for Ma principle */
    margin-bottom: 2rem; /* Increased margin for better spacing */
}

.export-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* Increased gap */
    padding: 1rem; /* Added padding for capsule aesthetic */
    border: 2px solid var(--border-color);
    border-radius: 12px; /* Refined bubble aesthetic */
    background: var(--bg-card);
    transition: all 0.2s ease; /* Smooth transitions for ambient feedback */
    cursor: pointer;
    position: relative;
}

.export-option:hover {
    border-color: var(--primary-color);
    background: rgba(var(--accent-primary-rgb), 0.02); /* Subtle teal background on hover */
    transform: translateY(-1px); /* Subtle lift effect */
}

.export-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color); /* Modern teal for radio buttons */
}

.export-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.export-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.export-option-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Selected state for export options */
.export-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(var(--accent-primary-rgb), 0.05);
    box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.15);
}

.export-option:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Enhanced Export Modal Styles */
.export-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.step-indicator.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step-indicator.completed .step-number {
    background: var(--status-success);
    color: white;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
}

.export-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(var(--accent-primary-rgb), 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.export-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.export-section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.export-preferences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.preference-item:hover {
    border-color: var(--primary-color);
    background: rgba(var(--accent-primary-rgb), 0.02);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-check-label .text-muted {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Progress indicator */
.export-progress {
    text-align: center;
    padding: 2rem;
    background: rgba(var(--accent-primary-rgb), 0.03);
    border-radius: 12px;
    margin: 1rem 0;
}

.progress-indicator {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-hover));
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Modal Footer */
.privacy-modal .modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    gap: 1rem;
}

.privacy-modal .modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.privacy-modal .modal-footer .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.privacy-modal .modal-footer .btn-primary:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-1px);
}

.privacy-modal .modal-footer .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.privacy-modal .modal-footer .btn-outline-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Enhanced responsive design following Ma and Wa principles */
@media (max-width: 992px) {
    .privacy-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Adjusted for medium screens */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .privacy-dashboard {
        margin: 1.5rem auto; /* Reduced margin for mobile */
        padding: 0 1rem; /* Increased from 0.5rem for better Ma principle */
    }
    
    .privacy-header {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .privacy-header h1 {
        font-size: 2rem; /* Slightly smaller for mobile */
    }
    
    .privacy-header h1 i {
        font-size: 1.75rem;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Maintain good spacing even on mobile */
    }
    
    .privacy-card {
        padding: 1.5rem; /* Maintain good padding for Ma principle */
        border-radius: 14px; /* Slightly smaller border radius for mobile */
    }
    
    .privacy-card h2 {
        font-size: 1.25rem;
    }
    
    .action-btn {
        padding: 1rem 1.25rem; /* Adjusted for mobile touch targets */
    }
    
    .toggle-item:hover {
        margin: 0 -0.5rem; /* Adjusted hover extension for smaller screens */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .privacy-modal .modal-header,
    .privacy-modal .modal-body {
        padding: 1.5rem; /* Adjusted modal padding for mobile */
    }
    
    .privacy-modal .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    
    .privacy-modal .btn-danger,
    .privacy-modal .btn-secondary {
        width: 100%; /* Full width buttons on mobile */
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-dashboard {
        padding: 0 0.75rem;
    }
    
    .privacy-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .privacy-header h1 {
        font-size: 1.75rem;
    }
    
    .toggle-switch {
        width: 48px; /* Slightly smaller toggle for very small screens */
        height: 26px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .privacy-card,
    .action-btn,
    .toggle-switch,
    .slider,
    .privacy-modal .btn-danger,
    .privacy-modal .btn-secondary {
        transition: none;
    }
    
    .privacy-card:hover {
        transform: none;
    }
    
    .action-btn:hover,
    .privacy-modal .btn-danger:not(:disabled):hover,
    .privacy-modal .btn-secondary:hover {
        transform: none;
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .slider {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .privacy-modal .modal-content {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    }
    
    .privacy-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .privacy-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* ====== 04-pages/support.css ====== */
/* Support Page Styles - Following UI/UX Style Guide */

/* Page Container */
.support-page {
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Hero Section - Ma (Negative Space) & Wa (Harmony) */
.support-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.support-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.support-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Search Container - Refined Bubble/Capsule Aesthetic */
.support-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.support-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px; /* Full capsule shape */
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.support-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: var(--bg-card);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 2;
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Support Actions - Generous Padding & Visual Hierarchy */
.support-actions {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.support-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Refined rounded corners */
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle hover animation - Ambient Cues */
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.support-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.support-card:hover .support-card-icon {
    transform: scale(1.1);
}

.support-card-icon i {
    font-size: 1.75rem;
    color: white;
}

.support-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.support-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.support-card-link:hover {
    color: var(--primary-color-hover);
    gap: 0.75rem; /* Subtle animation */
}

.support-card-link i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

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

/* Content Sections - Strategic Use of Negative Space */
.support-content-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.faq-section {
    background-color: var(--bg-secondary);
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Guides Grid - Minimalist Design */
.guides-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.guide-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-subtle);
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    font-size: 1.25rem;
    color: white;
}

.guide-content {
    flex: 1;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.guide-link:hover {
    color: var(--primary-color-hover);
    gap: 0.75rem;
}

/* FAQ Styles - Clean Accordion Design */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-subtle);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 1rem;
}

.faq-answer {
    border-top: 1px solid var(--border-color);
}

.faq-answer-content {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section - Emotionally Resonant Design */
.support-contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
}

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

.contact-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 50px; /* Full capsule */
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.contact-btn:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.contact-email {
    text-align: center;
}

.email-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--primary-color-hover);
}

/* Responsive Design - Mobile-First Approach */
@media (max-width: 768px) {
    /* Zero out Bootstrap container padding */
    .support-page .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .support-title {
        font-size: 2.25rem;
        padding: 0 1rem;
    }

    .support-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .support-hero {
        padding: 3rem 0 2rem;
    }

    .support-search-container {
        padding: 0 1rem;
    }

    .support-actions,
    .support-content-section {
        padding: 3rem 1rem;
    }

    .support-card {
        padding: 2rem 1.5rem;
        margin: 0 0 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .guide-item {
        flex-direction: column;
        text-align: center;
        margin: 0 0 1rem;
    }

    .guide-icon {
        align-self: center;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 1.25rem 1.5rem;
    }

    .contact-title {
        font-size: 1.875rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .support-page .container {
        padding-left: 0;
        padding-right: 0;
    }

    .support-title {
        font-size: 2rem;
        padding: 0 0.75rem;
    }

    .support-subtitle {
        padding: 0 0.75rem;
    }

    .support-actions,
    .support-content-section {
        padding: 2rem 0.75rem;
    }

    .support-card {
        padding: 1.5rem 1rem;
        margin: 0 0 1rem;
    }
}

@media (min-width: 992px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-email {
        text-align: left;
    }
}

/* Focus states for accessibility */
.support-search:focus,
.faq-question:focus,
.support-card-link:focus,
.guide-link:focus,
.contact-btn:focus,
.email-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .support-hero,
    .support-contact-section {
        background: white !important;
    }
    
    .support-card,
    .guide-item,
    .faq-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ====== 04-pages/about.css ====== */
/* About Page Styles - Following UI/UX Style Guide */
/* ================================================ */

/* Note: Global CSS variables are available through main.css import chain */

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: var(--font-weight-normal);
}

/* Main Content Area */
.about-main {
    padding: 0 var(--spacing-lg) var(--spacing-xxl);
}

/* Content Chunks (Ma - Spacious Design) */
.content-chunk {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xxl);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
    position: relative;
}

.content-chunk:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cta-primary), var(--cta-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Content Styling */
.section-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.lead-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-1px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cta-primary), var(--cta-primary-hover));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-subtle);
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Technology Highlights */
.tech-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tech-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tech-item:hover {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-subtle);
}

.tech-item i {
    font-size: 1.25rem;
    color: var(--cta-primary);
    margin-right: var(--spacing-md);
    width: 24px;
    text-align: center;
}

.tech-item span {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Team Values */
.team-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.value-item {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-item:hover {
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--cta-primary), var(--cta-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

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

.value-content h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.value-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.contact-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-subtle);
    min-width: 160px;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Zero out Bootstrap container padding */
    .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .about-hero {
        padding: var(--spacing-xl) 1rem;
        margin-bottom: var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-main {
        padding: 0 0.75rem var(--spacing-xl);
    }

    .content-chunk {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .section-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .tech-highlights {
        margin-top: var(--spacing-md);
    }
    
    .team-values {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .value-item {
        padding: var(--spacing-lg);
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
    }
    
    .section-icon i {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .value-icon {
        width: 56px;
        height: 56px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content-chunk {
        border: 2px solid var(--border-color);
    }
    
    .feature-item,
    .tech-item,
    .value-item {
        border: 2px solid var(--border-color);
    }
    
    .section-icon,
    .feature-icon,
    .value-icon {
        border: 2px solid var(--cta-primary-hover);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .content-chunk,
    .feature-item,
    .tech-item,
    .value-item,
    .contact-btn {
        transition: none;
    }
    
    .content-chunk:hover,
    .feature-item:hover,
    .value-item:hover,
    .contact-btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .about-hero {
        background: none !important;
        padding: var(--spacing-lg) 0;
    }
    
    .content-chunk {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: var(--spacing-lg);
    }
    
    .section-icon,
    .feature-icon,
    .value-icon {
        background: #f5f5f5 !important;
        box-shadow: none;
    }
    
    .section-icon i,
    .feature-icon i,
    .value-icon i {
        color: #333 !important;
    }
}


/* ====== EXTRA BASE STYLES ====== */

/* ====== 03-components/simulation-slider-v2.css ====== */
/* Simulation Slider V2 - Light/Dark Theme Support */

.simulation-controls-v2 {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md, 8px);
    padding: 12px;
    margin-top: 12px;
}

[data-theme="dark"] .simulation-controls-v2 {
    background: var(--bg-primary);
}

/* Header: Label + Input */
.sim-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sim-control-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium, 500);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.sim-control-label i {
    color: var(--cta-primary);
    font-size: 0.75rem;
}

/* Editable Number Input - Theme-aware */
.sim-count-input {
    width: 70px;
    padding: 4px 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--cta-primary);
    border-radius: var(--border-radius-sm, 4px);
    outline: none;
    -moz-appearance: textfield;
}

[data-theme="dark"] .sim-count-input {
    background: rgba(16, 185, 129, 0.15);
    color: #ffffff;
}

.sim-count-input::-webkit-outer-spin-button,
.sim-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sim-count-input:focus {
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .sim-count-input:focus {
    background: rgba(16, 185, 129, 0.2);
}

.sim-count-input:hover {
    border-color: var(--cta-primary-hover);
}

/* Slider Container */
.sim-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sim-slider-min,
.sim-slider-max {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium, 500);
    min-width: 36px;
}

.sim-slider-min {
    text-align: right;
}

.sim-slider-max {
    text-align: left;
}

/* Slider Track Wrapper (for glow effect) */
.sim-slider-track-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

/* The actual range input */
.sim-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--accent-subtle);
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .sim-slider-input {
    background: #374151;
}

/* Webkit (Chrome, Safari, Edge) Track */
.sim-slider-input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        var(--cta-primary) 0%,
        var(--cta-primary) var(--slider-progress, 2%),
        var(--accent-subtle) var(--slider-progress, 2%),
        var(--accent-subtle) 100%);
}

[data-theme="dark"] .sim-slider-input::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        var(--cta-primary) 0%,
        var(--cta-primary) var(--slider-progress, 2%),
        #374151 var(--slider-progress, 2%),
        #374151 100%);
}

/* Webkit Thumb */
.sim-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--cta-primary);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

[data-theme="dark"] .sim-slider-input::-webkit-slider-thumb {
    background: #ffffff;
}

.sim-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.sim-slider-input::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

/* Firefox Track */
.sim-slider-input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--accent-subtle);
}

[data-theme="dark"] .sim-slider-input::-moz-range-track {
    background: #374151;
}

.sim-slider-input::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--cta-primary);
}

/* Firefox Thumb */
.sim-slider-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--cta-primary);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

[data-theme="dark"] .sim-slider-input::-moz-range-thumb {
    background: #ffffff;
}

.sim-slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Glow effect behind slider - only visible in dark mode */
.sim-slider-glow {
    display: none;
}

[data-theme="dark"] .sim-slider-glow {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    height: 12px;
    width: var(--slider-progress, 2%);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.05));
    border-radius: 6px;
    transform: translateY(-50%);
    filter: blur(6px);
    z-index: 1;
    pointer-events: none;
    transition: width 0.1s ease;
}

/* Credit Info - Theme-aware */
.sim-credit-info {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm, 4px);
    margin-top: 10px;
}

[data-theme="dark"] .sim-credit-info {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.1);
}

.sim-credit-main {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.sim-credit-main i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.sim-credit-main strong {
    color: var(--cta-primary);
}

/* Focus visible for accessibility */
.sim-slider-input:focus-visible {
    outline: none;
}

.sim-slider-input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.5);
}

/* ============================================
   TIER BUTTON GRID (Modal Version)
   ============================================ */

.sim-tier-grid-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* When admin tiers present, use different layout */
.sim-tier-grid-modal:has(.admin-tier) {
    grid-template-columns: repeat(3, 1fr);
}

.sim-tier-btn-modal {
    position: relative;
    padding: 10px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md, 8px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.sim-tier-btn-modal:hover {
    border-color: var(--cta-primary);
    background: rgba(16, 185, 129, 0.05);
}

.sim-tier-btn-modal.selected {
    border-color: var(--cta-primary);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .sim-tier-btn-modal {
    background: var(--bg-primary);
}

[data-theme="dark"] .sim-tier-btn-modal:hover {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="dark"] .sim-tier-btn-modal.selected {
    background: rgba(16, 185, 129, 0.15);
}

.sim-tier-btn-modal .tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sim-tier-btn-modal .tier-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sim-tier-btn-modal.selected .tier-name {
    color: var(--cta-primary);
}

.sim-tier-btn-modal .tier-sims {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.sim-tier-btn-modal .tier-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.sim-tier-btn-modal .tier-accuracy {
    font-size: 0.625rem;
    color: var(--text-muted);
}

.sim-tier-btn-modal .tier-credits {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cta-primary);
}

.tier-badge-modal {
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 2px 6px;
    background: var(--cta-primary);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    white-space: nowrap;
}

.tier-badge-modal.admin {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

/* Admin tier styling */
.sim-tier-btn-modal.admin-tier {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.sim-tier-btn-modal.admin-tier:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.sim-tier-btn-modal.admin-tier.selected {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.sim-tier-btn-modal.admin-tier .tier-name {
    color: #A78BFA;
}

.sim-tier-btn-modal.admin-tier.selected .tier-name {
    color: #8B5CF6;
}

.sim-tier-btn-modal.admin-tier .tier-credits {
    color: #8B5CF6;
}

[data-theme="dark"] .sim-tier-btn-modal.admin-tier {
    background: rgba(139, 92, 246, 0.08);
}

/* Prevent text overflow in tier buttons */
.sim-tier-btn-modal .tier-sims,
.sim-tier-btn-modal .tier-name,
.sim-tier-btn-modal .tier-accuracy,
.sim-tier-btn-modal .tier-credits {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet adjustments (576px - 767px) */
@media (max-width: 767px) and (min-width: 577px) {
    .sim-tier-grid-modal {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .sim-tier-btn-modal {
        padding: 8px 6px;
    }

    .sim-tier-btn-modal .tier-name {
        font-size: 0.75rem;
    }

    .sim-tier-btn-modal .tier-sims {
        font-size: 0.625rem;
    }

    .sim-tier-btn-modal .tier-accuracy,
    .sim-tier-btn-modal .tier-credits {
        font-size: 0.5625rem;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .simulation-controls-v2 {
        padding: 12px;
    }

    .sim-control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sim-count-input {
        width: 100%;
        font-size: 1.125rem;
        padding: 10px;
    }

    .sim-credit-info {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .sim-tier-grid-modal {
        grid-template-columns: 1fr;
    }

    .sim-tier-btn-modal {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
    }

    .sim-tier-btn-modal .tier-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .sim-tier-btn-modal .tier-meta {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        gap: 8px;
        flex-shrink: 0;
    }

    .tier-badge-modal {
        position: static;
    }
}


/* ====== mobile-responsive.css ====== */
/* ========================================
 * UNIFIED MOBILE RESPONSIVE STYLES
 * Consolidated from mobile-improvements.css and mobile-enhancements.css
 * Mobile-first responsive design with 768px primary breakpoint
 * ======================================== */

/* ========================================
 * CSS VARIABLES - MOBILE DESIGN TOKENS
 * ======================================== */

:root {
    --mobile-primary: #10B981;
    --mobile-primary-hover: #0B956C;
    --mobile-bg: #FFFFFF;
    --mobile-bg-alt: #F8F9FA;
    --mobile-border: #DEE2E6;
    --mobile-text: #212529;
    --mobile-text-muted: #6C757D;
    --mobile-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --mobile-radius: 0.75rem;
    --mobile-transition: all 0.3s ease;
}

/* Dark mode overrides for mobile variables */
[data-theme="dark"] {
    --mobile-bg: #121212;
    --mobile-bg-alt: #1e1e1e;
    --mobile-border: #495057;
    --mobile-text: #E9ECEF;
    --mobile-text-muted: #ADB5BD;
    --mobile-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* ========================================
 * CRITICAL MOBILE FOUNDATIONS
 * Prevent horizontal scroll and ensure proper viewport handling
 * ======================================== */

/* Prevent horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all containers respect viewport width */
.container, .container-fluid {
    max-width: 100%;
}
/* Note: .row excluded - max-width breaks Bootstrap's negative margin system */

/* Pull-to-refresh hint - prevent conflicts with native pull-to-refresh */
@media (max-width: 768px) {
    body {
        overscroll-behavior-y: contain;
    }
}

/* ========================================
 * SAFE AREAS - NOTCH SUPPORT
 * iPhone X and newer - support for notches and rounded corners
 * ======================================== */

@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        .navbar {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        .modal-dialog {
            margin-left: max(0.5rem, env(safe-area-inset-left));
            margin-right: max(0.5rem, env(safe-area-inset-right));
        }
    }
}

/* Additional safe area support with padding-top */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .navbar-main {
            padding-top: calc(0.5rem + env(safe-area-inset-top));
        }

        .page-actions-bar {
            padding-top: calc(1rem + env(safe-area-inset-top));
        }

        .floating-actions {
            bottom: calc(2rem + env(safe-area-inset-bottom));
            right: calc(2rem + env(safe-area-inset-right));
        }
    }
}

/* ========================================
 * TOUCH-FRIENDLY INTERACTIONS
 * Minimum 44x44px tap targets (Apple HIG)
 * ======================================== */

@media (max-width: 768px) {
    /* Touch-friendly buttons and links */
    .btn, .nav-link, .schedule-card, a.team-link {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }

    /* Increase touch target for small buttons */
    .btn-sm {
        min-height: 44px;
        padding: 10px 14px;
    }

    /* Improve select dropdowns for touch */
    select, .form-select, .betting-provider {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px 40px 12px 12px; /* Extra padding for dropdown arrow */
    }

    /* Form inputs */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    textarea,
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
    }
}

/* Enhanced touch interactions for touch-only devices */
@media (max-width: 768px) and (hover: none) {
    /* Disable hover effects on touch devices */
    .btn:hover,
    .nav-link:hover,
    .fab-item:hover,
    .fab-main:hover,
    .schedule-team-logo:hover,
    .team-logo:hover,
    .card:hover {
        transform: none;
    }

    /* Enhance tap targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-link {
        min-height: 48px;
    }

    /* Add tap feedback */
    .btn:active,
    .nav-link:active,
    .fab-item:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* ========================================
 * HORIZONTAL SCROLL CONTAINERS WITH SHADOW INDICATORS
 * Visual feedback for scrollable content
 * ======================================== */

.table-scroll-container {
    position: relative;
    overflow: hidden;
}

.table-scroll-container::before,
.table-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.table-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.table-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.table-scroll-container.scroll-left::before,
.table-scroll-container.scroll-right::after {
    opacity: 1;
}

.table-scroll-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

/* ========================================
 * SCROLL HINT INDICATORS
 * Visual cue for horizontal scrollable content
 * ======================================== */

.scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

@media (min-width: 769px) {
    .scroll-hint {
        display: none;
    }
}

/* ========================================
 * DATA TABLES - MOBILE RESPONSIVE
 * Horizontal scroll with sticky columns and headers
 * ======================================== */

@media (max-width: 768px) {
    /* Table containers - horizontal scroll */
    .table-responsive,
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        width: 100%;
    }

    table {
        font-size: 0.85rem;
        min-width: 100%;
    }

    /* Sticky first column for context while scrolling */
    table thead th:first-child,
    table tbody td:first-child,
    .table-mobile-scroll th:first-child,
    .table-mobile-scroll td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-secondary);
        z-index: 10;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    /* Table headers - sticky on scroll */
    table thead th {
        position: sticky;
        top: 0;
        background: var(--bg-secondary);
        z-index: 5;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Table cells - better mobile padding */
    table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* Table row hover - larger touch target */
    table tbody tr {
        cursor: pointer;
    }

    table tbody tr:active {
        background-color: rgba(var(--accent-primary-rgb), 0.1);
    }
}

/* Extra small screens - even more compact tables */
@media (max-width: 414px) {
    table {
        font-size: 0.75rem;
    }

    table thead th,
    table tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* Dark mode support for sticky table elements */
@media (max-width: 768px) {
    [data-theme="dark"] table thead th:first-child,
    [data-theme="dark"] table tbody td:first-child {
        background: var(--bg-secondary);
    }
}

/* ========================================
 * STICKY HEADER PATTERNS
 * Keep important content visible during scroll
 * ======================================== */

@media (max-width: 768px) {
    /* Enhanced page actions bar with sticky positioning */
    .page-actions-bar {
        position: sticky;
        top: 0;
        background: var(--mobile-bg);
        z-index: 100;
        padding: 1rem;
        margin: -1rem -0.5rem 1rem -0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 1rem 1rem;
    }

    .page-actions-bar .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .action-group {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .action-group .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }

    /* Mobile-optimized tab navigation */
    .tab-navigation {
        position: sticky;
        top: 0;
        z-index: 99;
        background: var(--mobile-bg);
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .nav-pills {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    /* Tab-style navigation (nav-pills) - NOT navbar links */
    .nav-pills .nav-link {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.75rem 1rem;
        border-radius: var(--mobile-radius);
        background: var(--mobile-bg-alt);
        color: var(--mobile-text-muted);
        border: 1px solid var(--mobile-border);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: var(--mobile-transition);
    }

    .nav-pills .nav-link.active {
        background: var(--mobile-primary);
        color: white;
        border-color: var(--mobile-primary);
    }

    .nav-pills .nav-link:hover:not(.active) {
        background: var(--mobile-bg);
        border-color: var(--mobile-primary);
    }

    /* Navbar links - use proper nav colors, transparent background */
    .navbar .nav-link {
        background: transparent;
        color: var(--nav-text);
        border: none;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        background: rgba(255, 255, 255, 0.1);
        color: var(--nav-text);
    }
}

/* ========================================
 * FLOATING ACTION BUTTON (FAB)
 * Quick access to common actions
 * ======================================== */

.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .floating-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
    }
}

.fab-main {
    width: 56px;
    height: 56px;
    background: var(--mobile-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--mobile-transition);
    z-index: 1002;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.fab-main:active {
    transform: scale(0.95);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fab-item {
    width: 48px;
    height: 48px;
    background: var(--mobile-bg);
    color: var(--mobile-primary);
    border: 2px solid var(--mobile-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--mobile-transition);
    box-shadow: var(--mobile-shadow);
}

.fab-item:hover {
    background: var(--mobile-primary);
    color: white;
    transform: scale(1.05);
}

/* ========================================
 * SCHEDULE PAGE MOBILE IMPROVEMENTS
 * Optimized layout for game schedule cards
 * ======================================== */

@media (max-width: 768px) {
    /* Schedule container - single column on mobile */
    .schedule-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0.5rem;
    }

    /* Schedule cards - optimized for mobile */
    .schedule-card {
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Card header - more compact */
    .card-header {
        padding: 0.5rem 1rem;
    }

    .game-week {
        font-size: 0.8rem;
    }

    /* Card content - optimized spacing */
    .card-content {
        padding: 1rem;
        gap: 1rem;
    }

    /* Teams section - stack on small screens if needed */
    .teams-section {
        gap: 0.75rem;
    }

    /* Team logos - appropriate size for mobile */
    .schedule-team-logo {
        width: 80px !important;
        height: 80px !important;
        padding: 8px;
    }

    /* Team text - readable without overflow */
    .team-text {
        font-size: 0.95rem;
        white-space: normal; /* Allow wrapping on mobile */
        word-break: break-word;
        line-height: 1.2;
    }

    .team-record {
        font-size: 0.8rem;
    }

    /* VS divider */
    .vs-divider {
        font-size: 0.9rem;
        margin: 0 0.5rem;
    }

    /* Betting section - improved mobile layout */
    .betting-section {
        padding: 0.75rem;
    }

    .betting-provider-select {
        margin-bottom: 0.75rem;
    }

    /* Betting lines - stack on mobile */
    .line-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .line-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: var(--bg-primary);
        border-radius: 6px;
    }

    .line-label {
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .line-value {
        font-size: 0.9rem;
        text-align: right;
    }

    /* Info section - better mobile spacing */
    .info-section {
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .info-item {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    /* Final score display */
    .game-final-score {
        padding: 0.75rem !important;
        margin: 0.75rem 0 !important;
    }

    .game-final-score span {
        font-size: 1.75rem !important;
    }

    .game-final-score div:last-child {
        font-size: 0.7rem !important;
    }
}

/* Extra small screens (320px - 414px) - more compact schedule */
@media (max-width: 414px) {
    .schedule-team-logo {
        width: 60px !important;
        height: 60px !important;
        padding: 6px;
    }

    .team-text {
        font-size: 0.85rem;
    }

    .team-record {
        font-size: 0.75rem;
    }

    .vs-divider {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    /* Stack teams vertically on very small screens */
    .teams-section {
        flex-direction: column;
        gap: 1rem;
    }

    .team {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

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

/* ========================================
 * REPORTING/ANALYTICS PAGE MOBILE
 * Optimized for data-heavy pages
 * ======================================== */

@media (max-width: 768px) {
    /* Section headings */
    .section-heading {
        margin: 1.5rem 0 1rem 0;
        font-size: 1.1rem;
    }

    .section-heading h2 {
        font-size: 1.25rem;
    }

    /* Record stats - stack on mobile */
    .record-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .record-item {
        font-size: 1rem;
    }

    /* Team selection form - single column */
    .team-selection-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    /* Form groups */
    .form-group {
        margin-bottom: 0.75rem;
    }

    /* Submit button - full width on mobile */
    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Navigation links - stack vertically */
    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
 * CHARTS AND GRAPHS - MOBILE RESPONSIVE
 * Maintain readability for data visualizations
 * ======================================== */

@media (max-width: 768px) {
    /* Chart containers - allow horizontal scroll if needed */
    .chart-container {
        margin: 0.75rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .chart-wrapper {
        min-width: 320px; /* Minimum width for charts */
        margin-bottom: 1rem;
    }

    /* Canvas elements - maintain aspect ratio */
    canvas {
        max-width: 100%;
        height: auto !important;
    }

    /* Chart legends - better mobile layout */
    .chart-legend {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* PPA Charts and other team charts */
    .ppa-chart-container,
    .team-chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
 * FILTERS AND CONTROLS - MOBILE
 * Touch-friendly form controls
 * ======================================== */

@media (max-width: 768px) {
    /* Filter containers */
    .filters-container,
    .edge-ai-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Filter groups */
    .filter-group {
        width: 100%;
    }

    /* Filter buttons - full width */
    .filter-btn {
        width: 100%;
        min-height: 44px;
    }

    /* Date pickers - touch-friendly */
    input[type="date"] {
        min-height: 44px;
        font-size: 16px;
    }
}

/* ========================================
 * GAME CARDS - MOBILE IMPROVEMENTS
 * Winner cards, prediction cards, and game cards
 * ======================================== */

@media (max-width: 768px) {
    /* Winner cards and game cards */
    .winner-card,
    .prediction-card,
    .game-card {
        min-height: auto;
        padding: 1rem;
    }

    /* Team logos in winner/prediction cards - doubled for better visibility */
    .winner-card .team-logo,
    .prediction-card .team-logo {
        width: 160px;
        height: 160px;
        padding: 8px;
    }

    /* Size container to match larger logo and add spacing */
    .winner-card .team-logo-container,
    .prediction-card .team-logo-container {
        width: 176px;
        height: 176px;
        margin-bottom: 1rem;
    }

    .winner-card .team-name,
    .prediction-card .team-name {
        position: relative;
        z-index: 2;
        margin-top: 0.75rem;
    }

    /* Legacy selector for other pages */
    .team-logo.team-logo-large {
        width: var(--logo-sm);
        height: var(--logo-sm);
        padding: 10px;
    }

    /* Score displays */
    .score-value {
        font-size: 2rem;
    }

    .score-dash {
        font-size: 1.5rem;
    }

    /* Edge AI badges */
    .edge-ai-pick-badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .edge-ai-banner {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 414px) {
    .winner-card,
    .prediction-card,
    .game-card {
        padding: 0.75rem;
    }

    /* Team logos - doubled for better visibility (was 70px) */
    .winner-card .team-logo,
    .prediction-card .team-logo {
        width: 140px;
        height: 140px;
        padding: 6px;
    }

    /* Size container to match larger logo and add spacing */
    .winner-card .team-logo-container,
    .prediction-card .team-logo-container {
        width: 156px;
        height: 156px;
        margin-bottom: 0.75rem;
    }

    .winner-card .team-name,
    .prediction-card .team-name {
        position: relative;
        z-index: 2;
        margin-top: 0.5rem;
    }

    .team-logo.team-logo-large {
        width: var(--logo-mobile-lg);
        height: var(--logo-mobile-lg);
        padding: 8px;
    }

    .score-value {
        font-size: 1.75rem;
    }

    .score-dash {
        font-size: 1.25rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    /* Team logos - doubled for better visibility (was 60px) */
    .winner-card .team-logo,
    .prediction-card .team-logo {
        width: 120px;
        height: 120px;
        padding: 5px;
    }

    /* Size container to match larger logo and add spacing */
    .winner-card .team-logo-container,
    .prediction-card .team-logo-container {
        width: 136px;
        height: 136px;
        margin-bottom: 0.5rem;
    }

    .winner-card .team-name,
    .prediction-card .team-name {
        position: relative;
        z-index: 2;
        margin-top: 0.375rem;
    }

    .team-logo.team-logo-large {
        width: var(--logo-mobile-lg);
        height: var(--logo-mobile-lg);
        padding: 6px;
    }
}

/* ========================================
 * MOBILE CARD LAYOUTS
 * General card styling for mobile
 * ======================================== */

@media (max-width: 768px) {
    .card {
        border-radius: var(--mobile-radius);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .insights-grid,
    .player-grid,
    .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .insight-card,
    .player-card,
    .stat-card {
        width: 100%;
    }
}

/* ========================================
 * MOBILE SECTION HEADERS
 * Centered headers with improved readability
 * ======================================== */

@media (max-width: 768px) {
    .section-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.375rem;
        font-weight: 700;
        color: var(--mobile-text);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        color: var(--mobile-text-muted);
        line-height: 1.4;
        margin: 0;
    }
}

/* ========================================
 * MOBILE SUMMARY SECTIONS
 * Optimized summary card layouts
 * ======================================== */

@media (max-width: 768px) {
    .summary-card {
        padding: 1.5rem;
        border-radius: var(--mobile-radius);
        margin: 0 0.5rem;
    }

    .summary-advantages {
        flex-direction: column;
        gap: 1.5rem;
    }

    .advantage-item {
        text-align: center;
    }

    .vs-summary {
        order: -1;
        margin-bottom: 1rem;
    }

    .confidence-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .confidence-bar {
        width: 100%;
        max-width: 200px;
    }
}

/* ========================================
 * MODALS - MOBILE IMPROVEMENTS
 * Better sizing and layout for mobile modals
 * ======================================== */

@media (max-width: 768px) {
    /* Modal dialogs - better mobile sizing */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

/* ========================================
 * TYPOGRAPHY - MOBILE READABILITY
 * Optimized font sizes for mobile screens
 * ======================================== */

@media (max-width: 768px) {
    /* Ensure all text is at least 16px to prevent iOS zoom */
    body {
        font-size: 16px;
    }

    /* Headings - proportional sizing */
    h1, .hero-section h1 {
        font-size: 1.75rem;
    }

    h2, .hero-section h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Paragraph spacing */
    p {
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    /* Small text - still readable */
    small,
    .small {
        font-size: 0.875rem;
    }

    /* Card and metric text */
    .card-title {
        font-size: 1.125rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }

    .metric-value {
        font-size: 1rem;
    }
}

/* ========================================
 * SPACING AND LAYOUT - MOBILE
 * Optimized spacing for mobile screens
 * ======================================== */

@media (max-width: 768px) {
    /* Container padding - eliminate stacked padding on mobile */
    .main-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .container,
    .container-fluid,
    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        padding-left: 0;
        padding-right: 0;
    }

    .team-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .team-container.team-profile-page {
        padding-left: 0;
        padding-right: 0;
    }

    /* Section spacing */
    .schedule-section,
    .report-section {
        margin-bottom: 1.5rem;
    }

    /* Content sections */
    .content-sections {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }

    .section-divider {
        margin: 2rem 0;
        opacity: 0.7;
    }

    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }

    /* Row gutters - reduce on mobile */
    .row {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 414px) {
    /* Minimize wrapper padding on small phones */
    .main-wrapper {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .container,
    .container-fluid,
    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        padding-left: 0;
        padding-right: 0;
    }

    .team-container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .team-container.team-profile-page {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        --bs-gutter-x: 0.5rem;
    }
}

/* ========================================
 * LOADING STATES - MOBILE
 * Optimized loading indicators
 * ======================================== */

@media (max-width: 768px) {
    /* Loading spinners */
    .spinner-border {
        width: 2rem;
        height: 2rem;
    }

    .loading-overlay {
        font-size: 1rem;
    }

    .loading-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-width: 350px;
    }

    .skeleton-chart-canvas {
        width: 250px;
        height: 250px;
    }

    .skeleton-player-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Lazy loading support */
    .lazy-load {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .lazy-load.loaded {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
 * ERROR STATES - MOBILE
 * Better error display on mobile
 * ======================================== */

@media (max-width: 768px) {
    .error-container {
        width: 95%;
        max-width: none;
    }

    .error-content {
        padding: 2rem 1.5rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* ========================================
 * ACCESSIBILITY - MOBILE
 * Enhanced accessibility for mobile users
 * ======================================== */

@media (max-width: 768px) {
    /* Focus states - more visible on mobile */
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    .btn:focus,
    .nav-link:focus,
    .fab-main:focus,
    .fab-item:focus {
        outline: 3px solid var(--cta-primary);
        outline-offset: 2px;
    }

    /* Active states for touch feedback */
    button:active,
    .btn:active,
    a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* High contrast mode */
    @media (prefers-contrast: high) {
        .btn,
        .nav-link,
        .fab-main,
        .fab-item {
            border-width: 2px;
        }

        .section-divider {
            height: 3px;
        }
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        .fab-main,
        .fab-item,
        .btn,
        .nav-link {
            transition: none;
        }

        .loading-spinner {
            animation: none;
        }
    }
}

/* ========================================
 * PERFORMANCE OPTIMIZATIONS - MOBILE
 * Reduce animations and optimize rendering
 * ======================================== */

@media (max-width: 768px) {
    /* Faster transitions for snappy mobile UI (not animations) */
    button,
    a,
    input,
    .btn,
    .nav-link,
    .card {
        transition-duration: 0.15s !important;
    }

    /* Quick entry animations for UI elements */
    .fade-in,
    .slide-in,
    .scale-in {
        animation-duration: 0.2s;
        animation-timing-function: ease-out;
    }

    /* Reduce motion for better performance when explicitly requested */
    .reduce-motion * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
 * DARK MODE - MOBILE SPECIFIC
 * Dark mode adjustments for mobile
 * ======================================== */

@media (max-width: 768px) {
    [data-theme="dark"] .line-item {
        background: var(--bg-primary);
    }
}

/* ========================================
 * LANDSCAPE ORIENTATION - MOBILE
 * Optimizations for landscape mode
 * ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    /* Reduce vertical spacing in landscape */
    .schedule-card {
        margin-bottom: 0.5rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    /* Logos in landscape */
    .schedule-team-logo {
        width: 60px !important;
        height: 60px !important;
    }

    .team-logo.team-logo-large {
        width: 160px !important;
        height: 160px !important;
    }
}

/* Larger landscape adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .page-actions-bar .d-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .action-group {
        flex-direction: row;
        width: auto;
    }

    .summary-advantages {
        flex-direction: row;
    }

    .vs-summary {
        order: 0;
        margin: 0;
    }
}

/* ========================================
 * SWIPE GESTURES - OPTIONAL ENHANCEMENT
 * Support for swipe navigation
 * ======================================== */

@media (max-width: 768px) {
    .swipeable {
        touch-action: pan-y pinch-zoom;
    }

    .swipe-indicator {
        display: flex;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-color);
        transition: background-color 0.2s;
    }

    .swipe-dot.active {
        background: var(--cta-primary);
    }
}

/* ========================================
 * FIXES FOR SPECIFIC ISSUES
 * Browser-specific fixes and workarounds
 * ======================================== */

@media (max-width: 768px) {
    /* Prevent text overflow in team names */
    .team-name,
    .team-text {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Fix for iOS input zoom */
    @supports (-webkit-touch-callout: none) {
        input,
        select,
        textarea {
            font-size: 16px !important;
        }
    }
}

/* ========================================
 * VERY SMALL SCREENS (< 380px)
 * Extra compact layout for smallest devices
 * ======================================== */

@media (max-width: 380px) {
    .content-sections {
        padding: 0.75rem 0.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .fab-main {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .fab-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================
 * PRINT STYLES FOR MOBILE
 * Optimize for mobile printing
 * ======================================== */

@media print {
    .floating-actions,
    .page-actions-bar,
    .fab-menu {
        display: none !important;
    }

    .content-sections {
        padding: 0;
    }

    .section-divider {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--mobile-border);
        page-break-inside: avoid;
    }
}

/* ========================================
 * EDGE-TO-EDGE CARDS - MOBILE
 * Pricing section uses CSS variable overrides (not !important)
 * Picks page uses CSS Grid in picks.css
 * ======================================== */

@media (max-width: 575.98px) {
    /* Pricing section - override Bootstrap variables */
    .pricing-mobile-edge {
        padding-left: 0;
        padding-right: 0;
    }

    .pricing-mobile-edge .container {
        --bs-gutter-x: var(--gutter-mobile);
        max-width: 100%;
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }

    .pricing-mobile-edge .row {
        --bs-gutter-x: var(--gutter-mobile);
        margin-left: 0;
        margin-right: 0;
    }

    /* Cards fill width - use calc to account for any residual margins */
    .pricing-card {
        width: calc(100% - 1rem);  /* Account for 0.5rem margin each side */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
}


/* ====== 03-components/base-common.css ====== */
/* Base Template Common Styles */

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
    transform: translateY(-100%);
}
.skip-to-content:focus {
    top: 0;
    transform: translateY(0);
}

/* Brand tagline styling */
.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    font-weight: 400;
    margin-left: 0.5rem;
    opacity: 0.8;
}


/* ====== 03-components/trust-banner.css ====== */
/* Trust Banner - Global Stats Display */
.trust-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-teal-700, #047857) 0%, var(--color-teal-800, #065f46) 100%);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.8125rem;
    position: relative;
    z-index: 99;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.trust-banner:hover {
    background: linear-gradient(135deg, var(--color-teal-800, #065f46) 0%, var(--color-teal-900, #064e3b) 100%);
    color: var(--bg-primary);
    text-decoration: none;
}

.trust-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 1.5rem;
}

.trust-banner-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.trust-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.trust-stat i {
    font-size: 0.75rem;
    opacity: 1;
    color: var(--bg-primary);
}

.trust-stat .stat-label {
    font-weight: 500;
    opacity: 1;
    color: var(--bg-primary);
}

.trust-stat .stat-value {
    font-weight: 700;
    color: var(--bg-primary);
}

.trust-stat .stat-record {
    color: var(--bg-primary);
    opacity: 1;
    white-space: nowrap;
}

.trust-stat-divider {
    opacity: 0.7;
    font-weight: 300;
    color: var(--bg-primary);
}

.trust-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    color: var(--bg-primary);
    transition: all 0.2s ease;
}

.trust-banner:hover .trust-banner-cta {
    opacity: 1;
    transform: translateX(2px);
}

.trust-banner-cta i {
    font-size: 0.6875rem;
    transition: transform 0.2s ease;
}

.trust-banner:hover .trust-banner-cta i {
    transform: translateX(3px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trust-banner {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .trust-banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .trust-banner-stats {
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }


    .trust-stat .stat-label {
        display: none;
    }

    .trust-stat-divider {
        display: none;
    }

    .trust-banner-cta {
        font-size: 0.6875rem;
    }
}

/* Hide banner on track-record page (it's redundant there) */
body.page-track-record .trust-banner {
    display: none;
}

/* Dark mode support */
[data-theme="dark"] .trust-banner {
    background: linear-gradient(135deg, var(--color-teal-700, #047857) 0%, var(--color-teal-800, #065f46) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--bg-primary);
}

[data-theme="dark"] .trust-banner:hover {
    background: linear-gradient(135deg, var(--color-teal-800, #065f46) 0%, var(--color-teal-900, #064e3b) 100%);
    color: var(--bg-primary);
}

[data-theme="dark"] .trust-stat .stat-label,
[data-theme="dark"] .trust-stat .stat-value,
[data-theme="dark"] .trust-stat .stat-record,
[data-theme="dark"] .trust-stat i,
[data-theme="dark"] .trust-stat-divider,
[data-theme="dark"] .trust-banner-cta {
    color: var(--bg-primary);
}

/* Loading state */
.trust-banner.loading .stat-value {
    animation: pulse-loading 1.5s infinite;
}

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


/* ====== 03-components/credit_purchase_modal.css ====== */
/* Credit Purchase Modal Styles - Following UI/UX Style Guide */

/*
 * Modal uses central variables from 00-settings/_variables.css:
 * - --neutral-50, --neutral-100, etc. for backgrounds
 * - --neutral-800, --neutral-500, etc. for text
 * - --neutral-200, --neutral-300 for borders
 * - --color-teal-500, --color-teal-600 for CTA
 * - --feedback-success, --feedback-error for status
 *
 * Component-specific aliases (reference central variables):
 */
.credit-purchase-modal {
    --modal-bg-primary: var(--neutral-50);
    --modal-bg-secondary: var(--bg-card);
    --modal-text-primary: var(--neutral-800);
    --modal-text-secondary: var(--neutral-500);
    --modal-border: var(--neutral-200);
    --modal-accent-subtle: var(--neutral-300);
    --modal-cta-primary: var(--color-teal-500);
    --modal-cta-hover: var(--color-teal-600);
    --modal-success: var(--feedback-success);
    --modal-error: var(--feedback-error);
}

/* Premium Gradient Header - Updated to use teal CTA color */
.premium-gradient {
    background: linear-gradient(135deg, var(--modal-cta-primary) 0%, var(--modal-cta-hover) 100%);
    position: relative;
    overflow: hidden;
}

.premium-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 10s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Balance Icon Wrapper */
.balance-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--modal-cta-primary);
}

/* Balance Display Section - Using neutral colors and improved spacing */
.balance-display-section {
    background: var(--modal-bg-secondary);
    border: 1px solid var(--modal-border);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem !important;
}

.affordability-info {
    font-size: 0.875rem;
}

/* Quick Repurchase Section - Softer ambient interactions */
#quick-repurchase {
    transition: all 0.3s ease;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.05) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

#quick-repurchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.1);
    background: rgba(16, 185, 129, 0.08) !important;
}

/* Credit Package Cards - Refined with neutral colors and softer effects */
.credit-package {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1rem;
    overflow: visible; /* Changed from hidden to visible to allow badge to display above card */
    position: relative;
    background: var(--modal-bg-secondary);
    border: 2px solid var(--modal-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.credit-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--modal-cta-primary), var(--modal-cta-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credit-package:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--modal-cta-primary);
}

.credit-package:hover::before {
    opacity: 1;
}

.credit-package.selected {
    border-color: var(--modal-cta-primary);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.03);
}

.credit-package.selected::before {
    opacity: 1;
}

/* Package Icons - More subtle animations */
.package-icon i {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.credit-package:hover .package-icon i {
    transform: scale(1.05) rotate(5deg);
}

/* Different icons for different packages - Updated colors */
.credit-package[data-package-id="starter"] .package-icon i {
    color: var(--modal-text-secondary);
}

.credit-package[data-package-id="value"] .package-icon i {
    color: var(--modal-cta-primary);
}

.credit-package[data-package-id="premium"] .package-icon i {
    color: #F59E0B;
}

/* Price Display - Better spacing and hierarchy */
.price-display {
    margin: 2rem 0;
}

.price-display .h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--modal-text-primary);
}

.package-per-credit {
    color: var(--modal-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.package-savings {
    font-weight: 600;
    color: var(--modal-cta-primary);
    margin-top: 0.5rem;
}

/* Package Badges - Updated to use CTA color */
.package-badge .badge {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.package-badge .badge.bg-success {
    background: linear-gradient(135deg, var(--modal-cta-primary) 0%, var(--modal-cta-hover) 100%) !important;
    color: white;
    border: none;
}

.package-badge .badge.bg-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white;
    border: none;
}

/* Select Package Button - Updated to use CTA colors */
.select-package-btn {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: var(--modal-cta-primary);
    border: 2px solid var(--modal-cta-primary);
    color: white;
}

.select-package-btn:hover {
    background: var(--modal-cta-hover);
    border-color: var(--modal-cta-hover);
    color: white;
}

.credit-package:hover .select-package-btn {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.credit-package.selected .select-package-btn {
    background: var(--modal-success);
    border-color: var(--modal-success);
}

.credit-package.selected .select-package-btn::after {
    content: ' ✓';
}

/* Payment Section */
#payment-section {
    animation: slideIn 0.4s ease;
}

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

.selected-package-summary {
    background: var(--modal-bg-secondary);
    border: 1px solid var(--modal-border);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Stripe Payment Element */
#payment-element {
    padding: 1.5rem;
    background: var(--modal-bg-secondary);
    border: 1px solid var(--modal-border);
    border-radius: 1rem;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Submit Button - Updated to use CTA colors */
#submit-payment {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--modal-cta-primary);
    border: 2px solid var(--modal-cta-primary);
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

#submit-payment:hover {
    background: var(--modal-cta-hover);
    border-color: var(--modal-cta-hover);
}

#submit-payment::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#submit-payment:active::before {
    width: 300px;
    height: 300px;
}

/* Success Section */
.success-animation {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading States */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Error Messages */
#payment-errors {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Security Features */
#security-features {
    background: var(--modal-bg-primary);
    border: 1px solid var(--modal-border);
    border-radius: 1rem;
}

#security-features i {
    font-size: 1.25rem;
}

/* Responsive Design - Maintaining generous spacing on all screen sizes */
@media (max-width: 1200px) {
    .modal-xl {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 2rem !important;
    }
    
    .credit-package .card-body {
        padding: 2rem 1.5rem;
    }
    
    .affordability-info {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    #security-features .col-6 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .package-icon i {
        font-size: 1.5rem !important;
    }
    
    .balance-display-section {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem !important;
    }
    
    .credit-package {
        margin-bottom: 1.5rem;
    }
    
    .credit-package .card-body {
        padding: 1.5rem 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-icon i {
        font-size: 1.5rem !important;
    }
    
    .balance-display-section {
        padding: 1rem !important;
    }
}

/* Dark Mode Support - Using CSS variables for better maintainability */
[data-theme="dark"] {
    --modal-bg-primary: #1a1a1a;
    --modal-bg-secondary: #2d2d2d;
    --modal-text-primary: #e0e0e0;
    --modal-text-secondary: #a0a0a0;
    --modal-border: #3d3d3d;
    --modal-accent-subtle: #4d4d4d;
}

[data-theme="dark"] .credit-package {
    background: var(--modal-bg-secondary);
    border-color: var(--modal-border);
}

[data-theme="dark"] .credit-package:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .balance-display-section,
[data-theme="dark"] .selected-package-summary,
[data-theme="dark"] #security-features {
    background: var(--modal-bg-secondary);
    border-color: var(--modal-border);
}

[data-theme="dark"] #payment-element {
    background: var(--modal-bg-secondary);
    border-color: var(--modal-border);
}

[data-theme="dark"] .modal-content {
    background: var(--modal-bg-primary);
    color: var(--modal-text-primary);
}

[data-theme="dark"] .modal-footer {
    background: var(--modal-bg-primary) !important;
}

[data-theme="dark"] .btn-close-white {
    filter: invert(1);
}

/* Accessibility */
.credit-package:focus-within {
    outline: 2px solid var(--modal-cta-primary);
    outline-offset: 2px;
}

.select-package-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Print Styles */
@media print {
    .modal {
        display: none !important;
    }
}

/* ====== 03-components/_cookie-consent.css ====== */
/* Cookie Consent Banner Styles - Updated for UI/UX Style Guide */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #DEE2E6;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary, #fff);
    font-size: 1.25rem;
}

.cookie-consent-text p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary, #ccc);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-policy-link {
    color: var(--accent-color, #00ff88);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-policy-link:hover {
    border-bottom-color: var(--accent-color, #00ff88);
}

.ccpa-notice {
    margin: 0.75rem 0 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 153, 0, 0.1);
    border-left: 3px solid #ff9900;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, #666);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary, #fff);
}

.cookie-btn-reject {
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-primary, #fff);
}

.cookie-btn-reject:hover {
    background: var(--bg-tertiary, #3a3a3a);
}

.cookie-btn-accept {
    background: var(--accent-color, #00ff88);
    color: var(--bg-primary, #1a1a1a);
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover, #00cc6a);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 255, 136, 0.3);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

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

.cookie-settings-content {
    background: var(--bg-primary, #1a1a1a);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.cookie-settings-header h2 {
    margin: 0;
    color: var(--text-primary, #fff);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary, #999);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
}

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-header h3 {
    margin: 0;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary, #666);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color, #00ff88);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch.disabled .slider {
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #333);
    display: flex;
    justify-content: flex-end;
}

.cookie-btn-secondary {
    background: var(--accent-color, #00ff88);
    color: var(--bg-primary, #1a1a1a);
    font-weight: 600;
}

.cookie-btn-secondary:hover {
    background: var(--accent-hover, #00cc6a);
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-primary, #fff);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    z-index: 10001;
}

.cookie-toast.show {
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-toast {
        right: 1rem;
        left: 1rem;
        transform: translateY(100px);
    }
    
    .cookie-toast.show {
        transform: translateY(0);
    }
}

/* Accessibility */
.cookie-btn:focus,
.close-btn:focus,
.switch input:focus + .slider {
    outline: 2px solid var(--accent-color, #00ff88);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-consent-banner,
    .cookie-settings-modal,
    .cookie-toast {
        display: none !important;
    }
}

/* ====== 03-components/pill-filters.css ====== */
/* ======================================= */
/* Pill Filter System (Shared Component)   */
/* Used by: View Matchups, Track Record,   */
/*          Picks, and future filter pages  */
/* ======================================= */

/* Pill Group - container for filter pills */
.pill-group {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.pill-group-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.pill-group-scroll::-webkit-scrollbar {
    display: none;
}

/* Filter Pill - primary filter element */
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgb(16 185 129 / 0.05);
}

.filter-pill.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgb(16 185 129 / 0.3);
}

.filter-pill.pill-compact {
    padding: 0.375rem 0.75rem;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.8rem;
}

.filter-pill-outline {
    background: transparent;
    border-style: dashed;
}

.filter-pill-outline:hover {
    border-style: solid;
}

.filter-pill-outline.active {
    background: rgb(16 185 129 / 0.08);
    border-style: solid;
}

.filter-pill-sm {
    padding: 0.25rem 0.75rem;
    min-height: 30px;
    font-size: 0.8rem;
}

/* Segment Control - toggle between 2 options */
.segment-control {
    display: flex;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.segment-btn {
    position: relative;
    z-index: 1;
    padding: 0.375rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.segment-btn.active {
    color: white;
    font-weight: 600;
}

.segment-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 4px);
    background: var(--accent-primary);
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.segment-control:has(.segment-btn:last-of-type.active) .segment-slider {
    transform: translateX(calc(100% + 2px));
}

/* Chip Group - container for filter chips */
.chip-group {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    align-items: center;
}

.chip-group-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.chip-group-scroll::-webkit-scrollbar {
    display: none;
}

/* Filter Chip - smaller variant for secondary filters */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    min-height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-chip.active {
    background: rgb(16 185 129 / 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Filter count badge */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--accent-primary);
    color: white;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Filter group label */
.pill-filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

/* Responsive: Pill Filters */
@media (max-width: 768px) {
    .filter-pill {
        padding: 0.375rem 0.75rem;
        min-height: 36px;
        font-size: 0.8rem;
    }

    .filter-pill.pill-compact {
        padding: 0.375rem 0.625rem;
        min-width: 32px;
        min-height: 32px;
    }

    .segment-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .pill-group-scroll {
        max-width: calc(100vw - 2rem);
    }
}


/* ====== analytics.css ====== */
/* Analytics consent banner styles */

.analytics-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.consent-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    color: #495057;
    font-size: 0.95rem;
}

.consent-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.consent-actions .btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.consent-actions .btn-primary {
    background-color: #007bff;
    color: white;
}

.consent-actions .btn-primary:hover {
    background-color: #0056b3;
}

.consent-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.consent-actions .btn-secondary:hover {
    background-color: #5a6268;
}

.privacy-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-content p {
        min-width: auto;
    }
    
    .consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .analytics-consent-banner {
        background-color: #212529;
        border-top-color: #495057;
    }
    
    .consent-content p {
        color: #e9ecef;
    }
    
    .consent-actions .btn-secondary {
        background-color: #495057;
    }
    
    .consent-actions .btn-secondary:hover {
        background-color: #343a40;
    }
}

