/* Личный кабинет: табы, карточки, статы, графики */

.profile-header {
    background: linear-gradient(135deg, #3399cc 0%, #287ba7 100%);
    color: #fff;
}

.profile-header .container {
    padding: 0.65rem 1.5rem;
}

.profile-header h1 {
    color: #fff;
}

.profile-tabs {
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Bulma .container сам по себе не даёт горизонтальных отступов — только
   центрирует блок. Без этого на мобильном контент (табы, карточки, таблицы)
   упирается прямо в край экрана. Единый отступ для всех блоков вкладок. */
.profile-tabs .container,
.profile-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.profile-tabs .profile-tab {
    padding: 1rem 1.25rem;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-tabs .profile-tab:hover {
    color: #287ba7;
    background-color: transparent;
}

.profile-tabs .profile-tab.is-active {
    color: #3399cc;
    border-bottom-color: #3399cc;
}

@media screen and (max-width: 768px) {
    .profile-tabs .profile-tab {
        padding: 0.85rem 1.1rem;
        font-size: 1.15rem;
    }
}

.profile-section {
    padding: 2.5rem 0;
    /* Прямой потомок body (flex-колонка, см. index.css) — растягиваем на
       остаток высоты, чтобы футер держался у низа на коротких страницах. */
    flex-grow: 1;
}

.stat-card {
    padding: 1.75rem 1rem;
    text-align: center;
    border-radius: 10px; /* Bulma не даёт утилиты для скругления — только is-radiusless */
}

.stat-card .stat-icon {
    color: #3399cc;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.profile-card {
    padding: 2rem;
}

.profile-card .label {
    color: #374151;
    font-weight: 600;
}

/* «Анкета» и «Цель» рядом на десктопе. Высоту карточек НЕ уравниваем —
   принудительный stretch раздувал короткую «Цель» пустотой до высоты
   «Анкеты», и с акцентным фоном это выглядело как заезд в футер.
   Каждая карточка — своей естественной высоты, верх выровнен. */
.profile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
    align-items: start;
}

@media screen and (max-width: 768px) {
    .profile-columns {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }
}

.chart-card {
    padding: 1.5rem;
    height: 320px;
    position: relative;
}

