.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    width: auto;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.modern-toast {
    position: relative;
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e9e9ee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) translateX(20px);
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: auto;
}

    .modern-toast.show {
        opacity: 1;
        transform: translateY(0) translateX(0);
        visibility: visible;
    }

.toast-content {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px 10px 14px;
}

/* Icon */
.toast-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 10px;
    background: #f0efff;
    color: #635bff;
    font-size: 16px;
}

/* Text */
.toast-body {
    flex: 1;
    min-width: 0;
}

    .toast-body small {
        display: block;
        margin: 0;
        color: #2d2d32;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.45;
    }

/* Close */
.toast-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .toast-close:hover {
        background: #f5f5f7;
        color: #333;
    }


/* Left accent */
.modern-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #635bff;
}


/* Success */
.modern-toast.success::before {
    background: #22a06b;
}

.modern-toast.success .toast-icon {
    background: #eaf8f1;
    color: #22a06b;
}


/* Error */
.modern-toast.error::before {
    background: #dc4c4c;
}

.modern-toast.error .toast-icon {
    background: #fceeee;
    color: #dc4c4c;
}


/* Warning */
.modern-toast.warning::before {
    background: #e5a11a;
}

.modern-toast.warning .toast-icon {
    background: #fff7e6;
    color: #e5a11a;
}


/* Info */
.modern-toast.info::before {
    background: #635bff;
}

.modern-toast.info .toast-icon {
    background: #f0efff;
    color: #635bff;
}


/* Mobile */
@media (max-width: 576px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .modern-toast {
        width: 100%;
    }
}
