.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 999;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    padding: 2rem;
    width: 90%;
    max-width: 920px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.35s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    font-size: 1.6rem;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

@media (max-width: 480px) {
    .modal {
        padding: 1.5rem;
    }
}