/**
 * PremiumToast (notyf) — dùng chung với layouts/vendor-scripts.php và premium-toast-standalone.php
 */
.premium-toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    min-width: 260px;
    max-width: min(92vw, 560px);
    pointer-events: auto;
}

.premium-toast.show {
    transform: translateX(0);
    opacity: 1;
}

#premiumToastContainer {
    z-index: 2147483647 !important;
    pointer-events: none;
}

body.dark-mode .premium-toast {
    background: #232333 !important;
    border: 1px solid #444960 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.premium-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-success-icon {
    background: rgba(113, 221, 55, 0.15);
    color: #71dd37;
}

.toast-error-icon {
    background: rgba(255, 62, 29, 0.15);
    color: #ff3e1d;
}

.toast-info-icon {
    background: rgba(115, 103, 240, 0.15);
    color: #7367f0;
}

.toast-warning-icon {
    background: rgba(255, 171, 0, 0.15);
    color: #ffab00;
}

.premium-toast-msg {
    color: #384551;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

body.dark-mode .premium-toast-msg {
    color: #e3e4ff;
}

@media (max-width: 576px) {
    #premiumToastContainer {
        position: fixed !important;
        left: max(10px, env(safe-area-inset-left)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        top: max(10px, env(safe-area-inset-top)) !important;
        width: auto !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .premium-toast {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        transform: translateY(-120%);
    }

    .premium-toast.show {
        transform: translateY(0);
    }
}
