.elx-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.elx-modal.is-active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.elx-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,0.72);

    backdrop-filter: blur(10px);
}

.elx-modal-card {

    position: relative;

    width: 100%;

    max-width: 420px;

    padding: 32px;

    border-radius: 28px;

    background:
        rgba(18,18,20,0.96);

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 40px 120px rgba(0,0,0,0.45);

    z-index: 2;
}

.elx-modal-icon {

    width: 62px;
    height: 62px;

    margin-bottom: 24px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,0.06);

    color: white;

    font-size: 1.35rem;
}

.elx-modal-title {

    margin:
        0 0 12px;

    font-size: 1.5rem;

    letter-spacing: -0.04em;
}

.elx-modal-text {

    margin: 0;

    color: var(--text-soft);

    line-height: 1.7;
}

.elx-modal-actions {

    margin-top: 32px;

    display: flex;

    justify-content: flex-end;

    gap: 12px;
}

@media (max-width: 768px) {

    .elx-modal {

        padding: 18px;
    }

    .elx-modal-card {

        padding: 24px;
    }

    .elx-modal-actions {

        flex-direction: column;
    }

    .elx-modal-actions .btn {

        width: 100%;
    }
}