/* Тёмный фон, перекрывающий всю страницу */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Контейнер */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Анимация логотипа */
.logo-spin img {
    width: 90px;
    height: 90px;
    animation: spin 2.8s linear infinite;
    filter: drop-shadow(0 0 10px #06f0ff);
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Текст загрузки */
.loader-text {
    color: var(--accent-text);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Исчезновение */
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}