/* toast.css */
.toast{
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(14px);
    opacity: 0;
    pointer-events: none;

    padding: 12px 14px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;

    box-shadow: 0 10px 25px rgba(17,24,39,0.18);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 99999;

    transition: opacity .18s ease, transform .18s ease;
    max-width: min(560px, calc(100vw - 24px));
    text-align: center;
}

.toast.show{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success{ background: #166534; }
.toast.error{ background: #991b1b; }
.toast.warn{ background: #92400e; }

/* If you have bottom mobile nav, keep toast above it */
@media (max-width: 800px){
    .toast{
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}
