[x-cloak] {
    display: none !important;
}

.display-block{
    display: block;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    min-width: 320px;
    max-width: 380px;
    border-radius: 10px;
    background: rgba(20, 20, 35, 0.95);
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* Появление */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Заголовок */
.toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(35, 35, 55, 0.95);
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(138, 43, 226, 0.4);
}

.toast-header small {
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}

/* Иконка */
.toast-header i {
    font-size: 20px;
    color: #9b5eff;
}

/* Кнопка закрытия */
.toast .btn-close {
    filter: invert(1);
}

/* Тело */
.toast-body {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
}

/* Прогресс-бар */
.toast-progress {
    height: 3px;
    background: linear-gradient(90deg, #9b5eff, #00f2ff);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}



.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 145, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bar-spinner {
    display: flex;
    gap: 3px;
}

.bar-spinner div {
    width: 4px;
    height: 20px;
    background: #fff;
    animation: barBounce 1s infinite ease-in-out;
}

.bar-spinner div:nth-child(1) { animation-delay: 0s; }
.bar-spinner div:nth-child(2) { animation-delay: 0.1s; }
.bar-spinner div:nth-child(3) { animation-delay: 0.2s; }
.bar-spinner div:nth-child(4) { animation-delay: 0.3s; }

@keyframes barBounce {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}



