/* ============================================
   COOKIE CONSENT BANNER + PREFERENCES MODAL
   ============================================ */

#cookieConsentBanner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: #0d1228;
    border-top: 1px solid rgba(0,255,135,0.25);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    padding: 1.25rem 1.5rem;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
#cookieConsentBanner.visible { transform: translateY(0); }

.consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.consent-icon {
    width: 44px; height: 44px;
    background: rgba(0,255,135,0.1);
    border: 1px solid rgba(0,255,135,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #00ff87;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.consent-text { flex: 1; min-width: 240px; }
.consent-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: #fff; }
.consent-text p {
    font-size: 0.825rem;
    color: #a0aec0;
    line-height: 1.55;
    margin: 0;
}
.consent-text a { color: #00ff87; text-decoration: underline; }
.consent-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.consent-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}
.consent-btn-reject {
    background: rgba(255,255,255,0.06);
    color: #d0d5e0;
    border: 1px solid rgba(255,255,255,0.15);
}
.consent-btn-reject:hover { background: rgba(255,255,255,0.1); color: #fff; }
.consent-btn-manage {
    background: transparent;
    color: #60efff;
    border: 1px solid rgba(96,239,255,0.3);
}
.consent-btn-manage:hover { background: rgba(96,239,255,0.08); }
.consent-btn-accept {
    background: linear-gradient(135deg,#00ff87,#60efff);
    color: #0a0e27;
    box-shadow: 0 0 16px rgba(0,255,135,0.3);
}
.consent-btn-accept:hover { box-shadow: 0 0 24px rgba(0,255,135,0.5); transform: translateY(-1px); }

/* ---- Manage Preferences Modal ---- */
#cookiePrefsOverlay {
    position: fixed; inset: 0;
    background: rgba(5,7,18,0.85);
    backdrop-filter: blur(3px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#cookiePrefsOverlay.visible { display: flex; }

.consent-modal {
    background: #151b35;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.consent-modal-header h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.75rem;
    color: #fff;
    margin: 0;
}
.consent-modal-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: #a0aec0;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.consent-modal-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.consent-modal-intro {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.consent-category {
    padding: 1rem;
    background: #0a0e27;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 0.875rem;
}
.consent-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.consent-category-head strong { color: #fff; font-size: 0.9rem; }
.consent-category p {
    color: #a0aec0;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.consent-toggle {
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.consent-toggle input {
    opacity: 0; width: 0; height: 0;
    position: absolute;
}
.consent-toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    cursor: pointer;
    transition: 0.25s;
}
.consent-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
}
.consent-toggle input:checked + .consent-toggle-slider {
    background: linear-gradient(135deg,#00ff87,#60efff);
}
.consent-toggle input:checked + .consent-toggle-slider::before {
    transform: translateX(20px);
}
.consent-toggle input:disabled + .consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}
.consent-locked-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}
.consent-modal-footer {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.consent-modal-footer .consent-btn { flex: 1; min-width: 120px; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .consent-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .consent-icon { margin: 0 auto; }
    .consent-actions { justify-content: center; }
    .consent-btn { flex: 1; }
}
