﻿:root {
    --accent: #2b8cff;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

.stats-page {
    background: #0a0c10;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-header { margin-bottom: 30px; }
.back-btn { color: var(--accent); text-decoration: none; font-size: 14px; margin-bottom: 10px; display: inline-block; }
.stats-header h1 { font-size: 32px; margin: 5px 0; }
.stats-header p { opacity: 0.5; }

/* Грид карточек */
.stats-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(43, 140, 255, 0.2) 0%, rgba(43, 140, 255, 0.05) 100%);
    border-color: rgba(43, 140, 255, 0.3);
}

.stat-label { font-size: 12px; text-transform: uppercase; opacity: 0.6; letter-spacing: 1px; }
.stat-value { display: block; font-size: 32px; font-weight: 700; margin: 10px 0; }
.stat-value small { font-size: 16px; opacity: 0.5; }

.stat-trend { font-size: 12px; color: #22c55e; }
.stat-sub { font-size: 12px; opacity: 0.4; }

/* Прогресс-бар */
.stat-progress {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin: 15px 0 5px;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 10px; }

/* Вторичные боксы */
.stats-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 25px;
}

.data-box h3 { font-size: 18px; margin-bottom: 20px; }

/* Круговая диаграмма (SVG) */
.circular-chart { display: block; margin: 10px auto; max-width: 120px; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2.8; }
.circle { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; transition: 1s; }
.percentage { fill: #fff; font-size: 8px; text-anchor: middle; font-weight: 700; }

/* Список направлений */
.top-routes { list-style: none; padding: 0; }
.top-routes li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.top-routes li:last-child { border: none; }
.top-routes span { opacity: 0.7; }

.btn-export {
    margin-top: 40px;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-export:hover { background: rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .stats-secondary-grid { grid-template-columns: 1fr; }
}