.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    max-width: 420px;
    width: 90%;
    text-align: center;

    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content .close {
    float: right;
    font-size: 20px;
    border: none;
    background: none;
    cursor: pointer;
}