/* ===== Cookie Consent Banner ===== */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #091650;
    padding: 24px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: cookieBannerSlideUp 0.4s ease-out;
}
@keyframes cookieBannerSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.cookie-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(10, 211, 239, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-banner-icon i {
    font-size: 22px;
    color: var(--accent);
}
.cookie-banner-text {
    flex: 1;
    min-width: 0;
}
.cookie-banner-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary--color);
    margin: 0 0 8px;
}
.cookie-banner-text p {
    font-size: 14px;
    line-height: 24px;
    color: var(--text-color);
    margin: 0;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.cookie-btn:hover {
    transform: translateY(-1px);
}
.cookie-btn-customize {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.cookie-btn-customize:hover {
    background: rgba(10, 211, 239, 0.1);
    color: #fff;
}
.cookie-btn-accept {
    background: var(--accent);
    color: var(--primary--color);
}
.cookie-btn-accept:hover {
    background: #0bb8d4;
    box-shadow: 0 4px 12px rgba(10, 211, 239, 0.4);
}
.cookie-btn-necessary {
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn-necessary:hover {
    background: rgba(255,255,255,0.15);
    color: var(--primary--color);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.15);
    color: var(--primary--color);
}

.cookie-btn-save {
    background: rgba(10, 211, 239, 0.15);
    color: var(--accent);
    border: 1px solid rgba(10, 211, 239, 0.3);
}
.cookie-btn-save:hover {
    background: rgba(10, 211, 239, 0.25);
    color: var(--primary--color);
}

/* ===== Cookie Preference Overlay ===== */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookieOverlayFadeIn 0.3s ease-out;
}
@keyframes cookieOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal {
    background: #1a2340;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: cookieModalSlideUp 0.3s ease-out;
    overflow: hidden;
}
@keyframes cookieModalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cookie-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary--color);
    margin: 0;
}
.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.cookie-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary--color);
}

.cookie-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cookie-category-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary--color);
}
.cookie-category-always {
    font-size: 12px;
    color: var(--accent);
    background: rgba(10, 211, 239, 0.12);
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
}
.cookie-category-desc {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-color);
    margin: 0;
    padding-left: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.cookie-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-toggle-slider {
    display: inline-block;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}
.cookie-toggle-slider::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s;
}
.cookie-toggle-input:checked + .cookie-toggle-slider {
    background: var(--accent);
}
.cookie-toggle-input:checked + .cookie-toggle-slider::after {
    transform: translateX(20px);
}
.cookie-toggle-input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .cookie-banner-content {
        flex-wrap: wrap;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }
    .cookie-modal {
        max-width: 90%;
    }
    .cookie-modal-footer {
        justify-content: center;
    }
}
@media screen and (max-width: 767px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cookie-banner-text p {
        font-size: 13px;
    }
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .cookie-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    .cookie-modal {
        width: 95%;
        max-height: 90vh;
    }
    .cookie-modal-body {
        padding: 8px 16px;
    }
    .cookie-modal-footer {
        justify-content: center;
        flex-wrap: wrap;
    }
}
