/* Main styles for index.php */

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

/* PC Card Overlay */
.pc-card-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}
.group:hover .pc-card-overlay {
    background-color: rgba(0, 0, 0, 0.85);
}

::-webkit-scrollbar-track {
    background: #0f0f11;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation Keyframes for Rotating Words - равномерная без пауз */
@keyframes rotateWords {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words {
    animation: rotateWords 12s infinite linear;
}

/* Анимация для H1 - синхронизирована с шапкой */
@keyframes rotateWordsH1 {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words-h1 {
    animation: rotateWordsH1 12s infinite linear;
}

/* Крутилка в H1 */
.rotating-container {
    display: inline-block;
    position: relative;
    height: 1em;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-text {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotateWordsH1 12s infinite linear;
}

.rotating-text > span {
    display: flex;
    align-items: center;
    height: 1em;
    white-space: nowrap;
}

/* Hide scrollbar for sidebar but apply custom one if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sidebar: мобильная версия — выезжает под шапкой */
.sidebar-panel {
    position: fixed;
    top: 64px;       /* высота хедера */
    left: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

/* Sidebar: открытое состояние на мобильных (JS toggle) */
.sidebar-panel.sidebar-open {
    transform: translateX(0);
}

/* Sidebar: десктоп — фиксированный с независимой прокруткой */
@media (min-width: 1024px) {
    .sidebar-panel {
        position: fixed;
        top: 64px;       /* высота хедера */
        left: 0;
        bottom: 0;
        height: calc(100vh - 64px);
        transform: none;
        transition: none;
    }

    /* Основной контент — отступ слева на ширину сайдбара */
    .main-content {
        margin-left: 288px;  /* w-72 = 18rem = 288px */
    }
}

/* Neon underline animation for PC names */
.pc-name-link {
    text-decoration: none;
}

.pc-name-link .neon-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    transition: width 0.4s ease-out;
}

.pc-name-link:hover .neon-underline {
    width: 100%;
}

/* Multiselect dropdown - Cyberpunk style */
.custom-multiselect-dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    width: 100%;
    background: #0f0f11;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 
                0 0 10px rgba(168, 85, 247, 0.1);
}

/* Поле поиска в dropdown */
.dropdown-search {
    position: sticky;
    top: 0;
    background: #1a1a1e;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.dropdown-search input {
    width: 100%;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.dropdown-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Опция в списке */
.custom-multiselect-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-multiselect-option:last-child {
    border-bottom: none;
}

.custom-multiselect-option:hover {
    background: rgba(168, 85, 247, 0.15);
}

/* Кастомный чекбокс */
.custom-multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-multiselect-option input[type="checkbox"]:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.custom-multiselect-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.custom-multiselect-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* Лейбл опции */
.custom-multiselect-option label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.custom-multiselect-option:hover label {
    color: white;
}

.custom-multiselect-option input[type="checkbox"]:checked + label {
    color: #a855f7;
    font-weight: 500;
}

/* Range input styling - Neon gradient */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    --range-progress: 100%;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 30px rgba(34, 211, 238, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(34, 211, 238, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: linear-gradient(to right,
            #a855f7 0%,
            #22d3ee var(--range-progress),
            #374151 var(--range-progress),
            #374151 100%);
}

/* Firefox */
input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: #374151;
}

input[type=range]::-moz-range-progress {
    background: linear-gradient(to right, #a855f7, #22d3ee);
    height: 4px;
    border-radius: 2px;
}

/* ============================================================
   КНОПКА СПРАВКИ (?) — Неоновый стиль
   ============================================================ */
.help-btn-neon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(34,211,238,0.15));
    border: 1.5px solid rgba(168,85,247,0.6);
    color: #c084fc;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(168,85,247,0.35), 0 0 20px rgba(168,85,247,0.15), inset 0 0 10px rgba(168,85,247,0.05);
}

.help-btn-neon:hover {
    border-color: rgba(168,85,247,1);
    color: #e879f9;
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(34,211,238,0.2));
    box-shadow: 0 0 20px rgba(168,85,247,0.6), 0 0 40px rgba(168,85,247,0.3), inset 0 0 15px rgba(168,85,247,0.1);
    transform: scale(1.1);
}

.help-btn-neon.active {
    border-color: #a855f7;
    color: white;
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(34,211,238,0.3));
    box-shadow: 0 0 25px rgba(168,85,247,0.7), 0 0 50px rgba(168,85,247,0.35);
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.help-btn-neon {
    animation: neonPulse 3s ease-in-out infinite;
}

.help-btn-neon:hover {
    animation: none;
}

/* ============================================================
   ПОПАП СПРАВКИ — Glassmorphism + Cyberpunk
   ============================================================ */
.help-content {
    background: rgba(15, 15, 17, 0.85); /* Более прозрачный для стекла */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 32px;
    margin: 0 auto 32px auto;
    max-width: 800px;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.12), 0 20px 60px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    will-change: transform;
    animation: helpPopupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes helpPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, #22d3ee, transparent);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.5);
}

/* Заголовок попапа справки */
.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.help-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #e879f9, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.help-icon-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.help-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-close-btn:hover {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
    color: white;
    transform: rotate(90deg);
}

/* Кнопки Бот / Поддержка */
.help-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.help-action-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.help-action-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.help-action-btn-bot .help-action-icon-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(99,102,241,0.15));
    border: 1px solid rgba(168,85,247,0.4);
    color: #c084fc;
    box-shadow: 0 0 15px rgba(168,85,247,0.15);
}

.help-action-btn-bot:hover {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 8px 20px rgba(168,85,247,0.15), inset 0 0 40px rgba(168,85,247,0.05);
}

.help-action-btn-bot:hover .help-action-icon-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(99,102,241,0.3));
    color: white;
    box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

.help-action-btn-support .help-action-icon-box {
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(34,211,238,0.35);
    color: #22d3ee;
    box-shadow: 0 0 15px rgba(34,211,238,0.1);
}

.help-action-btn-support:hover {
    border-color: rgba(34,211,238,0.5);
    box-shadow: 0 8px 20px rgba(34,211,238,0.15), inset 0 0 40px rgba(34,211,238,0.05);
}

.help-action-btn-support:hover .help-action-icon-box {
    background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(6,182,212,0.3));
    color: white;
    box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.help-action-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-grow: 1;
}

.help-action-btn-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.help-action-btn-name {
    font-size: 15px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.help-action-btn-arrow {
    color: rgba(255,255,255,0.3);
}
.help-action-btn:hover .help-action-btn-arrow {
    color: white;
}

/* FAQ плитки (Аккордеон) */
.help-faq-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-tile {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.help-tile:hover {
    border-color: rgba(168,85,247,0.3);
    background: rgba(255,255,255,0.04);
}

.help-tile details {
    margin: 0;
}

/* Скрываем стандартный маркер детали */
.help-tile summary::-webkit-details-marker,
.help-tile summary::marker {
    display: none;
    content: ""; /* Для Safari и новых Chrome */
}

.help-tile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none; /* Убираем маркер для большинства браузеров */
    user-select: none;
    transition: background 0.3s ease;
}

.help-tile details[open] summary {
    background: rgba(168,85,247,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.help-tile summary:hover {
    background: rgba(168,85,247,0.08);
}

.help-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.help-tile summary:hover .help-tile-icon,
.help-tile details[open] .help-tile-icon {
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(34,211,238,0.2));
    color: white;
    box-shadow: 0 0 10px rgba(168,85,247,0.4);
}

.help-tile summary h2 {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0;
    transition: color 0.3s ease;
}

.help-tile details[open] summary h2 {
    color: #e879f9;
}

.help-tile-chevron {
    color: rgba(255,255,255,0.4);
}

.help-tile details[open] summary .help-tile-chevron {
    transform: rotate(180deg);
    color: white;
}

/* Плавное открытие (работает только в некоторых браузех, но помогает) */
.help-tile-content {
    padding: 20px;
    animation: slideDown 0.3s ease-out forwards;
    transform-origin: top;
}

@keyframes slideDown {
    from { opacity: 0; transform: scaleY(0.95); }
    to { opacity: 1; transform: scaleY(1); }
}

.help-tile-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-tile-content p:last-child {
    margin-bottom: 0;
}

/* Списки с фичами */
.help-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.help-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.help-features-list li i {
    margin-top: 2px;
}

/* Alert Box inside Help */
.help-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(234, 179, 8, 0.05); /* yellow-500/5 */
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 16px;
    border-radius: 12px;
}

/* Ссылки внутри справки */
.help-link {
    color: #c084fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(192, 132, 252, 0.4);
}

.help-link:hover {
    color: #22d3ee;
    border-bottom-color: rgba(34, 211, 238, 0.8);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

@media (max-width: 640px) {
    .help-action-buttons {
        grid-template-columns: 1fr;
    }
    .help-content {
        padding: 24px 16px;
    }
}

/* ============================================================
   ИНФОРМАЦИОННЫЙ БЛОК НА ПАНЕЛИ ФИЛЬТРОВ
   ============================================================ */
.sidebar-info-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.sidebar-info-block:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-info-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(to right, #9333ea, #4f46e5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.sidebar-info-link:hover {
    background: linear-gradient(to right, #a855f7, #6366f1);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(255,255,255,0.1);
}

/* ============================================================
   КНОПКИ РАЗРЕШЕНИЯ (FHD / 2K / 4K)
   ============================================================ */
.resolution-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.resolution-btn:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.resolution-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.15));
    border-color: rgba(168, 85, 247, 0.8);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(168, 85, 247, 0.15);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Стилизация select для фильтров города/провайдера */
#computers-filters select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ============================================================
   ЛОГОТИП (Свечение при наведении)
   ============================================================ */
.logo-text {
    transition: filter 0.3s ease;
}

.logo-text:hover {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

/* ============================================================
   НЕОНОВЫЕ ВКЛАДКИ (Главные и Сортировка)
   ============================================================ */
.tab-neon {
    transition: all 0.3s ease;
}

/* Неактивное состояние */
.tab-neon:not(.active) {
    background-color: transparent;
    color: #9ca3af; /* text-gray-400 */
}

/* Hover для обеих вкладок */
.tab-neon:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* Активное состояние */
.tab-neon.active {
    background: linear-gradient(to right, #9333ea, #4f46e5); /* purple-600 to indigo-600 */
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* При наведении на активную вкладку свечение должно усиливаться */
.tab-neon.active:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* ============================================================
   НЕОНОВЫЕ КНОПКИ ДЕЙСТВИЙ (Войти, Играть, Перейти)
   ============================================================ */
.btn-neon-primary {
    background: linear-gradient(to right, #9333ea, #4f46e5); /* purple-600 to indigo-600 */
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-primary:hover {
    background: linear-gradient(to right, #a855f7, #6366f1);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
}

.btn-neon-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.btn-neon-cyan {
    background: linear-gradient(to right, #06b6d4, #14b8a6); /* cyan-500 to teal-500 */
    color: white;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-cyan:hover {
    background: linear-gradient(to right, #22d3ee, #2dd4bf);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
}

.btn-neon-cyan:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* Белая кнопка с неоновым свечением */
.btn-neon-white {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-white:hover {
    background: #ffffff; /* pure white */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.btn-neon-white:active {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Неоновые теги (Жанры) */
.tag-neon {
    background: rgba(168, 85, 247, 0.05); /* very subtle purple */
    color: #e5e7eb; /* gray-200 */
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
}

.tag-neon:hover {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Второстепенная кнопка (Отмена и др.) */
.btn-neon-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-neon-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-neon-secondary:active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   GLOBAL PRELOADER 
   ============================================================ */
#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #0f0f11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#global-loader.hidden-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-circles {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.loader-circle-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-top: 4px solid #22d3ee;
    border-bottom: 4px solid #22d3ee;
    border-radius: 50%;
    animation: spinLoader 2s linear infinite;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.loader-circle-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border-left: 4px solid #a855f7;
    border-right: 4px solid #a855f7;
    border-radius: 50%;
    animation: spinLoaderReverse 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.loader-icon {
    width: 40px;
    height: 40px;
    color: white;
    animation: pulseLoader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-text-container {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulseLoader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-bar-bg {
    margin-top: 16px;
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    border-radius: 4px;
    box-shadow: 0 0 10px #a855f7;
    animation: pulseBar 1.5s ease-in-out infinite alternate;
}

.loader-subtitle {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes spinLoader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinLoaderReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulseLoader {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes pulseBar {
    0% { width: 10%; left: 0; }
    100% { width: 40%; left: 60%; }
}

@media (max-width: 640px) {
    .loader-circles {
        width: 90px;
        height: 90px;
    }
    .loader-icon {
        width: 30px;
        height: 30px;
    }
    .loader-title {
        font-size: 18px;
    }
    .loader-bar-bg {
        width: 150px;
    }
}

