/* ============================================
   Confirm Modal – Platform‑themed dialog
   ============================================ */

/* ── Overlay / Root ────────────────────────── */

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

/* ── Backdrop ──────────────────────────────── */

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Dialog Card ───────────────────────────── */

.confirm-modal__dialog {
    position: relative;
    background: var(--background-light, #141824);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12));
    border-radius: 16px;
    width: 92%;
    max-width: 420px;
    padding: 32px 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.6)),
                0 0 60px rgba(0, 217, 255, 0.06);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal--visible .confirm-modal__dialog {
    transform: scale(1) translateY(0);
}

/* ── Icon ──────────────────────────────────── */

.confirm-modal__icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
    user-select: none;
}

/* ── Title ─────────────────────────────────── */

.confirm-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    letter-spacing: 0.02em;
}

/* ── Message ───────────────────────────────── */

.confirm-modal__message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary, #b4bcd0);
}

/* ── Actions Row ───────────────────────────── */

.confirm-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Base Button ───────────────────────────── */

.confirm-modal__btn {
    flex: 1;
    max-width: 170px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-lg, 0.5rem);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    outline: none;
}

.confirm-modal__btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color, #00d9ff);
}

.confirm-modal__btn:active {
    transform: scale(0.97);
}

/* ── Cancel ────────────────────────────────── */

.confirm-modal__btn--cancel {
    background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
    color: var(--text-secondary, #b4bcd0);
}

.confirm-modal__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
}

/* ── Danger ────────────────────────────────── */

.confirm-modal__btn--danger {
    background: var(--error, #ff3d71);
    color: #fff;
}

.confirm-modal__btn--danger:hover {
    background: #e6365f;
    box-shadow: 0 4px 16px rgba(255, 61, 113, 0.35);
}

/* ── Warning ───────────────────────────────── */

.confirm-modal__btn--warning {
    background: var(--warning, #ffc107);
    color: #1a1a2e;
}

.confirm-modal__btn--warning:hover {
    background: #e6ad00;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

/* ── Primary / Default ─────────────────────── */

.confirm-modal__btn--primary {
    background: var(--primary-color, #00d9ff);
    color: #0a0e17;
}

.confirm-modal__btn--primary:hover {
    background: var(--primary-dark, #00b8d4);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 480px) {
    .confirm-modal__dialog {
        width: 96%;
        padding: 24px 18px 20px;
    }

    .confirm-modal__icon {
        font-size: 34px;
    }

    .confirm-modal__title {
        font-size: 18px;
    }

    .confirm-modal__message {
        font-size: 13px;
    }

    .confirm-modal__actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .confirm-modal__btn {
        max-width: 100%;
    }
}
