/* ===== Cookie notice (GDPR-style info strip) ===== */
.cookie-notice-skip .cookie-notice {
    display: none !important;
}

.cookie-notice {
    --cookie-notice-bg: rgba(10, 12, 22, 0.94);
    --cookie-notice-border: rgba(0, 240, 255, 0.22);
    --cookie-notice-text: #b8c0d0;
    --cookie-notice-link: var(--neon-cyan, #00f0ff);
    --cookie-notice-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 240, 255, 0.08);
    --cookie-safe-bottom: env(safe-area-inset-bottom, 0px);
    --cookie-safe-left: env(safe-area-inset-left, 0px);
    --cookie-safe-right: env(safe-area-inset-right, 0px);

    position: fixed;
    left: 50%;
    bottom: calc(1rem + var(--cookie-safe-bottom));
    transform: translateX(-50%);
    z-index: 997;
    display: flex;
    align-items: center;
    gap: 0.65rem 0.85rem;
    width: min(92vw, 520px);
    max-width: calc(100vw - 2rem - var(--cookie-safe-left) - var(--cookie-safe-right));
    padding: 0.55rem 0.55rem 0.55rem 0.85rem;
    border: 1px solid var(--cookie-notice-border);
    border-radius: 12px;
    background: var(--cookie-notice-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--cookie-notice-shadow);
    color: var(--cookie-notice-text);
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 0.78rem;
    line-height: 1.45;
    animation: cookieNoticeIn 0.35s ease-out;
}

@keyframes cookieNoticeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice {
        animation: none;
    }

    .cookie-notice.is-hiding {
        transition: none;
    }
}

.cookie-notice.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.cookie-notice__text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-notice__link {
    color: var(--cookie-notice-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-notice__link:hover,
.cookie-notice__link:focus-visible {
    color: #fff;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.cookie-notice__accept {
    min-height: 32px;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(0, 240, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cookie-notice-link);
    font-family: var(--font-display, 'Exo 2', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-notice__accept:hover,
.cookie-notice__accept:focus-visible {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--cookie-notice-link);
    color: #fff;
}

.cookie-notice__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #9aa3b5;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-notice__close:hover,
.cookie-notice__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 480px) {
    .cookie-notice {
        flex-wrap: wrap;
        align-items: flex-start;
        bottom: calc(0.75rem + var(--cookie-safe-bottom));
        padding: 0.65rem 0.65rem 0.65rem 0.75rem;
        font-size: 0.74rem;
    }

    .cookie-notice__actions {
        margin-left: auto;
    }

    .cookie-notice__close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .cookie-notice__accept {
        min-height: 44px;
        padding: 0.55rem 1rem;
    }
}

/* Keep above back-to-top / lang float on small screens */
@media (max-width: 768px) {
    .cookie-notice {
        bottom: calc(4.5rem + var(--cookie-safe-bottom));
    }
}
