/* Root Variables & Styling System */
:root {
    --bg-primary: #06111a;
    --bg-secondary: #0d1c2a;
    --bg-card: #13273b;
    --bg-card-alt: #183249;
    
    /* Cosmic Accents (Improved color coordinates: orange, transparents, green, and yellow) */
    --accent-primary: #10b981;       /* Premium Green */
    --accent-secondary: #eab308;     /* Tech Yellow */
    --accent-tertiary: #f97316;      /* Electric Orange */
    --accent-cosmic: #f97316;        /* Orange Accent */
    --accent-pink: #eab308;          /* Yellow Accent */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
    
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cosmic Elements Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0d1c2a 0%, #06111a 100%);
    overflow: hidden;
}

.nebula-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 140%;
    height: 140%;
    z-index: -1;
    background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(234, 179, 8, 0.06) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
    filter: blur(80px);
}

/* Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--bg-primary);
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-hologram {
    background: rgba(19, 39, 59, 0.6);
    color: var(--accent-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(5px);
}

.btn-hologram:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--neon-shadow);
    border-color: var(--accent-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 12px;
}

/* Header - Improved Slim, Orange Transparent Background with Green & Yellow borders/accents */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(249, 115, 22, 0.12); /* Orange Transparent */
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent-primary); /* Green Accent Line */
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(249, 115, 22, 0.08);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px; /* Slimmer Padding */
}

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem; /* Slightly smaller for slim header */
    color: var(--text-primary);
    letter-spacing: 2px;
}

.logo-text .highlight {
    color: var(--accent-secondary); /* Yellow highlight */
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.nav-menu {
    display: flex;
    gap: 24px; /* Tighter menu gap */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem; /* Slim font style */
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-secondary); /* Yellow Hover */
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--accent-cosmic);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Common Styling */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Title Race Section */
.title-race-section {
    padding: 84px 0;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.title-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.favorite-card {
    background: rgba(19, 39, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.favorite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
}

.favorite-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(16, 185, 129, 0.1);
}

.fav-rank {
    position: absolute;
    right: 20px;
    top: 15px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.fav-country {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.fav-meta .meta-label {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.stats-row {
    display: flex;
    gap: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.stat-box .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.highlight-mint {
    color: var(--accent-primary);
}

/* Match Overview Grid */
.matches-grid-section {
    padding: 84px 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.match-overview-card {
    position: relative;
    background: rgba(19, 39, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.match-overview-card:hover .card-glow {
    opacity: 1;
}

.match-overview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), var(--neon-shadow);
}

.match-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.match-badge {
    background: linear-gradient(135deg, var(--accent-cosmic) 0%, var(--accent-pink) 100%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.match-group-lbl {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.match-teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.match-teams-display .team {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.match-teams-display .team.align-right {
    text-align: right;
    align-items: flex-end;
}

.team-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.team-rank {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.vs-divider {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--accent-tertiary);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.match-stats-preview {
    background: rgba(6, 17, 26, 0.5);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.stat-preview-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-preview-item span:first-child {
    color: var(--text-muted);
}

.stat-val {
    font-weight: 600;
}

.match-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.match-edge-badge {
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Expanded Match Center Previews */
.expanded-previews-section {
    padding: 84px 0;
    background: linear-gradient(to top, transparent, var(--bg-secondary));
}

.expanded-block {
    background: rgba(13, 28, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

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

.expanded-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.match-id-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.expanded-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.25rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.expanded-paragraph {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Hologram Scoreboard */
.block-scoreboard {
    background: rgba(19, 39, 59, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.05), inset 0 0 15px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
}

.scoreboard-header {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    text-align: center;
}

.scoreboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-team-col {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-r {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--text-muted);
}

.score-data-col {
    display: flex;
    gap: 16px;
}

.score-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.score-item strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 2px;
}

.text-orange {
    color: var(--accent-tertiary);
}

.text-mint {
    color: var(--accent-primary);
}

.scoreboard-divider {
    height: 1px;
    background: rgba(16, 185, 129, 0.15);
    margin: 20px 0;
}

/* Group Race Snapshot Section */
.group-race-section {
    padding: 84px 0;
}

.group-snapshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.group-snap-card {
    background: rgba(13, 28, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.group-snap-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-3px);
}

.group-letter {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.snap-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.snap-row:last-child {
    margin-bottom: 0;
}

.snap-row span:first-child {
    font-weight: 600;
}

.snap-pct {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Host Nations Watch Section */
.host-nations-section {
    padding: 84px 0;
    background-color: var(--bg-secondary);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.host-card {
    background: rgba(19, 39, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.host-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.host-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.host-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.host-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.host-metrics .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 8px;
}

.host-metrics .metric:last-child {
    border-bottom: none;
}

.host-metrics .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.host-metrics .lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Tournament Guide Section */
.tournament-guide-section {
    padding: 84px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.guide-item {
    background: rgba(13, 28, 42, 0.4);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 8px;
}

.guide-item h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.guide-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 84px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    padding: 24px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-trigger .arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger {
    color: var(--accent-primary);
}

.faq-item.active .faq-trigger .arrow {
    transform: rotate(-135deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-content p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active .faq-content {
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(0.9, 0, 0.1, 1);
}

/* Footer Section */
.main-footer {
    background: #030a11;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 1.75rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links h4,
.footer-legal h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.address-display {
    display: block;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 17, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), var(--neon-shadow);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-body .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin: 24px 0 12px 0;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.address-block {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    z-index: 999;
    padding: 20px 0;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-container p a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Responsive Rules */
@media (max-width: 1200px) {
    .expanded-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 55px; /* Slimmer offset for active mobile menu */
        left: -100%;
        width: 100%;
        height: calc(100vh - 55px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 30px;
        transition: left 0.4s ease;
        z-index: 99;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-section {
        padding: 100px 0 60px 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .favorite-card {
        padding: 16px;
    }

    .match-overview-card {
        padding: 20px;
    }

    .expanded-block {
        padding: 24px;
    }

    .scoreboard-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .score-data-col {
        width: 100%;
        justify-content: space-between;
    }

    .modal-body {
        padding: 24px;
    }
}