.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.52);
}

.app-dialog-backdrop.is-visible {
    display: flex;
}

.app-dialog {
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.28);
    animation: appDialogIn 0.18s ease-out;
}

.app-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #061126;
    color: #ffffff;
}

.app-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(251, 191, 36, 0.9);
    border-radius: 10px;
    background: #fbbf24;
    color: #061126;
    font-weight: 900;
}

.app-dialog-icon.is-hidden {
    display: none;
}

.app-dialog-title {
    flex: 1;
    margin: 0;
    color: #ffd700;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.app-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.app-dialog-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.app-dialog-body {
    padding: 22px 22px 8px;
}

.app-dialog-message {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.app-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px 22px;
}

.app-dialog-button {
    min-width: 92px;
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: #061126;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.app-dialog-button:hover {
    background: #101b2e;
}

.app-dialog.is-success .app-dialog-icon {
    border-color: rgba(251, 191, 36, 0.9);
    color: #061126;
}

.app-dialog.is-error .app-dialog-icon {
    border-color: rgba(251, 191, 36, 0.9);
    color: #061126;
}

.app-dialog.is-warning .app-dialog-icon {
    border-color: rgba(251, 191, 36, 0.9);
    color: #061126;
}

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

@media (max-width: 420px) {
    .app-dialog-header {
        padding: 16px;
    }

    .app-dialog-body {
        padding: 18px 18px 6px;
    }

    .app-dialog-footer {
        padding: 16px 18px 18px;
    }
}
