.cookie-consent {
    position: fixed;
    left: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 2000;
}

.cookie-consent.is-hidden {
    display: none;
}

.cookie-consent__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 1rem;
    background: rgba(8, 10, 15, 0.96);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.48);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.cookie-consent__copy {
    min-width: 0;
}

.cookie-consent__title {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.cookie-consent__copy p:not(.cookie-consent__title) {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-consent__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 116px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(245,197,24,0.42);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255,255,255,0.05);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.1;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    color: var(--yellow);
}

.cookie-consent__button--choice {
    min-width: 124px;
}

.cookie-consent__button--ghost {
    border-color: var(--border);
    color: var(--text-muted);
}

.cookie-consent__button--save {
    background: var(--yellow);
    color: #000;
    border-color: var(--yellow);
}

.cookie-consent__button--save:hover,
.cookie-consent__button--save:focus-visible {
    background: var(--yellow-hover);
    color: #000;
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    box-shadow: 0 24px 90px rgba(0,0,0,0.55);
}

.cookie-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
    color: var(--yellow);
    border-color: var(--yellow);
}

.cookie-modal__header {
    padding-right: 3rem;
}

.cookie-modal__eyebrow {
    margin-bottom: 0.6rem;
    color: var(--yellow);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cookie-modal__header h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cookie-modal__header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.cookie-modal__categories {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
}

.cookie-category--locked {
    opacity: 0.82;
}

.cookie-category__text {
    min-width: 0;
}

.cookie-category__title,
.cookie-category__desc {
    display: block;
}

.cookie-category__title {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-weight: 700;
}

.cookie-category__desc {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch span {
    position: relative;
    width: 50px;
    height: 28px;
    display: block;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    transition: background var(--dur-fast), border-color var(--dur-fast);
}

.cookie-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform var(--dur-fast), background var(--dur-fast);
}

.cookie-switch input:checked + span {
    border-color: rgba(245,197,24,0.65);
    background: rgba(245,197,24,0.18);
}

.cookie-switch input:checked + span::after {
    transform: translateX(22px);
    background: var(--yellow);
}

.cookie-switch input:focus-visible + span {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

body.cookie-modal-open {
    overflow: hidden;
}

.consent-embed {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(245,197,24,0.08), transparent 68%),
        var(--surface);
    color: var(--text);
}

.landing-video > .consent-embed {
    position: absolute;
    inset: 0;
}

.landing-video > .consent-embed,
.sim-video > .consent-embed {
    min-height: 0;
}

.consent-embed__inner {
    max-width: 520px;
    text-align: center;
}

.consent-embed__title {
    margin-bottom: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

.consent-embed__text {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.consent-embed.is-loaded {
    display: block;
    min-height: 0;
    padding: 0;
    background: #000;
}

.consent-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 760px) {
    .cookie-consent__body {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions,
    .cookie-modal__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1 1 140px;
    }
}

@media (max-width: 520px) {
    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-consent__button {
        width: 100%;
    }

    .cookie-modal {
        align-items: start;
        padding: 0.75rem;
    }

    .cookie-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        padding: 1rem;
    }

    .cookie-modal__header {
        padding-right: 2.75rem;
    }

    .cookie-modal__header h2 {
        font-size: 1.7rem;
    }

    .cookie-modal__header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cookie-modal__categories {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .cookie-category {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .cookie-category__desc {
        font-size: 0.8rem;
    }

    .cookie-switch {
        justify-self: end;
    }

    .cookie-modal__actions {
        position: sticky;
        bottom: -1rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 -1rem -1rem;
        padding: 0.75rem 1rem 1rem;
        background: linear-gradient(180deg, rgba(13,17,23,0.84), var(--bg-elevated) 28%);
        border-top: 1px solid var(--border);
    }

    .cookie-modal__actions .cookie-consent__button {
        min-width: 0;
    }

    .cookie-modal__actions .cookie-consent__button--save {
        grid-column: 1 / -1;
    }
}
