.toast-container {
    position: fixed !important;

    top: 20px !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    right: auto !important;
    bottom: auto !important;

    z-index: 99999 !important;

    display: flex;
    flex-direction: column;
    align-items: center;

    pointer-events: none;
}

.toast-container .toast-wrapper {
    padding: 3px !important;
}

/* ОСНОВНАЯ КАРТОЧКА */

.toast {
    position: relative;

    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;

    width: 320px;

    min-height: 54px;

    padding: 11px 14px !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            180deg,
            rgba(25,30,27,.98),
            rgba(18,21,19,.98)
        ) !important;

    border: 1px solid rgba(255,255,255,.06) !important;

    color: #f4f6f7 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    overflow: hidden;

    backdrop-filter: blur(18px);

    box-shadow:
        0 10px 35px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.02) inset;

    pointer-events: auto;

    animation: toastEnter .25s ease;
}

/* Световая полоска сверху */

.toast::after {
    content: "";

    position: absolute;

    top: 0;
    left: 16px;
    right: 16px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.25),
            transparent
        );
}

/* ИКОНКИ */

.toast::before {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #fff;

    font-size: 16px;
    font-weight: 800;

    border: 1px solid rgba(255,255,255,.08);
}

/* SUCCESS */

.toast--success {
    border-color: rgba(34,197,94,.15) !important;
}

.toast--success::before {
    content: "✓";

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #15803d
        );

    box-shadow:
        0 0 20px rgba(34,197,94,.25);
}

.toast-progressbar--success {
    background: #22c55e !important;
}

/* ERROR */

.toast--error {
    border-color: rgba(239,68,68,.15) !important;
}

.toast--error::before {
    content: "✕";

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #b91c1c
        );

    box-shadow:
        0 0 20px rgba(239,68,68,.25);
}

.toast-progressbar--error {
    background: #ef4444 !important;
}

/* WARNING */

.toast--warning {
    border-color: rgba(245,158,11,.15) !important;
}

.toast--warning::before {
    content: "!";

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #c26b00
        );

    box-shadow:
        0 0 20px rgba(245,158,11,.25);
}

.toast-progressbar--warning {
    background: #f59e0b !important;
}

/* INFO */

.toast--info {
    border-color: rgba(59,130,246,.15) !important;
}

.toast--info::before {
    content: "i";

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #1d4ed8
        );

    box-shadow:
        0 0 20px rgba(59,130,246,.25);
}

.toast-progressbar--info {
    background: #3b82f6 !important;
}

/* ПРОГРЕСС */

.toast-progressbar {
    height: 2px !important;
    opacity: 1 !important;
    border-radius: 999px;
}

/* СТЕК УВЕДОМЛЕНИЙ */

.toast + .toast {
    margin-top: -4px !important;
    transform: scale(.98);
    opacity: .92;
}

/* АНИМАЦИЯ */

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* МОБИЛКИ */

@media (max-width: 575px) {
    .toast-container {
        width: calc(100vw - 20px);
    }

    .toast {
        width: 100%;
    }
}