* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Фоновая анимация */
.background-pattern {
    position: absolute;
    top:0;
    left:0;
    width:200%;
    height:200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 234, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0, 140, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: moveBackground 40s linear infinite;
    z-index:0;
}

@keyframes moveBackground {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-25px); }
}

/* Индикатор загрузки */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.global-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 234, 255, 0.3);
    border-top: 4px solid #00eaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.5);
}

.loading-text {
    color: #00eaff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Canvas для фона */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.canvas-container canvas {
    pointer-events: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* Утилитарные классы */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ДОБАВЬТЕ В КОНЕЦ main.css */

/* Мобильная навигация (фиксированная внизу) */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        border-top: 2px solid rgba(0, 234, 255, 0.25);
        padding: 10px 5px 15px;
        display: flex;
        justify-content: space-around;
        z-index: 999;
        height: 70px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
    }
    
    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 5px 5px;
        max-width: 90px;
        height: 60px;
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.7);
        border: 1px solid rgba(0, 234, 255, 0.2);
        transition: all 0.2s ease;
        text-decoration: none;
        color: #94a3b8;
    }
    
    .mobile-nav-btn i {
        font-size: 1.3rem;
        margin-bottom: 5px;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-btn span {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    .mobile-nav-btn:hover,
    .mobile-nav-btn.active {
        background: linear-gradient(135deg, rgba(0, 234, 255, 0.8) 0%, rgba(0, 140, 255, 0.8) 100%);
        border-color: #00eaff;
        color: #0f172a;
        box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
    }
    
    /* Отступ для контента, чтобы не перекрывался навигацией */
    .main-container {
        padding-bottom: 90px !important;
    }
    
    /* Убираем навигацию из хедера на мобильных */
    .header-nav {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        height: 65px;
        padding: 8px 4px 12px;
    }
    
    .mobile-nav-btn {
        padding: 7px 4px 4px;
        height: 55px;
        max-width: 80px;
    }
    
    .mobile-nav-btn i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-btn span {
        font-size: 0.7rem;
    }
    
    .main-container {
        padding-bottom: 80px !important;
    }
}

@media (max-width: 360px) {
    .mobile-bottom-nav {
        height: 60px;
        padding: 7px 3px 10px;
    }
    
    .mobile-nav-btn {
        padding: 6px 3px 3px;
        height: 50px;
        max-width: 70px;
    }
    
    .mobile-nav-btn i {
        font-size: 1rem;
    }
    
    .mobile-nav-btn span {
        font-size: 0.65rem;
    }
    
    .main-container {
        padding-bottom: 75px !important;
    }
}




/* ДОБАВЬТЕ В КОНЕЦ main.css */

/* Стили для ссылок explorer в контенте */
.explorer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00eaff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 234, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.explorer-link:hover {
    background: rgba(0, 234, 255, 0.2);
    border-color: #00eaff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.2);
    color: #39ff14;
}

.explorer-link i {
    font-size: 0.9rem;
}

/* Адаптивность для explorer-link */
@media (max-width: 768px) {
    .explorer-link {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .explorer-link {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}



/* Анимация для обновления статистики */
.stat-updating {
    animation: statUpdate 0.4s ease-in-out;
}

@keyframes statUpdate {
    0% { 
        color: #00eaff;
        transform: scale(1);
    }
    50% { 
        color: #39ff14;
        transform: scale(1.1);
    }
    100% { 
        color: #00eaff;
        transform: scale(1);
    }
}



/* main.css - добавьте в конец файла */

/* Кнопка "Наверх" */
.scroll-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 65px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00eaff 0%, #008cff 100%);
    color: #0f172a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 234, 255, 0.3);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #00eaff 0%, #00b3ff 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 120px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}



