/* ======================================================
   SC Confirm — custom confirm dialog
   ====================================================== */

.sc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 200ms ease, backdrop-filter 200ms ease, -webkit-backdrop-filter 200ms ease;
}

.sc-confirm-overlay.is-visible {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sc-confirm-dialog {
    width: 100%;
    max-width: 320px;
    margin: 16px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 20px;
    opacity: 0;
    transform: scale(0.94) translateY(6px);
    transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.sc-confirm-overlay.is-visible .sc-confirm-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.sc-confirm__title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.sc-confirm__message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px;
    line-height: 1.5;
}

.sc-confirm__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sc-confirm__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 150ms ease, opacity 150ms ease;
}

.sc-confirm__btn--cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}
.sc-confirm__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sc-confirm__btn--ok {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.sc-confirm__btn--ok:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sc-confirm__btn--ok.is-danger {
    background: rgba(226, 85, 75, 0.2);
    color: #e2554b;
}
.sc-confirm__btn--ok.is-danger:hover {
    background: rgba(226, 85, 75, 0.9);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .sc-confirm-overlay,
    .sc-confirm-dialog { transition: opacity 120ms ease; }
    .sc-confirm-dialog { transform: none; }
    .sc-confirm-overlay.is-visible .sc-confirm-dialog { transform: none; }
}
