.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 35, 41, 0.45);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-card {
    background: #fff;
    padding: 1.75rem 1.5rem 1.35rem;
    border-radius: 8px;
    text-align: center;
    max-width: 22rem;
    margin: 0 1.25rem;
    border: 1px solid #dee0e3;
    box-shadow: 0 12px 40px rgba(31, 35, 41, 0.18);
}

.modal-icon-success {
    color: #2ea121;
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1;
}

.modal-icon-warning {
    color: #ff8800;
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1;
}

.modal-text {
    margin: 0 0 1.25rem;
    color: #646a73;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.modal-btn {
    background: #3370ff;
    color: #fff;
    border: none;
    padding: 0.5rem 1.35rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.modal-btn:hover {
    background: #245bdb;
}

.modal-btn:focus-visible {
    outline: 2px solid #3370ff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .modal-btn {
        transition: none;
    }
}
