/* RESET & GLOBAL RULES */
:root {
    --primary-bg: #0d0514;          /* Deep rich purple-black */
    --secondary-bg: #150921;        /* Dark night purple */
    --card-bg: #1e0d2f;             /* Rich mid purple */
    --card-bg-alt: #2a1240;         /* Lighter warm purple */
    --accent-primary: #10b981;      /* Emerald Green (high accessibility action green) */
    --accent-secondary: #a855f7;    /* Electric Violet Purple */
    --accent-tertiary: #ef4444;     /* Brilliant Red */
    --accent-alert: #dc2626;        /* Crimson Red alert states */
    --border-color: rgba(168, 85, 247, 0.15); /* Soft glowing violet-purple border */
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --muted-label: #a78bfa;         /* Lavender muted label */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-editorial: 'Syne', sans-serif;
    --max-width: 1440px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* CONTAINER SCALING */
.section-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 84px 40px;
}

@media(max-width: 991px) {
    .section-container {
        padding: 56px 24px;
    }
}

@media(max-width: 576px) {
    .section-container {
        padding: 40px 16px;
    }
}

/* SLIM AND PROPER HEADER STYLES */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 5, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 40px; /* Reduced from 20px to make header slim */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 8px 40px; /* Even slimmer on scroll */
}

@media(max-width: 991px) {
    .header-container {
        padding: 10px 24px;
    }
    .main-header.scrolled .header-container {
        padding: 10px 24px;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem; /* Slightly smaller for proper slim proportion */
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: var(--font-editorial);
}

.brand-logo svg {
    transition: var(--transition-smooth);
}

.brand-logo:hover svg {
    transform: rotate(15deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.88rem; /* Slightly reduced for proper layout alignment */
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.cta-btn-primary {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 18px; /* Tighter slim action button */
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.cta-btn-primary:hover {
    background-color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

@media(max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 55px; /* Aligned with slimmer header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 55px);
        background-color: var(--primary-bg);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        z-index: 999;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .cta-btn-primary {
        display: none;
    }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-bg);
    overflow: hidden;
    padding-top: 55px; /* Offset matched to slim header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(26, 11, 41, 0.75) 0%, rgba(13, 5, 20, 0.98) 80%);
    z-index: 2;
}

.hero-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 750px;
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-editorial);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.highlight-text {
    color: var(--accent-primary);
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-meta-strip {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    width: 100%;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted-label);
    letter-spacing: 1px;
}

.meta-val {
    font-size: 1rem;
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.btn-main {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.btn-main:hover {
    background-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-sub {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-sub:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

@media(max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media(max-width: 991px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }
    .hero-3d-container {
        width: 100%;
        height: 50%;
        bottom: 0;
        top: auto;
    }
    .hero-content-wrapper {
        max-width: 100%;
        padding: 40px 24px;
        margin-top: 40px;
    }
}

@media(max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-meta-strip {
        flex-direction: column;
        gap: 16px;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .btn-main, .btn-sub {
        width: 100%;
        text-align: center;
    }
}

/* EDITORIAL HEADERS */
.section-header-editorial {
    margin-bottom: 56px;
}

.section-header-editorial.text-center {
    text-align: center;
}

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

.section-title-editorial {
    font-family: var(--font-editorial);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

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

.max-width-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media(max-width: 768px) {
    .section-title-editorial {
        font-size: 2.2rem;
    }
}

/* TITLE RACE Contenders Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.fav-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.fav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    border-color: rgba(16, 185, 129, 0.4);
}

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

.fav-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(168, 85, 247, 0.08); /* Stylized to match brand purple */
}

.fav-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.fav-flag-placeholder {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.fav-country {
    font-size: 1.4rem;
    font-weight: 700;
}

.fav-group-badge {
    align-self: flex-start;
    background-color: var(--card-bg-alt);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fav-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

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

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

.stat-val {
    font-size: 1.15rem;
    font-weight: 800;
}

.stat-val.accent-green {
    color: var(--accent-primary);
}

@media(max-width: 991px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* MATCHUPS OVERVIEW GRID */
.grid-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    gap: 16px;
}

.grid-controls-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--muted-label);
    font-weight: 700;
}

.filter-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card-bg-alt);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.filter-btn.active {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
}

.matchups-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.matchup-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.matchup-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

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

.group-label {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

.edge-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-tertiary); /* Highlight in alert red */
}

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

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

.team-lineup.text-right {
    text-align: right;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.team-sub {
    font-size: 0.8rem;
    color: var(--muted-label);
}

.vs-divider {
    font-family: var(--font-editorial);
    font-weight: 800;
    font-size: 1.2rem;
    color: rgba(168, 85, 247, 0.25);
    width: 20%;
    text-align: center;
}

.matchup-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.matchup-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.metric-highlight {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.read-more-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.read-more-link:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

@media(max-width: 1200px) {
    .matchups-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .grid-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .matchup-teams {
        flex-direction: column;
        align-items: flex-start;
    }
    .team-lineup {
        width: 100%;
    }
    .team-lineup.text-right {
        text-align: left;
    }
    .vs-divider {
        text-align: left;
        margin: 10px 0;
    }
}

/* EXPANDED MATCH CENTERS */
.expanded-previews-section {
    background-color: var(--secondary-bg);
}

.previews-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 56px;
}

.preview-block {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    scroll-margin-top: 100px;
    transition: var(--transition-smooth);
}

.preview-block:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-group {
    color: var(--accent-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.preview-label {
    font-size: 0.85rem;
    color: var(--muted-label);
}

.preview-title {
    font-family: var(--font-editorial);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.comp-col {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.comp-col.team-a-accent {
    border-left: 4px solid var(--accent-primary);
}

.comp-team-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-fav {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.comp-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.06);
}

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

.comp-stat-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comp-stat-row strong {
    font-weight: 700;
    color: var(--text-primary);
}

.preview-text-block {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.preview-text-block h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.preview-text-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.preview-text-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .preview-block {
        padding: 32px;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* GROUP RACE SNAPSHOT */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.snapshot-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.group-name {
    font-family: var(--font-editorial);
    font-weight: 800;
    font-size: 1.2rem;
}

.snapshot-fav {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.snapshot-vs-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.snapshot-progress {
    background-color: var(--card-bg-alt);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

.snapshot-footer-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted-label);
    font-weight: 600;
}

@media(max-width: 991px) {
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
}

/* HOSTS WATCH */
.hosts-section {
    background-color: var(--secondary-bg);
}

.hosts-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.host-profile-card {
    background-color: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition-smooth);
}

.host-profile-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.host-hero-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.host-flag {
    width: 60px;
    height: 42px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.host-meta-details h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

.host-rank-tag {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.host-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.host-stat-col {
    display: flex;
    flex-direction: column;
}

.host-stat-col span {
    font-size: 0.75rem;
    color: var(--muted-label);
    text-transform: uppercase;
}

.host-stat-col strong {
    font-size: 1.15rem;
    font-weight: 800;
}

@media (max-width: 991px) {
    .hosts-grid-container {
        grid-template-columns: 1fr;
    }
}

/* TOURNAMENT GUIDE */
.guide-wrapper {
    display: flex;
    align-items: center;
    gap: 64px;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 56px;
    border: 1px solid var(--border-color);
}

.guide-visual {
    width: 30%;
}

.guide-visual svg {
    width: 100%;
    height: auto;
}

.guide-content {
    width: 70%;
}

.guide-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.guide-steps-list li {
    font-size: 1rem;
    color: var(--text-secondary);
}

.guide-steps-list li strong {
    color: var(--accent-primary);
}

@media(max-width: 991px) {
    .guide-wrapper {
        flex-direction: column;
        padding: 32px;
    }
    .guide-visual {
        width: 50%;
    }
    .guide-content {
        width: 100%;
    }
}

/* FAQ SECTION */
.faq-accordion-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-trigger::after {
    content: '+';
    font-family: var(--font-editorial);
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.faq-item.active .faq-trigger::after {
    content: '−';
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(255,255,255,0.01);
}

.faq-panel p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
}

.faq-item.active .faq-panel {
    max-height: 300px;
}

/* FOOTER STYLES */
.main-footer {
    background-color: #06020a;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-address-block {
    font-size: 0.85rem;
    color: var(--muted-label);
    margin-top: 12px;
    line-height: 1.5;
    border-left: 2px solid var(--accent-primary);
    padding-left: 12px;
}

.footer-title {
    font-family: var(--font-editorial);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links button.footer-modal-trigger {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.footer-links button.footer-modal-trigger:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
}

.copyright-notice {
    font-size: 0.85rem;
    color: var(--muted-label);
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* COOKIE BANNER */
.cookie-consent-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--card-bg-alt);
    border-top: 2px solid var(--accent-primary);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-banner-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cookie-banner-content button.inner-modal-trigger {
    color: var(--accent-primary);
    text-decoration: underline;
    display: inline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 6px;
    text-transform: uppercase;
}

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

.accept-btn:hover {
    background-color: #34d399;
}

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

.reject-btn:hover {
    background-color: rgba(255,255,255,0.15);
}

@media(max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
    }
}

/* MODAL SYSTEM */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 5, 20, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

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

.modal-scroll-content {
    overflow-y: auto;
    padding: 40px;
}

.modal-scroll-content h2 {
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--muted-label);
    margin-bottom: 24px;
}

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

.modal-scroll-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.address-highlight {
    background-color: var(--card-bg-alt);
    padding: 16px;
    border-radius: 8px;
    border-left: 2px solid var(--accent-primary);
    margin-top: 16px;
}