/* ========================================
   МЕГА НЕОНОВЫЙ КИБЕРПАНК ДИЗАЙН
   ======================================== */

/* Неоновые цвета */
:root {
    --neon-cyan: #00f5ff;
    --neon-pink: #ff00ff;
    --neon-purple: #bf00ff;
    --neon-blue: #0066ff;
    --neon-green: #00ff88;
    --neon-yellow: #ffff00;
    --neon-orange: #ff6600;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(10, 10, 20, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(0, 245, 255, 0.3);
}

/* ========================================
   ШРИФТЫ
   ======================================== */

h1, h2, h3, .auth-form h2, .card h2, .card h3 {
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   ТЕГИ СЛОЖНОСТИ И КЛАССОВ
   ======================================== */

.test-card-meta {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.difficulty-tag, .grade-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-tag.easy {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.difficulty-tag.medium {
    background: rgba(255, 255, 0, 0.2);
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
}

.difficulty-tag.hard {
    background: rgba(255, 102, 0, 0.2);
    border: 1px solid var(--neon-orange);
    color: var(--neon-orange);
}

.difficulty-tag.expert {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.grade-tag {
    background: rgba(0, 245, 255, 0.15);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan);
}

/* ========================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ======================================== */

body {
    background: var(--dark-bg);
    background-image: 
        radial-gradient(ellipse at top, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(191, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Сетка на фоне в стиле киберпанка */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Анимированные частицы неонового света */
.neon-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.neon-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: float-neon 15s infinite;
    opacity: 0.6;
}

.neon-particle:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.neon-particle:nth-child(2) { left: 20%; animation-delay: 2s; background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
.neon-particle:nth-child(3) { left: 30%; animation-delay: 4s; background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.neon-particle:nth-child(4) { left: 40%; animation-delay: 1s; background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.neon-particle:nth-child(5) { left: 50%; animation-delay: 3s; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.neon-particle:nth-child(6) { left: 60%; animation-delay: 5s; background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
.neon-particle:nth-child(7) { left: 70%; animation-delay: 2.5s; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.neon-particle:nth-child(8) { left: 80%; animation-delay: 1.5s; background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }
.neon-particle:nth-child(9) { left: 90%; animation-delay: 4.5s; background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }

@keyframes float-neon {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-10vh) scale(1);
    }
    100% {
        transform: translateY(-20vh) scale(0);
        opacity: 0;
    }
}

/* ========================================
   АВТОРИЗАЦИЯ
   ======================================== */

.auth-container {
    background: var(--dark-bg) !important;
    background-image: 
        radial-gradient(ellipse at center, rgba(0, 245, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at top right, rgba(255, 0, 255, 0.1) 0%, transparent 50%) !important;
}

.auth-form {
    background: var(--card-bg) !important;
    backdrop-filter: blur(30px) !important;
    border: 1px solid var(--border-glow) !important;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.2),
        0 0 60px rgba(191, 0, 255, 0.1),
        inset 0 0 30px rgba(0, 245, 255, 0.05) !important;
    animation: pulse-border 3s ease-in-out infinite !important;
}

@keyframes pulse-border {
    0%, 100% { 
        border-color: rgba(0, 245, 255, 0.3);
        box-shadow: 
            0 0 30px rgba(0, 245, 255, 0.2),
            0 0 60px rgba(191, 0, 255, 0.1),
            inset 0 0 30px rgba(0, 245, 255, 0.05);
    }
    50% { 
        border-color: rgba(255, 0, 255, 0.3);
        box-shadow: 
            0 0 40px rgba(255, 0, 255, 0.3),
            0 0 80px rgba(0, 245, 255, 0.15),
            inset 0 0 40px rgba(255, 0, 255, 0.05);
    }
}

.auth-form h2 {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple), var(--neon-cyan)) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: gradient-flow 4s ease infinite !important;
    text-shadow: none !important;
    position: relative;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-tabs {
    border-bottom: 2px solid rgba(0, 245, 255, 0.2) !important;
}

.auth-tab {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

.auth-tab:hover {
    color: var(--neon-cyan) !important;
    background: rgba(0, 245, 255, 0.1) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.auth-tab.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 15px var(--neon-cyan);
}

.auth-tab::after {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.input-group input {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(0, 245, 255, 0.2) !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 0 20px rgba(0, 245, 255, 0.3),
        inset 0 0 10px rgba(0, 245, 255, 0.1) !important;
    background: rgba(0, 245, 255, 0.05) !important;
}

.input-icon {
    color: rgba(0, 245, 255, 0.5) !important;
}

.input-group input:focus + .input-icon {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ========================================
   НЕОНОВЫЕ КНОПКИ
   ======================================== */

.auth-button {
    background: transparent !important;
    border: 2px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
    box-shadow: 
        0 0 20px rgba(0, 245, 255, 0.3),
        inset 0 0 20px rgba(0, 245, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease !important;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: left 0.5s ease;
    opacity: 0.3;
}

.auth-button:hover {
    background: var(--neon-cyan) !important;
    color: var(--dark-bg) !important;
    text-shadow: none;
    box-shadow: 
        0 0 40px rgba(0, 245, 255, 0.6),
        0 0 80px rgba(0, 245, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.auth-button:hover::before {
    left: 100%;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */

nav {
    background: rgba(10, 10, 20, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
}

nav a {
    color: rgba(255, 255, 255, 0.7) !important;
    position: relative;
    transition: all 0.3s ease !important;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-cyan);
}

nav a:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 15px var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1) !important;
    transform: translateY(-2px);
}

nav a:hover::before {
    width: 80%;
}

nav a.active {
    color: var(--neon-cyan) !important;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(191, 0, 255, 0.2)) !important;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    text-shadow: 0 0 15px var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.logout-btn {
    background: transparent !important;
    border: 2px solid var(--neon-pink) !important;
    color: var(--neon-pink) !important;
    text-shadow: 0 0 10px var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease !important;
}

.logout-btn:hover {
    background: var(--neon-pink) !important;
    color: var(--dark-bg) !important;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    transform: translateY(-2px) scale(1.05) !important;
}

/* ========================================
   КАРТОЧКИ
   ======================================== */

.card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 245, 255, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.card::before {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple)) !important;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.card:hover {
    border-color: rgba(0, 245, 255, 0.4) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 245, 255, 0.2),
        inset 0 0 50px rgba(0, 245, 255, 0.05) !important;
    transform: translateY(-10px) !important;
}

.card h2, .card h3 {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ========================================
   БЫСТРЫЙ СТАРТ КНОПКИ
   ======================================== */

.quick-start-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 2px solid rgba(0, 245, 255, 0.3) !important;
    color: var(--neon-cyan) !important;
    padding: 25px 20px !important;
    border-radius: 15px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.quick-start-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--neon-cyan));
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-start-btn::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--card-bg);
    border-radius: 12px;
    z-index: 0;
}

.quick-start-btn > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

.quick-start-btn:hover {
    transform: translateY(-8px) scale(1.05) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 15px 40px rgba(0, 245, 255, 0.3),
        0 0 60px rgba(0, 245, 255, 0.2),
        inset 0 0 30px rgba(0, 245, 255, 0.1) !important;
}

.quick-start-btn:hover::before {
    opacity: 1;
}

.quick-icon {
    font-size: 3em !important;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quick-text {
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ========================================
   ТЕСТОВЫЕ КАРТОЧКИ
   ======================================== */

.test-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(191, 0, 255, 0.2)) !important;
    border: 2px solid rgba(0, 245, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 245, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.test-card:hover::before {
    transform: translateX(100%);
}

.test-card:hover {
    transform: translateY(-10px) rotateX(5deg) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 245, 255, 0.3),
        inset 0 0 30px rgba(0, 245, 255, 0.1) !important;
}

.test-card-icon {
    font-size: 3em;
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 15px var(--neon-cyan)); }
    50% { filter: drop-shadow(0 0 30px var(--neon-pink)); }
}

.test-card-badge {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    color: var(--dark-bg) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

/* ========================================
   СТАТИСТИКА
   ======================================== */

.platform-stat, .stat-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    text-align: center;
    transition: all 0.3s ease !important;
}

.platform-stat:hover, .stat-card:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

.stat-number, .stat-value {
    font-size: 2.5em !important;
    font-weight: bold !important;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

.stat-desc, .stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 10px;
}

/* ========================================
   МОТИВАЦИОННАЯ КАРТОЧКА
   ======================================== */

.motivation-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), rgba(191, 0, 255, 0.3)) !important;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.motivation-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.2) 0%, transparent 70%);
    animation: glow-move 5s ease-in-out infinite;
}

@keyframes glow-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30%, 30%); }
}

/* ========================================
   ОБРАТНЫЙ ОТСЧЁТ
   ======================================== */

.countdown-item {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(0, 245, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px 30px !important;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
    transform: scale(1.1);
}

.countdown-value {
    font-size: 2.5em !important;
    font-weight: bold !important;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px var(--neon-cyan);
    display: block;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* ========================================
   ФАКТЫ КАРУСЕЛЬ
   ======================================== */

.fact-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    text-align: center;
    transition: all 0.5s ease !important;
}

.fact-card.active {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3) !important;
}

.fact-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.fact-btn {
    background: transparent !important;
    border: 2px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fact-btn:hover {
    background: var(--neon-cyan) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.1);
}

/* ========================================
   РЕСУРСЫ
   ======================================== */

.resource-link {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    color: var(--neon-cyan) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
    transform: translateX(10px);
    background: rgba(0, 245, 255, 0.15) !important;
}

.resource-link i {
    font-size: 1.5em;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ========================================
   СЕКЦИИ С ДОПОЛНИТЕЛЬНЫМИ СТИЛЯМИ
   ======================================== */

section > div[style*="background: rgba"] {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.05)) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
}

section > div[style*="background: rgba"] h3 {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ========================================
   ПРОФИЛЬ
   ======================================== */

.avatar {
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.4),
        0 0 60px rgba(191, 0, 255, 0.2) !important;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.4),
        0 0 60px rgba(191, 0, 255, 0.2) !important;
}

.avatar-upload {
    background: var(--neon-green) !important;
    box-shadow: 0 0 15px var(--neon-green) !important;
}

.profile-info h2 {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.profile-info p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.detail-card {
    background: rgba(0, 0, 0, 0.4) !important;
    border-left: 5px solid var(--neon-cyan) !important;
    border-radius: 10px !important;
}

.detail-card h4 {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.history-item {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
}

.history-item:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2) !important;
}

.test-name {
    color: #fff !important;
}

.test-score {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.test-date {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   СКРОЛЛ БАР
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
}

/* ========================================
   ГЛИТЧ ЭФФЕКТ ДЛЯ ЗАГОЛОВКОВ
   ======================================== */

.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-cyan);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 3px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -3px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 3px); }
    80% { clip-path: inset(80% 0 0% 0); transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(80% 0 0% 0); transform: translate(3px, -3px); }
    40% { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 3px); }
    60% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -3px); }
    80% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 3px); }
}

/* ========================================
   НЕОНОВЫЕ ЛИНИИ ДЕКОР
   ======================================== */

.neon-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), var(--neon-purple), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
    margin: 30px 0;
    animation: line-glow 3s ease-in-out infinite;
}

@keyframes line-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   ВЫБОР И ВЫДЕЛЕНИЕ ТЕКСТА
   ======================================== */

::selection {
    background: var(--neon-cyan);
    color: var(--dark-bg);
}

/* ========================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
    .quick-start-btn {
        padding: 20px 15px !important;
    }
    
    .quick-icon {
        font-size: 2.5em !important;
    }
    
    .countdown-item {
        padding: 15px 20px !important;
    }
    
    .countdown-value {
        font-size: 2em !important;
    }
    
    .stat-number, .stat-value {
        font-size: 2em !important;
    }
    
    body::before {
        background-size: 30px 30px;
    }
}

/* ========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ЭЛЕМЕНТОВ
   ======================================== */

@keyframes neon-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.card, .test-card, .quick-start-btn, .platform-stat {
    animation: neon-fade-in 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ХОВЕРА
   ======================================== */

.hover-neon-glow {
    transition: all 0.3s ease;
}

.hover-neon-glow:hover {
    box-shadow: 
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan),
        0 0 60px var(--neon-cyan);
}

/* Эффект ripple при клике */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   СУПЕР КНОПКИ ГЛАВНОГО ЭКРАНА
   ======================================== */

/* Улучшенные кнопки с эффектом электричества */
button, .btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Эффект электрических искр при hover */
.quick-start-btn:hover::before,
.test-card:hover::before {
    animation: electric-spark 0.3s ease forwards;
}

@keyframes electric-spark {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2); }
}

/* Супер неоновые кнопки навигации */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

nav a:hover::after {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
}

/* Анимация пульсации для активных элементов */
@keyframes neon-active-pulse {
    0%, 100% {
        box-shadow: 
            0 0 10px var(--neon-cyan),
            0 0 20px rgba(0, 245, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 0 20px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 60px rgba(255, 0, 255, 0.3);
    }
}

nav a.active {
    animation: neon-active-pulse 2s ease-in-out infinite;
}

/* Эффект телепортации при переключении секций */
section {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

section:not(.visible) {
    transform: translateY(50px) scale(0.95) !important;
    opacity: 0 !important;
}

section.visible {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

/* Эффект сканирования для карточек */
.card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        180deg, 
        transparent, 
        rgba(0, 245, 255, 0.05), 
        transparent
    );
    pointer-events: none;
}

.card:hover::after {
    animation: scan-card 1.5s ease;
}

@keyframes scan-card {
    0% { top: -100%; }
    100% { top: 200%; }
}

/* Плавающие иконки */
.quick-icon, .test-card-icon, .fact-icon {
    display: inline-block;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-2deg); }
}

/* Разные задержки для иконок */
.quick-start-btn:nth-child(1) .quick-icon { animation-delay: 0s; }
.quick-start-btn:nth-child(2) .quick-icon { animation-delay: 0.5s; }
.quick-start-btn:nth-child(3) .quick-icon { animation-delay: 1s; }

/* Супер эффект для статистики */
.countdown-value {
    animation: number-glow 2s ease-in-out infinite;
}

@keyframes number-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--neon-cyan),
            0 0 20px var(--neon-cyan);
    }
    50% {
        text-shadow: 
            0 0 20px var(--neon-cyan),
            0 0 40px var(--neon-cyan),
            0 0 60px var(--neon-pink);
    }
}

/* Эффект печатающегося текста для заголовков */
.typewriter-effect {
    overflow: hidden;
    border-right: 3px solid var(--neon-cyan);
    white-space: nowrap;
    animation: 
        typing 3s steps(40, end),
        blink-cursor 0.75s step-end infinite;
}

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

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-cyan); }
}

/* Эффект всплытия для инфо-блоков */
div[style*="background: rgba(102, 126, 234"] {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(0, 102, 255, 0.1)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    transition: all 0.4s ease;
}

div[style*="background: rgba(76, 175, 80"] {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.1)) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
}

div[style*="background: rgba(255, 152, 0"] {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 100, 0, 0.1)) !important;
    border: 1px solid rgba(255, 152, 0, 0.2) !important;
}

/* Hover эффекты для инфо-блоков */
div[style*="background: rgba"]:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Неоновая подсветка для форм */
.input-group input:focus {
    animation: input-focus-glow 1s ease;
}

@keyframes input-focus-glow {
    0% {
        box-shadow: 0 0 0 rgba(0, 245, 255, 0);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 245, 255, 0.5),
            inset 0 0 20px rgba(0, 245, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(0, 245, 255, 0.3),
            inset 0 0 10px rgba(0, 245, 255, 0.1);
    }
}

/* Эффект "цифрового дождя" для фона */
.cyber-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(0, 245, 255, 0.03) 50px
        );
}

/* Анимация загрузки в стиле киберпанк */
.cyber-loading {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: cyber-spin 1s linear infinite;
    position: relative;
}

.cyber-loading::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top: 3px solid var(--neon-pink);
    border-radius: 50%;
    animation: cyber-spin 0.8s linear reverse infinite;
}

@keyframes cyber-spin {
    100% { transform: rotate(360deg); }
}

/* Финальные украшения для карточек */
.card > h2:first-of-type,
.card > h3:first-of-type {
    position: relative;
    display: inline-block;
}

.card > h2:first-of-type::after,
.card > h3:first-of-type::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-cyan);
    border-radius: 2px;
}

/* Эффект "живой" карточки */
.test-card, .quick-start-btn {
    position: relative;
}

.test-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s ease infinite;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.test-card:hover::before {
    opacity: 1;
}

/* Hover состояние для всех интерактивных элементов */
a, button, .test-card, .quick-start-btn, .fact-btn, .resource-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Звуковые волны при наведении на кнопки */
.auth-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.auth-button:hover::after {
    width: 300%;
    height: 300%;
    opacity: 0;
}

/* Убираем стандартные выделения для красоты */
button:focus, a:focus, input:focus {
    outline: none;
}

/* Добавляем красивый focus для доступности */
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* ========================================
   РЕЗУЛЬТАТЫ ТЕСТОВ - НЕОНОВЫЙ СТИЛЬ
   ======================================== */

.result-container, #test-results {
    background: var(--card-bg) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin: 30px auto !important;
    max-width: 900px !important;
    box-shadow: 
        0 0 40px rgba(0, 245, 255, 0.2),
        inset 0 0 30px rgba(0, 245, 255, 0.05) !important;
    animation: result-appear 0.8s ease-out !important;
}

@keyframes result-appear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h2 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2.5em !important;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple)) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: gradient-flow 3s ease infinite !important;
    margin-bottom: 20px;
}

.result-score {
    font-size: 5em !important;
    font-weight: 900 !important;
    font-family: 'Orbitron', sans-serif !important;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    position: relative;
    display: inline-block;
    animation: score-pulse 2s ease-in-out infinite;
}

@keyframes score-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--neon-cyan)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px var(--neon-pink)); }
}

.result-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.3em;
    margin-top: 15px;
}

.result-message {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    text-align: center;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.result-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.stat-item, .result-stats > div {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(0, 245, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 25px 15px !important;
    text-align: center;
    transition: all 0.3s ease !important;
}

.stat-item:hover, .result-stats > div:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

.stat-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.stat-item .stat-value, #correct-count, #incorrect-count, #time-spent, #accuracy-rate {
    font-size: 2em !important;
    font-weight: bold !important;
    font-family: 'Orbitron', sans-serif !important;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: block;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Секция анализа */
.analysis-section {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

.analysis-section h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 20px;
}

.grade-estimate {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 245, 255, 0.1)) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    text-align: center;
    color: var(--neon-green) !important;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.strengths, .weaknesses, .recommendations {
    margin-bottom: 20px;
}

.strengths h4, .weaknesses h4, .recommendations h4 {
    color: var(--neon-cyan) !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.category-list ul {
    list-style: none !important;
    padding: 0 !important;
}

.category-list li {
    background: rgba(0, 245, 255, 0.1) !important;
    border-left: 3px solid var(--neon-cyan) !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    border-radius: 0 8px 8px 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.category-list li:hover {
    background: rgba(0, 245, 255, 0.2) !important;
    transform: translateX(5px);
}

/* Детальный разбор ответов */
.detailed-answers {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

.detailed-answers h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    margin-bottom: 20px;
}

#answers-review > div {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease;
}

#answers-review > div:hover {
    border-color: rgba(0, 245, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1) !important;
}

/* Кнопки действий результатов */
.result-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 30px !important;
}

.result-actions .test-button {
    background: transparent !important;
    border: 2px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    padding: 15px 30px !important;
    font-family: 'Orbitron', sans-serif !important;
    text-shadow: 0 0 10px var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2) !important;
}

.result-actions .test-button:hover {
    background: var(--neon-cyan) !important;
    color: var(--dark-bg) !important;
    text-shadow: none;
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5) !important;
}

.result-actions .test-button.success {
    border-color: var(--neon-green) !important;
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px var(--neon-green);
}

.result-actions .test-button.success:hover {
    background: var(--neon-green) !important;
    color: var(--dark-bg) !important;
}

.result-actions .test-button.secondary {
    border-color: var(--neon-purple) !important;
    color: var(--neon-purple) !important;
    text-shadow: 0 0 10px var(--neon-purple);
}

.result-actions .test-button.secondary:hover {
    background: var(--neon-purple) !important;
}

/* ========================================
   ОБУЧЕНИЕ И МАТЕРИАЛЫ - НЕОНОВЫЙ СТИЛЬ
   ======================================== */

.learning-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    margin: 30px 0 !important;
}

.learning-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.learning-card:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2) !important;
    transform: translateY(-5px) !important;
}

.learning-card:hover::before {
    transform: scaleX(1);
}

.learning-card h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    margin-bottom: 15px;
}

.learning-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.learning-toggle {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)) !important;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.learning-details {
    border-top: 1px solid rgba(0, 245, 255, 0.2) !important;
}

.learning-content {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.learning-content h4 {
    color: var(--neon-cyan) !important;
    margin-bottom: 15px !important;
}

.learning-content ul {
    padding-left: 20px !important;
}

.learning-content li {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

.learning-content li strong {
    color: var(--neon-cyan) !important;
}

.learning-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
}

/* Рекомендуемые ресурсы */
div[style*="background: rgba(102, 126, 234, 0.1)"] {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.05)) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
}

div[style*="background: rgba(102, 126, 234, 0.1)"] h3 {
    color: var(--neon-cyan) !important;
}

div[style*="background: rgba(102, 126, 234, 0.1)"] ul {
    color: rgba(255, 255, 255, 0.85) !important;
}

div[style*="background: rgba(102, 126, 234, 0.1)"] li {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================
   КОНТАКТЫ И ПОДДЕРЖКА - НЕОНОВЫЙ СТИЛЬ
   ======================================== */

#contacts .card h2 {
    color: var(--neon-cyan) !important;
}

#contacts .card > p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
}

.contact-item {
    background: var(--card-bg) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    transition: all 0.4s ease !important;
    width: 100%;
    max-width: 450px;
}

.contact-item:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 0 30px rgba(0, 245, 255, 0.3),
        inset 0 0 20px rgba(0, 245, 255, 0.05) !important;
    transform: translateY(-5px) scale(1.02) !important;
    border-left: 5px solid var(--neon-cyan) !important;
}

.contact-icon {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3) !important;
    font-size: 28px;
}

.contact-text h4 {
    color: #fff !important;
    font-family: 'Orbitron', sans-serif !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-text p[style*="color: #999"] {
    color: rgba(255, 255, 255, 0.5) !important;
}

#contacts div[style*="text-align: center"] p {
    color: rgba(255, 255, 255, 0.8) !important;
}

#contacts div[style*="text-align: center"] p[style*="color: #667eea"] {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ========================================
   ПРОФИЛЬ - БЫСТРЫЕ ДЕЙСТВИЯ И ИМЯ
   ======================================== */

.quick-actions {
    margin-top: 40px;
}

.quick-actions h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    margin-bottom: 20px;
}

.actions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 15px !important;
}

.action-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1)) !important;
    border: 2px solid rgba(0, 245, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px 15px !important;
    color: var(--neon-cyan) !important;
    cursor: pointer;
    transition: all 0.4s ease !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.action-btn i {
    font-size: 1.8em;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.action-btn:hover {
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 245, 255, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.3) !important;
    transform: translateY(-5px) scale(1.05) !important;
}

.action-btn span {
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.3);
}

/* Кнопка редактирования имени */
.profile-name-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.edit-name-btn {
    background: transparent !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.edit-name-btn:hover {
    background: var(--neon-cyan) !important;
    color: var(--dark-bg) !important;
}

/* ========================================
   ЭКРАН ВЫБОРА ТЕСТОВ - ПО КЛАССАМ
   ======================================== */

.tests-selection-screen {
    padding: 20px;
}

.tests-filter-panel {
    background: var(--card-bg) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 30px;
}

.filter-title {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent !important;
    border: 2px solid rgba(0, 245, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 14px;
    transition: all 0.3s ease !important;
}

.filter-btn:hover {
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.filter-btn.active {
    background: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4) !important;
}

/* Уровни сложности */
.difficulty-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.difficulty-btn {
    position: relative;
    overflow: hidden;
}

.difficulty-btn.easy {
    border-color: var(--neon-green) !important;
    color: var(--neon-green) !important;
}

.difficulty-btn.easy.active {
    background: var(--neon-green) !important;
    color: var(--dark-bg) !important;
}

.difficulty-btn.medium {
    border-color: var(--neon-yellow) !important;
    color: var(--neon-yellow) !important;
}

.difficulty-btn.medium.active {
    background: var(--neon-yellow) !important;
    color: var(--dark-bg) !important;
}

.difficulty-btn.hard {
    border-color: var(--neon-orange) !important;
    color: var(--neon-orange) !important;
}

.difficulty-btn.hard.active {
    background: var(--neon-orange) !important;
    color: var(--dark-bg) !important;
}

.difficulty-btn.expert {
    border-color: var(--neon-pink) !important;
    color: var(--neon-pink) !important;
}

.difficulty-btn.expert.active {
    background: var(--neon-pink) !important;
    color: var(--dark-bg) !important;
}

/* ========================================
   ИСПРАВЛЕНИЕ БАГА СО СКРОЛЛОМ ТЕСТОВ
   ======================================== */

section#tests {
    padding-top: 30px !important;
}

#tests .card:first-child {
    margin-top: 0 !important;
}

#tests .test-cards {
    margin-top: 20px !important;
}

/* Фикс для переключения секций */
section {
    display: none;
    opacity: 0;
    padding-top: 30px !important;
}

section.visible {
    display: block !important;
    opacity: 1 !important;
    animation: section-appear 0.5s ease-out !important;
}

@keyframes section-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ
   ======================================== */

/* Эффект мерцания для иконок */
@keyframes icon-shimmer {
    0%, 100% { filter: drop-shadow(0 0 5px var(--neon-cyan)); }
    50% { filter: drop-shadow(0 0 20px var(--neon-pink)); }
}

.learning-card i, .contact-icon, .action-btn i {
    animation: icon-shimmer 3s ease-in-out infinite;
}

/* Эффект печатающегося текста для заголовков результатов */
@keyframes text-glow-pulse {
    0%, 100% { text-shadow: 0 0 10px var(--neon-cyan); }
    50% { text-shadow: 0 0 30px var(--neon-cyan), 0 0 50px var(--neon-pink); }
}

.result-header h2 {
    animation: text-glow-pulse 3s ease-in-out infinite;
}

/* Анимация для карточек при появлении */
@keyframes card-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.learning-card:nth-child(1) { animation: card-slide-in 0.5s ease 0.1s both; }
.learning-card:nth-child(2) { animation: card-slide-in 0.5s ease 0.2s both; }
.learning-card:nth-child(3) { animation: card-slide-in 0.5s ease 0.3s both; }
.learning-card:nth-child(4) { animation: card-slide-in 0.5s ease 0.4s both; }
.learning-card:nth-child(5) { animation: card-slide-in 0.5s ease 0.5s both; }
.learning-card:nth-child(6) { animation: card-slide-in 0.5s ease 0.6s both; }

/* Эффект волны для кнопок */
@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.action-btn:active::after {
    animation: ripple-effect 0.6s ease-out;
}

/* Плавающие элементы */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.contact-item:nth-child(odd) {
    animation: gentle-float 4s ease-in-out infinite;
}

.contact-item:nth-child(even) {
    animation: gentle-float 4s ease-in-out infinite 0.5s;
}

/* Эффект сканирования для секций */
@keyframes scan-section {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

section.visible::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scan-section 2s ease-out;
    pointer-events: none;
}

/* Пульсация для важных элементов */
@keyframes important-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 245, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
    }
}

.test-card, .quick-start-btn {
    animation: important-pulse 3s ease-in-out infinite;
}

/* Анимация для результатов теста */
@keyframes result-stat-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

.stat-item:nth-child(1) { animation: result-stat-appear 0.5s ease 0.1s both; }
.stat-item:nth-child(2) { animation: result-stat-appear 0.5s ease 0.2s both; }
.stat-item:nth-child(3) { animation: result-stat-appear 0.5s ease 0.3s both; }
.stat-item:nth-child(4) { animation: result-stat-appear 0.5s ease 0.4s both; }

/* Неоновая подсветка при скролле */
@keyframes scroll-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 245, 255, 0); }
    50% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.3); }
}

.card:hover {
    animation: scroll-glow 2s ease-in-out;
}

/* ========================================
   УВЕДОМЛЕНИЯ
   ======================================== */

@keyframes notification-in {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notification-out {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

.notification {
    font-family: 'Orbitron', sans-serif !important;
}

.notification.success {
    border-color: var(--neon-green) !important;
    color: var(--neon-green) !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3) !important;
}

.notification.error {
    border-color: var(--neon-pink) !important;
    color: var(--neon-pink) !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3) !important;
}

/* ========================================
   СКРОЛЛ ПРОГРЕСС БАР
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-pink);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   КАЛЕНДАРЬ АКТИВНОСТИ
   ======================================== */

.activity-calendar {
    margin-top: 30px;
}

.activity-calendar h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin: 20px 0;
}

.calendar-grid > div {
    aspect-ratio: 1;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.calendar-grid > div:hover {
    transform: scale(1.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.calendar-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

.legend-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-box.empty {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-box.low {
    background: rgba(0, 245, 255, 0.3);
}

.legend-box.medium {
    background: rgba(0, 245, 255, 0.6);
}

.legend-box.high {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ========================================
   ДОСТИЖЕНИЯ
   ======================================== */

.achievements-section h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achievement {
    background: var(--card-bg);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.4s ease;
}

.achievement:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
}

.achievement.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement.locked:hover {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.achievement-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.achievement-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
}

/* ========================================
   УРОВЕНЬ ПРОГРЕСС
   ======================================== */

.level-progress-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
}

.level-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

#xp-text {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

.level-progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.profile-level-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    white-space: nowrap;
}

.profile-level-badge .level-icon {
    margin-right: 5px;
}

/* ========================================
   ИСТОРИЯ ТЕСТОВ
   ======================================== */

.test-history {
    margin-top: 30px;
}

.test-history h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.history-item {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2) !important;
    transform: translateX(5px);
}

/* ========================================
   КАРЬЕРНЫЕ РЕКОМЕНДАЦИИ
   ======================================== */

.career-recommendations {
    margin-top: 30px;
}

.career-recommendations h3 {
    color: var(--neon-cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.career-list {
    margin-top: 20px;
}

.career-list p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ========================================
   ФАКТЫ КАРУСЕЛЬ УЛУЧШЕННАЯ
   ======================================== */

.fact-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fact-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.3);
}

.fact-dot:hover {
    background: var(--neon-cyan);
}

/* ========================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
    .tests-filter-panel {
        padding: 15px !important;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 15px !important;
        font-size: 12px;
    }
    
    .test-card-meta {
        justify-content: center;
    }
    
    .profile-name-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .result-score {
        font-size: 3em !important;
    }
    
    .notification {
        right: 10px !important;
        left: 10px !important;
        text-align: center;
    }
}
