.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 40px));
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: #152520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.toast--leaving {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
}

.toast--success {
    border-color: rgba(61, 153, 112, 0.45);
}

.toast--error {
    border-color: rgba(224, 92, 106, 0.45);
}

.toast__icon-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
}

.toast__icon {
    display: block;
}

.toast--success .toast__icon-wrap {
    background: rgba(61, 153, 112, 0.16);
    color: #3d9970;
}

.toast--error .toast__icon-wrap {
    background: rgba(224, 92, 106, 0.16);
    color: #e05c6a;
}

.toast__message {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-weight: 500;
}

.toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.toast__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .toast-stack {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: stretch;
        max-width: none;
    }

    .toast {
        font-size: 13px;
    }
}
