@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@500;700&family=Poppins:wght@400;500;600;700;800;900&family=Monoton&display=swap');

:root {
    /* USER REQUESTED PALETTE (Blue/White) */
    /* 00171f (Rich Black/Navy) - Backgrounds/Text */
    /* 003459 (Prussian Blue) - Primary Dark */
    /* 007ea7 (Cerulean) - Primary Light/Buttons */
    /* 00a8e8 (Picton Blue) - Accents/Highlights */
    /* ffffff (White) - Text/Backgrounds */

    --primary-900: #00171f;
    --primary-800: #00263e;
    /* Interpolated */
    --primary-700: #003459;
    --primary-600: #005a80;
    /* Interpolated */
    --primary-500: #007ea7;
    --primary-400: #0093c7;
    /* Interpolated */
    --primary-300: #00a8e8;
    --primary-200: #4dc2ee;
    --primary-100: #b3e3f8;

    /* Secondary - White & Accents */
    --accent-900: #00171f;
    --accent-800: #00171f;
    --accent-700: #00171f;
    --accent-600: #007ea7;
    --accent-500: #00a8e8;
    --accent-400: #33b9ed;
    --accent-300: #f0f9ff;
    --accent-200: #ffffff;
    --accent-100: #ffffff;

    /* Neutral Colors */
    --neutral-900: #00171f;
    --neutral-800: #0a232e;
    --neutral-700: #15303d;
    --neutral-600: #304a58;
    --neutral-500: #506875;
    --neutral-400: #94a3b8;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #ffffff;

    /* Semantic Colors */
    --success: #16a34a;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #00a8e8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-300) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 23, 31, 0.95) 0%, rgba(0, 52, 89, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows - Blue-tinted */
    --shadow-sm: 0 1px 2px 0 rgba(0, 23, 31, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 23, 31, 0.1), 0 2px 4px -1px rgba(0, 23, 31, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 23, 31, 0.1), 0 4px 6px -2px rgba(0, 23, 31, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 23, 31, 0.1), 0 10px 10px -5px rgba(0, 23, 31, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 23, 31, 0.25);
    --shadow-glow: 0 0 15px rgba(0, 168, 232, 0.4);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

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

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-rotate {
    transform: translateY(30px) rotate(-2deg);
}

.reveal-rotate.is-visible {
    transform: translateY(0) rotate(0);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal-scale.is-visible {
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Button Shine Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

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

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    /* Changed to Oswald for headings */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* Ensure uppercase for professional sports look */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-base);
}

button:active {
    transform: scale(0.95);
}

/* ============================================
   NAVBAR - PROFESSIONAL BLUE DESIGN
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff !important;
    /* Complete white as requested */
    border-bottom: 1px solid #e2e8f0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: #ffffff !important;
}

.nav-container {
    width: 100%;
    padding: 0.35rem 2rem;
    /* Decreased height again */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    flex: 0 0 auto;
}

.logo-fixed {
    height: 45px;
    /* Reduced height again */
    width: auto;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-fixed:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.club-title-white {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    /* Slightly smaller */
    font-weight: 700;
    color: var(--primary-900) !important;
    /* Managed by theme */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0.25rem 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    min-width: 45px;
    height: 45px;
    color: #334155 !important;
    /* Darker text */
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    gap: 8px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-600) !important;
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a.active {
    background: var(--gradient-accent);
    color: var(--primary-900);
}

.nav-links a i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-links a span {
    display: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--primary-900);
    /* Managed by theme */
    padding: 0.5rem;
    font-size: 1.8rem;
    transition: color var(--transition-base);
}

/* ============================================
   HERO SECTION - DYNAMIC & ENGAGING
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-900);
    margin-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 23, 31, 0.4) 0%, rgba(0, 52, 89, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgb(252, 215, 10);
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--neutral-100);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-900);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-500);
    transform: translateY(-3px);
}

.hero-clock {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

#clock-time {
    font-family: 'Monoton', cursive;
    font-size: 6rem;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    /* Neon glow effect */
    letter-spacing: 5px;
}

#clock-date {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-clock {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    #clock-time {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    #clock-date {
        font-size: 1rem;
    }
}

/* Scroll Indicator Removed */

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

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

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-800);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ============================================
   NEWS GRID - MODERN CARD DESIGN
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid var(--neutral-200);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-500);
}

.news-card.breaking {
    border: 2px solid var(--accent-500);
    box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.1), var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-accent);
    color: var(--primary-900);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--primary-800);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-content p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.news-meta time {
    font-size: 0.85rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.news-read-more {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-read-more:hover {
    color: var(--accent-600);
}

/* News Image Placeholder for items without images */
.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
}

.news-image-placeholder i {
    font-size: 4rem;
    color: var(--primary-400);
    opacity: 0.6;
}

/* ============================================
   SQUAD GRID - PLAYER CARDS
   ============================================ */

/* ============================================
   SQUAD GRID - PLAYER CARDS
   ============================================ */

.squad-grid {
    display: block;
    width: 100%;
}

/* Horizontal Scroll for ALL screens */
.category-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

.category-cards-container,
#staff-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.category-cards-container::-webkit-scrollbar,
#staff-cards-container::-webkit-scrollbar {
    display: none;
}

/* Default Card Style (Desktop/Large Screens) */
.squad-card,
.staff-card-compact,
.player-card-minimal {
    flex: 0 0 280px;
    /* Fixed width for better control on desktop */
    min-width: 0;
    scroll-snap-align: start;
    margin-bottom: 0;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {

    .squad-card,
    .staff-card-compact,
    .player-card-minimal {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    .squad-card,
    .staff-card-compact,
    .player-card-minimal {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    .squad-card,
    .staff-card-compact,
    .player-card-minimal {
        flex: 0 0 calc(60% - 0.5rem);
        /* Slightly larger on very small screens */
    }
}

.squad-image .default-avatar i {
    font-size: 4rem;
}



.squad-info {
    padding: 1rem;
}

.squad-info h4 {
    font-size: 1.1rem;
}

.squad-number {
    min-width: 35px;
    height: 35px;
    font-size: 1.1rem;
    top: 0.75rem;
    right: 0.75rem;
}

.squad-status {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
}

/* ============================================
   PREMIUM PLAYER CARD DESIGN
   ============================================ */

.squad-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 52, 89, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    max-width: 280px;
    margin: 0 auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.squad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 126, 167, 0.03) 0%,
            rgba(0, 168, 232, 0.03) 100%);
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.squad-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(0, 52, 89, 0.25),
        0 10px 30px rgba(0, 126, 167, 0.15);
}

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

.squad-image {
    position: relative;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg,
            var(--primary-700) 0%,
            var(--primary-500) 50%,
            var(--primary-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.squad-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top,
            rgba(0, 23, 31, 0.9) 0%,
            rgba(0, 23, 31, 0.4) 50%,
            transparent 100%);
    pointer-events: none;
}

.squad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.squad-card:hover .squad-image img {
    transform: scale(1.1);
}

/* Jersey Number Badge - Premium */
.squad-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 45px;
    height: 45px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 100%);
    color: var(--primary-800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

/* Status Badge */
.squad-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.squad-status.injured {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.squad-status.inactive {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.squad-status.not.available {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Player Info Section - Overlay Style */
.squad-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.squad-info h4 {
    font-size: 1.35rem;
    color: white;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.player-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.position-chip {
    background: rgba(0, 168, 232, 0.25);
    color: white;
    border: 1px solid rgba(0, 168, 232, 0.4);
}

.age-chip {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.height-chip {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.foot-chip {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-notes {
    font-size: 0.75rem;
    color: var(--neutral-600);
    background: var(--neutral-100);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-500);
    text-align: left;
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.player-notes i {
    color: var(--primary-500);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Staff Section - Home Page Main Accordion */
.staff-main-accordion {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--neutral-100);
}

.staff-main-summary {
    padding: 2.5rem 2rem;
    cursor: pointer;
    list-style: none;
    transition: background 0.3s ease;
}

.staff-main-summary::-webkit-details-marker {
    display: none;
}

.staff-main-summary:hover {
    background: var(--neutral-50);
}

.summary-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.staff-main-accordion[open] .staff-main-summary {
    border-bottom: 1px solid var(--neutral-100);
}

.view-all-badge {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 125, 214, 0.15);
}

.staff-main-accordion[open] .view-all-badge {
    background: var(--neutral-100);
    color: var(--neutral-600);
    box-shadow: none;
}

.staff-main-accordion[open] .view-all-badge i {
    transform: rotate(180deg);
}

.staff-accordion-content {
    padding: 0 2rem 3.5rem;
    animation: slideDown 0.4s ease-out;
}

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

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

/* Individual staff in the grid no longer need their own accordions */
/* ============================================
   PREMIUM STAFF CARD DESIGN
   ============================================ */

.staff-card-compact {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    text-align: center;
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    position: relative;
    height: 100%;
}

.staff-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.staff-compact-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--neutral-100);
    flex-shrink: 0;
}

.staff-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.staff-compact-image .default-avatar {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.staff-compact-info {
    width: 100%;
}

.staff-compact-info h4 {
    color: var(--primary-900);
    font-size: 1.15rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.staff-compact-role {
    color: var(--primary-600);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.staff-compact-note {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
    padding-top: 0.5rem;
    border-top: 1px solid var(--neutral-100);
    width: 100%;
}

/* Default Avatar Styles */
.default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            var(--primary-100) 0%,
            var(--neutral-100) 100%);
    color: var(--primary-400);
    overflow: hidden;
    transition: all 0.4s ease;
}

.default-avatar i {
    font-size: 3.5rem;
    opacity: 0.7;
}

.staff-compact-image .default-avatar {
    border: none;
    box-shadow: none;
}

.squad-image .default-avatar {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.squad-image .default-avatar i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.staff-card-compact:hover .default-avatar,
.squad-card:hover .default-avatar {
    background: linear-gradient(135deg,
            var(--primary-200) 0%,
            var(--primary-100) 100%);
}

.squad-card:hover .squad-image .default-avatar i {
    color: rgba(255, 255, 255, 0.6);
}

/* Dark mode support for default avatar */
html[data-theme="dark"] .default-avatar {
    background: rgba(30, 40, 55, 0.8);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(20, 30, 45, 0.8);
}

.staff-info-minimal h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-900);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.staff-info-minimal p {
    margin: 0.5rem 0 0;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.staff-info-detailed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1.5rem;
    justify-content: center;
}

.staff-info-detailed h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-900);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.staff-position {
    margin: 0;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.staff-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-status.inactive {
    background: var(--warning);
    color: white;
}

.staff-status.injured {
    background: var(--error);
    color: white;
}

.staff-status.suspended {
    background: var(--neutral-600);
    color: white;
}

.staff-notes {
    margin: 0;
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.4;
    font-style: italic;
    opacity: 0.9;
}

.staff-accordion-item[open] .staff-summary i {
    transform: rotate(180deg);
}

.staff-expanded-content {
    padding: 1.5rem;
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: center;
}

.staff-expanded-content .squad-card {
    max-width: 300px;
    width: 100%;
}

/* ============================================
   MINIMALIST PLAYER CARD STYLES
   ============================================ */

.player-card-minimal {
    min-height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.player-card-minimal:hover {
    transform: translateY(-4px);
}

.minimal-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.player-card-minimal:hover .minimal-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.minimal-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.minimal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-card-minimal:hover .minimal-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.overlay-content {
    color: white;
}

.overlay-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlay-position {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.overlay-position i {
    font-size: 0.8rem;
    color: white;
}

.overlay-position span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.overlay-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.overlay-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.overlay-stat i {
    font-size: 0.7rem;
    color: white;
    opacity: 0.9;
}

.overlay-note {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.overlay-note i {
    font-size: 0.7rem;
    color: white;
    opacity: 0.8;
}

.overlay-note span {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.2;
}

/* Scroll Indicators */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--neutral-300);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: var(--primary-700);
    transition: all 0.2s;
    opacity: 0;
    /* Hidden by default, shown on hover/scroll */
}

.category-wrapper:hover .scroll-btn {
    opacity: 1;
}

@media (hover: none) {
    .scroll-btn {
        opacity: 0.8;
        /* Always visible on touch devices */
    }
}

.scroll-btn:hover {
    background: var(--primary-600);
    color: white;
}

.scroll-btn.prev {
    left: 5px;
}

.scroll-btn.next {
    right: 5px;
}

.category-wrapper {
    position: relative;
    /* Context for arrows */
}

.category-cards-container {
    padding: 0.5rem 2rem;
    /* Make space for arrows */
}

/* ============================================
   RESPONSIVE MINIMAL PLAYER CARDS
   ============================================ */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .minimal-card {
        max-width: 250px;
        border-radius: 0.875rem;
    }

    .overlay-name {
        font-size: 1.25rem;
    }

    .overlay-position span {
        font-size: 0.8rem;
    }

    .overlay-stat {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .overlay-stat i {
        font-size: 0.65rem;
    }

    .overlay-note span {
        font-size: 0.7rem;
    }

    .overlay-note i {
        font-size: 0.65rem;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    .minimal-card {
        max-width: 220px;
        border-radius: 0.75rem;
    }

    .overlay-name {
        font-size: 1.15rem;
    }

    .overlay-position span {
        font-size: 0.75rem;
    }

    .overlay-stat {
        font-size: 0.65rem;
        padding: 0.2rem 0.35rem;
    }

    .overlay-stat i {
        font-size: 0.6rem;
    }

    .overlay-note span {
        font-size: 0.65rem;
    }

    .overlay-note i {
        font-size: 0.6rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .minimal-card {
        max-width: 180px;
        border-radius: 0.625rem;
    }

    .overlay-name {
        font-size: 1rem;
    }

    .overlay-position span {
        font-size: 0.7rem;
    }

    .overlay-position i {
        font-size: 0.75rem;
    }

    .overlay-stat {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }

    .overlay-stat i {
        font-size: 0.55rem;
    }

    .overlay-note span {
        font-size: 0.6rem;
    }

    .overlay-note i {
        font-size: 0.55rem;
    }

    .overlay-stats {
        gap: 0.4rem;
    }

    .image-overlay {
        padding: 0.8rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .minimal-card {
        max-width: 160px;
        border-radius: 0.5rem;
    }

    .overlay-name {
        font-size: 0.9rem;
    }

    .overlay-position span {
        font-size: 0.65rem;
    }

    .overlay-position i {
        font-size: 0.7rem;
    }

    .overlay-stat {
        font-size: 0.55rem;
        padding: 0.15rem 0.25rem;
    }

    .overlay-stat i {
        font-size: 0.5rem;
    }

    .overlay-note span {
        font-size: 0.55rem;
    }

    .overlay-note i {
        font-size: 0.5rem;
    }

    .overlay-stats {
        gap: 0.3rem;
    }

    .image-overlay {
        padding: 0.6rem;
    }
}

/* Position Category Headers - Minimal */
.position-category {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--neutral-200);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    background: none;
    color: var(--primary-800);
    border-radius: 0;
    box-shadow: none;
}

.category-icon {
    font-size: 1.5rem;
    filter: none;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Edit Button on Cards */
.card-edit-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-700);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 10;
    opacity: 0;
}

.squad-card:hover .card-edit-btn,
.news-card:hover .card-edit-btn {
    opacity: 1;
}

.card-edit-btn:hover {
    background: var(--accent-500);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   ADMIN DASHBOARD - MODERN INTERFACE
   ============================================ */

.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    padding: 6rem 2rem 2rem;
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2.5rem;
    color: var(--primary-800);
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.dashboard-subtitle {
    color: var(--neutral-600);
    margin-top: 0.5rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-placeholder {
    font-size: 1.5rem;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.85;
}

.user-edit-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    margin-top: 0.25rem;
    display: inline-block;
    transition: color var(--transition-base);
}

.user-edit-link:hover {
    color: var(--accent-400);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.card-span-2 {
    grid-column: span 2;
}

@media (max-width: 1200px) {
    .card-span-2 {
        grid-column: span 1;
    }
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-100);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-800);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 125, 214, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit.accent {
    background: var(--gradient-accent);
    color: var(--primary-900);
}

/* Position Selector Styles */
.position-selector-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.position-category-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.position-category-box:hover {
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(59, 125, 214, 0.1);
    transform: translateY(-2px);
}

.staff-position-category {
    display: none;
}

.position-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--neutral-200);
}

.position-category-header i {
    font-size: 1.25rem;
    color: var(--primary-500);
    width: 24px;
    text-align: center;
}

.position-category-header span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--neutral-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.position-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid transparent;
}

.position-option:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateX(4px);
}

.position-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-500);
    flex-shrink: 0;
}

.position-option input[type="checkbox"]:checked+.position-badge {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 125, 214, 0.3);
}

.position-option input[type="checkbox"]:checked~.position-name {
    color: var(--primary-600);
    font-weight: 600;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 0.75rem;
    background: var(--neutral-100);
    color: var(--neutral-700);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-200);
}

.position-badge.staff-badge {
    font-size: 0.8rem;
    padding: 0 0.5rem;
    min-width: auto;
}

.position-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--neutral-700);
    transition: all 0.2s ease;
}

/* Dark mode support for position selector */
html[data-theme="dark"] .position-category-box {
    background: rgba(20, 30, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .position-category-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .position-category-header span {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .position-option {
    background: rgba(30, 40, 55, 0.6);
}

html[data-theme="dark"] .position-option:hover {
    background: rgba(59, 125, 214, 0.15);
    border-color: rgba(59, 125, 214, 0.3);
}

html[data-theme="dark"] .position-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .position-name {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .position-option input[type="checkbox"]:checked~.position-name {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .position-selector-container {
        grid-template-columns: 1fr;
    }
}

/* List Styles */
.item-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.item-list::-webkit-scrollbar {
    width: 8px;
}

.item-list::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-full);
}

.item-list::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
}

.item-list::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.list-item:hover {
    background: var(--neutral-50);
}

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

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neutral-200);
}

.item-details h5 {
    font-size: 1rem;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.item-details p {
    font-size: 0.85rem;
    color: var(--neutral-600);
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.btn-danger {
    background: rgba(218, 54, 51, 0.1);
    color: var(--error);
}

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

/* ============================================
   MODAL - GLASSMORPHISM DESIGN
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal.active {
    display: flex;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

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

/* Minimal Modal for Mobile */
/* Minimal Modal for Mobile */
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem;
        width: 90%;
        max-height: 80vh;
        /* Don't cover full screen */
        height: auto;
        overflow-y: auto;
        /* Scrollable content */
        border-radius: var(--radius-lg);
    }

    .modal-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .modal-header p {
        font-size: 0.8rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    /* Login Modal minimal */
    .modal-login {
        max-height: none !important;
        /* Allow it to shrink */
        height: auto !important;
        min-height: 0 !important;
        max-width: 350px;
        display: table;
        /* Shrink to fit content */
        margin: auto;
    }

    .modal-login .modal-content {
        padding: 1rem !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* Player Detail Content - 1px Margin & Width */
    .player-detail-content {
        max-width: 100%;
        width: calc(100% - 2px) !important;
        margin: 0 auto !important;
        max-height: 90vh !important;
        border-radius: 20px !important;
    }

    .modal-login .modal-content {
        padding: 1.25rem 1rem !important;
        /* Tight padding */
    }

    .modal-login .modal-header {
        margin-bottom: 1rem !important;
    }

    .modal-login h2 {
        font-size: 1.5rem !important;
    }

    .modal-login .form-group {
        margin-bottom: 0.75rem !important;
    }

    .modal-login input {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }

    /* QR Modal minimal */
    .modal-qr {
        max-height: 80vh !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .qr-code-container {
        padding: 1rem;
        align-items: center;
        align-self: center;
    }

    /* Player/Match detail content adjustments */
    .player-detail-content,
    .match-detail-content {
        padding: 0;
        max-height: 80vh !important;
        height: auto !important;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    .player-profile-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
    }

    .profile-header {
        padding: 1rem;
    }

    .stats-section,
    .info-section {
        padding: 1rem;
    }

    /* Force Rounded Corners on Mobile */
    .modal-content,
    .modal-login,
    .player-detail-content,
    .match-detail-content,
    .modal-qr,
    .donate-container {
        border-radius: 20px !important;
    }
}

/* Compact Stats Row */
.stats-grid-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-50);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.stat-div {
    width: 1px;
    height: 30px;
    background: var(--neutral-300);
}

.stat-compact .stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-compact .stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-800);
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-800);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--neutral-600);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid var(--primary-600);
}

.modal-close:hover {
    background: var(--primary-800);
    color: white;
    transform: rotate(90deg);
    border-color: var(--primary-700);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform var(--transition-bounce);
    border-left: 4px solid var(--primary-600);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(46, 160, 67, 0.1);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(218, 54, 51, 0.1);
    color: var(--error);
}

.toast.warning .toast-icon {
    background: rgba(251, 133, 0, 0.1);
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
    }

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

    /* Minimal Glassmorphism Sidebar for Tablets & Mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        background: var(--neutral-50);
        /* Responds to theme */
        border-left: 1px solid var(--neutral-200);
        display: flex;
        /* Ensure flex is present */
        flex-direction: column;
        align-items: flex-start !important;
        /* Force items to start */
        text-align: left !important;
        /* Force text to start */
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
        pointer-events: all;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* Force left align */
        text-align: left;
        /* Force text left */
        gap: 1rem;
        background: transparent;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-links a span {
        display: inline !important;
        /* Ensure labels are visible */
        font-size: 1.1rem;
    }

    .nav-links a i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active i::before {
        content: "\f00d";
        /* FontAwesome X icon */
    }
}

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 3rem;
    }

    .news-grid,
    .squad-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

/* ============================================
   GROUND INFO SECTION
   ============================================ */

.ground-section {
    background: transparent;
}

#ground-display-image {
    display: none;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.ground-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.ground-card {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    /* Circular Background Global */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.ground-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.ground-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.ground-card h3 {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.ground-card p {
    color: white !important;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   DONATE SECTION
   ============================================ */

.donate-section {
    background: var(--gradient-primary);
    color: white;
}

.donate-section .section-title,
.donate-section .section-subtitle {
    color: white;
}

.donate-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donate-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.donate-container h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.donate-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-900);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--neutral-300);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent-500);
    transform: translateY(-5px);
}

.footer-copyright {
    color: var(--neutral-400);
    font-size: 0.9rem;
}

/* ============================================
   ENHANCED MODAL STYLES
   ============================================ */

.modal-login {
    max-width: 450px;
}

.modal-header-icon {
    font-size: 3rem;
    color: var(--primary-600);
    margin-bottom: 1rem;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-700);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   PLAYER DETAIL MODAL - MODERN PROFILE CARD
   ============================================ */

.player-detail-content {
    max-width: 500px;
    padding: 0;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: modal-slide-up var(--transition-fast);
    margin: 1rem;
    width: calc(100% - 2rem);
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .player-detail-content {
        max-width: 95vw;
        margin: 0.5rem;
        width: calc(100vw - 1rem);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content {
        margin: 0;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .player-detail-content {
        max-width: 100vw;
        margin: 0;
        width: 100vw;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
}

/* Modern Profile Card Layout */
.player-profile-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

/* Profile Header Split Layout */
.profile-header-split {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-bottom: 1px solid var(--primary-200);
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.profile-info-container h1 {
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
    color: var(--primary-900);
}

.stat-icon-only {
    font-size: 1.5rem;
    color: var(--primary-600);
    margin-bottom: 0.2rem;
}

/* Mobile adjustments for split header */
@media (max-width: 480px) {
    .profile-header-split {
        padding: 1rem;
        gap: 1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 100px;
    }

    .profile-info-container h1 {
        font-size: 1.4rem;
    }
}

.profile-avatar {
    position: relative;
    width: 90px;
    height: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-avatar .default-avatar {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.jersey-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary-600);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
}

.profile-info {
    flex: 1;
}

.player-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--primary-800);
    line-height: 1.2;
}

.position-tag {
    display: inline-block;
    background: var(--primary-600);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.active {
    background: var(--success-100);
    color: var(--success-800);
}

.status-indicator.injured {
    background: var(--error-100);
    color: var(--error-800);
}

.status-indicator.inactive,
.status-indicator.suspended {
    background: var(--warning-100);
    color: var(--warning-800);
}

/* Stats Section */
.stats-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.stats-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-item {
    background: var(--neutral-50);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.stat-icon {
    margin-bottom: 0.5rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-800);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Section */
.info-section {
    padding: 1.5rem;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-800);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.info-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-600);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-800);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .player-name {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section,
    .stats-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 120px;
        height: 150px;
    }

    .profile-header {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .player-name {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .position-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

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

    .stat-item {
        padding: 0.75rem;
    }

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

    .info-section h3,
    .stats-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .notes-section {
        padding: 1rem;
    }

    .player-notes {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ============================================
   SQUAD SECTION BACKGROUND
   ============================================ */

.squad-section {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
}

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

.hidden {
    display: none !important;
}

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

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Player Status Badge */
.squad-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.squad-status.inactive {
    background: rgba(107, 114, 128, 0.8);
    color: white;
}

.squad-status.injured {
    background: rgba(220, 38, 38, 0.8);
    color: white;
}

.squad-status.unpublished {
    background: rgba(31, 41, 55, 0.8);
    color: white;
}

.squad-status.not-available {
    background: rgba(217, 119, 6, 0.8);
    color: white;
}

/* Confirmation Modal */
#confirm-modal .modal-content {
    max-width: 400px;
    text-align: center;
    padding: 2.5rem;
}

.confirm-icon {
    font-size: 3.5rem;
    color: var(--error-500);
    margin-bottom: 1.5rem;
}

#confirm-title {
    margin-bottom: 1rem;
    color: var(--primary-900);
}

#confirm-message {
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
}

#confirm-cancel {
    background: var(--neutral-200) !important;
    color: var(--neutral-700) !important;
    margin: 0 !important;
}

#confirm-cancel:hover {
    background: var(--neutral-300) !important;
}

#confirm-proceed {
    background: var(--error-600) !important;
    color: white !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.footer-admin-link {
    margin-top: 1rem;
}

.footer-admin-link a {
    font-size: 0.8rem;
    color: var(--neutral-600);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.footer-admin-link a:hover {
    color: var(--primary-400);
    opacity: 1;
}

/* ============================================
   GROUND SECTION UPDATES
   ============================================ */
.ground-section {
    color: white !important;
}

.ground-section .section-title,
.ground-section .section-subtitle,
.ground-section h3,
.ground-section p,
.ground-section i {
    color: white !important;
    text-shadow: none;
}

.ground-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ground-display-image {
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 90%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border: 4px solid white;
}

.match-center-container {
    position: relative;
    padding: 0 1rem;
    /* Reduced padding for wider scroll area */
    margin-top: 3rem;
    max-width: 1400px;
    /* Allow it to be wider on big screens */
    margin-left: auto;
    margin-right: auto;
}

.featured-matches-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 2rem 1rem;
    margin: 0 auto;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.featured-matches-scroll::-webkit-scrollbar {
    display: none;
}

.featured-matches-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.featured-matches-scroll .match-card {
    flex: 0 0 100%;
    /* Takes full width */
    max-width: 100%;
    /* Ensure full width on mobile */
    scroll-snap-align: center;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.featured-matches-scroll .match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .featured-matches-scroll .match-card {
    background: #111e21 !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Match Detail Modal Styles */
.match-detail-content {
    max-width: 600px;
    width: 95%;
    /* Responsive width */
    max-height: 90vh;
    /* Cap height on all screens */
    background: var(--neutral-50);
    border-radius: var(--radius-2xl);
    padding: 0;
    overflow-y: auto;
    /* Allow scrolling within modal */
    color: var(--primary-900);
    position: relative;
    box-shadow: var(--shadow-2xl);
}

/* Dark mode support handled by variables in .match-detail-content */

.match-detail-header {
    background: var(--neutral-100);
    color: var(--primary-900);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent-400);
    /* Accent border for visibility */
}

.competition-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--primary-700);
    margin-bottom: 0.5rem;
}

.match-detail-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

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

.match-detail-team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.match-detail-score {
    font-size: 3rem;
    font-family: 'Oswald', sans-serif;
    color: var(--accent-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.live-indicator-modal {
    font-size: 0.8rem;
    background: #ef4444;
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: blink-red 1s infinite alternate;
}

.match-status.match-live {
    background: #ef4444 !important;
    color: white !important;
    font-weight: 700;
    animation: blink-red 1s infinite alternate;
}

@keyframes blink-red {
    from {
        background-color: #ef4444;
        box-shadow: 0 0 5px #ef4444;
    }

    to {
        background-color: #991b1b;
        box-shadow: 0 0 15px #ef4444;
    }
}

.match-detail-body {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

@media (max-width: 768px) {
    .match-detail-content {
        margin: 1rem;
        border-radius: var(--radius-xl);
    }

    .match-detail-header {
        padding: 1rem;
    }

    .match-detail-team img {
        width: 50px;
        height: 50px;
    }

    .match-detail-score {
        font-size: 2rem;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .match-detail-body {
        padding: 1rem;
    }

    .detail-row {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .detail-label {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }
}

html[data-theme="dark"] .detail-row {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.detail-row i {
    color: var(--primary-600);
    margin-top: 0.2rem;
}

.detail-label {
    font-weight: 600;
    min-width: 100px;
    color: var(--neutral-500);
}

.detail-value {
    color: var(--neutral-900);
    font-weight: 500;
}

html[data-theme="dark"] .detail-value {
    color: white;
}

.featured-matches-scroll .match-card .competition-name {
    color: var(--primary-600) !important;
}

html[data-theme="dark"] .featured-matches-scroll .match-card .competition-name {
    color: var(--accent-400) !important;
}

.featured-matches-scroll .match-card .match-status {
    color: var(--neutral-600) !important;
}

html[data-theme="dark"] .featured-matches-scroll .match-card .match-status {
    color: white !important;
}

.featured-matches-scroll .match-card .match-status.match-completed {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
}

.featured-matches-scroll .match-card .match-content {
    background: transparent;
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-matches-scroll .match-card .team-name {
    color: inherit;
    font-weight: 700;
}

.featured-matches-scroll .match-card .score-display {
    color: var(--primary-800);
    font-size: 3rem;
    font-family: 'Oswald', sans-serif;
}

html[data-theme="dark"] .featured-matches-scroll .match-card .score-display {
    color: var(--accent-400) !important;
}

.featured-matches-scroll .match-card .vs-badge {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

html[data-theme="dark"] .featured-matches-scroll .match-card .vs-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.featured-matches-scroll .match-card .match-time-display {
    color: var(--accent-400) !important;
}

.featured-matches-scroll .match-card .match-header {
    background: var(--neutral-50);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neutral-100);
}

html[data-theme="dark"] .featured-matches-scroll .match-card .match-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.featured-matches-scroll .match-card .match-footer {
    background: var(--neutral-50);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    /* Better distribution */
    gap: 1.5rem;
    border-top: 1px solid var(--neutral-100);
    font-size: 0.85rem;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
}

html[data-theme="dark"] .match-info-item {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .featured-matches-scroll .match-card .match-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1 !important;
}

.scroll-nav {
    position: absolute;
    top: 40%;
    /* Slightly adjusted for better alignment with cards */
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #354F52;
    /* Solid color matching navbar */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-nav:hover {
    background: var(--accent-500);
    border-color: var(--accent-500);
    transform: translateY(-50%) scale(1.1);
}

.scroll-nav.prev {
    left: 0;
}

.scroll-nav.next {
    right: 0;
}

.jump-to-today {
    display: block;
    margin: 2rem auto 0;
    background: transparent;
    color: var(--accent-400);
    border: 1px solid var(--accent-500);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.jump-to-today:hover {
    background: var(--accent-500);
    color: white;
}

@media (max-width: 768px) {
    .match-center-container {
        padding: 0;
        /* True full width for cards */
    }

    .scroll-nav {
        display: none;
        /* Hide arrows on mobile, use touch scroll */
    }

    .featured-matches-scroll .match-card {
        flex: 0 0 100%;
        border-radius: 0;
        /* Remove radius for clean full-width look */
        border-right: none;
        border-left: none;
    }
}

@media (min-width: 768px) {
    .featured-matches-scroll .match-card {
        flex: 0 0 600px;
        /* Wider cards on desktop */
    }
}

.ground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.ground-card {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    /* Moved from media query */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Moved from media query */
    text-align: center;
    padding: 1rem;
    /* Moved from media query */
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Moved from media query */
    transition: transform var(--transition-base);
}

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

.ground-icon {
    font-size: 2.5rem;
    color: var(--accent-500);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.ground-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ground-card p {
    font-size: 1.25rem;
    font-weight: 400;
    color: white !important;
    line-height: 1.4;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {

    .ground-grid,
    .ground-info-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem;
        justify-items: center;
    }

    .ground-card {
        width: 140px !important;
        height: 140px !important;
    }

    .ground-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .ground-card h3 {
        font-size: 0.6rem !important;
        margin-bottom: 0.1rem !important;
        white-space: normal !important;
    }

    .ground-card p {
        font-size: 0.75rem !important;
        white-space: normal !important;
        line-height: 1.1 !important;
    }
}

/* ============================================
   BUTTONS & ACCENTS - RED THEME
   ============================================ */
.btn-primary {
    background: var(--primary-600);
    color: white;
    border: 2px solid var(--primary-600);
}

.btn-primary:hover {
    background: white;
    color: var(--primary-600);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
}

.section-title {
    color: var(--primary-800);
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-600);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* ============================================
   NEWS SIDE PANEL
   ============================================ */

.news-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.news-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: white;
    z-index: 2001;
    box-shadow: var(--shadow-2xl);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.news-panel.active {
    right: 0;
}

.news-panel-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.news-panel-close {
    font-size: 1.5rem;
    color: var(--neutral-500);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0.5rem;
}

.news-panel-close:hover {
    color: var(--accent-600);
    transform: scale(1.1);
}

.news-panel-content {
    padding: 2rem;
}

.news-panel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.news-panel-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tag-news {
    background: var(--primary-100);
    color: var(--primary-800);
}

.tag-notice {
    background: var(--warning);
    /* Adjust based on var */
    color: white;
    background: linear-gradient(135deg, #fb8500 0%, #ff6b00 100%);
}

.news-panel-title {
    font-size: 2rem;
    color: var(--primary-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-panel-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--neutral-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.news-panel-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-700);
    white-space: pre-wrap;
    /* Preserve paragraphs */
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem;
    animation: fadeInUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.login-title {
    font-size: 2.5rem;
    color: var(--primary-800);
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-subtitle {
    color: var(--neutral-600);
    font-size: 1rem;
    font-weight: 500;
}

.login-form {
    margin-top: 2rem;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-link {
    color: var(--primary-600);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-base);
}

.login-link:hover {
    color: var(--accent-600);
}

/* Fix for confirm modal close button */
#confirm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Admin list item styling */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.admin-list-item:hover {
    background: var(--neutral-50);
}

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

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neutral-200);
}

.admin-item-details h5 {
    font-size: 1rem;
    color: var(--primary-800);
    margin-bottom: 0.25rem;
}

.admin-item-details p {
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--gradient-accent);
    color: var(--primary-900);
}

.admin-badge.super {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.staff-subtitle {
    margin-top: 1.5rem;
}

.news-panel-title-text {
    margin: 0;
    font-size: 1.2rem;
    color: var(--neutral-500);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   DARK MODE THEME
   ============================================ */
html[data-theme="dark"] {
    --primary-900: #ffffff;
    /* Text should be white in dark mode */
    --primary-800: #f1f5f9;
    --primary-700: #e2e8f0;
    --primary-600: #cbd5e1;
    --primary-500: #00a8e8;
    --primary-400: #33b9ed;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #bfdbfe;

    --neutral-900: #ffffff;
    --neutral-800: #f9fafb;
    --neutral-700: #f3f4f6;
    --neutral-600: #e5e7eb;
    --neutral-500: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-300: #6b7280;
    --neutral-200: #4b5563;
    --neutral-100: #374151;
    --neutral-50: #111e21;
    /* Dark background */
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .club-title-white,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .section,
html[data-theme="dark"] .card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .squad-card,
html[data-theme="dark"] .ground-card,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] .news-card h3,
html[data-theme="dark"] .squad-info h4,
html[data-theme="dark"] .ground-card h3,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .squad-info p,
html[data-theme="dark"] .ground-card p,
html[data-theme="dark"] .news-meta,
html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .staff-main-summary,
html[data-theme="dark"] .view-all-badge,
html[data-theme="dark"] .category-header,
html[data-theme="dark"] .category-title,
html[data-theme="dark"] .category-count,
html[data-theme="dark"] .staff-main-summary,
html[data-theme="dark"] .donate-section .section-title,
html[data-theme="dark"] .donate-section .section-subtitle,
html[data-theme="dark"] .donate-section h3,
html[data-theme="dark"] .donate-section p,
html[data-theme="dark"] .donate-container h3,
html[data-theme="dark"] .donate-container p,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .info-value,
html[data-theme="dark"] .info-label,
html[data-theme="dark"] .stat-icon i,
html[data-theme="dark"] .info-item i,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer a {
    color: white !important;
    background: none;
    border-color: transparent;
}

html[data-theme="dark"] .ground-section,
html[data-theme="dark"] .donate-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%) !important;
}

html[data-theme="dark"] .view-all-badge,
html[data-theme="dark"] .category-count {
    background: rgba(255, 255, 255, 0.1) !important;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-800);
}

html[data-theme="dark"] .theme-toggle-btn {
    color: white;
    background: rgba(40, 40, 60, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   DARK MODE OVERRIDE - SELECTIVE BLACK BG
   ============================================ */
/* Major sections get black background */
html[data-theme="dark"] section,
html[data-theme="dark"] .section,
html[data-theme="dark"] .card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .squad-card,
html[data-theme="dark"] .ground-card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .footer,
html[data-theme="dark"] body {
    background-color: black !important;
}

/* All text and icons become white */
html[data-theme="dark"] *,
html[data-theme="dark"] *::before,
html[data-theme="dark"] *::after {
    color: white !important;
    border-color: inherit !important;
}

/* ============================================
   DARK MODE SLOGAN SPECIFIC
   ============================================ */
html[data-theme="dark"] .hero-content p {
    color: white !important;
}

/* ============================================
   DARK MODE EXCLUSIONS
   ============================================ */
html[data-theme="dark"] .slide,
html[data-theme="dark"] .slide *,
html[data-theme="dark"] .slide *::before,
html[data-theme="dark"] .slide *::after {
    background-color: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
}

/* ============================================
   MATCH CENTER STYLES
   ============================================ */

.match-center-container {
    max-width: 900px;
    margin: 0 auto;
}

.featured-match-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--neutral-200);
    transition: transform var(--transition-base);
}

.featured-match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.match-header {
    background: var(--neutral-900);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.competition-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--accent-500);
}

.match-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-status.live {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 1.5s infinite;
}

.match-status.upcoming {
    background: var(--primary-600);
    color: white;
}

.match-status.completed {
    background: var(--neutral-700);
    color: var(--neutral-300);
}

.match-content {
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--neutral-50) 100%);
}

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

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-900);
    text-transform: uppercase;
    font-weight: 700;
    max-width: 200px;
    line-height: 1.2;
}

.match-vs {
    flex: 0 0 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-display {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.score-divider {
    color: var(--neutral-400);
    margin: 0 0.5rem;
}

.vs-badge {
    width: 40px;
    height: 40px;
    background: var(--neutral-200);
    color: var(--neutral-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.match-time-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.match-date-display {
    font-size: 0.9rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.match-footer {
    padding: 1rem 2rem;
    background: var(--neutral-100);
    border-top: 1px solid var(--neutral-200);
    text-align: center;
    color: var(--neutral-600);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-info-item i {
    color: var(--primary-500);
}

.match-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Expanded Matches Styles */
.expanded-matches {
    margin-top: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease-out;
}

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

.matches-grid {
    display: grid;
    gap: 1rem;
}

.match-list-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.match-list-item:hover {
    border-color: var(--primary-300);
    background: white;
    box-shadow: var(--shadow-sm);
}

.match-list-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-900);
}

.match-list-team.right {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

.match-list-info {
    text-align: center;
    padding: 0 1rem;
    min-width: 140px;
}

.match-list-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
}

.match-list-score {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-900);
}

.match-list-time {
    font-size: 0.85rem;
    color: var(--neutral-600);
}

@media (max-width: 768px) {
    .match-header {
        padding: 0.75rem 1rem;
    }

    .match-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 1.5rem 0.5rem;
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .team-name {
        font-size: 0.8rem;
        max-width: 80px;
    }

    .score-display {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .match-vs {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
    }

    .match-footer {
        padding: 0.75rem 1rem;
        gap: 1rem;
        font-size: 0.8rem;
    }

    .match-list-item {
        grid-template-columns: 1fr auto 1fr;
        padding: 0.75rem 0.5rem;
        gap: 0.25rem;
    }

    .match-list-team {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .match-list-team img {
        width: 25px;
        height: 25px;
    }

    .match-list-score {
        font-size: 1rem;
    }

    .match-list-info {
        min-width: 80px;
    }
}

/* ============================================

.hero-match-card {
    background: rgba(0, 23, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.hero-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-500), transparent);
}

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

.hero-team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero-team span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.hero-match-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-match-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-500);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.hero-score-time {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-match-live-indicator {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* ============================================
   HERO FIXTURE STYLES - MINIMAL VERSION
   ============================================ */
#hero-match-display {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.hero-match-minimal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hero-match-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.hero-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-status-badge.live {
    background: #ef4444;
    color: white;
    animation: pulse-glow 1.5s infinite;
}

.hero-status-badge.upcoming {
    background: var(--primary-600);
    color: white;
}

.hero-status-badge.finished {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.hero-match-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.hero-match-team img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-match-team span {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.hero-match-vs {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    padding: 0 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-match-minimal {
        padding: 0.75rem 1rem;
    }

    .hero-match-content {
        gap: 1rem;
    }

    .hero-match-team {
        min-width: 60px;
    }

    .hero-match-team img {
        width: 32px;
        height: 32px;
    }

    .hero-match-team span {
        font-size: 0.65rem;
    }

    .hero-match-vs {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
}

/* ============================================
   EXPANDED MATCHES LIST STYLES
   ============================================ */
.match-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.match-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.match-item.match-live {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

.match-item.match-completed {
    border-left: 4px solid var(--neutral-400);
    opacity: 0.85;
}

.match-item.match-scheduled {
    border-left: 4px solid var(--primary-500);
}

.match-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.match-item-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--primary-100);
    color: var(--primary-700);
}

.match-item.match-live .match-item-status {
    background: #ef4444;
    color: white;
    animation: pulse 1.5s infinite;
}

.match-item.match-completed .match-item-status {
    background: var(--neutral-200);
    color: var(--neutral-600);
}

.match-item-competition {
    font-size: 0.8rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.match-item-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.match-item-team {
    flex: 1;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.match-item-team:first-child {
    text-align: left;
}

.match-item-team:last-child {
    text-align: right;
}

.match-item-team.home {
    color: var(--primary-700);
    font-weight: 700;
}

.match-result,
.match-time {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
}

.match-result {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

.match-result.live {
    background: #ef4444;
    color: white;
}

.match-time {
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.9rem;
}

.match-item-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--neutral-100);
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.match-item-date,
.match-item-venue {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* No matches placeholder */
.no-matches,
.matches-error {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--neutral-500);
}

.no-matches i,
.matches-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--neutral-300);
}

.no-matches h3,
.matches-error h3 {
    margin-bottom: 0.5rem;
    color: var(--neutral-600);
}

/* Live Match Enhancements */
.hero-match-minimal.hero-match-live {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.5);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
}

.hero-live-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

/* Hover Effects */
@media (hover: hover) {

    .squad-card:hover,
    .staff-card-compact:hover,
    .player-card-minimal:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-xl);
        z-index: 10;
    }

    .card-edit-btn {
        opacity: 0;
        transition: opacity 0.3s;
    }

    .squad-card:hover .card-edit-btn,
    .staff-card-compact:hover .card-edit-btn,
    .player-card-minimal:hover .card-edit-btn {
        opacity: 1;
    }
}