.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    animation: toast-in 0.25s ease both;
}

.toast.toast--leaving {
    animation: toast-out 0.2s ease both;
}

.toast--success { background-color: #1d7a4c; }
.toast--error { background-color: #b3261e; }
.toast--info { background-color: #2563eb; }

.toast__icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.toast__message {
    flex: 1;
}

.toast__close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.75;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.toast__close:hover {
    opacity: 1;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}
