/* Consent Banner Styling */
.consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: rgba(25, 25, 35, 0.7);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    z-index: 999999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Inter', sans-serif;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-banner.show {
    transform: translateY(0);
}

.consent-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.consent-title i {
    color: #7c4dff;
    font-size: 1.2em;
}

.consent-text {
    font-size: 0.92em;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
    font-weight: 400;
}

.consent-buttons {
    display: flex;
    gap: 12px;
}

.consent-btn {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-align: center;
}

.consent-btn-allow {
    background: linear-gradient(135deg, #7c4dff 0%, #4527a0 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.consent-btn-allow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
    filter: brightness(1.1);
}

.consent-btn-manage {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-btn-manage:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Styling */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-modal-content {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-info h4 {
    margin: 0 0 4px 0;
    font-size: 1em;
}

.option-info p {
    margin: 0;
    font-size: 0.8em;
    color: #999;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #7c4dff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background: #7c4dff;
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .consent-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 20px;
    }
}
