﻿﻿.ui-alert-backdrop {
    z-index: 400;
}

.ui-alert-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(.96);
    width: min(400px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--panel, #12161C);
    border: 1px solid var(--border, #232A35);
    border-radius: 18px;
    padding: 26px 22px 22px;
    text-align: center;
    z-index: 401;
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

    .ui-alert-modal.is-open {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

.ui-alert-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: uiAlertPop .35s var(--ease, ease) both;
}

    .ui-alert-icon.type-error {
        background: rgba(var(--bear-rgb, 240, 70, 92), .14);
        color: var(--bear, #F0465C);
    }

    .ui-alert-icon.type-success {
        background: rgba(var(--bull-rgb, 23, 199, 135), .14);
        color: var(--bull, #17C787);
    }

    .ui-alert-icon.type-info,
    .ui-alert-icon.type-question {
        background: rgba(var(--gold-rgb, 232, 185, 35), .14);
        color: var(--gold, #E8B923);
    }

@keyframes uiAlertPop {
    from {
        transform: scale(.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ui-alert-title {
    font-size: 16px;
    color: var(--text, #E7EAEE);
    margin: 0 0 6px;
}

.ui-alert-message {
    font-size: 13px;
    color: var(--muted, #8A93A3);
    line-height: 1.8;
    margin: 0 0 20px;
    text-align: right;
    direction: rtl;
}

    .ui-alert-message hr {
        border: none;
        border-top: 1px solid var(--border, #232A35);
        margin: 12px 0;
    }

.ui-alert-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ui-alert-btn {
    flex: 1;
    min-width: 80px;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform .15s ease;
}

    .ui-alert-btn:hover {
        transform: translateY(-1px);
    }

    .ui-alert-btn.is-primary {
        background: linear-gradient(135deg, var(--gold, #E8B923), #b8860b);
        color: #14110a;
    }

    .ui-alert-btn.is-ghost {
        background: transparent;
        border: 1px solid var(--border, #232A35);
        color: var(--muted, #8A93A3);
    }

    .ui-alert-btn.is-primary:active {
        transform: scale(.97);
    }

    .ui-alert-btn.is-ghost:active {
        transform: scale(.97);
    }

@media (max-width: 480px) {
    .ui-alert-modal {
        width: 94vw;
        padding: 20px 16px 18px;
    }

    .ui-alert-btn {
        font-size: 12px;
        padding: 10px;
        min-width: 60px;
    }

    .ui-alert-message {
        font-size: 12px;
    }
}
