#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100vw - 40px);
}

.toast-item {
    box-sizing: border-box;
    min-width: 280px;
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

    word-break: break-word;
}

.toast-item.error {
    border-color: #ff4b4b;
}

.toast-item.error i {
    color: #ff4b4b;
}

.toast-item.success {
    border-color: #00ffa3;
}

.toast-item.success i {
    color: #00ffa3;
}

.toast-item.info {
    border-color: var(--primary);
}

.toast-item.info i {
    color: var(--primary);
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Лодер */


#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    display: none;

    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loading-active {
    overflow: hidden;
}

@media (max-width: 480px) {
    #toast-container {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .toast-item {
        min-width: 0;
        width: 100%;
        margin: 0 auto;
        animation: toastIn 0.3s ease forwards;
    }

    @keyframes toastIn {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes toastOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }

        to {
            transform: translateY(-20px);
            opacity: 0;
        }
    }
}