.toast-container {
    position: fixed;
    top: var(--site-notification-top, calc(env(safe-area-inset-top, 0px) + 12px));
    right: 20px;
    z-index: 10000000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #23273a;
    color: #e2e8f0;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    min-width: 280px;
    max-width: 350px;
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 700;
}

.toast-message {
    font-size: 0.9em;
    opacity: 0.9;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}
.toast-close:hover {
    opacity: 1;
} 


/* Promo Popups Global Styling (Ensures Notifications Are Visible on Home & All Pages on Top of Modals) */
#promo-popups, .promo-popups {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 90vw !important;
    pointer-events: none !important;
    right: auto !important;
    margin: 0 auto !important;
}

.promo-popup {
    pointer-events: auto !important;
    max-width: 90vw !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45) !important;
    padding: 16px 38px 16px 22px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    position: relative !important;
    margin: 0 auto !important;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    text-align: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    z-index: 2147483647 !important;
}

.promo-popup.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.promo-popup.hide {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none !important;
}

.promo-popup .popup-message {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    white-space: pre-line !important;
    color: #ffffff !important;
}

.promo-popup .popup-icon {
    flex: 0 0 auto !important;
    line-height: 1 !important;
    font-size: 1.1em !important;
}

.promo-popup .popup-close {
    background: rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    margin-left: auto !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s, background 0.2s !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.promo-popup .popup-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 768px) {
    #promo-popups, .promo-popups {
        top: 14px !important;
        bottom: auto !important;
        max-width: 95vw !important;
    }
    .promo-popup {
        padding: 13px 34px 13px 16px !important;
        font-size: 0.95rem !important;
    }
}
