/* =========================================== */
/* СТИЛИ ДЛЯ СТРАНИЦЫ ТЕСТОВ */
/* =========================================== */

/* Живая статистика */
.live-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 77, 141, 0.2);
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-pink);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Быстрый подбор теста */
.test-quick-select {
    margin: 40px 0;
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.quick-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.quick-option:hover {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--primary-pink);
    transform: translateY(-5px);
}

.quick-option i {
    font-size: 2rem;
    color: var(--primary-pink);
}

/* Карточки тестов */
.popular-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.test-card {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 77, 141, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.test-card.featured {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.15), rgba(168, 85, 247, 0.15));
    border-color: var(--primary-pink);
    box-shadow: 0 15px 35px rgba(255, 77, 141, 0.2);
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 77, 141, 0.25);
}

.test-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.test-icon {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-align: center;
}

.test-content h3 {
    font-size: 1.5rem;
    color: var(--light-pink);
    margin-bottom: 15px;
    line-height: 1.3;
}

.test-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-test-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.start-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 141, 0.3);
}

/* Категории тестов */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--primary-pink);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-pink);
}

.category-header h3 {
    font-size: 1.4rem;
    color: white;
    margin: 0;
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Интерактивная игра */
.game-container {
    background: rgba(15, 10, 26, 0.9);
    border-radius: 25px;
    padding: 40px;
    margin-top: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.game-players {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.player {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex: 1;
    max-width: 300px;
}

.player.active {
    border-color: var(--primary-pink);
    background: rgba(255, 77, 141, 0.1);
}

.player-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.player-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.player-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-pink);
}

.vs-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--purple), var(--dark-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    z-index: 2;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.game-question {
    background: rgba(255, 77, 141, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 77, 141, 0.2);
    position: relative;
}

.game-question h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.question-timer {
    position: absolute;
    top: 20px;
    right: 20px;
}

.timer-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.2);
    border: 3px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.game-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .game-answers {
        grid-template-columns: 1fr;
    }
}

.answer-btn {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.answer-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

.answer-btn.selected {
    background: rgba(255, 77, 141, 0.3);
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px rgba(255, 77, 141, 0.2);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.game-start-btn,
.game-next-btn {
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-start-btn {
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
}

.game-next-btn {
    background: linear-gradient(to right, var(--purple), var(--dark-purple));
    color: white;
}

/* Симулятор отношений */
.simulator-container {
    background: rgba(26, 15, 46, 0.9);
    border-radius: 25px;
    padding: 40px;
    margin-top: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.simulator-scenario {
    animation: fadeIn 0.5s ease-out;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scenario-number {
    color: var(--light-pink);
    font-weight: 600;
    font-size: 1.1rem;
}

.scenario-difficulty {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.simulator-scenario h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.scenario-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.scenario-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.choice-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.choice-card:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--primary-pink);
    transform: translateY(-5px);
}

.choice-card.selected {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--primary-pink);
    box-shadow: 0 10px 25px rgba(255, 77, 141, 0.2);
}

.choice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.choice-header i {
    font-size: 1.8rem;
    color: var(--primary-pink);
}

.choice-header h4 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.choice-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.choice-probability span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

.scenario-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--purple), var(--dark-purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.scenario-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.simulator-results {
    animation: fadeIn 0.5s ease-out;
}

.result-content {
    background: rgba(255, 77, 141, 0.1);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 77, 141, 0.2);
}

.result-content h3 {
    font-size: 1.6rem;
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-message {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.result-stats .stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--light-pink);
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.next-scenario-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Тест дня */
.daily-test-card {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.15), rgba(168, 85, 247, 0.2));
    border-radius: 25px;
    padding: 40px;
    margin-top: 30px;
    border: 2px solid rgba(255, 77, 141, 0.3);
    position: relative;
    overflow: hidden;
}

.daily-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.daily-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .daily-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.daily-icon {
    font-size: 4rem;
    color: var(--light-pink);
}

.daily-text h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.daily-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.daily-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.daily-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

#timeLeft {
    color: var(--light-pink);
    font-weight: 600;
}

.daily-start-btn {
    background: white;
    color: var(--primary-pink);
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Совместный тест в реальном времени */
.realtime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .realtime-container {
        grid-template-columns: 1fr;
    }
}

.realtime-setup {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.realtime-setup h3 {
    font-size: 1.5rem;
    color: var(--light-pink);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-steps {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.setup-steps li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    font-size: 1.05rem;
}

.setup-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.setup-actions {
    display: flex;
    gap: 15px;
}

.create-room-btn,
.join-room-btn {
    flex: 1;
    padding: 15px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.create-room-btn {
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
}

.join-room-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.realtime-demo {
    background: rgba(15, 10, 26, 0.9);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.demo-header h4 {
    font-size: 1.3rem;
    color: var(--light-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background: #27ae60;
    animation: pulse 2s infinite;
}

.demo-screens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .demo-screens {
        grid-template-columns: 1fr;
    }
}

.demo-screen {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--light-pink);
    font-weight: 600;
}

.screen-header i {
    font-size: 1.5rem;
}

.question {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.answer {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.answer.selected {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--primary-pink);
    color: white;
}

.demo-result {
    background: rgba(255, 77, 141, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 77, 141, 0.2);
}

.result-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.match-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-pink);
}

.result-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Анализ отношений */
.analysis-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .analysis-container {
        grid-template-columns: 1fr;
    }
}

.analysis-chart {
    background: rgba(26, 15, 46, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.chart-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 25px;
}

@media (max-width: 500px) {
    .chart-wrapper {
        width: 300px;
        height: 300px;
    }
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.analysis-report {
    background: rgba(255, 77, 141, 0.1);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 77, 141, 0.2);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-header h3 {
    font-size: 1.6rem;
    color: var(--light-pink);
    margin: 0;
}

.report-score {
    text-align: center;
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-pink);
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.report-strengths,
.report-improvements {
    margin-bottom: 30px;
}

.report-strengths h4,
.report-improvements h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strengths-list,
.improvements-list {
    list-style: none;
    padding-left: 0;
}

.strengths-list li,
.improvements-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.strengths-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.improvements-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: bold;
}

.generate-report-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--purple), var(--dark-purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-report-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Марафон тестов */
.marathon-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.15));
    border-radius: 25px;
    padding: 40px;
    margin-top: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.marathon-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-days {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-days::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.day-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.day.completed .day-number {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: white;
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(255, 77, 141, 0.3);
}

.day.current .day-number {
    background: linear-gradient(135deg, var(--purple), var(--dark-purple));
    color: white;
    border-color: var(--purple);
    animation: pulse 2s infinite;
}

.day-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.marathon-today {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .marathon-today {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.today-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.today-badge i {
    font-size: 2rem;
}

.today-test h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 10px;
}

.today-test p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.today-start-btn {
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marathon-rewards h4 {
    font-size: 1.4rem;
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.reward {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward i {
    font-size: 1.8rem;
    color: var(--primary-pink);
}

.reward span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Рекомендации */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.recommendation-card:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--primary-pink);
    transform: translateY(-8px);
}

.rec-icon {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.recommendation-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
}

.recommendation-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.rec-btn {
    background: rgba(255, 77, 141, 0.2);
    color: var(--light-pink);
    border: 1px solid rgba(255, 77, 141, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.rec-btn:hover {
    background: rgba(255, 77, 141, 0.3);
    transform: translateY(-3px);
}

/* Футер страницы тестов */
.tests-footer {
    margin-top: 50px;
}

.tests-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.mini-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.mini-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-pink);
    margin-bottom: 5px;
}

.mini-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.view-stats-btn {
    width: 100%;
    padding: 12px;
    background: rgba(139, 92, 246, 0.2);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reminder-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

/* Модальное окно теста */
.test-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.test-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--dark-bg);
    border-radius: 25px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    border: 3px solid var(--primary-pink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Анимация пульсации для точек */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .live-stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .quick-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-option {
        min-width: auto;
    }
    
    .game-players {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs-circle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 20px 0;
    }
    
    .player {
        max-width: 100%;
    }
    
    .daily-test-card {
        padding: 25px;
    }
    
    .daily-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .test-card {
        padding: 20px;
    }
    
    .test-content h3 {
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-choices {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ТЕСТА */
/* =========================================== */

/* Модальное окно теста */
.test-modal-content {
    max-width: 800px;
    margin: 0 auto;
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.test-header h2 {
    font-size: 2.2rem;
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.test-header h2 i {
    color: var(--primary-pink);
    font-size: 2rem;
}

.test-progress {
    max-width: 600px;
    margin: 0 auto;
}

.test-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.test-progress .progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.test-progress span {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Вопрос теста */
.test-question {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-question h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.4;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.test-option:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: rgba(255, 77, 141, 0.3);
    transform: translateX(5px);
}

.test-option input[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.test-option input[type="radio"]:checked {
    border-color: var(--primary-pink);
    background: var(--primary-pink);
}

.test-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.test-option span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
}

.test-option input[type="radio"]:checked + span {
    color: var(--light-pink);
}

/* Контролы теста */
.test-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.test-prev-btn,
.test-next-btn,
.test-submit-btn {
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.test-prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.test-prev-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.test-next-btn {
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    color: white;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.test-next-btn:not(:disabled):hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 141, 0.3);
}

.test-submit-btn {
    background: linear-gradient(to right, var(--purple), var(--dark-purple));
    color: white;
}

.test-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Подсказки */
.test-tips {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    padding: 20px 25px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-tips i {
    font-size: 1.5rem;
    color: #3498db;
    flex-shrink: 0;
}

.test-tips span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

/* Результаты теста */
.test-results {
    animation: fadeIn 0.5s ease-out;
}

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

.results-header i {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 20px;
    display: block;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--light-pink);
    margin: 0;
}

.results-score {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 77, 141, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.score-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.score-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 10px;
}

.results-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.results-message h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.results-message p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.results-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail {
    margin-bottom: 20px;
}

.detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.detail-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-pink), var(--dark-pink));
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.results-close-btn,
.results-share-btn,
.results-save-btn {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-close-btn {
    background: rgba(231, 76, 60, 0.2);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.results-close-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-3px);
}

.results-share-btn {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.results-share-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-3px);
}

.results-save-btn {
    background: rgba(46, 204, 113, 0.2);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.results-save-btn:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-3px);
}

/* Статистика в модальном окне */
.stats-modal {
    padding: 20px;
}

.stats-modal h2 {
    font-size: 2rem;
    color: var(--light-pink);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.stat-box:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--primary-pink);
    transform: translateY(-5px);
}

.stat-box .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-pink);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-box .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stats-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-achievements h3 {
    font-size: 1.5rem;
    color: var(--light-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.achievement {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.achievement.unlocked {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--primary-pink);
}

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

.achievement i {
    font-size: 1.8rem;
    color: var(--primary-pink);
    flex-shrink: 0;
}

.achievement.unlocked i {
    color: #ffd700;
}

.achievement.locked i {
    color: rgba(255, 255, 255, 0.3);
}

.achievement span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.achievement.locked span {
    color: rgba(255, 255, 255, 0.5);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-body {
        padding: 20px;
    }
    
    .test-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .test-question {
        padding: 25px 20px;
    }
    
    .test-question h3 {
        font-size: 1.4rem;
    }
    
    .test-option {
        padding: 15px 20px;
    }
    
    .test-option span {
        font-size: 1rem;
    }
    
    .test-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .test-prev-btn,
    .test-next-btn,
    .test-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-close-btn,
    .results-share-btn,
    .results-save-btn {
        width: 100%;
        justify-content: center;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-value {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .test-header h2 {
        font-size: 1.5rem;
    }
    
    .test-question h3 {
        font-size: 1.2rem;
    }
    
    .test-option {
        padding: 12px 15px;
    }
    
    .results-message h3 {
        font-size: 1.5rem;
    }
    
    .results-message p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-list {
        grid-template-columns: 1fr;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}