/* ROOT AND RESET SYSTEM */
:root {
    --bg-primary: #f8f5ee;
    --bg-secondary: #eeeadf;
    --bg-card: #ffffff;
    --text-primary: #1f2933;
    --text-secondary: #606c78;
    --border-divider: #ddd5c7;

    /* Soft, colorful fluid palette */
    --bubblegum: #ffd3da;
    --bubblegum-dark: #f09ea9;
    --sky: #bfe3ff;
    --sky-dark: #8cbade;
    --mint: #e2faf0;
    --mint-dark: #a2dbca;
    --peach: #ffe9db;
    --peach-dark: #e8bea2;
    --lavender: #f3ebff;
    --lavender-dark: #caa9f5;

    /* Theme structural accents */
    --accent-primary: #214e3f;
    --accent-secondary: #3b5b7a;
    --accent-tertiary: #b08968;

    /* Transition speeds */
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .font-playfair {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

/* GLOBAL LAYOUT */
header, main, footer {
    width: 100%;
    margin: 0 auto;
}

section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px;
    position: relative;
}

/* HELPER COMPONENTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(33, 78, 63, 0.15);
}

.btn-primary:hover {
    background-color: #16362b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 78, 63, 0.25);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-divider);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-tag {
    color: var(--accent-tertiary);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

/* LIQUID SHAPES / BLOBS */
.fluid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: liquid-morph 15s infinite alternate ease-in-out;
}

.fluid-blob-1 {
    top: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--bubblegum);
}

.fluid-blob-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--sky);
    animation-delay: -5s;
}

.fluid-blob-3 {
    bottom: 10%;
    left: 10%;
    width: 450px;
    height: 450px;
    background-color: var(--mint);
    animation-delay: -10s;
}

@keyframes liquid-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        border-radius: 30% 60% 70% 30% / 50% 60% 30% 60%;
        transform: translate(40px, -60px) scale(1.1) rotate(180deg);
    }
    100% {
        border-radius: 50% 50% 20% 80% / 20% 50% 50% 80%;
        transform: translate(-20px, 30px) scale(0.9) rotate(360deg);
    }
}

/* STICKY HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(248, 245, 238, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-divider);
    transition: all 0.3s ease;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-blob {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--bubblegum), var(--sky));
    border-radius: 50% 40% 60% 30% / 40% 50% 30% 60%;
    animation: liquid-morph 4s infinite alternate ease-in-out;
}

.brand-text {
    font-family: "Fredoka", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.header-cta {
    background-color: var(--accent-primary);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-cta:hover {
    background-color: #16362b;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px 24px;
}

.hero-badge {
    background-color: var(--bg-card);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--border-divider);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--bubblegum-dark);
    border-radius: 50%;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text-primary);
    max-width: 900px;
    margin-bottom: 24px;
}

.hero-title .highlight-text {
    background: linear-gradient(120deg, var(--bubblegum-dark), var(--sky-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 40px;
}

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

/* CONTENDERS / TITLE RACE */
.title-race-section {
    background-color: var(--bg-secondary);
    border-radius: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.favorite-card {
    background-color: var(--bg-card);
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-divider);
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}

.fav-card-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    z-index: 1;
}

.blob-peach { background-color: var(--peach); }
.blob-sky { background-color: var(--sky); }
.blob-mint { background-color: var(--mint); }
.blob-lavender { background-color: var(--lavender); }
.blob-pink { background-color: var(--bubblegum); }

.fav-card-content {
    position: relative;
    z-index: 2;
}

.fav-rank {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-tertiary);
    margin-bottom: 8px;
    display: block;
}

.fav-country {
    font-size: 2rem;
    margin-bottom: 12px;
}

.fav-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 12px;
}

.fav-group, .fav-odds {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fav-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chance-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.chance-label { color: var(--text-secondary); }
.chance-value { color: var(--accent-primary); }

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 4px;
}

/* TOP 10 MATCHUPS SECTION */
.matchups-section {
    padding-top: 80px;
}

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

.match-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    border: 2px solid var(--border-divider);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: border-color 0.3s ease, transform 0.3s var(--transition-smooth);
}

.match-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-4px);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.group-label {
    background-color: var(--lavender);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.higher-rank-tag {
    font-size: 0.75rem;
    background-color: var(--mint);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

.match-card-title {
    font-size: 1.55rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.vs-text {
    font-family: "Fredoka", sans-serif;
    color: var(--accent-tertiary);
    font-size: 1.1rem;
    margin: 0 4px;
}

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

.match-card-stats {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-col:first-child {
    border-right: 1px solid var(--border-divider);
    padding-right: 12px;
}

.stat-col:last-child {
    padding-left: 12px;
}

.stat-team {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.stat-row span { color: var(--text-secondary); }
.stat-row strong { color: var(--text-primary); }

/* EXPANDED MATCH GUIDE BLOCKS */
.expanded-guide-section {
    background-color: var(--bg-secondary);
    border-radius: 40px;
}

.guide-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.guide-block {
    background-color: var(--bg-card);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-divider);
    box-shadow: 0 6px 18px rgba(0,0,0,0.01);
}

.guide-block-inner {
    position: relative;
    z-index: 2;
}

.guide-blob {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 1;
}

.guide-block:nth-child(even) .guide-blob {
    right: -50px;
    bottom: -50px;
}

.guide-block:nth-child(odd) .guide-blob {
    left: -50px;
    top: -50px;
}

.guide-block-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 16px;
}

.guide-group {
    background-color: var(--accent-primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.guide-title-tag {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.guide-comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-primary);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

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

.comp-team.text-left { text-align: left; }
.comp-team.text-right { text-align: right; }

.comp-team strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.comp-team span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comp-divider {
    font-family: "Fredoka", sans-serif;
    background-color: var(--bubblegum);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
}

.guide-narrative h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
    margin-top: 16px;
}

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

/* GROUP BALANCE SECTION */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.group-box {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-divider);
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.group-box-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.group-box-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.group-box-header span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.group-box-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background-color: var(--bg-primary);
    font-size: 0.9rem;
}

.group-row.favorite-row {
    background-color: var(--mint);
    border: 1px solid var(--mint-dark);
}

.group-row span {
    font-weight: 600;
}

.group-verdict {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent-tertiary);
    margin-top: 8px;
}

/* HOST NATIONS WATCH */
.hosts-section {
    background-color: var(--bg-secondary);
    border-radius: 40px;
    margin-top: 40px;
}

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

.host-card {
    background-color: var(--bg-card);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid var(--border-divider);
    box-shadow: 0 6px 18px rgba(0,0,0,0.01);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.host-badge-label {
    font-family: "Fredoka", sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 4px 16px;
    background-color: var(--peach);
    border-radius: 20px;
}

.host-card:nth-child(2) .host-badge-label { background-color: var(--mint); }
.host-card:nth-child(3) .host-badge-label { background-color: var(--sky); }

.host-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.host-stat-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-divider);
}

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

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

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

/* EXPLANATORY SECTION */
.guide-explanatory {
    display: flex;
    justify-content: center;
}

.guide-explanatory-card {
    background-color: var(--bg-card);
    border-radius: 36px;
    padding: 56px;
    border: 1px solid var(--border-divider);
    position: relative;
    overflow: hidden;
    max-width: 960px;
}

.guide-explanatory-blob {
    position: absolute;
    right: -80px;
    top: -80px;
    width: 250px;
    height: 250px;
    background-color: var(--sky);
    filter: blur(60px);
    opacity: 0.5;
}

.guide-explanatory-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.guide-explanatory-card > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.guide-indicators-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

.ind-item h4 {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

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

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

.faq-item {
    background-color: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-divider);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 24px;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FOOTER */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-divider);
    padding: 80px 24px 40px 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.footer-brand .brand-text {
    font-size: 1.8rem;
}

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

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-links-col a, .footer-links-col button {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.footer-links-col a:hover, .footer-links-col button:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-divider);
    padding-top: 32px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.address-box {
    text-align: right;
    max-width: 450px;
}

.address-box span {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-tertiary);
}

.address-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-divider);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    z-index: 10000;
    transform: translateY(0);
    transition: transform 0.4s var(--transition-smooth), opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.cookie-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.cookie-btn.accept:hover {
    background-color: #16362b;
}

.cookie-btn.reject {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* MODAL SYSTEM FOR LEGAL PAGES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 41, 51, 0.4);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background-color: var(--bg-card);
    border-radius: 32px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    padding: 48px;
    position: relative;
    overflow-y: auto;
    border: 1px solid var(--border-divider);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--bg-secondary);
    border: none;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bubblegum);
}

.modal-tab-content.hidden {
    display: none;
}

.modal-tab-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-tab-content h3 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--accent-secondary);
}

.modal-tab-content .last-updated {
    font-size: 0.9rem;
    color: var(--accent-tertiary);
    margin-bottom: 24px;
    font-weight: 700;
}

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

.modal-tab-content ul {
    padding-left: 20px;
}

.address-box-block {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    section {
        padding: 64px 24px;
    }
}

@media (max-width: 992px) {
    .hosts-grid-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        padding: 24px;
        border-bottom: 1px solid var(--border-divider);
        gap: 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .address-box {
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 16px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .fav-country {
        font-size: 1.6rem;
    }
    .match-card {
        padding: 16px;
    }
    .comp-team strong {
        font-size: 1rem;
    }
    .guide-block {
        padding: 20px;
    }
    .guide-comparison-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .comp-team.text-left, .comp-team.text-right {
        text-align: center;
        width: 100%;
    }
}