/* LeFoot - Shared Styles */
/* Design System: Dark Theme with Glass Panels + Acid Lime Accents */

/* ===== CSS Variables ===== */
:root {
    /* NEW: Primary Accent Colors (Acid Lime) */
    --primary-glow: rgba(210, 248, 46, 0.4);
    --primary-400: #e0ff5c; /* Lighter lime for hover */
    --primary-500: #D2F82E;
    --primary-600: #b8db29;
    --primary-800: #546312;
    --shadow-glow-primary: 0 0 20px rgba(210, 248, 46, 0.3);
    
    /* Backgrounds */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card-dark: #0F0F0F;
    --bg-glass: rgba(10, 10, 10, 0.6);
    --bg-glass-hover: rgba(10, 10, 10, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.1);
    --bg-glass-light-strong: rgba(255, 255, 255, 0.15);
    --bg-card-glass-dark: rgba(20, 20, 20, 0.6);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-strong: rgba(255, 255, 255, 0.2);
    --border-glass-light: rgba(255, 255, 255, 0.3);
    --border-card: #222;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --text-grey: #A1A1AA;
    --text-subtle: #737373;
    --text-disabled: #525252;
    --text-dark: #1A1A1A;
    
    /* Primary accent colors (Acid Lime) */
    --accent-primary: #D2F82E;
    --accent-primary-light: #e0ff5c;
    --accent-primary-dark: #b8db29;
    --accent-primary-bg: rgba(210, 248, 46, 0.1);
    --accent-primary-border: rgba(210, 248, 46, 0.2);
    
    /* Status Colors */
    --live-red: #ef4444;
    --live-red-bg: rgba(239, 68, 68, 0.1);
    --live-red-border: rgba(239, 68, 68, 0.2);
    
    --warning-yellow: #fbbf24;
    --card-yellow: #facc15;
    --card-red: #ef4444;
    
    --ucl-green: #22c55e;
    --europa-orange: #f97316;
    --relegation-red: #dc2626;
    
    --france-blue: #002395;
    --france-red: #ED2939;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow-primary: 0 0 10px rgba(210, 248, 46, 0.3);
    --shadow-glow-red: 0 0 10px rgba(239, 68, 68, 0.5);
    
    /* Border Radius - Design System */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 32px;
    --radius-2xl: 32px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Glass Effect */
    --glass-blur: blur(24px);
    --glass-blur-light: blur(12px);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===== Primary Color Utility Classes ===== */
.text-primary-accent { color: var(--primary-500); }
.bg-primary-accent { background-color: var(--primary-500); }
.border-primary-accent { border-color: var(--primary-500); }
.text-on-primary { color: var(--text-dark); }

/* ===== Design System: Button Components ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

/* Primary - Solid green bg, dark text */
.btn-primary {
    background: var(--primary-500);
    color: var(--text-dark);
}
.btn-primary:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(210, 248, 46, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary - Dark bg, white border */
.btn-secondary {
    background: #1A1A1A;
    border: 1px solid #333;
    color: white;
}
.btn-secondary:hover {
    border-color: white;
    background: #222;
}

/* Outline - Transparent with white border */
.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ghost - Transparent, no border */
.btn-ghost {
    background: transparent;
    color: white;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Destructive - Red */
.btn-destructive {
    background: #dc2626;
    color: white;
}
.btn-destructive:hover {
    background: #b91c1c;
}

/* Icon button (circular) */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary-500);
    color: var(--text-dark);
}
.btn-icon:hover {
    background: var(--primary-600);
}

/* ===== Design System: Input Components ===== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.2s ease;
}

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

.input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(210, 248, 46, 0.2);
}

.input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Input with search icon styling */
.input-search {
    padding-left: 2.5rem;
    border-radius: var(--radius-full);
}

/* Error state */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.input-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Select input */
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ===== Design System: Control Components ===== */

/* Checkbox */
.checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #333;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox:hover {
    border-color: #555;
}

.checkbox:checked {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid var(--text-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox:focus {
    box-shadow: 0 0 0 3px rgba(210, 248, 46, 0.2);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-track {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-track {
    background: var(--primary-500);
}

.toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(20px);
    background: var(--text-dark);
}

.toggle input:focus + .toggle-track {
    box-shadow: 0 0 0 3px rgba(210, 248, 46, 0.2);
}

/* Slider / Range Input */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(210, 248, 46, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider:focus {
    outline: none;
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(210, 248, 46, 0.2);
}

/* ===== Design System: Badge Components ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* DEFAULT - Dark */
.badge-default {
    background: #1A1A1A;
    border: 1px solid #333;
    color: var(--text-grey);
}

/* NEW - White */
.badge-new {
    background: white;
    color: var(--text-dark);
}

/* ACTIVE - Green */
.badge-active {
    background: var(--primary-500);
    color: var(--text-dark);
}

/* PENDING - Yellow/Orange */
.badge-pending {
    background: #f97316;
    color: var(--text-dark);
}

/* SUCCESS - for compatibility */
.badge-success {
    background: var(--primary-500);
    color: var(--text-dark);
}

/* WARNING - Yellow */
.badge-warning {
    background: #fbbf24;
    color: var(--text-dark);
}

/* DANGER/ERROR - Red */
.badge-danger {
    background: #dc2626;
    color: white;
}

/* ===== Design System: Glass Card Components ===== */

/* Light glass (for hero overlays, light backgrounds) */
.glass-card-light {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Dark glass (for body sections, dark backgrounds) */
.glass-card-dark {
    background: var(--bg-card-glass-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Solid dark card (no glass effect) */
.card-dark {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-2px);
    border-color: #333;
}

/* ===== Design System: Menu/Nav Item Selection ===== */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-grey);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

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

.nav-item.active {
    background: var(--primary-500);
    color: var(--text-dark);
}

/* Sidebar menu item */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.menu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background: var(--primary-500);
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== Design System: Filter Tabs ===== */
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-grey);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab-active,
.filter-tab.active {
    background: white;
    color: var(--text-dark);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255,255,255,0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(210, 248, 46, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(210, 248, 46, 0.2);
    color: var(--primary-500);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* ===== Glass Panel Component ===== */
.glass-panel {
    background: var(--bg-card-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.glass-panel-hover:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
}

/* ===== NEW: Glass Card Light (For Hero Section) ===== */
.glass-card-light {
    background: var(--bg-glass-light-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    color: var(--text-primary);
}

.glass-card-dark {
    background: var(--bg-card-glass-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
}

/* ===== NEW: Hero Section ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: auto;
    height: 320px;
    background-size: cover;
    background-position: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    border-radius: var(--radius-2xl);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 24px;
    height: 100%;
    width: 100%;
    align-items: stretch;
}

/* Hero Left Column */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.hero-league-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-500);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.hero-league-btn:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(210, 248, 46, 0.3);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--text-primary);
}

/* Betting hero: accent line + tighter left stack inside fixed-height .hero-section */
.betting-hero .hero-title .betting-hero-title-accent {
    color: var(--primary-500);
}

.betting-hero .hero-left {
    justify-content: center;
    gap: 1.75rem;
}

.betting-hero .hero-left .hero-title,
.betting-hero .hero-left p {
    margin: 0;
}

/* Hero News Cards */
.hero-news-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
}

.hero-news-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    flex: 1;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.hero-news-card:hover {
    border-color: var(--border-glass-strong);
    transform: translateY(-2px);
}

.hero-news-card .news-image {
    width: 70px;
    min-width: 70px;
    height: 100%;
    min-height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-news-card .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-news-card .news-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news-card .news-meta {
    font-size: 10px;
    color: var(--text-subtle);
}

/* Hero Right Column - Featured Fixture */
.hero-right {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.hero-fixture-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: opacity 0.3s ease;
    padding: 14px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero Fixture Header */
.hero-fixture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.hero-fixture-time {
    display: inline-flex;
    align-items: center;
    background: var(--primary-500);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.hero-fixture-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}



.hero-fixture-fav {
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 2px;
    transition: color var(--transition-fast);
}

.hero-fixture-fav:hover {
    color: var(--primary-500);
}

/* Hero Fixture Main Section */
.hero-fixture-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.hero-fixture-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.hero-fixture-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-fixture-team-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.hero-fixture-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-fixture-manager {
    font-size: 10px;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 3px;
}

.hero-fixture-manager span {
    color: var(--live-red);
}

/* Hero Fixture Center (Score) */
.hero-fixture-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    flex-shrink: 0;
}

.hero-fixture-score-display {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 4px;
}

.hero-fixture-possession {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--live-red);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-fixture-divider {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 8px 0;
    flex-shrink: 0;
}

/* Hero Fixture Footer */
.hero-fixture-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hero-fixture-events {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--live-red);
    font-size: 11px;
}

.hero-fixture-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero-fixture-link:hover {
    color: var(--text-primary);
}

/* Hero content fade-in: smooth transition when skeleton is replaced with real data */
#hero-fixture-card > * {
    animation: heroFadeIn 0.4s ease-out;
}

#hero-title,
#hero-league-btn,
#hero-news-grid {
    transition: opacity 0.4s ease-out;
}

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

/* Responsive Hero */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-left {
        justify-content: flex-start;
        gap: 16px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-news-grid {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-news-card {
        flex-direction: row;
        align-items: stretch;
    }
    
    .hero-news-card .news-image {
        width: 60px;
        min-width: 60px;
        min-height: 50px;
    }
    
    .hero-right {
        justify-content: flex-start;
    }
    
    .hero-fixture-card {
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 16px;
        border-radius: var(--radius-xl);
    }
    
    .hero-news-grid {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-fixture-teams {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-fixture-team-logo {
        width: 44px;
        height: 44px;
    }
    
    .hero-fixture-team-logo img {
        width: 32px;
        height: 32px;
    }
}

/* Intermediate breakpoint for hero fixture layout */
@media (max-width: 768px) {
    .hero-fixture-main {
        gap: 10px;
    }
    
    .hero-fixture-team-name {
        font-size: 11px;
    }
    
    .hero-fixture-score-display {
        font-size: 20px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-section {
        padding: 12px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-fixture-team-logo {
        width: 38px;
        height: 38px;
    }
    
    .hero-fixture-team-logo img {
        width: 28px;
        height: 28px;
    }
    
    .hero-fixture-main {
        gap: 8px;
    }
    
    .hero-fixture-team-name {
        font-size: 10px;
    }
}

/* ===== Live Pulse Animation ===== */
.live-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Live text blink */
.live-blink {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Gradient Backgrounds ===== */
.gradient-france {
    background: linear-gradient(135deg, var(--france-blue) 0%, var(--france-red) 100%);
}

.gradient-primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}

.gradient-hero {
    background: linear-gradient(to top, var(--bg-secondary) 0%, var(--bg-secondary) 50%, transparent 100%);
}

/* ===== Badge & Tag Styles ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-live {
    background: var(--live-red-bg);
    border: 1px solid var(--live-red-border);
    color: var(--live-red);
}

.badge-ft {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.badge-upcoming {
    background: var(--accent-primary-bg);
    border: 1px solid var(--accent-primary-border);
    color: var(--accent-primary);
}

/* Category tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tag-active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ===== Card Component ===== */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-header {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.card-body {
    padding: 1rem;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary-500);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(210, 248, 46, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

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

/* ===== Tab Navigation ===== */
.tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.tab {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--text-primary);
}

.tab-active {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

/* Sticky tabs */
.tabs-sticky {
    position: sticky;
    top: 4rem;
    z-index: 40;
    background: var(--bg-primary);
    padding: 0.75rem 0;
    margin: -0.75rem 0 1rem;
}

/* ===== Live Toggle ===== */
.live-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.live-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.live-toggle.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.live-toggle-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.live-toggle.active .live-toggle-indicator {
    opacity: 1;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

/* ===== Form Elements ===== */
.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.input::placeholder {
    color: var(--text-disabled);
}

.input:focus {
    outline: none;
    border-color: var(--text-subtle);
    background: rgba(0, 0, 0, 0.6);
}

.input-search {
    padding-left: 2.25rem;
    border-radius: var(--radius-full);
}

/* ===== Table Styles ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 0.75rem 1rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-subtle);
}

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

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

/* Zone highlighting */
.row-ucl {
    border-left: 3px solid var(--ucl-green);
}

.row-europa {
    border-left: 3px solid var(--europa-orange);
}

.row-relegation {
    border-left: 3px solid var(--relegation-red);
}

/* ===== Match Row Component ===== */
.match-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.match-row:last-child {
    border-bottom: none;
}

.match-row a {
    text-decoration: none;
}

.match-status {
    width: 3rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.match-status-live {
    color: var(--live-red);
}

.match-status-ft {
    color: var(--text-subtle);
}

.match-status-upcoming {
    color: var(--text-muted);
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.match-team-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.match-team-name {
    font-size: 0.875rem;
}

.match-score {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: right;
}

.match-score-winner {
    color: var(--accent-primary);
}

/* ===== League Header ===== */
.league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

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

.league-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.league-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Player Card ===== */
.player-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.player-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.player-meta {
    font-size: 0.625rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
}

.player-stat {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== Stat Bar ===== */
.stat-bar {
    height: 0.375rem;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.stat-bar-home {
    background: var(--live-red);
    box-shadow: var(--shadow-glow-red);
}

.stat-bar-away {
    background: var(--accent-primary);
    box-shadow: var(--shadow-glow-primary);
}

/* ===== Form Guide ===== */
.form-guide {
    display: flex;
    gap: 0.25rem;
}

.form-result {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-win {
    background: var(--ucl-green);
    color: white;
}

.form-draw {
    background: var(--text-subtle);
    color: white;
}

.form-loss {
    background: var(--relegation-red);
    color: white;
}

/* ===== Timeline Event ===== */
.timeline-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.timeline-minute {
    font-size: 0.75rem;
    color: var(--text-subtle);
    min-width: 2rem;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-player {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Card (Yellow/Red) Icons ===== */
.card-yellow {
    width: 0.625rem;
    height: 0.875rem;
    background: var(--card-yellow);
    border-radius: 2px;
}

.card-red {
    width: 0.625rem;
    height: 0.875rem;
    background: var(--card-red);
    border-radius: 2px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs-separator {
    color: var(--text-disabled);
}

/* ===== Country Flag Pill ===== */
.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.country-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.country-pill-active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ===== Gambling Compliance ===== */
.gambling-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.gambling-warning-icon {
    font-size: 1.5rem;
    color: var(--live-red);
}

.gambling-warning-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 1280px) {
    .hide-xl {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hide-lg {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-md {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hide-sm {
        display: none !important;
    }
}

/* ===== Safe Area (Mobile) ===== */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.slide-up {
    animation: slideUp 0.3s ease;
}

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

/* ===== Hidden Date Picker ===== */
#date-picker {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    pointer-events: none;
}

/* ===== Missing Data Indicator ===== */
.data-missing {
    color: #ef4444 !important;
    font-style: italic;
    opacity: 0.9;
}

.data-missing::before {
    content: '⚠ ';
    font-style: normal;
}

/* ===== Settings Modal ===== */
.settings-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.settings-modal-overlay.hidden {
    display: none;
}

.settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.settings-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #6b7280;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(210, 248, 46, 0.2);
    border-color: rgba(210, 248, 46, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background-color: var(--primary-500);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(210, 248, 46, 0.2);
}

/* Toast Notification */
.settings-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to right, rgba(210, 248, 46, 0.1), rgba(210, 248, 46, 0.05));
    border: 1px solid rgba(210, 248, 46, 0.2);
    border-radius: 9999px;
    color: var(--primary-500);
    font-size: 0.875rem;
    z-index: 150;
    opacity: 0;
    transition: all 0.3s ease;
}

.settings-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Auth Modal ===== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal-overlay.hidden {
    display: none;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.auth-modal-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.auth-view.hidden {
    display: none;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--primary-500);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn-primary:hover:not(:disabled) {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(210, 248, 46, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== User Dropdown ===== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(220px, calc(100vw - 2rem));
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 100;
    animation: notificationSlideIn 0.2s ease-out;
}

.user-dropdown.hidden {
    display: none;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ===== Favorite Buttons ===== */
.btn.is-favorite {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.2);
}

.btn.is-favorite iconify-icon {
    color: #facc15;
}

[data-favorite-team].is-favorite iconify-icon,
[data-favorite-league].is-favorite iconify-icon,
[data-favorite-match].is-favorite iconify-icon {
    color: #facc15 !important;
}

/* ===== Notification Panel ===== */
.notification-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    max-height: 400px;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 100;
    animation: notificationSlideIn 0.2s ease-out;
}

.notification-panel.hidden {
    display: none;
}

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

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    background: #ef4444;
    border-radius: 9999px;
}

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

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.notification-unread {
    background: rgba(16, 185, 129, 0.05);
}

.notification-unread .notification-icon {
    color: var(--primary-500);
}

.notification-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: #9ca3af;
}

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

.notification-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.625rem;
    color: #6b7280;
}

.notification-panel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.notification-action {
    font-size: 0.75rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.notification-action:hover {
    color: white;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

/* ===== Calendar Panel ===== */
.calendar-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 100;
    animation: notificationSlideIn 0.2s ease-out;
    padding: 12px;
}

.calendar-panel.hidden {
    display: none;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.15);
}

.calendar-day.other-month:hover {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.is-today {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-day.is-selected {
    background: var(--primary-500);
    color: var(--text-dark);
    font-weight: 700;
}

.calendar-day.is-selected:hover {
    background: var(--primary-400);
    color: var(--text-dark);
}

.calendar-today-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.calendar-today-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* ===== Affiliate operator page: no full-width dividers (header / SEO / footer) ===== */
body.betting-operator-page footer#site-footer {
    border-top: none;
}
