/* ==================================================
   PREMIUM TOASTER – GLASS + GLOW
================================================== */

#toast-container,
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 99999 !important;
    pointer-events: none;
}

/* ---------- Base Toast ---------- */
.toast {
    min-width: 320px;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(14px);
    background: rgba(20, 20, 20, 0.55);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: toastSlideIn 0.45s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
}

/* ---------- Toast Body ---------- */
.toast .toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- Icon ---------- */
.toast .toast-body i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* ---------- Close Button ---------- */
.toast .btn-close {
    margin-left: auto;
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* ---------- Progress Bar ---------- */
.toast .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.toast .progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.4));
    animation: toastProgress 2.8s linear forwards;
}

/* ==================================================
   VARIANTS WITH GLOW
================================================== */

.toast-success {
    background: linear-gradient(135deg, #0f9d58, #34c759);
    box-shadow: 0 0 25px rgba(52, 199, 89, 0.6);
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #ff4d4f);
    box-shadow: 0 0 25px rgba(255, 77, 79, 0.6);
}

.toast-warning {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.6);
}

.toast-info {
    background: linear-gradient(135deg, #0dcaf0, #2563eb);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
}

/* ==================================================
   ANIMATIONS
================================================== */

@keyframes toastSlideIn {
    from {
        transform: translateX(120%) scale(0.85);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}
/* ==================================================
   INFRACORE NATIVE TOASTER — NO BOOTSTRAP DEPENDENCY
================================================== */
#appToast.site-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(430px, calc(100vw - 30px));
    min-width: 0;
    padding: 16px 44px 17px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: rgba(18, 31, 45, 0.96);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 24px 55px rgba(15, 29, 43, .25);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px) scale(.97);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
    z-index: 99999 !important;
    pointer-events: none;
}

#appToast.site-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-toast-success { background: linear-gradient(135deg, #173b2a, #1d6a42) !important; }
.site-toast-error { background: linear-gradient(135deg, #4a1b21, #a6313d) !important; }
.site-toast-warning { background: linear-gradient(135deg, #50350b, #9d650b) !important; }
.site-toast-info { background: linear-gradient(135deg, #172d45, #2d5072) !important; }

.site-toast-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    font-weight: 900;
}

.site-toast-copy { min-width: 0; }
.site-toast-copy strong { display: block; font: 800 12px Manrope, sans-serif; margin-bottom: 3px; }
.site-toast-copy span { display: block; color: rgba(255,255,255,.82); font: 500 12px/1.5 'DM Sans', sans-serif; }
.site-toast-close { position:absolute; top:9px; right:11px; border:0; background:none; color:#fff; opacity:.65; cursor:pointer; font-size:22px; line-height:1; }
.site-toast-close:hover { opacity:1; }
.site-toast-progress { position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.12); }
.site-toast-progress span { display:block; height:100%; width:0; background:rgba(255,255,255,.85); }

@media (max-width: 600px) {
    #appToast.site-toast { right: 15px; bottom: 15px; width: calc(100vw - 30px); }
}
