#toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.toast {
    width: 360px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    animation: toastIn .3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.toast.success .toast-icon,
.toast.success .toast-progress {
    background: #22c55e;
}

.toast.error .toast-icon,
.toast.error .toast-progress {
    background: #ef4444;
}

.toast.warning .toast-icon,
.toast.warning .toast-progress {
    background: #f59e0b;
}

.toast.info .toast-icon,
.toast.info .toast-progress {
    background: #3b82f6;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
}

.toast-message {
    font-size: 14px;
    opacity: .85;
    margin-top: 3px;
}

.toast-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: .7;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    height: 4px;
    width: 100%;
    animation-name: toastProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.toast-out {
    opacity: 0;
    transform: translateX(120%);
    transition: .3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 480px) {
    #toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        width: 100%;
    }
}