.toast-container {
    position: fixed;   /* Вне потока документа */
    top: 18px;         /* Отступ от верха */
    right: 18px;       /* Отступ от правого края */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;     /* Всегда поверх */
    pointer-events: none; /* Чтобы не мешать кликам */
}

/* ===== Base toast ===== */
.toast {
    min-width: 260px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.03), transparent 45%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    color: var(--text-0);
    display: flex;
    gap: 12px;
    align-items: flex-start;

    /* Анимация появления */
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: var(--transition);
}

/* show animation */
.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== Icon ===== */
.toast-icon{
    width:34px;
    height:34px;
    border-radius:12px;
    display:grid;
    place-items:center;
    font-size:15px;
    flex-shrink:0;
}

/* ===== Content ===== */
.toast-body{
    flex:1;
}

.toast-title{
    font-size:13px;
    font-weight:700;
    margin-bottom:4px;
}

.toast-text{
    font-size:11px;
    color:var(--text-2);
    line-height:1.45;
}

/* ===== Close ===== */
.toast-close{
    background:none;
    border:none;
    color:var(--text-2);
    cursor:pointer;
    font-size:14px;
    line-height:1;
    padding:2px;
}
.toast-close:hover{color:var(--text-0)}

/* ===============================
   Variants
   =============================== */

/* INFO */
.toast.info{
    border-color:rgba(25,195,125,.35);
}
.toast.info .toast-icon{
    background:rgba(25,195,125,.18);
    color:var(--accent-0);
}

/* SUCCESS */
.toast.success{
    border-color:rgba(41,211,145,.45);
}
.toast.success .toast-icon{
    background:rgba(41,211,145,.22);
    color:#29d391;
}

/* WARNING */
.toast.warning{
    border-color:rgba(255,176,32,.45);
}
.toast.warning .toast-icon{
    background:rgba(255,176,32,.22);
    color:#ffb020;
}

/* DANGER */
.toast.danger{
    border-color:rgba(255,93,93,.45);
}
.toast.danger .toast-icon{
    background:rgba(255,93,93,.22);
    color:#ff5d5d;
}

/* ===============================
   Mobile
   =============================== */
@media (max-width:480px){
    .toast-container{
        left:12px;
        right:12px;
        top:12px;
    }
    .toast{
        max-width:100%;
    }
}
