/* ===== CONSENT BANNER ===== */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgb(30, 5, 60) 0%, rgb(59, 7, 100) 100%);
    border-top: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
#consent-banner.visible {
    transform: translateY(0);
}
#consent-banner p {
    font-size: 0.85rem;
    color: rgba(196, 181, 253, 0.85);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 200px;
}
#consent-banner p a {
    color: rgba(57, 255, 20, 0.8);
    text-decoration: underline;
}
#consent-banner p a:hover {
    color: rgb(57, 255, 20);
}
.consent-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.consent-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.consent-btn:hover { opacity: 0.85; }
.consent-btn-accept {
    background: rgb(57, 255, 20);
    color: rgb(30, 5, 60);
}
.consent-btn-necessary {
    background: transparent;
    color: rgba(196, 181, 253, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.35);
}
.consent-btn-necessary:hover {
    color: #fff;
    border-color: rgba(167, 139, 250, 0.7);
    opacity: 1;
}
.consent-btn-settings {
    background: transparent;
    color: rgba(196, 181, 253, 0.5);
    border: none;
    text-decoration: underline;
    font-size: 0.7rem;
    padding: 0.5rem 0.25rem;
    letter-spacing: 0.05em;
}

/* ===== CONSENT MODAL ===== */
#consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 0, 30, 0.7);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#consent-overlay.open {
    display: flex;
}
#consent-modal {
    background: linear-gradient(160deg, rgb(35, 5, 75) 0%, rgb(59, 7, 100) 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}
#consent-modal h2 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}
#consent-modal > p {
    font-size: 0.8rem;
    color: rgba(196, 181, 253, 0.75);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
#consent-modal > p a {
    color: rgba(57, 255, 20, 0.8);
    text-decoration: underline;
}
.consent-category {
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(124, 58, 237, 0.08);
}
.consent-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.consent-category-header span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.consent-category p {
    font-size: 0.78rem;
    color: rgba(196, 181, 253, 0.7);
    line-height: 1.5;
    margin: 0;
}
.consent-always-on {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(57, 255, 20, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Toggle switch */
.consent-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.consent-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}
.consent-toggle-slider:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: rgba(196, 181, 253, 0.6);
    transition: transform 0.2s, background 0.2s;
}
.consent-toggle input:checked + .consent-toggle-slider {
    background: rgba(57, 255, 20, 0.25);
    border-color: rgba(57, 255, 20, 0.5);
}
.consent-toggle input:checked + .consent-toggle-slider:before {
    transform: translateX(18px);
    background: rgb(57, 255, 20);
}

.consent-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.consent-modal-actions .consent-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

#consent-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(196, 181, 253, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
#consent-close:hover { color: #fff; }
