/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #111827;
}

/* Enhanced Primary Navigation Bar */
.primary-navbar {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.primary-navbar.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s ease;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand a:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
}

.brand-icon-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background-color: white;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-icon-svg {
    width: 20px;
    height: 20px;
    filter:
        brightness(0) saturate(100%)
        invert(69%) sepia(98%) saturate(2477%) hue-rotate(168deg) brightness(102%) contrast(101%)
        drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon-svg {
    filter:
        brightness(0) saturate(100%)
        invert(89%) sepia(100%) saturate(7482%) hue-rotate(148deg) brightness(104%) contrast(106%)
        drop-shadow(0 0 6px rgba(0, 255, 255, 0.8))
        drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
}

.nav-item.active .nav-icon-svg {
    filter:
        brightness(0) saturate(100%)
        invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%)
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.navbar-actions {
    display: flex;
    gap: 15px;
}

.btn-nav-login,
.btn-nav-signup {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-login {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-nav-login:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.btn-nav-signup {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-nav-signup:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: white;
    text-decoration: none;
}

/* Admin Dropdown Menu */
.admin-menu {
    position: relative;
}

.admin-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.admin-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 6px 0;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease-out;
}

.dropdown-item-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.dropdown-item-active {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
}

.mobile-nav-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.mobile-nav-divider::before,
.mobile-nav-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* User Menu (Authenticated) */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-display-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.75rem;
    opacity: 0.7;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 6px 0;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #374151;
}

.dropdown-item-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-icon {
    font-size: 1rem;
}

.dropdown-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
    display: flex;
    max-height: 600px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-actions .btn-nav-login,
.mobile-nav-actions .btn-nav-signup {
    width: 100%;
}

.mobile-nav-logout {
    color: #fca5a5;
}

.mobile-nav-logout:hover {
    color: #fecaca;
    background-color: rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }

    .navbar-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .brand-icon-svg {
        width: 28px;
        height: 28px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subheading {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary {
    background-color: #3b82f6;
    color: #fff;
    border: 2px solid #3b82f6;
}

.btn-cta-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.btn-cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 20px;
    background-color: #1f2937;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: #374151;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon-svg {
    width: 56px;
    height: 56px;
    filter:
        brightness(0) saturate(100%)
        invert(69%) sepia(98%) saturate(2477%) hue-rotate(168deg) brightness(102%) contrast(101%)
        drop-shadow(0 0 8px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 16px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-svg {
    filter:
        brightness(0) saturate(100%)
        invert(89%) sepia(100%) saturate(7482%) hue-rotate(148deg) brightness(104%) contrast(106%)
        drop-shadow(0 0 12px rgba(0, 255, 255, 0.8))
        drop-shadow(0 0 24px rgba(0, 255, 255, 0.6));
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.benefit-card p {
    color: #d1d5db;
    line-height: 1.6;
}

/* Fixtures Section */
.fixtures-section {
    padding: 80px 20px;
    background-color: #111827;
    scroll-margin-top: 72px;
}

.fixtures-section h2,
.leagues-section h2,
.pricing-section h2,
.competitions-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #d1d5db;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fixture-card {
    background-color: #1f2937;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.fixture-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.fixture-card .team-logo img {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

.fixture-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #374151;
}

.fixture-date,
.fixture-date-time .date {
    font-weight: 600;
    color: #60a5fa;
}

.fixture-time,
.fixture-date-time .time {
    color: #d1d5db;
}

.fixture-teams {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.match-teams {
    display: flex;
    justify-content: center;
    font-size: 1.25rem;
    gap: 1rem;
    margin: 1.5rem 0;
}

.team {
    text-align: center;
    font-weight: 600;
    color: #ffffff;
}

.team-logo {
    font-size: 3rem;
    margin-bottom: 10px;
}

.team-name {
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.vs-badge {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vs {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0 15px;
}

.fixture-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #374151;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: 600;
    color: #ffffff;
    font-family: monospace;
}

.fixture-stats.form-unavailable {
    display: flex;
    justify-content: center;
}

.fixture-stats .form-unavailable-text {
    font-size: 0.85rem;
    color: #d1d5db;
    font-style: italic;
    text-align: center;
}

.locked-content {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-icon-svg {
    width: 32px;
    height: 32px;
    stroke: #9ca3af;
    fill: none;
}

.locked-content p {
    color: #666;
    margin-bottom: 15px;
}

.btn-unlock {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-unlock:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Competitions Section */
.competitions-section {
    padding: 80px 20px;
    background-color: #1f2937;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.competition-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.competition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.competition-emblem-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.competition-card:hover .competition-emblem-container {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.competition-emblem {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.competition-details {
    margin-top: 20px;
    text-align: center;
}

.competition-card .competition-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
}

.competition-area {
    font-size: 0.95rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 12px;
}

.competition-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading, Error, and Empty States */
.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.error-state {
    background-color: #fee;
    border: 2px solid #fcc;
    border-radius: 16px;
    padding: 40px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-state h3 {
    color: #c33;
    margin-bottom: 12px;
}

.error-state button {
    margin-top: 20px;
    padding: 12px 32px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-state button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.empty-state {
    background-color: #374151;
    border-radius: 16px;
    padding: 60px 40px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 20px;
    background-color: #111827;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background-color: #1f2937;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.pricing-card.featured {
    border: 3px solid #3b82f6;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b82f6;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.price {
    margin-bottom: 30px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: #9ca3af;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
}

.period {
    font-size: 1rem;
    color: #9ca3af;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    padding: 10px 0;
    color: #d1d5db;
    border-bottom: 1px solid #374151;
}

.features-list li:last-child {
    border-bottom: none;
}

.btn-pricing {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid #3b82f6;
    background-color: transparent;
    color: #3b82f6;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-pricing:hover {
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
}

.btn-pricing.primary {
    background-color: #3b82f6;
    color: white;
}

.btn-pricing.primary:hover {
    background-color: #2563eb;
}

.pricing-link {
    text-align: center;
    margin-top: 40px;
}

.pricing-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pricing-link a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

.footer-version {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #718096;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .fixtures-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .competitions-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .competition-emblem-container {
        width: 100px;
        height: 100px;
        padding: 16px;
    }

    .competition-card .competition-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .competitions-grid {
        grid-template-columns: 1fr;
    }
}

/* Existing validation styles */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Predictions Page Styles */
.predictions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.predictions-container h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    color: #d1d5db;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Competition Filter Section */
.competition-filter-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.competition-filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.competition-logos-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.competition-filter-btn {
    padding: 12px;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 120px;
}

.filter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.competition-filter-btn:hover {
    background-color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.competition-filter-btn.active {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.competition-filter-btn.active .all-text {
    color: #1d4ed8;
    font-weight: 600;
}

.competition-filter-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
}

.competition-filter-btn.active .competition-filter-logo {
    border: 2px solid #3b82f6;
}

.competition-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

.competition-filter-btn.active .competition-name {
    color: #1d4ed8;
    font-weight: 600;
}

.all-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Fixtures Controls (Sorting) */
.fixtures-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fixtures-controls h2 {
    font-size: 1.75rem;
    margin: 0;
    color: #333;
}

.fixtures-filter-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.date-filter-dropdown,
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter-dropdown label,
.sort-dropdown label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.date-filter-select,
.sort-select {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.date-filter-select:hover,
.sort-select:hover {
    border-color: #667eea;
}

.date-filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ML Predictions specific styles */
.predictions-list {
    display: grid;
    gap: 1.5rem;
}

.prediction-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.match-date {
    font-weight: 600;
    color: #495057;
}

.model-version {
    font-size: 0.875rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.prediction-outcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.confidence-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.probabilities {
    margin: 1.5rem 0;
}

.probability-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prob-label {
    font-weight: 500;
    color: #495057;
}

.progress {
    height: 2rem;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: width 0.3s ease;
}

.prediction-timestamp {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.predictions-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Fixtures List Styles */
.fixtures-section h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: #ffffff;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
    font-weight: 700;
}

.league-table-section h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: #111827;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
    font-weight: 700;
}

.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixture-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fixture-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Fixture Header with Competition Logo on Right */
.fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.fixture-datetime {
    display: flex;
    gap: 15px;
    align-items: center;
}

.fixture-header .fixture-date {
    font-weight: 600;
    color: #1d4ed8;
    font-size: 0.95rem;
}

.fixture-header .fixture-time {
    font-weight: 500;
    color: #1d4ed8;
    font-size: 0.95rem;
}

.competition-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.fixture-date-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Fixture Matchup with Team Logos Above Names */
.fixture-matchup-with-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    gap: 20px;
}

.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 45%;
}

.home-team-section {
    align-items: flex-start;
}

.away-team-section {
    align-items: flex-end;
}

.team-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

.team-section .team-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    text-align: center;
}

.fixture-matchup-with-logos .vs {
    font-weight: 600;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.fixture-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
}

.fixture-matchup .home-team,
.fixture-matchup .away-team {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.fixture-matchup .home-team {
    text-align: left;
}

.fixture-matchup .away-team {
    text-align: right;
}

.fixture-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.fixture-form .form-label {
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.fixture-form .home-form,
.fixture-form .away-form {
    font-family: monospace;
    font-weight: 600;
    color: #333;
}

.fixture-form .home-form {
    text-align: left;
}

.fixture-form .away-form {
    text-align: right;
}

.fixture-form.form-unavailable {
    justify-content: center;
}

.fixture-form .form-unavailable-text {
    color: #6c757d;
    font-style: italic;
}

/* Head to Head Results */
.head-to-head-section {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 0.85rem;
}

.h2h-label {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.h2h-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.h2h-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto 1fr;
    align-items: center;
    padding: 3px 0;
}

.h2h-date {
    color: #666;
    font-size: 0.8rem;
}

.h2h-home-team {
    text-align: right;
    padding-right: 8px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-score {
    text-align: center;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    padding: 0 4px;
}

.h2h-away-team {
    text-align: left;
    padding-left: 8px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Last 5 Results Section */
.last5-toggle {
    border-radius: 0;
}

.last5-section {
    display: grid;
    /* minmax(0, 1fr) lets long opponent names ellipsize instead of widening the card */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 0.85rem;
    animation: slideDown 0.3s ease-out;
}

.last5-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.last5-header {
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.last5-away .last5-header {
    text-align: right;
}

.last5-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.last5-away .last5-row {
    justify-content: flex-end;
}

.last5-score {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

.last5-opponent {
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last5-empty {
    color: #9ca3af;
    font-size: 0.8rem;
}

.last5-away .last5-empty {
    text-align: right;
}

/* Fixture Predictions Styles */
.fixture-predictions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0.5rem 0;
}

.prediction-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.prediction-label {
    font-weight: 500;
    color: #333;
}

.prediction-value {
    font-weight: 600;
    color: #1d4ed8;
    font-size: 1rem;
}

/* Outcome badge used on dark fixture cards */
.outcome-badge {
    background-color: #1e3a8a;
    color: #bfdbfe;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contrast overrides for prediction text inside dark fixture cards (WCAG AA) */
.fixture-card .prediction-content {
    padding: 0.5rem 0 0;
    border-top: 1px solid #374151;
    margin-top: 0.75rem;
}

.fixture-card .prediction-outcome {
    background: #374151;
    border-radius: 6px;
}

.fixture-card .prediction-label {
    color: #9ca3af; /* ~6.2:1 contrast on #1f2937 — passes WCAG AA */
}

.fixture-card .prediction-value {
    color: #60a5fa; /* ~5.9:1 contrast on #1f2937 — passes WCAG AA */
}

.fixture-card .fixture-predictions {
    border-top-color: #374151;
    border-bottom-color: #374151;
    color: #9ca3af;
}

/* Expandable Fixture Styles */
.fixture-expand-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-top: 8px;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    border-radius: 0 0 6px 6px;
    user-select: none;
}

.fixture-expand-toggle:hover {
    background-color: #f3f4f6;
}

.fixture-expand-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    border-radius: 4px;
}

.expand-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}

.expand-chevron {
    font-size: 0.7rem;
    color: #6b7280;
    transition: transform 0.3s ease;
    display: inline-block;
}

.expand-chevron.chevron-up {
    transform: rotate(180deg);
}

.fixture-item.expanded {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Derby Badge */
.derby-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 3px 7px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.55);
    white-space: nowrap;
    animation: derby-pulse 2.4s ease-in-out infinite;
}

.derby-badge img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

@keyframes derby-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(249, 115, 22, 0.5); }
    50%       { box-shadow: 0 0 14px rgba(220, 38, 38, 0.75); }
}

/* Derby badge row in fixture-item header (Predictions page) */
.fixture-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixture-chart-section {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1200px;
        transform: translateY(0);
    }
}

.chart-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    color: #6b7280;
}

.chart-loading-state p {
    font-size: 0.9rem;
    margin: 0;
}

.chart-error-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background-color: #fef2f2;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
}

.chart-error-state .error-icon {
    font-size: 1.2rem;
}

.chart-error-state p {
    margin: 0;
}

/* League Table Styles */
.league-table-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.table-responsive {
    overflow-x: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.league-table thead {
    background-color: #4f46e5;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.league-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.league-table th:first-child {
    text-align: center;
}

.league-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.league-table tbody tr:hover {
    background-color: #f8f9fa;
}

.league-table td {
    padding: 12px 8px;
    color: #333;
}

.league-table td.position {
    text-align: center;
    font-weight: 700;
    color: #4f46e5;
}

.league-table td.team-name {
    font-weight: 600;
}

.league-table td.points {
    font-weight: 700;
    color: #333;
}

.league-table td.positive {
    color: #166534;
    font-weight: 600;
}

.league-table td.negative {
    color: #dc3545;
    font-weight: 600;
}

/* Loading, Error, and Empty States */
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-state .spinner-border,
.modal-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
    color: #667eea;
}

.loading-state p,
.modal-loading p {
    color: #666;
    font-size: 1.1rem;
}

.error-state {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
}

.error-state .error-icon,
.modal-error .error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-state h3,
.modal-error h3 {
    color: #c53030;
    margin-bottom: 10px;
}

.error-state p,
.modal-error p {
    color: #742a2a;
}

.error-hint {
    color: #856404;
    font-style: italic;
    margin-top: 1rem;
}

.empty-state {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design for Predictions Page */
@media (max-width: 1024px) {
    .predictions-content {
        grid-template-columns: 1fr;
    }

    .league-table-section {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .predictions-container h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Competition Filter */
    .competition-filter-section {
        padding: 15px;
    }

    .competition-logos-filter {
        gap: 8px;
    }

    .competition-filter-btn {
        width: 110px;
        height: 100px;
        padding: 12px 8px;
    }

    .competition-filter-logo {
        height: 36px;
        width: 36px;
    }

    .competition-name {
        font-size: 0.7rem;
        max-width: 80px;
    }

    /* Sorting */
    .fixtures-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .fixtures-controls h2 {
        font-size: 1.5rem;
    }

    .fixtures-filter-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .date-filter-dropdown,
    .sort-dropdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .date-filter-select,
    .sort-select {
        width: 100%;
    }

    .fixture-item {
        padding: 15px;
    }

    /* Fixture Header */
    .fixture-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .fixture-datetime {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .competition-logo {
        height: 24px;
    }

    /* Team Sections */
    .fixture-matchup-with-logos {
        flex-direction: column;
        gap: 12px;
    }

    .team-section {
        width: 100%;
        max-width: 100%;
        align-items: center !important;
    }

    .team-logo {
        height: 40px;
        width: 40px;
    }

    .fixture-matchup-with-logos .vs {
        display: none;
    }

    .fixture-matchup {
        flex-direction: column;
        gap: 10px;
    }

    .fixture-matchup .home-team,
    .fixture-matchup .away-team {
        text-align: center;
    }

    .fixture-predictions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .fixture-chart-section {
        margin-top: 8px;
        padding-top: 12px;
    }

    /* Stack the last 5 home/away columns - they don't fit comfortably side by side */
    .last5-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .chart-loading-state {
        padding: 20px;
    }

    .league-table {
        font-size: 0.8rem;
    }

    .league-table th,
    .league-table td {
        padding: 8px 4px;
    }
}

/* Team Details Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.modal-header {
    text-align: center;
    padding: 40px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
}

.team-crest {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

.modal-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
}

.team-short-name {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-body {
    padding: 30px;
}

.team-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.info-value {
    font-weight: 500;
    color: #333;
    text-align: right;
}

.info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.modal-loading,
.modal-error {
    text-align: center;
    padding: 60px 30px;
}

.modal-error {
    background-color: #fff5f5;
    margin: 20px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

/* Make team names clickable */
.team-name.clickable,
.home-team.clickable,
.away-team.clickable {
    cursor: pointer;
    color: #667eea;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.team-name.clickable:hover,
.home-team.clickable:hover,
.away-team.clickable:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Responsive Modal CSS */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .modal-header {
        padding: 30px 20px 15px;
    }

    .team-crest {
        width: 80px;
        height: 80px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-value {
        text-align: left;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 80%;
    }
}

/* ================================================
   Modal Tabs Styles
   ================================================ */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 30px;
    gap: 4px;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -2px;
}

.modal-tab-btn:hover {
    color: #333;
}

.modal-tab-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

/* ================================================
   Squad Component Styles
   ================================================ */
.modal-body--squad {
    padding: 20px 30px;
}

.squad-loading,
.squad-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.squad-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

.squad-error {
    text-align: center;
    padding: 20px;
    background-color: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    color: #c53030;
    margin: 10px 0;
}

.squad-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.squad-position-group {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.squad-position-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667eea;
    padding: 8px 12px;
    background-color: #eef0ff;
    margin: 0;
}

.squad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.squad-table thead th {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    background-color: #f0f0f0;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.squad-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.squad-table tbody tr:last-child {
    border-bottom: none;
}

.squad-table tbody tr:hover {
    background-color: #f0f4ff;
}

.squad-table tbody td {
    padding: 8px 12px;
    color: #333;
}

.squad-col-number {
    width: 36px;
    font-weight: 600;
    color: #667eea !important;
    text-align: center;
}

.squad-col-name {
    font-weight: 500;
}

.squad-col-age,
.squad-col-contract {
    white-space: nowrap;
}

/* Responsive adjustments for squad table */
@media (max-width: 768px) {
    .modal-tabs {
        padding: 0 15px;
    }

    .modal-tab-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .modal-body--squad {
        padding: 15px;
    }

    .squad-table {
        font-size: 0.82rem;
    }

    .squad-table thead th,
    .squad-table tbody td {
        padding: 6px 8px;
    }

    .squad-col-nationality {
        display: none;
    }
}

/* ================================================
   Profile Page Styles
   ================================================ */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.profile-avatar {
    margin-bottom: 1.5rem;
}

.profile-header .avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-header .avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.profile-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.profile-email {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.profile-content {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #1a202c;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.profile-content .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.profile-content .info-value {
    font-size: 1rem;
    color: #1a202c;
}

.user-id {
    font-family: monospace;
    font-size: 0.875rem;
    color: #4a5568;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a202c;
    font-weight: 500;
    transition: all 0.2s;
}

.action-button:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.action-button-danger {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

.action-button-danger:hover {
    background: #fed7d7;
    border-color: #fc8181;
}

.action-icon {
    font-size: 1.5rem;
}

.unauthorized-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.unauthorized-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
}

.unauthorized-card h1 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: #1a202c;
}

.unauthorized-card p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
}

.unauthorized-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.unauthorized-card a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .profile-container {
        margin: 1rem auto;
    }

    .profile-header {
        padding: 2.5rem 1.5rem;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Logout Page Styles
   ================================================ */
.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.logout-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.logout-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logout-card h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1a202c;
}

.logout-card p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .logout-container {
        padding: 1rem;
    }

    .logout-card {
        padding: 2.5rem 1.5rem;
    }

    .logout-card h1 {
        font-size: 1.25rem;
    }
}

/* ================================================
   Model Management Page Styles
   ================================================ */
.model-management-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.train-section .card-header,
.training-history-section .card-header,
.models-section .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.training-status-banner {
    border-left: 4px solid #0d6efd;
}

.training-result {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 1rem;
}

.accuracy-high {
    color: #28a745;
    font-weight: 600;
}

.accuracy-medium {
    color: #ffc107;
    font-weight: 600;
}

.accuracy-low {
    color: #dc3545;
    font-weight: 600;
}

.production-summary {
    border: 2px solid #28a745;
}

.table-success {
    background-color: #d4edda !important;
}

/* Training history table styling */
.training-history-section .table-sm {
    font-size: 0.9rem;
}

.job-row-completed {
    background-color: #d4edda;
}

.job-row-failed {
    background-color: #f8d7da;
}

.job-row-cancelled {
    background-color: #f8f9fa;
    color: #6c757d;
}

.job-row-in-progress {
    background-color: #d1ecf1;
}

/* ================================================
   Login Prompt Modal Styles
   ================================================ */
.login-prompt-modal {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.login-prompt-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.login-prompt-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.login-prompt-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.login-prompt-body {
    padding: 2rem;
}

.login-prompt-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    text-align: center;
}

.login-prompt-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.login-prompt-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

.feature-check {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn-prompt-signup {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prompt-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-prompt-login {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-prompt-login:hover {
    color: #5568d3;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .login-prompt-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .login-prompt-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .login-prompt-header h2 {
        font-size: 1.35rem;
    }

    .login-prompt-body {
        padding: 1.5rem;
    }
}

/* ================================================
   Predictions Teaser (Unauthenticated) Styles
   ================================================ */
.predictions-teaser {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.teaser-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.teaser-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.teaser-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
}

.teaser-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.teaser-card {
    background: #1f2937;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.teaser-card:hover {
    border-color: #3b82f6;
}

.teaser-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.teaser-blurred {
    filter: blur(4px);
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teaser-bar {
    height: 22px;
    background: linear-gradient(90deg, #3b82f6, #667eea);
    border-radius: 4px;
}

.teaser-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #374151;
    border-radius: 4px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.teaser-text-line {
    height: 14px;
    background: #374151;
    border-radius: 4px;
    width: 100%;
}

.teaser-text-line.short {
    width: 65%;
}

.teaser-cta {
    text-align: center;
    background: #1f2937;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.teaser-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.teaser-cta p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.teaser-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.teaser-actions .btn-prompt-signup {
    max-width: 300px;
}

@media (max-width: 640px) {
    .teaser-header h1 {
        font-size: 1.75rem;
    }

    .teaser-preview {
        grid-template-columns: 1fr;
    }

    .teaser-cta {
        padding: 2rem 1.5rem;
    }

    .teaser-cta h2 {
        font-size: 1.25rem;
    }
}

/* ===== Competition Page Styles ===== */

.competition-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.competition-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.competition-container .page-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Chart Header */
.chart-header {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 0.5rem 0;
}

.selected-teams-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border: 1.5px solid;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.no-teams-message {
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
}

/* Chart Container */
.league-position-chart-container {
    background: #1f2937;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
}

/* Retry Button */
.retry-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #2563eb;
}

/* ===== League Position Modal Styles ===== */

.league-position-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.league-position-modal-content {
    background: #1f2937;
    border-radius: 12px;
    max-width: 700px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Close button — top-right corner */
.league-position-modal-content > .modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.league-position-modal-content > .modal-close-btn:hover,
.league-position-modal-content > .modal-close-btn:focus-visible {
    color: #f9fafb;
}

/* Centred header */
.modal-header-centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2.5rem 1rem;
    border-bottom: 1px solid #374151;
    gap: 0.5rem;
}

.league-emblem-large {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.modal-header-centred h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #f9fafb;
    line-height: 1.3;
}

.fixture-info {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.league-position-modal-content .modal-body {
    padding: 1rem 1.25rem 1.25rem;
}

.no-data-message {
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
}

/* -- Team selection checkboxes (grid of 12) -- */

.team-selection-container {
    padding: 0.75rem 0;
}

.selection-label {
    display: block;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.team-checkboxes {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.35rem 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    overflow: hidden;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: currentColor;
}

.checkbox-item label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* -- Fixture teams table -- */

.fixture-teams-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fixture-teams-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.fixture-teams-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    padding: 0.5rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid #374151;
}

.fixture-teams-table thead th.col-team {
    text-align: left;
}

.fixture-teams-table tbody tr:not(.form-row) {
    border-top: 1px solid #374151;
}

.fixture-teams-table tbody tr:not(.form-row):first-child {
    border-top: none;
}

.fixture-teams-table td {
    padding: 0.5rem 0.4rem;
    vertical-align: middle;
}

.fixture-teams-table .col-crest {
    width: 32px;
    text-align: center;
    padding-right: 0;
}

.team-crest-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.fixture-teams-table .col-team {
    font-weight: 600;
    white-space: nowrap;
}

.fixture-teams-table .col-stat {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fixture-teams-table .col-pts {
    font-weight: 700;
    color: #fbbf24;
}

/* Form row */

.form-row {
    border-top: none !important;
}

.form-row td {
    padding-top: 0;
    padding-bottom: 0.6rem;
}

.form-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.form-badge.form-w {
    background: #065f46;
    color: #a7f3d0;
}

.form-badge.form-d {
    background: #78350f;
    color: #fbbf24;
}

.form-badge.form-l {
    background: #7f1d1d;
    color: #fca5a5;
}

.no-form {
    color: #6b7280;
}

/* ===== Competition Page Responsive Styles ===== */

@media (max-width: 768px) {
    .competition-container {
        padding: 1rem;
    }

    .competition-container h1 {
        font-size: 1.5rem;
    }

    .chart-title {
        font-size: 1.1rem;
    }

    .league-position-chart-container {
        padding: 0.75rem;
        overflow-x: auto;
    }

    .league-position-modal-content {
        width: 97%;
        border-radius: 8px;
    }

    .modal-header-centred {
        padding: 1.25rem 1rem 0.75rem;
    }

    .league-emblem-large {
        width: 160px;
        height: 160px;
    }

    .league-position-modal-content .modal-body {
        padding: 0.75rem;
    }

    .fixture-teams-table {
        font-size: 0.8rem;
    }

    .team-crest-icon {
        width: 20px;
        height: 20px;
    }

    .form-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .team-checkboxes {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .team-checkboxes {
        grid-template-columns: repeat(4, 1fr);
    }

    .league-emblem-large {
        width: 120px;
        height: 120px;
    }
}

/* Access Denied Component Styles */
.access-denied-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-denied-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.access-denied-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.access-denied-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 1rem;
}

.access-denied-message {
    font-size: 1.2rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.access-denied-explanation {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.access-denied-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.access-denied-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.access-denied-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.access-denied-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.access-denied-actions .btn-outline-secondary {
    background: transparent;
    border: 2px solid #6b7280;
    color: #e5e7eb;
}

.access-denied-actions .btn-outline-secondary:hover {
    background: #374151;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

/* Responsive Design for AccessDenied */
@media (max-width: 768px) {
    .access-denied-card {
        padding: 2rem;
        max-width: 100%;
    }

    .access-denied-icon {
        font-size: 4rem;
    }

    .access-denied-title {
        font-size: 1.5rem;
    }

    .access-denied-message {
        font-size: 1rem;
    }

    .access-denied-actions {
        flex-direction: column;
    }

    .access-denied-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .access-denied-container {
        padding: 1rem;
    }

    .access-denied-card {
        padding: 1.5rem;
    }

    .access-denied-icon {
        font-size: 3rem;
    }
}

