/**
 * Quizzly - Main Stylesheet
 * Blue (#1a73e8) and Yellow (#f9c846) theme with glassmorphism effects
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #4285f4;
    --secondary-color: #f9c846;
    --secondary-dark: #f0b90b;
    --secondary-light: #fbd870;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Padding for fixed navbar on non-homepage */
body:not(.home-page) {
    padding-top: 76px;
}

main {
    flex: 1;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Bootstrap Overrides
   ============================================ */

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Secondary/Warning Button (Yellow) */
.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--gray-900);
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--gray-900);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-warning {
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
}

.btn-outline-warning:hover {
    background-color: var(--secondary-color);
    color: var(--gray-900);
}

/* ============================================
   Modern Navbar
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Modern navbar for homepage - always has dark background */
.navbar-modern {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-modern.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* On non-home pages, navbar should always be in scrolled state */
body:not(.home-page) .navbar-modern {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Logo */
.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: var(--gray-900);
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-10deg) scale(1.05);
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    margin: 0 0.125rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    width: 20px;
}

/* Icon links */
.nav-link-icon {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 1.1rem;
}

.nav-link-icon:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* User Avatar */
.nav-user {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

/* CTA Button */
.btn-nav-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--gray-900) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 200, 70, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 200, 70, 0.4);
    color: var(--gray-900) !important;
}

/* Modern Dropdown */
.dropdown-menu-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 220px;
    animation: dropdownFade 0.2s ease;
}

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

.dropdown-menu-modern .dropdown-header {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}

.dropdown-menu-modern .dropdown-header strong {
    color: var(--gray-900);
    font-size: 0.95rem;
}

.dropdown-menu-modern .dropdown-header small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.dropdown-menu-modern .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu-modern .dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-menu-modern .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

.dropdown-menu-modern .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

/* Navbar toggler */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
}

.navbar-dark .navbar-toggler:focus {
    box-shadow: none;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border-color: var(--gray-300);
    padding: 0.625rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    background-color: var(--gray-100);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--gray-700);
}

.table-hover tbody tr:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: var(--border-radius);
}

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

.badge.bg-warning {
    background-color: var(--secondary-color) !important;
    color: var(--gray-900) !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    border-left-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

.alert-success .bi,
.alert-success a {
    color: #166534;
}

.alert-danger {
    border-left-color: #dc2626;
    background-color: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.alert-danger .bi,
.alert-danger a {
    color: #991b1b;
}

.alert-info {
    border-left-color: #0891b2;
    background-color: rgba(8, 145, 178, 0.15);
    color: #0e7490;
}

.alert-info .bi,
.alert-info a {
    color: #0c4a6e;
}

.alert-warning {
    border-left-color: #d97706;
    background-color: rgba(217, 119, 6, 0.15);
    color: #92400e;
}

.alert-warning .bi,
.alert-warning a {
    color: #78350f;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: var(--border-radius);
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   Glassmorphism Components
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-nav {
    background: rgba(26, 115, 232, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   Custom Components
   ============================================ */

/* Hero Section - Modern */
.hero-modern {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0a0a1a, #1a1a3e, #0d1b2a, #1b0a20, #0a1a2e);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated mesh gradient overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(26, 115, 232, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 200, 70, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.05) translateX(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateX(0);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.05) translateX(-20px);
    }
}

/* Animated orbs */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-particles::before {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.4) 0%, transparent 70%);
    animation: orbFloat1 18s ease-in-out infinite;
}

.hero-particles::after {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(249, 200, 70, 0.35) 0%, transparent 70%);
    animation: orbFloat2 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(80px, 40px) scale(1.15);
    }
    50% {
        transform: translate(40px, 80px) scale(0.95);
    }
    75% {
        transform: translate(-40px, 40px) scale(1.1);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-60px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-30px, -80px) scale(0.9);
    }
}

/* Additional floating elements */
.hero-modern::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: centerPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes centerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.7;
    }
}

/* Subtle grid pattern */
.hero-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Shooting stars */
.hero-particles .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
}

.hero-particles .star::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    color: white;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(249, 200, 70, 0.2);
    border: 1px solid rgba(249, 200, 70, 0.4);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title-modern span {
    color: var(--secondary-color);
}

.hero-subtitle-modern {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-btn-primary {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(249, 200, 70, 0.3);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 200, 70, 0.4);
}

.hero-btn-secondary {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 400px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(26, 115, 232, 0.4);
}

.hero-illustration i {
    font-size: 5rem;
    color: white;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-floating-card {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.hero-floating-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.hero-floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation: floatCard1 8s ease-in-out infinite;
}

.hero-floating-card.card-2 {
    top: 60%;
    right: 5%;
    animation: floatCard2 7s ease-in-out infinite;
}

.hero-floating-card.card-3 {
    bottom: 15%;
    left: 20%;
    animation: floatCard3 9s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -12px); }
    50% { transform: translate(-5px, -18px); }
    75% { transform: translate(-12px, -8px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-15px, -10px); }
    50% { transform: translate(8px, -20px); }
    75% { transform: translate(12px, -5px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(12px, 8px); }
    50% { transform: translate(-10px, -15px); }
    75% { transform: translate(-8px, 10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    animation: fadeIn 1s ease-out 1s both;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

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

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

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

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

.stat-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    display: none;
}

.stat-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 200, 70, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #e6b800);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #1a1a2e;
    box-shadow: 0 8px 25px rgba(249, 200, 70, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* Section Headers - Modern */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(249, 200, 70, 0.15);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
}

.btn-view-all {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-view-all:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-header-success {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.btn-header-success:hover {
    transform: translateX(5px);
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.8);
    color: #2dce56;
}

.btn-header-success i {
    transition: transform 0.3s ease;
}

.btn-header-success:hover i {
    transform: scale(1.1);
}

/* Leagues Section - Modern */
.leagues-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

.league-card-modern {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.league-card-modern.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.league-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 200, 70, 0.3);
}

@media (max-width: 576px) {
    .league-card-modern {
        padding: 0.6rem;
        border-radius: 16px;
    }
}

.league-card-bg {
    display: none;
}

.league-card-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.league-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.league-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary-color), #e6b800);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(249, 200, 70, 0.3);
}

.league-icon i {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.league-icon-logo {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.league-icon-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.league-header-text {
    flex: 1;
    min-width: 0;
}

.league-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.league-season {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.league-info {
    margin-bottom: 1rem;
}

.league-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.league-info-item:last-child {
    margin-bottom: 0;
}

.league-info-item i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    width: 1rem;
}

.league-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: var(--secondary-color);
    color: #1a1a2e;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.league-card-btn:hover {
    background: #ffe066;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(249, 200, 70, 0.3);
}

/* Events Section */
.events-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.events-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    height: 100%;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.events-card.results {
    transform: translateX(30px);
}

.events-card.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.events-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.events-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.events-icon.upcoming {
    background: linear-gradient(135deg, var(--secondary-color), #e6b800);
    color: #1a1a2e;
    box-shadow: 0 8px 20px rgba(249, 200, 70, 0.3);
}

.events-icon.results {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.events-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.events-card-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.events-card-body {
    padding: 1.5rem 2rem;
}

.events-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.events-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.event-item.clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.event-item.clickable:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 200, 70, 0.3);
    transform: translateX(5px);
}

.event-date-badge {
    min-width: 60px;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    text-align: center;
    color: white;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.event-date-badge.completed {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-date-badge.completed i {
    font-size: 1.5rem;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.event-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem;
}

.event-details p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.event-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f172a 100%);
}

.features-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}

.feature-card.aos-animate {
    opacity: 1;
    transform: scale(1);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--gray-900);
}

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

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.cta-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.cta-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.cta-bg-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
}

.cta-content {
    text-align: center;
    color: var(--gray-900);
    opacity: 0;
    transform: translateY(30px);
}

.cta-content.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-btn-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cta-btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    border-width: 2px;
    border-color: var(--gray-900);
    color: var(--gray-900);
}

.cta-btn-secondary:hover {
    background: var(--gray-900);
    color: var(--secondary-color);
}

/* Legacy Hero (keeping for other pages) */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* League Card */
.league-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.league-card-body {
    padding: 1.5rem;
}

/* Team Card */
.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Standings Table */
.standings-table {
    width: 100%;
}

.standings-table th {
    text-align: center;
}

.standings-table td {
    vertical-align: middle;
}

.standings-position {
    width: 50px;
    text-align: center;
    font-weight: 700;
}

.standings-position.gold {
    color: #ffd700;
}

.standings-position.silver {
    color: #c0c0c0;
}

.standings-position.bronze {
    color: #cd7f32;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.standings-points {
    font-weight: 700;
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.draft {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.status-badge.scheduled {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.status-badge.live {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    animation: pulse 2s infinite;
}

.status-badge.scoring {
    background-color: rgba(249, 200, 70, 0.2);
    color: var(--secondary-dark);
}

.status-badge.completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

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

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
    vertical-align: -0.125em;
}

.loading-spinner-lg {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

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

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--gray-900);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* ============================================
   Utilities
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

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

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

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

.border-warning {
    border-color: var(--secondary-color) !important;
}

/* ============================================
   Responsive
   ============================================ */

/* Large screens */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-image-container {
        display: none;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Modern homepage responsive */
    .hero-modern {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-title-modern {
        font-size: 2.25rem;
    }

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

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

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

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

    .stat-card {
        padding: 1.5rem 1rem;
    }

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

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title-modern {
        font-size: 1.75rem;
    }

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

    .league-card-content {
        padding: 1.5rem;
        padding-top: 70px;
    }

    .events-card {
        transform: none;
        opacity: 1;
    }

    .events-card.results {
        transform: none;
    }

    .events-card-header {
        padding: 1rem 1.25rem;
    }

    .events-card-body {
        padding: 1rem 1.25rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

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

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .event-date-badge {
        min-width: 50px;
    }

    .event-details {
        flex: 1 1 calc(100% - 1000px);
    }
}

/* =====================================================
   PUBLIC PAGES - Modern Design
   ===================================================== */

/* Page Header - Modern */
.page-header-modern {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
    margin-top: -76px;
    padding-top: calc(76px + 4rem);
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #0a0a1a, #1a1a3e, #0d1b2a, #1b0a20, #0a1a2e);
    background-size: 400% 400%;
    animation: pageHeaderGradient 15s ease infinite;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 50%, rgba(26, 115, 232, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 90% 50%, rgba(249, 200, 70, 0.08) 0%, transparent 50%);
    animation: pageHeaderBgGlow 15s ease-in-out infinite;
}

@keyframes pageHeaderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.page-header-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 70px 150px, rgba(255,255,255,0.08), transparent);
    background-size: 200px 200px;
    animation: pageHeaderParticleFloat 25s linear infinite;
}

.page-header-particles::before,
.page-header-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.page-header-particles::before {
    width: 300px;
    height: 300px;
    top: -50px;
    right: 10%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.4) 0%, transparent 70%);
    animation: floatParticle1 20s ease-in-out infinite;
}

.page-header-particles::after {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: floatParticle2 25s ease-in-out infinite;
}

@keyframes pageHeaderParticleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

@keyframes floatParticle1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

@keyframes floatParticle2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(249, 200, 70, 0.15);
    border: 1px solid rgba(249, 200, 70, 0.3);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.page-header-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
}

/* Search Form - Modern */
.search-form-modern {
    margin-top: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Search Results Bar */
.search-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.05));
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.search-results-text {
    color: var(--gray-700);
}

.search-results-count {
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.search-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: var(--gray-100);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Search results bar - Dark variant */
.bg-dark-section .search-results-bar {
    background: linear-gradient(135deg, rgba(249, 200, 70, 0.1), rgba(249, 200, 70, 0.05));
    border-color: rgba(249, 200, 70, 0.2);
}

.bg-dark-section .search-results-text {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark-section .search-results-count {
    color: rgba(255, 255, 255, 0.6);
}

.bg-dark-section .search-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.bg-dark-section .search-clear-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--danger-color);
    color: #ff6b6b;
}

/* Empty State - Modern */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 0 0 16px 16px;
}

.empty-state-modern.empty-state-sm {
    padding: 3rem 2rem;
}

.empty-state-modern i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(249, 200, 70, 0.15), rgba(249, 200, 70, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

.empty-state-modern h3,
.empty-state-modern h5 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin: 0 auto;
}

/* League Card Stats */
.league-stats {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.league-stat {
    text-align: center;
    flex: 1;
}

.league-stat i {
    display: block;
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.league-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.league-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.league-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.organiser-logo-container {
    background: transparent;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organiser-logo-container img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.league-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.league-card-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.league-card-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Team Card - Modern */
.team-card-modern {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.team-card-modern.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.team-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 200, 70, 0.3);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary-color), #e6b800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(249, 200, 70, 0.3);
}

.team-avatar:has(img),
.team-avatar.has-image {
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-captain {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.team-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.team-stats {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-stat {
    text-align: center;
    flex: 1;
}

.team-stat i {
    display: block;
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.team-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.team-stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.team-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #e6b800);
    border-radius: 12px;
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.team-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 200, 70, 0.4);
    color: #1a1a2e;
}

/* Event Card - Modern */
.event-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.event-card-modern.upcoming {
    border-top: 4px solid var(--primary-color);
}

.event-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
}

.event-date-box {
    min-width: 60px;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    text-align: center;
    color: white;
    flex-shrink: 0;
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.25rem;
}

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

.event-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.event-league {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.event-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-status-badge.upcoming {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.event-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.event-detail i {
    color: var(--primary-color);
}

.event-description {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.event-card-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-top: 1px solid var(--gray-200);
}

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

/* Results Table - Modern */
.results-table-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.results-table-modern .table {
    margin: 0;
}

.results-table-modern thead {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.results-table-modern thead th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table-modern tbody tr {
    transition: all 0.3s ease;
}

.results-table-modern tbody tr:hover {
    background: var(--gray-50);
}

.results-table-modern tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.event-link {
    display: inline-flex;
    align-items: center;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-link:hover {
    color: var(--primary-color);
}

.event-link i {
    color: var(--primary-color);
}

.league-link {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.league-link:hover {
    color: var(--primary-color);
}

.date-cell {
    color: var(--gray-500);
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 20px;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.8rem;
}

.no-winner {
    color: var(--gray-400);
}

.btn-results {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Section Background Alt */
.bg-section-alt {
    background: linear-gradient(180deg, var(--gray-100) 0%, white 100%);
}

/* Dark Section Background */
.bg-dark-section {
    background: linear-gradient(180deg, #0d1117 0%, #1a1a2e 100%);
}

/* Pagination - Modern */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.pagination-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Pagination - Dark variant */
.bg-dark-section .pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.bg-dark-section .pagination-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1a1a2e;
}

.bg-dark-section .pagination-number {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.bg-dark-section .pagination-number:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.bg-dark-section .pagination-number.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1a1a2e;
}

/* Section Badge Variants */
.section-badge.badge-success {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: var(--success-color);
}

/* AOS Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-20px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(20px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Public Pages Responsive */
@media (max-width: 991px) {
    .page-header-modern {
        padding: 7rem 0 3rem;
        padding-top: calc(76px + 3rem);
    }

    .page-header-title {
        font-size: 2.25rem;
    }

    .page-header-icon {
        display: none;
    }

    .search-form-modern {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-header-title {
        font-size: 1.75rem;
    }

    .page-header-subtitle {
        font-size: 1rem;
    }

    .search-results-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .results-table-modern thead {
        display: none;
    }

    .results-table-modern tbody tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .results-table-modern tbody td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .results-table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .results-table-modern tbody td.text-end {
        text-align: left;
    }

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

    .league-stat {
        flex: 0 0 33.333%;
    }

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

    .team-stat {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
}

/* ============================================
   Modern Footer
   ============================================ */
.footer-modern {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    color: #c9d1d9;
    margin-top: auto;
}

.footer-main {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* Footer Brand */
.footer-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0d1117;
    margin-right: 0.75rem;
    box-shadow: 0 4px 15px rgba(249, 200, 70, 0.3);
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-description {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #8b949e;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(249, 200, 70, 0.4);
}

.social-link:hover i {
    color: #1a1a2e;
}

/* Footer Titles */
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    margin-right: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-links a:hover::before {
    width: 10px;
    margin-right: 8px;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #8b949e;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.footer-contact a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

/* Newsletter */
.footer-newsletter p {
    color: #8b949e;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form .form-control::placeholder {
    color: #6e7681;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: none;
}

.btn-newsletter {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    color: #0d1117;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #0d1117;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p,
.footer-bottom span {
    color: #6e7681;
    font-size: 0.85rem;
}

.made-with {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.made-with .bi-heart-fill {
    font-size: 0.75rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Footer Responsive */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-title {
        margin-top: 0.5rem;
    }

    .footer-bottom .row > div {
        text-align: center !important;
    }
}

/* ============================================
   Reusable Dark Theme Utility Classes
   ============================================ */

/* Section Backgrounds */
.section-dark {
    background: #0d1117;
    color: #fff;
    position: relative;
}

.section-dark-alt {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    position: relative;
}

/* Page Header Modern (Simple - No heavy animations) */
.page-header-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 3rem 0;
    margin-top: -1px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(249, 200, 70, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-modern .container {
    position: relative;
    z-index: 1;
}

.page-header-modern h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.page-header-modern p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.page-header-modern .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.page-header-modern .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header-modern .breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.page-header-modern .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.page-header-modern .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Badge Modern */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 200, 70, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(249, 200, 70, 0.3);
    margin-bottom: 1rem;
}

.badge-modern i {
    font-size: 0.9rem;
}

table .badge-modern,
.table .badge-modern,
.list-group-modern .badge-modern,
.card-header .badge-modern {
    margin-bottom: 0;
}

/* Dark Form Styles */
.card-dark-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-dark-modern .card-body {
    color: rgba(255, 255, 255, 0.9);
}

.card-dark-modern .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-control-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control-dark:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control-dark:disabled,
.form-control-dark[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5);
}

.form-select.form-control-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-section-title {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(249, 200, 70, 0.2);
}

.form-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.form-check-dark .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

.form-check-dark .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-dark .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.card-dark-modern .form-text {
    color: rgba(255, 255, 255, 0.5);
}

.card-dark-modern .invalid-feedback {
    color: #f87171;
}

/* Modern Card */
.card-modern {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-modern-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 200, 70, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-modern .card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.card-modern .card-header h5,
.card-modern .card-header h6 {
    color: #fff;
    margin-bottom: 0;
    font-weight: 600;
}

.card-modern .card-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-modern .card-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

/* Modern Table */
.table-modern {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.table-modern thead th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

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

.table-modern tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    vertical-align: middle;
}

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

/* Sticky columns for score tables */
.table-modern.table-sticky-cols th.sticky-left,
.table-modern.table-sticky-cols td.sticky-left {
    position: sticky;
    background: #1a1a2e;
    z-index: 2;
}

.table-modern.table-sticky-cols th.sticky-left-1,
.table-modern.table-sticky-cols td.sticky-left-1 {
    left: 0;
}

.table-modern.table-sticky-cols th.sticky-left-2,
.table-modern.table-sticky-cols td.sticky-left-2 {
    left: 60px;
}

.table-modern.table-sticky-cols th.sticky-right,
.table-modern.table-sticky-cols td.sticky-right {
    position: sticky;
    right: 0;
    background: #1a1a2e;
    z-index: 2;
}

.table-modern.table-sticky-cols thead th.sticky-left,
.table-modern.table-sticky-cols thead th.sticky-right {
    background: rgba(26, 26, 46, 0.98);
    z-index: 3;
}

.table-modern.table-sticky-cols tbody tr:hover td.sticky-left,
.table-modern.table-sticky-cols tbody tr:hover td.sticky-right {
    background: #22223a;
}

/* Table Position Badges */
.position-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.position-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.position-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.position-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.position-badge.default {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Modern Form Inputs */
.form-modern .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-modern .form-control,
.form-modern .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(249, 200, 70, 0.15);
    color: #fff;
}

.form-modern .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-modern .form-text {
    color: rgba(255, 255, 255, 0.5);
}

.form-modern .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-modern .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-modern .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Info Items */
.info-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-item-modern i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.info-item-modern span {
    color: rgba(255, 255, 255, 0.7);
}

/* Stat Cards for Detail Pages */
.stat-item-modern {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-item-modern .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item-modern .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List Group Modern */
.list-group-modern {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.list-group-modern .list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.list-group-modern .list-group-item:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

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

.list-group-modern .list-group-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.list-group-modern .list-group-item.active {
    background: rgba(249, 200, 70, 0.15);
    border-color: transparent;
    color: #fff;
}

/* Button Variants for Dark Theme */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    color: #fff;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 200, 70, 0.3);
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 200, 70, 0.4);
    color: #1a1a2e;
}

.btn-modern-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Avatar Modern */
.avatar-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a1a2e;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(249, 200, 70, 0.3);
}

.avatar-modern.avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.avatar-modern.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    font-size: 3rem;
}

/* Utility: Text Colors for Dark Theme */
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-white-70 { color: rgba(255, 255, 255, 0.7) !important; }
.text-white-60 { color: rgba(255, 255, 255, 0.6) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-accent { color: var(--secondary-color) !important; }

/* Accent Button */
.btn-accent {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1a1a2e;
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #e5b63d;
    border-color: #e5b63d;
    color: #1a1a2e;
}

/* Responsive adjustments for modern components */
@media (max-width: 767.98px) {
    .page-header-modern {
        padding: 2rem 0;
    }

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

    .card-modern {
        border-radius: 16px;
    }

    .card-modern .card-body {
        padding: 1rem;
    }

    .stat-item-modern {
        padding: 1rem;
    }

    .stat-item-modern .stat-value {
        font-size: 1.5rem;
    }

    .avatar-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
}

/* ============================================
   Modern Toast Notifications
   ============================================ */
.toast-container-modern {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    min-width: 320px;
}

.toast-modern.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

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

.toast-success .toast-icon {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
}

.toast-error .toast-icon {
    background: rgba(220, 53, 69, 0.2);
    color: #f87171;
}

.toast-info .toast-icon {
    background: rgba(13, 202, 240, 0.2);
    color: #22d3ee;
}

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

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 0 0 16px 16px;
    width: 100%;
    transform-origin: left;
}

.toast-progress-error {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.toast-progress-info {
    background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    .toast-container-modern {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .toast-modern {
        min-width: 0;
    }
}

/* ============================================
   Bootstrap Toast High Contrast Overrides
   ============================================ */
.toast.text-bg-success {
    background: linear-gradient(135deg, #166534, #15803d) !important;
    color: #ffffff !important;
}

.toast.text-bg-danger {
    background: linear-gradient(135deg, #991b1b, #b91c1c) !important;
    color: #ffffff !important;
}

.toast.text-bg-warning {
    background: linear-gradient(135deg, #92400e, #b45309) !important;
    color: #ffffff !important;
}

.toast.text-bg-info {
    background: linear-gradient(135deg, #0e7490, #0891b2) !important;
    color: #ffffff !important;
}

.toast .toast-body {
    font-weight: 500;
    font-size: 0.9rem;
}

.toast .toast-body i {
    font-size: 1.1rem;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text .cookie-link {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.cookie-consent-text .cookie-link:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
}

.cookie-consent-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cookie-consent-buttons .btn-warning {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--gray-900);
}

.cookie-consent-buttons .btn-warning:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

@media (max-width: 576px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Content Pages (Rules, Privacy, Terms)
   ============================================ */
.content-section {
    background: var(--gray-100);
    min-height: 50vh;
}

.content-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
    color: var(--gray-900);
}

.content-card p {
    color: var(--gray-700);
    line-height: 1.7;
}

.content-card ul {
    color: var(--gray-700);
    padding-left: 1.5rem;
}

.content-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

/* Dark theme variants - matching home page style */
.content-section-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 50vh;
    padding: 3rem 0;
}

.content-card-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
}

.content-card-dark .card-body {
    color: rgba(255, 255, 255, 0.85);
}

.content-card-dark h1,
.content-card-dark h2,
.content-card-dark h3,
.content-card-dark h4,
.content-card-dark h5,
.content-card-dark h6 {
    color: #fff;
    font-weight: 700;
}

.content-card-dark h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.content-card-dark h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.content-card-dark h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.content-card-dark p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.content-card-dark strong {
    color: #fff;
    font-weight: 600;
}

.content-card-dark ul,
.content-card-dark ol,
.content-card-dark .terms-list {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.content-card-dark ul li,
.content-card-dark ol li,
.content-card-dark .terms-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 0.5rem;
}

.content-card-dark ul li::marker {
    color: var(--primary-color);
}

.content-card-dark a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-card-dark a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.content-card-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.content-card-dark i.bi {
    color: var(--primary-color);
}

.content-card-dark .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
