.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    width: min(390px, calc(100vw - 32px));
    min-height: 58px;
    padding: 0;
    border-radius: 8px;
    color: #151515;
    border: 1px solid rgba(20, 20, 20, 0.1);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 18px 48px rgba(20, 20, 20, 0.12);
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    overflow: hidden;
    transform: translate3d(24px, -8px, 0);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
    pointer-events: auto;
}

.toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #151515;
}

.toast-success::before {
    background: #16a34a;
}

.toast-error::before {
    background: #b91c1c;
}

.toast-warning::before {
    background: #d97706;
}

.toast-info::before {
    background: #2d43c7;
}

.toast.show {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.toast.hide {
    transform: translate3d(24px, -8px, 0);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 18px;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: #f2f2f0;
    color: #151515;
    margin-top: 1px;
}

.toast-icon i {
    font-size: 16px;
}

.toast-message {
    flex: 1;
    min-width: 0;
    color: #151515;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.toast-close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #686868;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.toast-close:hover {
    background: #f2f2f0;
    color: #151515;
}

.toast-success .toast-icon {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.toast-error .toast-icon {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.toast-warning .toast-icon {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.toast-info .toast-icon {
    background: rgba(45, 67, 199, 0.1);
    color: #2d43c7;
}

.legacy-toast-bridge {
    display: none;
}

@media (max-width: 900px) {
    .toast-container {
        top: 92px;
        right: 12px;
        left: 12px;
    }

    .toast {
        width: 100%;
    }
}
