/* ===== Overlay + Modal (SweetAlert vibe) ===== */
.rc-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.rc-alert-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.rc-alert {
    width: min(520px, 92vw);
    border-radius: 20px;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(100, 116, 139, .22);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(2, 5, 19, 0.45) inset;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
    overflow: hidden;
}

.rc-alert-overlay.open .rc-alert {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.rc-alert-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px 18px;
    border-bottom: 1px solid rgba(100, 116, 139, .18);
    background: linear-gradient(180deg, rgba(69, 71, 161, 0.1), transparent);
}

.rc-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, .14);
    border: 1px solid rgba(129, 140, 248, .26);
    box-shadow: 0 10px 26px rgba(99, 102, 241, .18);
    flex: 0 0 auto;
}

.rc-alert-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    line-height: 1.2;
}

.rc-alert-sub {
    font-size: .92rem;
    color: rgba(255, 255, 255, .62);
    margin-top: 2px;
}

.rc-alert-body {
    padding: 16px 18px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
    font-size: .95rem;
}

.rc-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 18px 18px 18px;
    border-top: 1px solid rgba(100, 116, 139, .16);
    background: rgba(2, 6, 23, .18);
}

/* Buttons */
.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.05rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(100, 116, 139, .22);
    background: rgba(15, 23, 42, .35);
    color: rgba(255, 255, 255, .86);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
    user-select: none;
}

.rc-btn:hover {
    transform: translate3d(0, -1px, 0);
    border-color: rgba(129, 140, 248, .34);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    filter: brightness(1.05);
}

.rc-btn:active {
    transform: translate3d(0, 0, 0);
    filter: brightness(.98);
}

.rc-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .22), 0 10px 28px rgba(0, 0, 0, .35);
}

.rc-btn.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(129, 140, 248, .85));
    border-color: rgba(129, 140, 248, .35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .40), 0 0 18px rgba(99, 102, 241, .18);
    color: rgba(255, 255, 255, .95);
}

.rc-btn.primary:hover {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .48), 0 0 22px rgba(99, 102, 241, .24);
}

.rc-btn.danger {
    background: rgba(239, 68, 68, .16);
    border-color: rgba(239, 68, 68, .28);
}

/* ===== Toast (top-right) ===== */
.rc-toast-wrap {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.rc-toast {
    pointer-events: auto;
    width: min(420px, 92vw);
    border-radius: 16px;
    background: rgba(15, 23, 42, .75);
    border: 1px solid rgba(100, 116, 139, .22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transform: translateY(-6px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
}

.rc-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.rc-toast .t-ic {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, .14);
    border: 1px solid rgba(129, 140, 248, .26);
    flex: 0 0 auto;
}

.rc-toast .t-title {
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    font-size: .92rem;
    line-height: 1.2;
}

.rc-toast .t-msg {
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    margin-top: 2px;
    line-height: 1.45;
}