#toast {
    visibility: hidden;
    margin: 0 auto;
    background-color: rgba(51,51,51,0.95);
    color: #fff;
    border-radius: 8px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    bottom: 30px;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    pointer-events: none; /* allow clicks through when hidden */
}

.toast-inner{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

#toast #img{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    color: #ffd166; /* accent color for icon */
    font-size: 18px;
}

#toast #desc{
    color: #fff;
    padding-right: 6px;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#toast.show {
    visibility: visible;
    pointer-events: auto;
    animation: toastIn 420ms cubic-bezier(.22,.9,.32,1), toastOut 420ms cubic-bezier(.22,.9,.32,1) 3.0s forwards;
}

@keyframes toastIn {
    from {opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.98);} 
    to   {opacity: 1; transform: translateX(-50%) translateY(0) scale(1);} 
}

@keyframes toastOut {
    from {opacity: 1; transform: translateX(-50%) translateY(0) scale(1);} 
    to   {opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.96);} 
}

/* small responsive tweak */
@media (max-width: 420px){
    #toast #desc{ max-width: 85vw; }
    #toast { bottom: 18px; }
}