/* ═══════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #0c1220;
    border-top: 2px solid #0d9373;
    border-radius: 16px 16px 0 0;
    padding: 24px 32px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.cookie-text {
    font-size: 0.88rem; color: rgba(255,255,255,0.75);
    line-height: 1.6; flex: 1;
}
.cookie-text a {
    color: #0d9373; text-decoration: underline;
}
.cookie-buttons {
    display: flex; gap: 10px; flex-shrink: 0;
}
.cookie-btn {
    padding: 12px 24px; border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none;
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.cookie-btn:hover {
    transform: translateY(-1px);
}
.cookie-btn-accept {
    background: #0d9373; color: #fff;
}
.cookie-btn-accept:hover {
    box-shadow: 0 4px 16px rgba(13,147,115,0.35);
}
.cookie-btn-manage {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.cookie-btn-manage:hover {
    border-color: rgba(255,255,255,0.5);
}

/* ── Manage Panel ── */
.cookie-manage-panel {
    display: none;
    background: #151b2e;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    max-width: 640px;
}
.cookie-manage-panel.open {
    display: block;
}
.cookie-category {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cookie-category:last-of-type {
    border-bottom: none;
}
.cookie-cat-info { flex: 1; }
.cookie-cat-name {
    font-size: 0.9rem; font-weight: 600; color: #fff;
    margin-bottom: 4px;
}
.cookie-cat-desc {
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* Toggle switch */
.cookie-toggle {
    position: relative; width: 44px; height: 24px;
    flex-shrink: 0; margin-top: 2px;
}
.cookie-toggle input {
    opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-toggle-track {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 12px; cursor: pointer;
    transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-track {
    background: #0d9373;
}
.cookie-toggle-track::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
    transform: translateX(20px);
}
.cookie-toggle.locked {
    opacity: 0.5; pointer-events: none;
}
.cookie-btn-save {
    margin-top: 16px;
    padding: 12px 24px; border-radius: 8px;
    background: #0d9373; color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: none;
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cookie-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,147,115,0.35);
}

/* ── Footer cookie link ── */
.footer-cookie-link {
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
    cursor: pointer; transition: color 0.2s;
    background: none; border: none; font-family: inherit;
    padding: 0;
}
.footer-cookie-link:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 20px;
        max-height: 40vh;
        overflow-y: auto;
    }
    .cookie-banner-inner {
        flex-direction: column; align-items: stretch; text-align: center;
        gap: 16px;
    }
    .cookie-text { font-size: 0.85rem; }
    .cookie-buttons {
        justify-content: center; gap: 12px;
    }
    .cookie-btn {
        flex: 1; min-height: 48px; font-size: 0.9rem;
    }
    .cookie-manage-panel {
        max-width: 100%;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }
    .cookie-btn-save {
        width: 100%; min-height: 48px;
    }
}
