/* ========================================================
   REMASTERED CSS: LIVE TOAST WITHDRAW - PREMIUM GLASS GLOW
   ======================================================== */
.live-toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-box {
    pointer-events: auto;
    display: flex;
    align-items: center;
    /* Efek Kaca Transparan Gelap (Glassmorphism) */
    background: rgba(7, 7, 32, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Border Neon Glow Ungu Kombinasi Emas di Kiri */
    border: 1.5px solid rgba(21, 117, 207, 0.6);
    border-left: 5px solid #ffcc33; 
    
    padding: 12px 18px;
    border-radius: 12px;
    min-width: 310px;
    max-width: 340px;
    position: relative;
    overflow: hidden; /* Wajib ada untuk memotong efek kilatan cahaya */
    
    /* Bayangan Glow Mewah */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 
                0 0 15px rgba(21, 133, 207, 0.3);
                
    /* Animasi masuk bounce smooth */
    transform: translateX(-130%) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* Aktif saat muncul */
.toast-box.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Animasi keluar naik perlahan & menghilang */
.toast-box.fade-out {
    transform: translateY(-25px) scale(0.95);
    opacity: 0;
    transition: all 0.4s ease-in;
}

/* 🔥 PREMIUM EFFECT: Efek Kilatan Cahaya (Shimmer Wave) */
.toast-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25px);
    animation: shineWave 3s infinite ease-in-out;
}

@keyframes shineWave {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* Icon Checklist dengan Efek Ring-Glow */
.toast-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c53d 0%, #10b918 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(34, 99, 197, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Content Text Layout */
.toast-content {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.toast-user {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 11.5px;
    color: #cbd5e1; /* Warna teks abu terang agar kebaca jelas */
    font-weight: 400;
}

/* Nominal WD Emas Menyala */
.toast-amount {
    color: #ffcc33; 
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 204, 51, 0.4);
}

/* Badge Kecil "LIVE" di Pojok Kanan Atas Box */
.toast-box::after {
    content: 'LIVE';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 8px;
    font-weight: 900;
    color: #4488ef; /* Merah neon */
    background: rgba(94, 68, 239, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(85, 68, 239, 0.3);
    letter-spacing: 0.5px;
}

/* ========================================================
   RESPONSIVE: SETTING UNTUK MOBILE HP
   ======================================================== */
@media (max-width: 767px) {
    .live-toast-container {
        bottom: 80px; /* Di atas bottom navbar HP lo */
        left: 15px;
        right: 15px;
    }
    
    .toast-box {
        min-width: auto;
        max-width: 100%;
        padding: 10px 14px;
    }
    
    .toast-user {
        font-size: 12px;
    }
    
    .toast-desc {
        font-size: 10.5px;
    }
    
    .toast-box::after {
        display: none; /* Sembunyikan badge LIVE di HP biar gak sempit */
    }
}

/* Styling Wrapper Avatar/Logo Orang */
.toast-avatar-wrapper, .toast-logo-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    margin-right: 14px;
    flex-shrink: 0;
}

/* Gambar Avatar Orang */
.toast-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #103265 0%, #031126 100%);
    border-radius: 50%;
    border: 2px solid #156ccf;
    object-fit: cover;
}

/* Kalau Pakai Logo Sendiri */
.toast-site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 204, 51, 0.5));
}

/* Badge Centang Hijau Kecil Menempel di Pojok Bawah Avatar */
.toast-badge-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #2269c5;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #071120;
    box-shadow: 0 0 5px rgba(34, 110, 197, 0.8);
}