@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #dc2626; /* More vibrant premium red */
    --primary-hover: #ef4444;
    --primary-glow: rgba(220, 38, 38, 0.3);
    --primary-glass: rgba(220, 38, 38, 0.05);
    --primary-glass-border: rgba(220, 38, 38, 0.2);
    
    --neon-red: #dc2626;
    --neon-red-glow: rgba(220, 38, 38, 0.2);
    
    --bg-dark: #0a0a0c; 
    --bg-card: rgba(18, 18, 22, 0.9);
    --bg-nav: rgba(10, 10, 12, 0.98);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(142, 0, 28, 0.4);
    
    --text-main: #fcfcfc;
    --text-muted: #8e9aaf;
    
    --glass-blur: blur(16px);
    --glass-background: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Premium Red Glass Tokens */
    --red-glass: linear-gradient(135deg, rgba(142, 0, 28, 0.1), rgba(142, 0, 28, 0.03));
    --red-glass-deep: rgba(142, 0, 28, 0.06);
    --red-glass-border: rgba(142, 0, 28, 0.2);
    --red-glow-strong: 0 0 25px rgba(142, 0, 28, 0.2);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
    
    /* Rounded Modern UI Radii */
    --card-radius: 18px;
    --btn-radius: 12px;
    --btn-radius-pill: 100px;
    --input-radius: 10px;
    --icon-size: 20px;
    --icon-size-lg: 28px;
    --premium-font-scale: 1.02;
}

html { font-size: 16px; }
body { font-size: 16px; }

/* Headings refinement for a premium feel */
h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* Premium visual refinements */
body { font-size: calc(16px * var(--premium-font-scale)); }

/* Larger, more tactile buttons */
.btn { 
    padding: 0.9rem 1.9rem;
    font-size: 0.92rem;
    border-radius: calc(var(--btn-radius) + 2px);
}
.btn-primary { box-shadow: 0 10px 30px rgba(220,38,38,0.28), 0 2px 8px rgba(0,0,0,0.4); }
.btn-secondary { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

/* Icon buttons for compact actions */
.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    cursor: pointer;
}
.icon-btn svg { width: var(--icon-size); height: var(--icon-size); }

/* Larger nav icons */
.nav-icon { width: var(--icon-size-lg) !important; height: var(--icon-size-lg) !important; margin-right: 10px !important; }
.nav-icon svg { width: var(--icon-size-lg) !important; height: var(--icon-size-lg) !important; }

/* Premium cards: increased radius, spacing and softer shadows */
.card, .event-card, .card-elite, .feature-check-card, .testimonial-card {
    border-radius: calc(var(--card-radius) + 6px) !important;
    padding: 1.25rem !important;
    box-shadow: var(--shadow-premium), 0 6px 18px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    background: linear-gradient(180deg, rgba(20,20,24,0.95), rgba(10,10,12,0.92));
}

/* Improve event card appearance */
.event-card { padding: 1rem; margin-bottom: 1rem; border-radius: 14px; }

/* Make small text and muted text more elegant */
.text-muted, .subtitle { color: #aab6c6 !important; font-size: 0.95rem; }

/* Slightly larger input and control sizes for touch */
input, select, textarea, .btn-small { font-size: 0.95rem; }

/* Ensure headers and nav feel premium on mobile */
@media (max-width: 991px) {
    .pro-header, header.header { height: 56px !important; }
    .logo-text { font-size: 1.12rem !important; }
}

/* Stronger premium refinements */
:root {
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
    --spacing-sm: 0.6rem;
}

/* Header: tighter, center-aligned elements, higher contrast */
.pro-header, header.header {
    height: 72px !important;
    padding: 0 1.25rem !important;
    backdrop-filter: blur(14px) !important;
    background: linear-gradient(180deg, rgba(8,8,10,0.98), rgba(6,6,8,0.95)) !important;
}

.nav.container { gap: var(--spacing-md) !important; }
.logo-text { font-size: 1.35rem !important; font-weight: 900 !important; color: #fff !important; }

/* Navigation and icons: larger and consistent */
.nav-icon { width: var(--icon-size-lg) !important; height: var(--icon-size-lg) !important; margin-right: 8px !important; }
.nav.container img.logo-image { height: 36px !important; width: 36px !important; }

/* Buttons: more pill-like, tactile, and consistent */
.btn { border-radius: 999px !important; padding: 0.9rem 1.2rem !important; font-size: 0.95rem !important; }
.btn-primary { padding: 0.9rem 1.4rem !important; }
.btn-small { padding: 0.45rem 0.8rem !important; font-size: 0.82rem !important; border-radius: 12px !important; }

/* Cards: heavier padding, subtle glass sheen and elevation */
.card, .card-elite, .event-card, .testimonial-card, .feature-check-card {
    padding: 1.25rem !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(22,22,26,0.96), rgba(12,12,14,0.92)) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7), 0 6px 18px rgba(0,0,0,0.45) !important;
}

/* Event cards special */
.event-card { display:block !important; padding:1rem 1.25rem !important; margin-bottom:1rem !important; }
.event-card strong { font-size: 1.02rem; letter-spacing: -0.3px; }

/* Make muted text more refined */
.text-muted, .subtitle { color: #95a3b6 !important; font-size: 0.96rem !important; }

/* Bottom nav: subtle elevated pill center */
.pro-bottom-nav .bottom-nav-container { background: linear-gradient(180deg, rgba(12,12,14,0.92), rgba(6,6,8,0.98)); border-radius: 14px; padding: 0.5rem 0.75rem; }
.pro-bottom-nav .bottom-nav-link { padding: 0.25rem 0.5rem; }

/* Reduce visual clutter by standardizing icon colors */
svg { color: inherit; fill: currentColor; }

/* Improve readability on small screens */
@media (max-width: 640px) {
    h1 { font-size: 1.25rem !important; }
    .container { padding: 0 0.75rem !important; }
    .btn { padding: 0.7rem 1rem !important; }
    .card { padding: 0.9rem !important; }
}

/* Mobile density: tighten buttons, cards, and icon sizes for premium compact look */
@media (max-width: 991px) {
    .btn {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    .btn-primary { padding: 0.55rem 0.95rem !important; }

    .icon-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
    }

    .icon-btn svg { width: 18px !important; height: 18px !important; }

    .card, .card-elite, .event-card { padding: 0.85rem !important; border-radius: 14px !important; }

    .logo-text { font-size: 1.08rem !important; }
}

/* Mobile-first improvements: touch targets, spacing, stacked layout */
@media (max-width: 640px) {
    html { font-size: 17px; }
    body { line-height: 1.5; }

    /* Ensure header is compact and elements are reachable */
    .pro-header, header.header, .header {
        height: 56px !important;
        padding: 0 0.65rem !important;
        align-items: center !important;
    }

    /* Hide desktop sidebar on mobile (allow .active to show) */
    .pro-sidebar:not(.active) { display: none !important; }

    /* Make main content stack and avoid wide columns */
    .dashboard-main, .main, main { padding-top: 80px !important; }
    .container { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }

    /* Buttons become full-width in key action groups */
    .btn-block, .dashboard-actions .btn { display: block !important; width: 100% !important; margin-bottom: 0.6rem !important; }

    /* Increase touch target for icon buttons */
    .icon-btn { width: 48px !important; height: 48px !important; border-radius: 12px !important; }

    /* Cards become full-width stacked with larger spacing */
    .card, .card-elite, .event-card, .testimonial-card { width: 100% !important; margin-bottom: 1rem !important; padding: 1rem !important; }

    /* Bottom nav stickiness and spacing */
    .pro-bottom-nav { height: 56px !important; padding-bottom: 6px !important; }
    body:not(.no-bottom-spacing) { padding-bottom: 72px !important; }

    /* Larger, readable text sizes for mobile */
    h1 { font-size: 1.25rem !important; }
    h2 { font-size: 1rem !important; }
    h3 { font-size: 0.95rem !important; }

    /* Reduce clutter: hide non-essential desktop-only items */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}


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

input, select, textarea {
    font-family: inherit;
    color-scheme: dark;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Fix for browser autofill background/text color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #13131a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}
.premium-form-grid input#groupName
 {
    color: white !important;
}
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 51, 51, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 51, 51, 0.03) 0%, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

.profiel-icon{
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
button#profile-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.725rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header Styles */
.header {
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.98);
    height: 70px;
}

/* Hero & Unified Section Styling */
.welcome-hero,
.hero-platforms,
.account-types,
.benefits,
.testimonials-section,
.cta-section {
    background-color: var(--bg-dark);
    position: relative;
    border: none;
    margin: 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    text-shadow: 0 0 30px var(--primary-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

/* Subtle glow overlays to blend sections */
.account-types::before,
.benefits::before,
.testimonials-section::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 100%;
    top: 0;
    left: 20%;
    background: radial-gradient(circle at center, rgba(255, 51, 51, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
section#benefits {
    padding-top: 8rem;
}
.account-types {
    padding:0rem 0  9rem;
}

.logo-image {
    height: 50px;
    width: 50px;
    object-fit: contain;
    transition: var(--transition);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Button Styles - Premium Refinement */
/* --- PREMIUM CONSOLE STYLE BUTTONS --- */
/* =============================================
   PREMIUM BUTTON SYSTEM — Rounded Modern UI
   ============================================= */
.btn {
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--btn-radius);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.4px;
    text-transform: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
}

.btn:hover::before { opacity: 0.5; }

.btn:active {
    transform: scale(0.97) translateY(1px) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

/* PRIMARY */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #d4003a 0%, #a0002b 100%);
    box-shadow: 0 8px 24px rgba(142, 0, 28, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

/* SECONDARY */
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* DANGER */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45);
}

/* Card Pulse Animation */
@keyframes eliteGlow {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    100% { box-shadow: 0 0 25px var(--primary-glow); }
}

.card-elite {
    background: var(--bg-card);
    border: 1px solid var(--primary-glass-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card-elite::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-glow), transparent, transparent);
    animation: rotateGlow 6s linear infinite;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.card-elite:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

@keyframes glassPulse {
    0% { border-color: var(--primary-glass-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
    100% { border-color: var(--primary); box-shadow: 0 10px 40px rgba(255, 51, 51, 0.15); }
}

.neon-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2),
                 0 0 20px rgba(220, 38, 38, 0.4);
}

.neon-text-red {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.4),
                 0 0 20px rgba(255, 51, 51, 0.3);
}

/* SUCCESS */
.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* WARNING */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* GHOST / OUTLINE */
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

/* PILL VARIANT */
.btn-pill {
    border-radius: var(--btn-radius-pill) !important;
}

/* SMALL */
.btn-small {
    padding: 0.42rem 0.9rem;
    font-size: 0.78rem;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

/* Main Content */
.main {
    margin-top: 80px; /* Fixed header offset */
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Account Types Section */
.account-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.account-type-card {
    background: #13131a;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
}

.account-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0.8;
}

.account-type-card.group::before { 
    background: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}

.account-type-card.player::before { 
    background: #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

.account-type-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.account-type-card.group:hover {
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
}

.account-type-card.player:hover {
    box-shadow: 0 20px 50px rgba(255, 51, 51, 0.15);
}

.account-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.account-type-card:hover .account-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.05);
}

.account-type-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.account-type-card .subtitle {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    line-height: 1.4;
}

.features-list {
    list-style: none;
    margin: 2.5rem 0;
    width: 100%;
    padding: 0;
}

.features-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding: 4rem 0;
}

/* Benefits Section & Toggle */
/* Benefits Section & Toggle */
.role-toggle-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-inline: auto;
}

.role-tab {
    padding: 1rem 2rem;
    border-radius: 100px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.role-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.role-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.features-display {
    min-height: 400px;
    position: relative;
}

.role-features {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-features.active {
    display: grid;
}

.feature-check-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
    height: 100%;
}

.feature-check-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-check-card i {
    color: #4ade80;
    font-size: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.feature-check-card h4 {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .role-toggle-container {
        border-radius: 20px;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }
    .role-tab {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Testimonials Styles */
.testimonials-section {
    padding: 0rem 0 6rem;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 40s linear infinite;
    width: fit-content;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    min-width: 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
}

#addChildHeaderBtn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-info h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
}

.author-info span {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* Half of the doubled content */
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 300px;
        padding: 1.5rem;
    }
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.benefit-card:hover { transform: translateY(-5px); }

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(255, 51, 51, 0.3));
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 51, 51, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-family: 'Outfit';
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

/* Dashbord Styles */
.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.file-upload-area {
    transition: var(--transition);
}

.file-upload-area.drag-over {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    background-image: radial-gradient(circle at top left, rgba(255, 51, 51, 0.04), transparent);
}

.card-glass-red, .glass-panel {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.12) 0%, rgba(255, 51, 51, 0.03) 50%, rgba(19, 19, 26, 0.4) 100%);
    border: 1px solid rgba(255, 51, 51, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(255, 51, 51, 0.1);
}

.glass-header {
    background: linear-gradient(to right, rgba(255, 51, 51, 0.08), rgba(19, 19, 26, 0.6));
    border: 1px solid var(--red-glass-border);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: 0.6s;
    pointer-events: none;
}

.card:hover::after {
    left: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--red-glass-border);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background-image: linear-gradient(135deg, rgba(255, 51, 51, 0.05), transparent);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(255, 51, 51, 0.2);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

/* Dashboard Nav Grouped Styles */
.dashboard-nav-grouped {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    flex-wrap: wrap; /* Standard desktop wrap */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

@media (max-width: 768px) {
    .dashboard-nav-grouped {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }
    .dashboard-nav-grouped::-webkit-scrollbar {
        display: none;
    }
    .nav-item {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--red-glass);
    color: #ffffff;
    border: 1px solid var(--red-glass-border);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.nav-dropdown-container {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    display: flex;
    transform: translateY(0);
}

.nav-dropdown-menu button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding-left: 1.25rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.4rem 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #dc2626;
    display: block;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

/* Modern Tab Styling */
.tabs {
    display: flex;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.375rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.07);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.87rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, #c0002f 0%, #8e001c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(142, 0, 28, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: scale(1.02);
}

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

/* AGGRESSIVE DISABLED INPUT OVERRIDE */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled,
input:disabled,
select:disabled,
textarea:disabled,
input[disabled],
select[disabled],
textarea[disabled],
.form-control:disabled {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group label,
.checkbox-grid label,
.modal .checkbox-group label,
.modal .checkbox-grid label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 0.75rem 1rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: var(--transition) !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.checkbox-group label:hover,
.checkbox-grid label:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--border-hover) !important;
}

.checkbox-group label:has(input:checked),
.checkbox-grid label:has(input:checked) {
    background: rgba(255, 51, 51, 0.1) !important;
    border-color: var(--primary) !important;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"],
.checkbox-grid input[type="checkbox"],
.checkbox-grid input[type="radio"],
.modal .checkbox-group input[type="checkbox"],
.modal .checkbox-grid input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--primary) !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer !important;
}

/* Dark Theme Containers & Forms */
.signup-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    margin: 2rem auto;
}

.dashboard-container {
    background: transparent; /* Changed from var(--bg-card) to avoid double background */
    width: 100%;
    max-width: 1400px; /* Adjusted to match container */
    margin: 0 auto;
}

/* Signup Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Selection Cards */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.selection-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-card:hover {
    border-color: var(--primary);
    background: rgba(255, 51, 51, 0.05);
    transform: translateY(-2px);
}

.selection-card.selected {
    border-color: var(--primary);
    background: rgba(255, 51, 51, 0.1);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

/* Account Type Cards & Icons */
.account-type-card .icon,
.selection-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Half-width cards for group types */
.selection-grid.half-width {
    grid-template-columns: 1fr 1fr;
}

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

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.step.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.step.completed {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.form-group label {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: var(--transition);
    color-scheme: dark;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

/* Global Select Option Styling (Dark Theme) */
select {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    color-scheme: dark;
    cursor: pointer;
}

select option {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 10px;
}

/* Ensure dropdowns inside cards are also styled correctly */
.card select, .modal select, .form-group select {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Modal Styles */
/* Legacy modal styles removed to fix conflicts with Premium Modal Styles */

.close:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Table Styles */
.table-container {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* TOUCH-READY MOBILE TABLES */
@media (max-width: 768px) {
    /* Target typical dashboard table classes */
    .table, .data-table, .league-table, table:not(.no-mobile-cards) {
        display: block !important;
        width: 100% !important;
    }

    .table thead, .data-table thead, .league-table thead {
        display: none !important;
    }

    .table tbody, .data-table tbody, .league-table tbody {
        display: block;
        width: 100%;
    }

    .table tr, .data-table tr, .league-table tr {
        display: block;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        margin-bottom: 1.25rem;
        padding: 1.25rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: transform 0.2s;
    }

    .table tr:active {
        transform: scale(0.98);
    }

    .table td, .data-table td, .league-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-align: right !important;
        font-size: 0.9rem;
    }

    .table td:first-child, .data-table td:first-child {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 0.5rem;
        padding-bottom: 1rem !important;
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--primary) !important;
    }

    .table td:last-child, .data-table td:last-child {
        border-bottom: none !important;
    }

    /* Auto-Label Magic */
    .table td::before, .data-table td::before, .league-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.5px;
        text-align: left;
    }

    .table td:first-child::before, .data-table td:first-child::before {
        display: none; /* Keep the name clean */
    }
}

/* Status Badge Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.status-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-overdue {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.item-list {
    max-height: 400px;
    overflow-y: auto;
}

.item-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.item-list-item:hover {
    background: rgba(220, 38, 38, 0.05);
}

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

.item-info h4 {
    color: #dc2626;
    margin-bottom: 0.25rem;
}

.item-info p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Search and Filter Styles */
.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: end;
}

.search-filters .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-wrapper {
    position: relative;
}

.notification-bell {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.notification-bell.has-unread {
    color: var(--primary);
}

.unread-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: #1a1a1e;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
}

.notification-dropdown.active {
    display: block;
    animation: slideInDown 0.3s ease-out;
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(255, 51, 51, 0.03);
}

.notification-item h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.notification-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 8px;
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.user-profile-nav:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .item-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-left: 2px solid #dc2626;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-details {
    color: #000000 !important;
}

.payment-details .amount-display {
    color: #000000 !important;
}

.payment-info strong {
    color: #000000 !important;
}

.payment-info span {
    color: #000000 !important;
}

#paymentAmount,
#paymentDescription,
#playerName,
#groupName,
#dueDate {
    color: #000000 !important;
}

/* Landing Page Components */
.hero-platforms {
    height: calc(100vh - 80px);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: #000;
    position: relative;
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.hero-platforms::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
    pointer-events: none;
}

.hero-overlay-text h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    font-weight: 800;
    width: 100%;
}

.hero-overlay-text p {
    font-size: 1.25rem;
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 500;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-overlay-text h1 {
        font-size: 3rem;
    }
    .hero-overlay-text p {
        font-size: 1rem;
    }
}

.platform-col {
    min-width: 50vw; /* 2 columns visible on large screens, scroll for more */
    flex: 0 0 50vw; 
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: white;
    scroll-snap-align: start;
    border-right: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1200px) {
    .platform-col {
        min-width: 25vw;
        flex: 0 0 25vw;
    }
}

.platform-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s linear; /* Faster transition for parallax */
    z-index: 1;
    opacity: 0.6;
    transform: translateX(var(--parallax-offset, 0px)) scale(1.1);
}

.platform-col.org::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('images/clubs-hero.jpeg');
}

.platform-col.player::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('images/players-hero.jpg');
}

.platform-col.coach::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('images/coach-hero.jpg');
    background-color: #1a1a1a;
}

.platform-col.league::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('images/league-hero.jpg');
    background-color: #0d0d0d;
}

.platform-col:hover::before {
    transform: scale(1.05);
    opacity: 0.8;
}

.platform-col:hover {
    flex: 1.25;
}

.platform-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.platform-tagline {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.4;
}

.platform-btn {
    background: #ff3333;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.platform-col:hover .platform-btn {
    background: white;
    color: #ff3333;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(220, 67, 67, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(220, 67, 67, 0.2);
}

.benefit-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.group-finder-hero {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

.finder-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.finder-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.finder-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.finder-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Footer Branding */
.site-footer {
    background: #000;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 51, 51, 0.1);
    position: relative;
    color: #4b5e7a;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.5), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-links a {
    color: #4b5e7a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer p {
    font-size: 0.9rem;
    color: #4b5e7a;
    margin: 0;
}

.footer-links a:hover {
    color: var(--primary);
}

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

/* Dashboard Specialized Components */
.finance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.finance-amount {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    font-size: 1.5rem;
    font-weight: 700;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
}

.status-paid {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-overdue {
    color: var(--primary);
    border-color: var(--primary-glow);
}

/* Tactical Board */
.tactical-board-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.tactical-board {
    width: 100%;
    max-width: 600px;
    height: 450px;
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    margin: 2rem auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 100px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Pitch markings */
.tactical-board::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.tactical-board::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.player-position {
    position: absolute;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: move;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-position:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: white;
}

.player-position.drag-over {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.2) !important;
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: white;
    border-style: dashed;
}

.player-position.selected {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.player-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Integrated Sections Styles */
.camp-tab {
    animation: fadeIn 0.3s ease;
}

.field-chip {
    transition: all 0.2s ease;
}

.field-chip:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

.field-chip:active {
    cursor: grabbing;
}

#adminFieldCanvas.drag-over {
    background: rgba(74, 222, 128, 0.05) !important;
    border-color: #4ade80 !important;
}

/* Dashboards Responsiveness */
.dashboard-container {
    margin-top: 100px;
    padding-bottom: 5rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        margin-top: 80px;
        padding-top: 1rem;
    }

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

    .dashboard-nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100% !important; /* Ensure it takes full width */
    }

    .dashboard-nav button {
        flex: 1 1 auto;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        min-width: 100px;
    }

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

    .stat-number {
        font-size: 2rem;
    }

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

    .card {
        padding: 1.25rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stripe-access {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .stripe-access button {
        width: 100%;
    }

    /* Landing Page Mobile */
    .hero-platforms {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .platform-col {
        height: 50vh;
        padding: 2rem;
    }

    .platform-title {
        font-size: 2rem;
    }
    
    .platform-tagline {
        font-size: 0.85rem;
    }

    .group-finder-hero {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 4rem 2rem;
        background: #000;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-icon {
        font-size: 3rem;
    }
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    margin: 0;
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    overflow-x: auto;
}

.dashboard-nav button {
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: var(--text-muted);
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    transition: all 0.22s ease;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.2px;
}

.dashboard-nav button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255,255,255,0.15);
}

.dashboard-nav button.active {
    color: #fff;
    border-bottom-color: var(--primary);
    background: rgba(142, 0, 28, 0.12);
    text-shadow: 0 0 12px rgba(255,80,80, 0.3);
}

/* Dashboard Section Visibility */
.dashboard-content {
    display: block !important; /* Container must be visible */
    width: 100%;
}

.dashboard-section {
    display: none !important; /* Individual sections hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-section.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 400px; /* Ensure it has height */
    position: relative;
    z-index: 10;
    transform: none !important;
    animation: none !important;
}


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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 67, 67, 0.15);
    border-color: var(--primary);
}
.cta-group .btn-primary-glow {
    margin-right: 30px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

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

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Finance Overview */
.finance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.finance-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Player Filters */
.player-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (max-width: 480px) {
    .dashboard-nav {
        gap: 0;
    }
    
    .dashboard-nav button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy modal styles removed to fix conflicts */

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

main.main.home-main {
    margin-top: 0;
}

/* Welcome Hero Section */
.welcome-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
    padding: 120px 2rem 4rem; /* Adjusted for fixed header */
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgb(0 0 0 / 88%)), url(images/players-hero.jpg);
    pointer-events: none;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-container {
    width:100%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#coach-features, #group-features {
    padding-bottom: 60px;
}
.highlight-red {
    color: #ff4d4d; /* Much more readable vibrant red */
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.free-badge {
    display: inline-block;
    background: rgba(255, 51, 51, 0.12);
    border: 1px solid rgba(255, 51, 51, 0.4);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    color: #ffffff; /* White text as requested */
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #ff4c4c 0%, #ff3333 100%);
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 100px; /* Pill style */
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.4), inset 0 2px 2px rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-glow:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 51, 51, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.role-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.role-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.role-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .welcome-title { font-size: 3rem; }
    .welcome-hero { padding-top: 120px; }
    .role-cards-grid { grid-template-columns: 1fr; }
}

/* Modern Table Styles - Added by Antigravity */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-main);
}

.data-table th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: rgba(20, 20, 25, 0.6);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: var(--transition);
}

.data-table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

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

/* Team Specific Table Styles */
.team-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 51, 51, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.team-name-group {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

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

.user-info-cell, .event-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name-group, .event-name-group {
    display: flex;
    flex-direction: column;
}

.user-name, .event-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.user-meta, .event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}


.stats-cell {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.win-stat { color: #4ade80; }
.loss-stat { color: #f87171; }
.draw-stat { color: #fbbf24; }

.coach-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coach-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.1);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.data-table tr:hover .action-buttons {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    transform: translateY(-2px) scale(1.08);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-icon:active { transform: scale(0.95); }

.btn-icon.manage:hover { color: var(--primary); border-color: var(--primary); background: rgba(142,0,28,0.12); }
.btn-icon.edit:hover { color: #a78bfa; border-color: #7c3aed; background: rgba(124,58,237,0.12); }
.btn-icon.notify:hover { color: #60a5fa; border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
.btn-icon.delete:hover { color: #f87171; border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }

/* Premium Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 2rem 1rem;
    align-items: center;
    justify-content: center;
}

.modal.active,
.modal[style*="display: block"],
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    margin: 0; /* Updated: Fix centering conflict */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

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

.modal-header .close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.modal-header .close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg) scale(1.1);
}

.modal form {
    padding: 2rem;
}

.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.modal .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal .form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.modal .btn {
    flex: 1;
}

/* Info Box in Modals */
.modal .info-box {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--input-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.modal .info-box.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.modal .info-box.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.modal .info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal .info-box ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text-muted);
}

.modal .info-box ul li {
    margin-bottom: 0.25rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
    }
    
    .modal {
        padding: 1rem;
    }
}

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

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

/* Premium Form Layouts */
.premium-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.premium-form-grid .full-width {
    grid-column: 1 / -1;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(220, 67, 67, 0.1) !important;
    outline: none !important;
}

.branding-preview-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.branding-preview-box img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.upload-zone-premium {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.upload-zone-premium:hover {
    border-color: var(--accent-color);
    background: rgba(220, 67, 67, 0.03);
    transform: translateY(-2px);
}

.upload-zone-premium .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Premium Empty State */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.empty-state-container:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.empty-state-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.2));
    animation: pulse 2s infinite ease-in-out;
}

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

.empty-state-container h4 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.empty-state-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.empty-state-container .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Fix for button secondary visibility */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ===================================
   MODE TOGGLE (Group/Player Switch)
   =================================== */

.mode-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.5rem;
}

.mode-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  user-select: none;
}

.mode-label.active {
  color: white;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
  background: rgba(255, 255, 255, 0.15);
}

input:checked + .toggle-switch:hover .toggle-slider {
  background: var(--primary-hover);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(220, 67, 67, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .mode-toggle-container {
    margin: 0 0.5rem;
    gap: 0.5rem;
  }
  
  .mode-label {
    font-size: 0.8rem;
  }
  
  .toggle-switch {
    width: 44px;
    height: 24px;
  }
  
  .toggle-slider:before {
    height: 16px;
    width: 16px;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }
}

/* =========================================
   GROUPED NAVIGATION & DROPDOWNS
   ========================================= */

.dashboard-nav-grouped {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-item:hover, 
.nav-item.active, 
.nav-dropdown-container:hover .dropdown-trigger {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Dropdowns */
.nav-dropdown-container {
    position: relative;
    height: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #1a1a20; /* Slightly darker/contrasty */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

/* Invisible bridge to maintain hover state across the gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 1.25rem; /* Slide effect */
}

.nav-dropdown-menu button.active {
    color: var(--primary);
    background: rgba(255, 51, 51, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* Optional: Stylish scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

@media (max-width: 992px) {
    .dashboard-nav-grouped {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem;
        justify-content: flex-start;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .dashboard-nav-grouped::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari and Opera */
    }

    .nav-item {
        flex-shrink: 0;
    }
    
    .nav-dropdown-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 1.5rem;
    }
    
    .nav-dropdown-container:hover .nav-dropdown-menu {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .header {
        height: auto;
        min-height: 56px;
        padding: 0.4rem 0;
        position: fixed;
    }
    
    .header .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
        padding: 0 0.75rem;
        align-items: center;
    }

    .logo {
        font-size: 1.1rem;
        flex: 1;
        min-width: 100px;
    }

    .logo-image {
        height: 24px;
        width: 24px;
    }

    .mode-toggle-container {
        order: 2;
        margin-top: 0;
        background: rgba(255,255,255,0.05);
        padding: 0.25rem 0.5rem;
        border-radius: 50px;
        scale: 0.8;
    }

    .user-info {
        order: 3;
        width: 100%;
        gap: 0.5rem;
        justify-content: space-between;
        padding: 0.4rem 0.5rem 0.2rem 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-top: 0.25rem;
    }

    #adminNameDisplay {
        display: none;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .nav-buttons {
        gap: 0.4rem;
    }

    /* Mobile Navigation Refinement */
    .app-top-tabs {
        padding: 0.4rem 0;
    }
    /* Dashboard Header Refinement */
    .dashboard-header {
        padding: 1.5rem 1rem;
        text-align: center;
        flex-direction: column;
    }

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

    .dashboard-header p {
        background: transparent !important; /* Fix for dark back-text in screenshot */
        padding: 0 !important;
        font-size: 0.9rem;
    }

    .stripe-access {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }
}

/* Custom Dialog System */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dialog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.dialog-overlay.active .dialog-card {
    transform: translateY(0) scale(1);
}

.dialog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary));
}

.dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 51, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.dialog-icon.confirm {
    background: rgba(255, 51, 51, 0.1);
    color: var(--primary);
}

.dialog-icon.info {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

.dialog-icon.warning {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
}

.dialog-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.dialog-message {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.dialog-actions .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 12px;
}

/* ============================================
   PWA INSTALL BUTTON STYLES
   ============================================ */
.pwa-install-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 67, 67, 0.1);
    border: 1px solid rgba(220, 67, 67, 0.3);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-install-btn:hover {
    background: rgba(220, 67, 67, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pwa-install-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================ */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .pwa-install-text {
        display: none;
    }
    
    .pwa-install-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Improved touch targets */
    .btn, button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile table improvements */
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Responsive tables - horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile menu improvements */
    .dropdown-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Mobile modal improvements */
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Improved form inputs on mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile grid improvements */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile card spacing */
    .card, .glass-panel {
        margin-bottom: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    /* Stack navigation on very small screens */
    .nav-buttons {
        flex-wrap: wrap;
    }
    
    /* Compact buttons */
    .btn-small {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Mobile typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
    }
    
    .header {
        height: 60px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, button, a, input[type="checkbox"], input[type="radio"] {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .card:hover {
        transform: none;
    }
    
    /* Better spacing for touch */
    .nav-buttons {
        gap: 0.75rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode enhancements for PWA */
@media (prefers-color-scheme: dark) {
    .pwa-install-btn {
        background: rgba(220, 67, 67, 0.15);
        border-color: rgba(220, 67, 67, 0.4);
    }
}

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

/* ============================================
   PWA INSTALL BANNER & FLOATING BUTTON
   ============================================ */

/* Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 600px;
    width: calc(100% - 2rem);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-banner.pwa-banner-visible {
    bottom: 1rem;
}

.pwa-banner-content {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 67, 67, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(220, 67, 67, 0.2);
    position: relative;
}

.pwa-banner-icon {
    flex-shrink: 0;
}

.pwa-banner-icon img {
    width: 56px;
    height: 56px;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 12px rgba(220, 67, 67, 0.3);
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.pwa-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.pwa-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.pwa-banner-install,
.pwa-banner-dismiss {
    padding: 0.65rem 1.25rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.pwa-banner-install {
    background: var(--primary);
    color: white;
}

.pwa-banner-install:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 67, 67, 0.4);
}

.pwa-banner-dismiss {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.pwa-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.pwa-banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Floating Install Button */
.pwa-floating-install {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(220, 67, 67, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pwa-float-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-floating-install:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(220, 67, 67, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.4);
}

.pwa-floating-install:active {
    transform: translateY(-2px) scale(1.02);
}

.pwa-floating-install img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* Tooltip for floating button */
.pwa-floating-tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid rgba(220, 67, 67, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-floating-install:hover .pwa-floating-tooltip {
    opacity: 1;
}

/* Pulse animation for floating button */
@keyframes pwa-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(220, 67, 67, 0.4),
                    0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(220, 67, 67, 0.6),
                    0 4px 12px rgba(0, 0, 0, 0.3),
                    0 0 0 8px rgba(220, 67, 67, 0.2);
    }
}

.pwa-floating-install {
    animation: pwa-float-in 0.5s cubic-bezier(0.16, 1, 0.3, 1),
               pwa-pulse 2s ease-in-out 2s infinite;
}

@keyframes pwa-float-in {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .pwa-install-banner {
        bottom: -250px;
        width: calc(100% - 1rem);
    }
    
    .pwa-install-banner.pwa-banner-visible {
        bottom: 0.5rem;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .pwa-banner-icon img {
        width: 48px;
        height: 48px;
    }
    
    .pwa-banner-text h4 {
        font-size: 1rem;
    }
    
    .pwa-banner-text p {
        font-size: 0.85rem;
    }
    
    .pwa-banner-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .pwa-banner-install,
    .pwa-banner-dismiss {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .pwa-floating-install {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
    
    .pwa-floating-install img {
        width: 24px;
        height: 24px;
    }
    
    .pwa-floating-tooltip {
        display: none; /* Hide tooltip on mobile */
    }
}

@media (max-width: 480px) {
    .pwa-banner-content {
        padding: 0.875rem;
    }
    
    .pwa-banner-icon img {
        width: 40px;
        height: 40px;
    }
    
    .pwa-floating-install {
        width: 52px;
        height: 52px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .pwa-banner-content {
        background: rgba(13, 13, 13, 0.98);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pwa-install-banner,
    .pwa-floating-install {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Lineup Planner --- */
.planner-layout {
    margin-top: 1rem;
}

.roster-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.available-player {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem;
    border-radius: var(--input-radius);
    cursor: grab;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.available-player:hover {
    background: rgba(255, 51, 51, 0.05);
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateX(5px);
}

.available-player.assigned {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.01);
    cursor: not-allowed;
}

.player-position {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--primary);
    background: radial-gradient(circle at 30% 30%, #ff6666 0%, #cc0000 100%);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: move;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    user-select: none;
}

.player-position:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.4);
    z-index: 20;
}

.player-position.selected {
    border-color: #4ade80;
    box-shadow: 0 0 20px #4ade80;
    transform: scale(1.2);
}

.player-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

.pitch-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Custom Scrollbar for Roster */
.roster-list::-webkit-scrollbar {
    width: 4px;
}

.roster-list::-webkit-scrollbar-track {
    background: transparent;
}

.roster-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.roster-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-glass-border);
}

/* ==========================================================================
   APP-LIKE MOBILE UI (THREADS STYLE)
   ========================================================================== */

/* Layout Container */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom nav */
}

.dashboard-view .app-layout .dashboard-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-view .app-layout .dashboard-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
}

.dashboard-view .app-layout .card {
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    background: rgba(13, 13, 18, 0.96);
}

.dashboard-view .app-layout .section-header {
    gap: 0.75rem;
}

.dashboard-view .app-layout .section-header h2,
.dashboard-view .app-layout .section-header h3 {
    font-size: 1.2rem;
}

.dashboard-view .app-layout .btn {
    min-width: 140px;
}

.dashboard-view .app-layout .card + .card {
    margin-top: 0.75rem;
}

/* Top Swippable Tabs (Headlines) */
.app-top-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08); /* Threads-style subtle border */
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    padding: 0.85rem 1rem;
    gap: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.app-top-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Mobile vs Desktop App View Logic */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
    
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    .dashboard-container {
        padding: 0 !important;
        margin-top: 0 !important;
    }
    
    .dashboard-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .dashboard-section.active {
        padding: 0.75rem 0 1rem;
    }
    
    .card {
        border-radius: 24px;
        border-left: none;
        border-right: none;
        margin-bottom: 12px; /* App-style card spacing */
        padding: 1.25rem;
    }

    .section-header {
        padding: 0 0.25rem;
    }

    .card h3 {
        font-size: 1.15rem;
    }

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

    .unified-bottom-nav,
    .pro-bottom-nav {
        height: 76px;
        padding: 0.75rem 0.5rem calc(1rem + env(safe-area-inset-bottom));
        justify-content: space-between;
        gap: 0.5rem;
    }

    .unified-bottom-nav .unified-nav-item,
    .pro-bottom-nav .bottom-nav-link {
        flex: 1 1 auto;
        min-width: 56px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

.tab-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.2rem 0;
    transition: var(--transition);
}

.tab-item.active {
    color: var(--text-main);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Bottom Navigation Bar */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-link.active {
    color: var(--primary);
    opacity: 1;
}

.nav-link svg {
    width: 24px;
    height: 24px;
}

/* Hide sidebars on mobile if using app-layout */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
}

/* Tournament Bracket Styles - Professional Knockout Tree */
.bracket-tree {
    display: flex;
    overflow-x: auto;
    padding: 2.5rem 1rem;
    gap: 0;
}

.bracket-round {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 280px;
    padding: 0 40px; /* Space for connectors */
}

.bracket-match-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.bracket-match {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    width: 100%;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 2;
}

.bracket-match:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
}

/* Connectors */
.bracket-match::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.bracket-round:last-child .bracket-match::after { display: none; }

/* Branching logic for the World Cup feel */
.bracket-match-container::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.bracket-round:first-child .bracket-match-container::before { display: none; }

/* Vertical connectors */
.bracket-match-container.upper::after,
.bracket-match-container.lower::after {
    content: '';
    position: absolute;
    right: -40px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.bracket-match-container.upper::after {
    top: 50%;
    height: 50%;
}

.bracket-match-container.lower::after {
    bottom: 50%;
    height: 50%;
}

.match-team {
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.match-team:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.match-team:last-child { border-bottom: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

.match-team:hover { background: rgba(255,255,255,0.03); }

.match-team.winner {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
}

.match-team.winner .team-name { color: #4ade80; font-weight: 700; }
.match-team.winner .match-score { color: #4ade80; }

.team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.match-score {
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    min-width: 30px;
    text-align: right;
    color: var(--text-muted);
}

.bracket-drag-over {
    background: rgba(239, 68, 68, 0.15) !important;
    outline: 2px dashed var(--primary);
    border-radius: 8px;
}



/* Custom Scrollbar for Bracket */
#tournamentBracketVisual::-webkit-scrollbar {
    height: 8px;
}
#tournamentBracketVisual::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
#tournamentBracketVisual::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
#tournamentBracketVisual::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ====================================================
   APP-LIKE NAVIGATION LAYOUT (Mobile/Bottom Nav & Top Tabs)
   ==================================================== */

.app-top-tabs-container {
    display: none;
    position: fixed;
    top: 80px; /* Base for desktop/large mobile */
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 990;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    align-items: center;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

@media (max-width: 900px) {
    .app-top-tabs-container {
        top: 100px; /* Offset for multi-row mobile header */
    }
}

.app-top-tabs-container::-webkit-scrollbar {
    display: none;
}

.top-app-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    scroll-snap-align: center;
}

.top-app-tab.active {
    color: var(--text-main);
}

.top-app-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

.app-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.app-bottom-nav .nav-item .icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.app-bottom-nav .nav-item.active {
    color: var(--primary);
}

.app-bottom-nav .nav-item.active .icon {
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .dashboard-nav-grouped.desktop-only {
        display: none !important;
    }

    .app-top-tabs-container {
        display: flex;
    }

    .app-bottom-nav {
        display: flex;
    }

    /* Adjust main content layout when app nav is active */
    .dashboard-content {
        margin-top: 100px; /* Space for multi-row header */
        padding-bottom: 80px; /* Space for bottom nav */
    }

    /* If tabs are present, add more space */
    .app-top-tabs-container:not([style*="display: none"]) ~ .dashboard-content {
        margin-top: 150px;
    }
}

/* ============================================
   COMMUNITY: FEED & MESSENGER (Threads Style)
   ============================================ */
.community-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Feed Styling */
.feed-post {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-hover);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feed-content {
    flex: 1;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.feed-user {
    font-weight: 700;
    font-size: 0.95rem;
}

.feed-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.feed-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: var(--text-muted);
}

.feed-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.feed-action:hover {
    color: var(--primary);
}

/* Messenger Styling */
.messenger-layout {
    display: flex;
    height: 70vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.messenger-sidebar {
    width: 250px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.messenger-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.conversation-item:hover, .conversation-item.active {
    background: rgba(255, 255, 255, 0.03);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.conversation-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
}

.message-bubble.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.6rem 1.25rem;
    color: white !important;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary);
}

/* Mobile responsive Messenger */
/* Mobile responsive Messenger */
@media (max-width: 768px) {
    .messenger-sidebar {
        display: none;
    }
}

/* ==========================================================================
   FEED & COMMUNITY STYLES
   ========================================================================== */

.community-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.feed-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feed-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.feed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feed-card:hover .feed-image {
    transform: scale(1.05);
}

.feed-content {
    padding: 1.5rem;
}

.feed-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: rgba(177, 3, 45, 0.15);
    color: #ff3366;
    letter-spacing: 0.5px;
}

.feed-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.feed-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Messaging System Styles */
.messaging-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 650px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.message-sidebar {
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.message-list {
    flex: 1;
    overflow-y: auto;
}

.message-item {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-item.active {
    background: rgba(177, 3, 45, 0.08);
}

.message-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.message-item.unread {
    background: rgba(255, 255, 255, 0.03);
}

.message-item.unread .sender {
    color: var(--text-main);
    font-weight: 800;
}

.message-item.announcement {
    background: rgba(177, 3, 45, 0.05);
}

.message-item .sender {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-item .time {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.message-item .subject {
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.message-item .preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-view {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
}

.message-view-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
}

.message-view-content {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    height: 100%;
    overflow-y: auto;
}

.message-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.message-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

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

.sender-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.message-body {
    line-height: 1.7;
    color: #cbd5e1;
    font-size: 1rem;
    white-space: pre-wrap;
}

.announcement-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}


/* =============================================
   TACTICAL BOARD PRO STYLES
   ============================================= */
.pitch-container {
    background: #1a472a;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    user-select: none;
}

.player-pin, .equipment-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transform: translate(-50%, -50%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.player-pin {
    background: var(--primary);
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.player-pin:active, .equipment-pin:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 100;
}

.equipment-pin {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

.equipment-tray .eq-item {
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-tray .eq-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tactical-sidebar select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    color: #fff;
    width: 100%;
}

#currentFrameLabel {
    background: var(--primary-glass);
    border: 1px solid var(--primary-glass-border);
    border-radius: 6px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Dashboard Tabs & Highlights */
.dashboard-inline-tabs-premium {
    display: flex;
    gap: 0.5rem;
    background: hsla(0, 0%, 100%, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid hsla(0, 0%, 100%, 0.05);
    margin: 2rem 0;
    width: fit-content;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #fff;
    background: hsla(0, 0%, 100%, 0.05);
}

.tab-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.active-highlight {
    border: 2px solid hsl(var(--primary)) !important;
    box-shadow: 0 0 25px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2) !important;
    position: relative;
}

.active-highlight::after {
    content: 'Priority';
    position: absolute;
    top: -10px;
    right: 20px;
    background: hsl(var(--primary));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Landing Page Role Grid Alignment --- */
.role-grid-home {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1100px;
    margin: 0 auto 6rem !important;
    gap: 2rem !important;
}

@media (max-width: 992px) {
    .role-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .role-grid-home {
        grid-template-columns: 1fr !important;
    }
}
