.x-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

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

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.x-confirm-modal.is-active {
    visibility: visible;
    opacity: 1;
}

/* Overlay */
.x-confirm-modal .x-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

/* Dialog */
.x-confirm-modal .x-modal-dialog {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);

    transform: translateY(-30px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(.22,1,.36,1),
        opacity 0.35s ease;
}

.x-confirm-modal.is-active .x-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header */
.x-confirm-modal .x-modal-header {
    text-align: center;
}

.x-confirm-modal .x-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;

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

.x-confirm-modal .x-icon svg {
    width: 30px;
    height: 30px;
}

.x-confirm-modal h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

/* Body */
.x-confirm-modal .x-modal-body {
    margin-top: 12px;
    text-align: center;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Actions */
.x-confirm-modal .x-modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.x-confirm-modal button {
    padding: 11px 20px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.x-confirm-modal .x-confirm-btn {
    background: #dc2626;
    color: #ffffff;
}

.x-confirm-modal .x-confirm-btn:hover {
    background: #b91c1c;
}

.x-confirm-modal .x-cancel-btn {
    background: #e5e7eb;
    color: #374151;
}

.x-confirm-modal .x-cancel-btn:hover {
    background: #d1d5db;
}

/* Body lock */
body.x-modal-open {
    overflow: hidden;
}
