.app-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.app-modal-backdrop.is-open {
    display: flex;
}

.app-modal {
    width: min(430px, 100%);
    background: #FFFFFF;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
    padding: 28px;
    position: relative;
    text-align: center;
    animation: modalIn 0.18s ease;
}

.app-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #F1F5F9;
    color: #334155;
    cursor: pointer;
    font-size: 20px;
}

.app-modal__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
}

.app-modal__icon--success {
    background: #DCFCE7;
    color: #166534;
}

.app-modal__icon--error {
    background: #FEE2E2;
    color: #991B1B;
}

.app-modal__icon--warning {
    background: #FEF3C7;
    color: #92400E;
}

.app-modal__icon--info {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.app-modal h2 {
    margin: 0 0 8px;
    color: #0F172A;
    font-size: 22px;
}

.app-modal p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.app-modal__actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
