/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
    font-size: inherit;
}

:root {
    --primary-color: #2C2C2E;
    --secondary-color: #48484A;
    --accent-color: #FF6000;
    --success-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --background-color: #E5E5EA;
    --card-background: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #6D6D70;
    --border-color: #D1D1D6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Неоморфизм: базовые переменные и утилитарные классы */
body {
    /* Базовые цвета */
    --primary-color: #2C2C2E;
    --secondary-color: #48484A;
    --accent-color: #FF6000;
    --success-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --text-primary: #1C1C1E;
    --text-secondary: #6D6D70;
    --border-color: #D1D1D6;

    /* Неоморфный фон и тени (точно как в референсе) */
    --neu-bg: #F0F0F3; /* Background #F0F0F3 */
    /* Drop Shadow: короче и интенсивнее */
    --neu-shadow-outer: -6px -6px 20px #FFFFFF, 6px 6px 20px rgba(174, 174, 192, 0.6);
    /* Более мягкий вариант наружной тени для мелких элементов */
    --neu-shadow-outer-soft: -6px -6px 16px rgba(255, 255, 255, 0.95), 6px 6px 16px rgba(174, 174, 192, 0.5);
    /* Сильная тень для hover состояний */
    --neu-shadow-strong: -8px -8px 24px #FFFFFF, 8px 8px 24px rgba(174, 174, 192, 0.7);
    /* Мягкая тень */
    --neu-shadow-soft: -4px -4px 12px rgba(255, 255, 255, 0.9), 4px 4px 12px rgba(174, 174, 192, 0.4);
    /* Inner Shadow: короче и интенсивнее */
    --neu-shadow-inset: inset 2px 2px 8px rgba(22, 27, 29, 0.25), inset -4px -4px 8px rgba(250, 251, 255, 0.95);
    /* Drop Shadow для нажатой кнопки: короче и интенсивнее */
    --neu-shadow-pressed: -6px -6px 12px rgba(255, 255, 255, 0.8), 6px 6px 12px rgba(174, 174, 192, 0.35);

    background-color: var(--neu-bg);
    color: var(--text-primary);
}

.neu-surface {
    background: var(--neu-bg);
    border-radius: 18px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.neu-surface-strong {
    background: var(--neu-bg);
    border-radius: 22px;
    box-shadow: var(--neu-shadow-outer);
}

.neu-inset {
    background: var(--neu-bg);
    border-radius: 14px;
    box-shadow: var(--neu-shadow-inset);
}

.neu-button {
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer-soft);
    border-radius: 999px;
    border: none;
    transition: box-shadow 0.2s ease, transform 0.12s ease, background 0.2s ease;
}

.neu-button:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(1px);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 140px; /* Место для навигации */
}

/* Заголовок */
.header {
    margin-bottom: 24px;
}

.header-top-subscription {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.header-title-wrapper {
    flex: 1;
    text-align: center;
}

.btn-close-subscription {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-close-subscription:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.btn-close-subscription:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.btn-close-subscription .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-primary);
}

.subscription-page {
    background-color: var(--neu-bg);
}

.subscription-page .container.subscription-container {
    padding-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.avatar-swipe-container {
    position: relative;
    width: 120px;
    height: 40px;
}

.avatar-swipe-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-inset);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--neu-bg);
    box-shadow: -4px -4px 12px rgba(255, 255, 255, 1), 4px 4px 12px rgba(174, 174, 192, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.2s;
    position: relative;
    z-index: 10;
    touch-action: pan-y;
    user-select: none;
    flex-shrink: 0;
}

.header-avatar.swiping {
    transition: none;
}

.header-avatar:hover {
    box-shadow: -5px -5px 14px rgba(255, 255, 255, 1), 5px 5px 14px rgba(174, 174, 192, 0.9);
    transform: translateY(-1px);
}

.header-avatar:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.swipe-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 5;
}

.swipe-label .material-symbols-outlined {
    font-size: 14px;
}

.swipe-label-left {
    left: 8px;
}

.swipe-label-right {
    right: 8px;
}

/* Если пользователь в аккаунте - показываем метку "Выход" слева */
.avatar-swipe-track.logged-in .swipe-label-left {
    opacity: 1;
}

/* Если пользователь не в аккаунте - показываем метку "Вход" справа */
.avatar-swipe-track.logged-out .swipe-label-right {
    opacity: 1;
}

/* При свайпе влево (для выхода) показываем метку ВЫХОД слева */
.avatar-swipe-track.swiping-left .swipe-label-left {
    opacity: 1;
    color: var(--accent-color);
}

.avatar-swipe-track.swiping-left .swipe-label-left .material-symbols-outlined {
    color: var(--accent-color);
}

/* При свайпе вправо (для входа) показываем метку ВХОД справа */
.avatar-swipe-track.swiping-right .swipe-label-right {
    opacity: 1;
    color: var(--accent-color);
}

.avatar-swipe-track.swiping-right .swipe-label-right .material-symbols-outlined {
    color: var(--accent-color);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neu-bg);
}

.avatar-placeholder .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
}

.header-notifications {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-plan-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 40px;
}

.subscription-plan-btn:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.subscription-plan-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.plan-badge-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.subscription-plan-btn[data-tier="basic"] {
    background: rgba(52, 199, 89, 0.15);
}

.subscription-plan-btn[data-tier="basic"] .plan-badge-text {
    color: #34C759;
}

.subscription-plan-btn[data-tier="premium"] {
    background: rgba(255, 96, 0, 0.15);
}

.subscription-plan-btn[data-tier="premium"] .plan-badge-text {
    color: var(--accent-color);
}

.subscription-plan-btn[data-tier="ultimate"] {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.2), rgba(255, 149, 0, 0.2));
}

.subscription-plan-btn[data-tier="ultimate"] .plan-badge-text {
    color: var(--accent-color);
}

.notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-btn:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.notification-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.notification-btn .material-symbols-outlined {
    font-size: 22px;
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF3B30;
    border: 2px solid var(--neu-bg);
    display: block;
}

.header-search {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: none;
    border-radius: 20px;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    box-shadow: var(--neu-shadow-strong);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Быстрая статистика */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--neu-bg);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--neu-shadow-outer-soft);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Виджет серии тренировок на главной (в палитре приложения) */
.streak-widget {
    background: var(--card-background);
    color: var(--text-primary);
    border-radius: 18px;
    padding: 16px 18px 18px 18px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.streak-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(44, 44, 46, 0.25);
}

.streak-icon .material-symbols-outlined {
    font-size: 20px;
    color: #fff;
}

.streak-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.streak-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.streak-value {
    font-size: 18px;
    font-weight: 700;
}

.streak-secondary .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-secondary);
}

.streak-week {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.streak-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.streak-dot .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-primary);
}

.streak-dot.active {
    background: rgba(44, 44, 46, 0.1);
    box-shadow: inset 0 0 0 1px rgba(44, 44, 46, 0.3);
}

.streak-dot.current {
    background: rgba(255, 96, 0, 0.12);
    box-shadow: inset 0 0 0 2px var(--accent-color);
}

.streak-dot.current .material-symbols-outlined,
.streak-dot.current.active .material-symbols-outlined {
    color: var(--text-primary) !important;
}

.streak-week-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--text-secondary);
}

.streak-progress {
    margin-top: 2px;
}

.streak-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.streak-progress-text span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.streak-progress-percent {
    font-weight: 600;
}

.streak-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--background-color);
    overflow: hidden;
}

.streak-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 8px rgba(44, 44, 46, 0.3);
    transition: width 0.3s ease;
}

/* Секции */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

section h2 .material-symbols-outlined {
    font-size: 26px;
    color: var(--primary-color);
}

/* Тренировки */
.workouts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workout-item {
    background: var(--neu-bg);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.workout-item.booking-item {
    position: relative;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.workout-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.workout-item.booking-item .workout-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.workout-details {
    flex: 1;
    min-width: 0;
}

.workout-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.workout-name {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.workout-item.booking-item .workout-name {
    font-size: 15px;
    margin-bottom: 0;
}

.workout-info {
    font-size: 14px;
    color: var(--text-secondary);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.workout-item.booking-item .workout-info {
    font-size: 13px;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.booking-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .workout-item.booking-item {
        gap: 10px;
    }
    
    .workout-header-line {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .workout-info {
        width: auto;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        display: inline-flex;
    }
}

@media (max-width: 400px) {
    .workout-item.booking-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .workout-item.booking-item .workout-icon {
        align-self: flex-start;
        margin-top: 2px;
    }
    
    .workout-details {
        width: 100%;
        flex: 1;
    }
    
    .booking-actions {
        width: auto;
        justify-content: flex-end;
        margin-top: 0;
        align-self: flex-start;
    }
}

.btn-booking-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-booking-action:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.btn-booking-action:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.btn-booking-action .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-hint {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Профиль */
.profile-header {
    text-align: center;
    padding: 24px 0;
}

.profile-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    font-size: 48px;
}

.profile-photo-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: var(--text-secondary);
}

.profile-username {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Максимальные показатели */
.records-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-card {
    background: var(--neu-bg);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--neu-shadow-outer-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.record-card:hover {
    box-shadow: var(--neu-shadow-outer);
    transform: translateY(-1px);
}

.record-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.record-icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-primary);
}

.record-info {
    flex: 1;
    min-width: 0;
}

.record-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.record-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.record-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.record-arrow .material-symbols-outlined {
    font-size: 20px;
}

/* Графики */
.chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.chart-tab {
    background: var(--background-color);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chart-tab.active {
    background: var(--primary-color);
    color: white;
}

.chart-container {
    background: var(--neu-bg);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.chart-empty {
    background: var(--neu-bg);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: var(--neu-shadow-outer-soft);
}

.chart-empty-hint {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Типы тренировок */
.workout-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.workout-type-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.workout-type-card:active {
    transform: scale(0.97);
}

.workout-type-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.workout-type-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.workout-type-description {
    font-size: 12px;
    color: var(--text-secondary);
}

/* История тренировок */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}

.history-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.history-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.history-notes {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Формы */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
    background: var(--neu-bg);
    border: none;
    box-shadow: var(--neu-shadow-inset);
    border-radius: 12px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea:focus {
    border: none;
    box-shadow: var(--neu-shadow-inset);
}

.form-section {
    margin-bottom: 20px;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.form-section-header label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-add {
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Упражнения в форме */
.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 12px;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exercise-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.exercise-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exercise-name {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.exercise-params {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.exercise-params input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

/* Кнопки */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    /* Не нажатая primary-кнопка — drop shadow */
    box-shadow: var(--neu-shadow-outer);
}

.btn-primary:disabled,
.btn-primary[disabled] {
    color: #000000;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--neu-shadow-outer);
}

.btn-primary:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--neu-bg);
    color: var(--text-primary);
    box-shadow: var(--neu-shadow-outer-soft);
}

.btn-secondary:active {
    box-shadow: var(--neu-shadow-inset);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: var(--neu-bg);
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--neu-shadow-outer);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    min-width: 280px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification::before {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-success {
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
}

.notification-success::before {
    content: '✓';
    background: var(--neu-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--neu-shadow-inset);
    border: 1px solid rgba(255, 96, 0, 0.2);
}

.notification-error {
    color: var(--text-primary);
    border-left: 4px solid var(--danger-color);
}

.notification-error::before {
    content: '✕';
    background: var(--neu-bg);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--neu-shadow-inset);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.notification-info {
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
}

.notification-info::before {
    content: 'ℹ';
    background: var(--neu-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    font-style: normal;
    box-shadow: var(--neu-shadow-inset);
    border: 1px solid rgba(44, 44, 46, 0.2);
}

/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neu-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-around;
    padding: 6px 8px;
    box-shadow: -6px -6px 16px #FFFFFF, 6px 6px 16px rgba(174, 174, 192, 0.35);
    gap: 6px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    border-radius: 14px;
    background: var(--neu-bg);
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 0 0 3px 3px;
    transition: background 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    box-shadow: none !important;
}

.nav-item.active::before {
    background: var(--accent-color);
}

.nav-item:active {
    box-shadow: var(--neu-shadow-inset) !important;
    outline: none;
}

.nav-item.active:active {
    box-shadow: none !important;
    outline: none;
}

.nav-item:focus,
.nav-item.active:focus,
.nav-item:hover {
    box-shadow: none !important;
    outline: none;
}

.nav-icon {
    font-size: 22px;
}

.nav-icon .material-symbols-outlined {
    font-size: 22px;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Promo Card */
.fullbody-promo {
    margin-bottom: 24px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.promo-card:active {
    transform: scale(0.98);
}

.promo-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.promo-icon .material-symbols-outlined {
    font-size: 48px;
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-content p {
    font-size: 14px;
    opacity: 0.9;
}

.promo-arrow {
    font-size: 24px;
    flex-shrink: 0;
}

/* Full Body Plan Styles */

/* Статус плана */
.plan-status {
    margin-bottom: 24px;
}

.status-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: var(--shadow);
}

.status-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.btn-change-plan {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.btn-change-plan:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-change-plan .material-symbols-outlined {
    font-size: 20px;
}

.status-week,
.status-session {
    font-size: 14px;
    font-weight: 600;
}

.status-week span,
.status-session span {
    font-size: 20px;
    display: block;
    margin-top: 4px;
}

.status-progress {
    margin-top: 16px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

/* Приветственный экран */
.welcome-section {
    margin-bottom: 24px;
}

.welcome-card {
    background: var(--neu-bg);
    border-radius: 22px;
    padding: 32px 24px 40px 24px;
    text-align: center;
    box-shadow: var(--neu-shadow-outer);
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.welcome-icon .material-symbols-outlined {
    font-size: 64px;
    color: var(--primary-color);
}

.welcome-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.welcome-card .btn-primary {
    margin-top: 8px;
    margin-bottom: 40px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
}

.plan-info {
    text-align: left;
    margin-bottom: 24px;
}

.plan-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
}

.plan-info ul {
    list-style: none;
    padding: 0;
}

.plan-info li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-info li .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

/* Тестовая тренировка */
.test-workout-section {
    margin-bottom: 24px;
}

.test-card {
    background: var(--neu-bg);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--neu-shadow-outer);
}

.test-card {
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.test-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.test-card .form-actions {
    margin-top: 32px;
    margin-bottom: 20px;
}

.test-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.test-important {
    background: linear-gradient(135deg, rgba(44, 44, 46, 0.1), rgba(72, 72, 74, 0.1));
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.test-important .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-text {
    color: var(--primary-color);
    font-size: 17px;
    padding: 2px 6px;
    background: rgba(44, 44, 46, 0.15);
    border-radius: 4px;
    white-space: nowrap;
}

.test-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.test-exercise-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 16px;
}

.test-exercise-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.exercise-test-inputs label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.test-weight-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.test-weight-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.test-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(44, 44, 46, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.test-hint .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.test-hint strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Активная тренировка */
.active-workout-section {
    margin-bottom: 24px;
}

.workout-card {
    background: var(--neu-bg);
    border-radius: 22px;
    padding: 24px;
    padding-bottom: 40px;
    box-shadow: var(--neu-shadow-outer);
    margin-bottom: 40px;
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.workout-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.workout-header h2 .material-symbols-outlined {
    font-size: 28px;
}

.workout-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: inline;
    white-space: nowrap;
}

.workout-duration {
    display: inline;
    white-space: nowrap;
}

.workout-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.workout-exercise-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 16px;
}

.exercise-info {
    margin-bottom: 16px;
}

.exercise-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.exercise-target {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.exercise-completion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.completion-checkbox {
    display: none;
}

.completion-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.checkmark .material-symbols-outlined {
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.completion-checkbox:checked + .completion-text {
    border-color: var(--success-color);
    background: rgba(52, 199, 89, 0.1);
    color: var(--success-color);
}

.completion-checkbox:checked + .completion-text .checkmark {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.next-target {
    min-height: 36px;
}

.next-info {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-info.success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success-color);
}

.next-info.repeat {
    background: rgba(255, 149, 0, 0.1);
    color: var(--warning-color);
}

.next-icon {
    font-size: 16px;
}

/* Кнопка начать тренировку */
.start-workout-section {
    margin-bottom: 40px;
}

.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-icon {
    font-size: 24px;
}

.btn-icon .material-symbols-outlined {
    font-size: 28px;
}

.next-exercises {
    background: var(--neu-bg);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.next-exercises h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.preview-exercise {
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 8px;
}

.preview-exercise:last-child {
    margin-bottom: 0;
}

.preview-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.preview-params {
    font-size: 14px;
    color: var(--text-secondary);
}

/* История прогресса */
.progress-history {
    margin-bottom: 24px;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-list .history-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-session {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-week {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-notes {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

.progress-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.progress-list .empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Завершение плана */
.completed-section {
    margin-bottom: 24px;
}

.completed-card {
    background: var(--neu-bg);
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--neu-shadow-outer);
}

.completed-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.completed-icon .material-symbols-outlined {
    font-size: 64px;
    color: var(--success-color);
}

.completed-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--success-color);
}

.completed-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.completed-stats {
    margin: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Адаптивность */

/* Планшеты и средние экраны */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 14px;
        padding-bottom: 140px;
    }
    
    .header-notifications {
        gap: 8px;
    }
    
    .subscription-plan-btn {
        padding: 6px 12px;
        height: 36px;
    }
    
    .plan-badge-text {
        font-size: 11px;
    }
    
    .notification-btn {
        width: 36px;
        height: 36px;
    }
    
    .test-important {
        padding: 14px;
        gap: 12px;
        font-size: 14.5px;
    }
    
    .test-important .material-symbols-outlined {
        font-size: 22px;
    }
    
    .highlight-text {
        font-size: 16.5px;
    }
    
    .test-hint {
        font-size: 12.5px;
        padding: 9px 11px;
    }
    
    .test-card,
    .workout-card {
        padding: 20px;
        padding-bottom: 35px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .container {
        padding: 12px;
        padding-bottom: 140px;
    }
    
    .header h1 {
        font-size: 24px;
        gap: 6px;
    }
    
    .header h1 .material-symbols-outlined {
        font-size: 28px;
    }
    
    .header-top-subscription {
        gap: 12px;
    }
    
    .btn-close-subscription {
        width: 36px;
        height: 36px;
    }
    
    .btn-close-subscription .material-symbols-outlined {
        font-size: 22px;
    }
    
    .header-title-wrapper {
        text-align: left;
    }
    
    .header-notifications {
        gap: 8px;
    }
    
    .subscription-plan-btn {
        padding: 6px 10px;
        height: 36px;
    }
    
    .plan-badge-text {
        font-size: 10px;
    }
    
    .notification-btn {
        width: 36px;
        height: 36px;
    }
    
    .notification-btn .material-symbols-outlined {
        font-size: 20px;
    }
    
    .quick-stats {
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .workout-types-grid {
        gap: 8px;
    }
    
    .welcome-card {
        padding: 24px 16px 40px 16px;
    }
    
    .welcome-card .btn-primary {
        margin-bottom: 30px;
    }
    
    .welcome-icon {
        font-size: 48px;
    }
    
    .welcome-icon .material-symbols-outlined {
        font-size: 48px;
    }
    
    .test-card,
    .workout-card {
        padding: 16px;
        padding-bottom: 30px;
    }
    
    .test-card h2,
    .workout-card h2 {
        font-size: 20px;
    }
    
    .test-description {
        font-size: 14px;
    }
    
    .test-important {
        padding: 12px;
        gap: 10px;
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .test-important .material-symbols-outlined {
        font-size: 22px;
        align-self: flex-start;
    }
    
    .highlight-text {
        font-size: 16px;
        padding: 2px 4px;
        display: inline-block;
    }
    
    .test-exercise-item {
        padding: 12px;
    }
    
    .test-exercise-item h3 {
        font-size: 15px;
    }
    
    .test-weight-input {
        font-size: 15px;
        padding: 10px;
    }
    
    .test-hint {
        font-size: 12px;
        padding: 8px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .test-hint .material-symbols-outlined {
        font-size: 16px;
    }
    
    .label-text {
        font-size: 13px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .exercise-photos {
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .exercise-photo-thumb {
        width: 45vw;
        max-width: 45vw;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 20px;
        gap: 6px;
    }
    
    section h2 .material-symbols-outlined {
        font-size: 24px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .container {
        padding: 10px;
        padding-bottom: 140px;
    }
    
    .test-important {
        padding: 10px;
        gap: 8px;
        font-size: 13px;
    }
    
    .test-important .material-symbols-outlined {
        font-size: 20px;
    }
    
    .highlight-text {
        font-size: 15px;
        padding: 1px 3px;
    }
    
    .test-hint {
        font-size: 11px;
        padding: 7px 8px;
    }
    
    .test-hint .material-symbols-outlined {
        font-size: 14px;
    }
    
    .test-card h2 {
        font-size: 18px;
    }
    
    .test-description {
        font-size: 13px;
    }
    
    .test-exercise-item h3 {
        font-size: 14px;
    }
    
    .test-weight-input {
        font-size: 14px;
        padding: 9px;
    }
    
    .label-text {
        font-size: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px;
        font-size: 15px;
    }
}

/* Версия приложения */
.app-version {
    text-align: center;
    padding: 20px 0 100px 0;
    margin-top: 20px;
}

.version-text {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
}

/* ============= Plans List Section ============= */

.plans-list-section {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-title .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary-color);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.plan-card {
    background: var(--neu-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--neu-shadow-outer-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.plan-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.plan-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(44, 44, 46, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.plan-type-badge .material-symbols-outlined {
    font-size: 14px;
}

.plan-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.plan-card-header > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plan-difficulty {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-difficulty.beginner {
    background: rgba(44, 44, 46, 0.1);
    color: var(--text-primary);
}

.plan-difficulty.intermediate {
    background: rgba(44, 44, 46, 0.1);
    color: var(--text-primary);
}

.plan-difficulty.advanced {
    background: rgba(44, 44, 46, 0.1);
    color: var(--text-primary);
}

.plan-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.plan-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.plan-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary-color);
}

.plan-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-plan-details {
    flex: 1;
    padding: 10px 16px;
    background: var(--neu-bg);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--neu-shadow-outer-soft);
}

.btn-plan-details:hover {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.98);
}

.btn-plan-buy {
    flex: 1;
    padding: 10px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.btn-plan-buy:hover {
    background: #E55500;
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.98);
}

.btn-plan-buy .material-symbols-outlined {
    font-size: 18px;
}

/* ============= Plan Details Modal ============= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content.plan-modal {
    background: var(--card-background);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--background-color);
}

.modal-close .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    flex: 1;
}

.plan-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plan-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-detail-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.plan-short-description {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
}

.plan-short-description p {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.plan-short-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-badge .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary-color);
}

.plan-exercises-summary {
    margin-top: 8px;
}

.exercises-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.exercises-summary-title .material-symbols-outlined {
    font-size: 22px;
    color: var(--primary-color);
}

.exercises-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.exercise-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--background-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.exercise-summary-item:hover {
    background: rgba(44, 44, 46, 0.05);
}

.exercise-summary-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.exercise-summary-info {
    flex: 1;
}

.exercise-summary-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.exercise-summary-params {
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--background-color);
    border-radius: 12px;
    flex-wrap: wrap; /* чтобы контент, включая фото, не выходил за границы карточки */
}

.plan-exercise-item .exercise-photos {
    width: 100%;
    justify-content: center;
}

.plan-exercise-item .exercise-photo-thumb {
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
}

/* Фото внутри карточки активной тренировки не выходят за пределы блока */
.workout-exercise-item .exercise-photos {
    width: 100%;
    justify-content: center;
}

.workout-exercise-item .exercise-photo-thumb {
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.detail-info-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary-color);
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Стили для free_editor программ */
.free-editor-program {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.week-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.week-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-title .material-symbols-outlined {
    font-size: 20px;
}

.workout-section {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.workout-section:first-child {
    margin-top: 0;
}

.workout-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workout-title .material-symbols-outlined {
    font-size: 18px;
}

.exercise-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(44, 44, 46, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.plan-detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.plan-detail-section-title .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary-color);
}

.plan-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-exercise-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--background-color);
    border-radius: 12px;
}

.exercise-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.exercise-params {
    font-size: 14px;
    color: var(--text-secondary);
}

.exercise-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.plan-progression-info {
    background: linear-gradient(135deg, rgba(44, 44, 46, 0.1) 0%, rgba(52, 199, 89, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.plan-progression-info h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-progression-info h4 .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

.plan-progression-info ul {
    margin: 0;
    padding-left: 20px;
}

.plan-progression-info li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-progression-info li:last-child {
    margin-bottom: 0;
}

/* Баннер свободного редактора */
.custom-plan-banner {
    background: linear-gradient(135deg, rgba(72, 72, 74, 0.1) 0%, rgba(44, 44, 46, 0.1) 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--secondary-color);
}

.banner-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-custom-plan {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-custom-plan:hover {
    background: var(--primary-color);
    transform: scale(1.02);
}

.plans-section-title {
    margin-bottom: 16px;
}

.plans-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Фильтр типов программ */
.training-types-filter {
    background: var(--neu-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(44, 44, 46, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 44, 46, 0.25);
}

.filter-icon {
    font-size: 28px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state .material-symbols-outlined {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Стили для типов программ */
.plan-type-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(44, 44, 46, 0.1);
}

.plan-type-badge-large .material-symbols-outlined {
    font-size: 16px;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.split-day-section {
    margin-bottom: 24px;
}

.split-day-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.circuit-info {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.circuit-info .material-symbols-outlined {
    font-size: 20px;
}

.circuit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 59, 48, 0.15) 100%);
    color: var(--warning-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--warning-color);
}

.rest-time {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(142, 142, 147, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.rest-info {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(142, 142, 147, 0.1);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

/* Стили для workout */
.split-day-header, .circuit-test-header, .free-editor-test-header {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.split-day-header h3, .circuit-test-header h3, .free-editor-test-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-day-header h3 .material-symbols-outlined,
.circuit-test-header h3 .material-symbols-outlined,
.free-editor-test-header h3 .material-symbols-outlined {
    font-size: 22px;
}

.split-day-header p, .circuit-test-header p, .free-editor-test-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.circuit-info {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #667eea;
}

.day-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
}

.split-day-workout-header, .circuit-workout-header {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(44, 44, 46, 0.1) 0%, rgba(72, 72, 74, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.split-day-workout-header h3, .circuit-workout-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-day-workout-header h3 .material-symbols-outlined,
.circuit-workout-header h3 .material-symbols-outlined {
    font-size: 20px;
}

.circuit-workout-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============= Free Editor Styles ============= */

.free-editor-section {
    margin-bottom: 24px;
}

.editor-section {
    margin-bottom: 24px;
}

.form-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-add-exercise {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-exercise:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.btn-add-exercise .material-symbols-outlined {
    font-size: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--card-background);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exercise-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.exercise-item:hover {
    border-color: var(--primary-color);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.exercise-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.btn-remove-exercise {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-exercise:hover {
    background: var(--danger-color);
    color: white;
}

.btn-remove-exercise .material-symbols-outlined {
    font-size: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

/* Переопределение для кнопки в форме бронирования */
.booking-card .btn-primary {
    background: var(--accent-color) !important;
    color: #fff !important;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: var(--neu-bg);
    color: #000000;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Адаптивность для планов */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-detail-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content.plan-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-plan-banner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-custom-plan {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
    
    .section-title .material-symbols-outlined {
        font-size: 26px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-card-title {
        font-size: 18px;
    }
}

/* ============= Test Workout in Profile ============= */

.test-workout-section {
    margin-bottom: 24px;
}

.test-workout-section .plan-card {
    padding: 16px;
    border: none;
    cursor: default;
}

.test-workout-section .plan-card:hover {
    transform: none;
    box-shadow: var(--neu-shadow-outer-soft);
    border-color: transparent;
}

.test-workout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.test-workout-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.test-workout-header h2 .material-symbols-outlined {
    font-size: 20px;
    color: var(--warning-color);
}

.test-description-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-radius: 8px;
}

.test-description-toggle:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.test-description-toggle .material-symbols-outlined {
    font-size: 24px;
}

.test-description-content {
    margin-bottom: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.test-exercises-preview {
    margin-bottom: 20px;
}

.test-exercises-preview h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.exercises-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exercises-preview-list li {
    padding: 8px 12px;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

/* ============= Active Workout in Profile ============= */

.active-workout-section {
    margin-bottom: 24px;
}

/* ============= Current Plan in Profile ============= */

.current-plan-section {
    margin-bottom: 24px;
}

.current-plan-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.current-plan-section h2 .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary-color);
}

.current-plan-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    color: white;
}

.current-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.current-plan-header:hover {
    opacity: 0.95;
}

.plan-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.current-plan-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.plan-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.btn-toggle .material-symbols-outlined {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.current-plan-card.collapsed .current-plan-progress {
    margin-bottom: 0;
}

.plan-details {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-status-badge.status-test {
    background: rgba(255, 204, 0, 0.3);
}

.plan-status-badge.status-active {
    background: rgba(52, 199, 89, 0.3);
}

.current-plan-progress {
    margin-bottom: 20px;
}

.progress-info {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percentage {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

.current-plan-card .next-exercises {
    background: white;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.current-plan-card .next-exercises h3 {
    color: var(--text-primary);
}

.btn-start-workout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    box-shadow: var(--neu-shadow-outer-soft);
}

.btn-start-workout:disabled,
.btn-start-workout[disabled] {
    background: var(--neu-bg);
    color: #000000;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-start-workout:hover {
    background: #E55500;
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.98);
}

.btn-start-workout .material-symbols-outlined {
    font-size: 20px;
}

.btn-change-plan-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-plan-profile:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-change-plan-profile .material-symbols-outlined {
    font-size: 18px;
}

.btn-goto-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--primary-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-goto-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-goto-plan .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 480px) {
    .current-plan-card {
        padding: 20px;
    }
    
    .current-plan-header h3 {
        font-size: 18px;
    }
}

/* Гостевой режим */
.guest-invitation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
}

.guest-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.guest-invitation h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.guest-invitation p {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.guest-invitation ul {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 0 auto 24px;
}

.guest-invitation li {
    font-size: 15px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.guest-invitation .btn {
    background: white;
    color: #667eea;
    padding: 12px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.guest-invitation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Кнопка входа в шапке */
.user-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-login,
.btn-logout {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login {
    background: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background: #0051D5;
    transform: translateY(-1px);
}

.btn-logout {
    background: var(--danger-color);
    color: white;
}

.btn-logout:hover {
    background: #CC0000;
    transform: translateY(-1px);
}

/* Адаптивность для гостевого режима */
@media (max-width: 480px) {
    .guest-invitation {
        padding: 24px;
    }
    
    .guest-invitation h3 {
        font-size: 18px;
    }
    
    .guest-invitation ul {
        max-width: 100%;
    }
}

/* ============= Метрики и показатели тренировок ============= */

.metrics-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.metrics-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.metrics-section h2 .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

/* Карточки метрик */
.metrics-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--neu-bg);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: var(--neu-shadow-outer-soft);
    color: var(--text-primary);
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--neu-shadow-outer);
}

.metric-fitness {
    background: var(--neu-bg);
    color: var(--text-primary);
}

.metric-fatigue {
    background: var(--neu-bg);
    color: var(--text-primary);
}

.metric-form {
    background: var(--neu-bg);
    color: var(--text-primary);
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-primary);
}

.metric-info {
    flex: 1;
    min-width: 0;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
    color: var(--text-primary);
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.metric-status .material-symbols-outlined {
    font-size: 16px;
}

.status-normal {
    color: #34C759;
}

.status-low {
    color: #FF9500;
}

.status-high {
    color: #FF3B30;
}

.metric-mini-chart {
    width: 124px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    border-radius: 16px;
    padding: 4px 0 4px 0;
    margin-left: 0;
    margin-top: 12px;
}

.metric-mini-chart canvas {
    display: block;
    width: 120px !important;
    height: 48px !important;
    box-sizing: content-box;
    border-radius: 16px;
}

.metric-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.metric-arrow .material-symbols-outlined {
    font-size: 20px;
}

/* Модальное окно для графика метрики */
.metric-chart-modal {
    max-width: 90%;
    width: 600px;
}

.metric-chart-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.metric-chart-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-chart-modal .modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.metric-chart-modal .modal-close:hover {
    background: var(--neu-bg);
    color: var(--text-primary);
}

.metric-chart-modal .modal-close .material-symbols-outlined {
    font-size: 24px;
}

.metric-chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.metric-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* График */
.chart-container {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.chart-container canvas {
    max-height: 250px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Адаптивность для метрик */
@media (max-width: 768px) {
    .metrics-cards {
        gap: 10px;
    }
    
    .metric-card {
        padding: 12px;
    }
    
    .metric-icon {
        width: 36px;
        height: 36px;
    }
    
    .metric-icon .material-symbols-outlined {
        font-size: 20px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .metric-label {
        font-size: 12px;
    }
    
    .metric-status {
        font-size: 11px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .chart-container canvas {
        max-height: 250px;
    }
}

/* ============= Workout Page ============= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 12px;
}

.back-link .material-symbols-outlined {
    font-size: 20px;
}

.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.workout-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.workout-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.workout-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.workout-header h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.workout-header h2 .material-symbols-outlined {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.workout-description {
    margin: 8px 0 0 0;
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.5;
}

.workout-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workout-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.workout-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.workout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Test Exercise Items */
.test-exercise-item {
    background: var(--neu-bg);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--neu-shadow-soft);
    border: none;
    transition: all 0.2s;
}

.test-exercise-item:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-2px);
}

.exercise-header {
    margin-bottom: 16px;
}

.exercise-header h3,
.test-exercise-item h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.exercise-test-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-test-inputs label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.test-weight-input {
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-inset);
}

.test-weight-input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-soft);
}

.test-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}

.test-hint .material-symbols-outlined {
    color: #f59e0b;
    font-size: 20px;
}

/* Regular Workout Items */
.workout-exercise-item {
    background: var(--neu-bg);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--neu-shadow-soft);
    border: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s;
}

.workout-exercise-item:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-2px);
}

.exercise-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exercise-title {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.exercise-target {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Фото упражнений (2 фазы) в плане и на тренировке */
.exercise-photos {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-outer);
}

.exercise-photo-thumb {
    width: 150px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--neu-shadow-soft);
    max-width: 100%;
}

.exercise-completion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-soft);
    transition: all 0.2s;
}

.completion-label:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.completion-label:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.completion-checkbox {
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-soft);
    appearance: none;
    -webkit-appearance: none;
    border: none;
    transition: all 0.2s;
    position: relative;
}

.completion-checkbox:checked {
    background: var(--success-color);
    box-shadow: var(--neu-shadow-inset);
}

.completion-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.completion-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.completion-checkbox:checked ~ .completion-text {
    color: var(--success-color);
}

.checkmark .material-symbols-outlined {
    font-size: 16px;
}

.next-target {
    padding: 12px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-target .material-symbols-outlined {
    color: #10b981;
}

.next-target:empty {
    display: none;
}

.workout-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workout-notes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.workout-notes textarea {
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-inset);
    transition: all 0.2s;
}

.workout-notes textarea:focus {
    outline: none;
    box-shadow: var(--neu-shadow-soft);
}

/* Buttons */
.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--neu-bg);
    /* Крупная кнопка до нажатия — тоже drop shadow */
    box-shadow: var(--neu-shadow-outer);
    border: none;
    transition: all 0.2s;
}

.btn-large:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-2px);
}

.btn-large:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.btn-large .material-symbols-outlined {
    font-size: 24px;
}

/* Кнопка "Начать тестовую тренировку" с акцентным цветом */
#startTestWorkoutBtn,
.btn-primary.btn-large {
    background: var(--accent-color);
    color: #FFFFFF;
    box-shadow: var(--neu-shadow-outer-soft);
}

#startTestWorkoutBtn {
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px 20px;
    font-size: 15px;
}

#startTestWorkoutBtn:hover,
.btn-primary.btn-large:hover {
    background: #E55500;
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(-1px);
}

#startTestWorkoutBtn:active,
.btn-primary.btn-large:active {
    transform: translateY(0);
}

/* Notification - дублирующие стили удалены, используются общие стили выше */

/* Mobile Responsive */
@media (max-width: 768px) {
    .workout-container {
        padding: 16px;
    }
    
    .workout-header {
        padding: 20px;
    }
    
    .workout-header h2 {
        font-size: 24px;
    }
    
    .test-exercise-item,
    .workout-exercise-item {
        padding: 16px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .set-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }
    
    .set-number {
        min-width: auto;
    }
    
    .set-status {
        min-width: auto;
        text-align: left;
        width: 100%;
    }
    
    .set-buttons {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Стили для подходов и таймера */
.exercise-sets-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.set-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    background: var(--neu-bg);
    border-radius: 20px;
    border: none;
    box-shadow: var(--neu-shadow-outer);
    transition: all 0.2s;
}

.set-item.set-completed {
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
}

.set-item.set-failed {
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
}

.set-number {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.set-weight {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.set-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto; /* сдвигаем кнопки к правому краю */
}

.btn-set {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
    background: var(--neu-bg);
    /* Не нажатая кнопка — чистый drop shadow из референса */
    box-shadow: var(--neu-shadow-outer);
}

.btn-set .material-symbols-outlined {
    font-size: 18px;
}

.btn-set:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: var(--neu-shadow-outer);
}

.set-item.set-locked .btn-set {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: var(--neu-shadow-outer);
}

.set-item.set-completed .btn-set:disabled,
.set-item.set-failed .btn-set:disabled {
    opacity: 0.8;
}

.btn-set-success {
    background: var(--neu-bg);
    color: var(--text-secondary);
    /* На старте используем drop shadow */
    box-shadow: var(--neu-shadow-outer);
}

.btn-set-success .material-symbols-outlined {
    color: var(--text-secondary);
}

.btn-set-success:hover:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.95);
}

.btn-set-success:active:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.92);
}

.set-item.set-completed .btn-set-success {
    background: var(--neu-bg);
    color: var(--success-color);
    box-shadow: var(--neu-shadow-inset);
}

.set-item.set-completed .btn-set-success .material-symbols-outlined {
    color: var(--success-color);
    text-shadow: 
        0 0 4px rgba(52, 199, 89, 0.8),
        0 0 8px rgba(52, 199, 89, 0.6),
        0 0 12px rgba(52, 199, 89, 0.4),
        0 0 16px rgba(52, 199, 89, 0.3),
        0 0 20px rgba(52, 199, 89, 0.2);
    filter: drop-shadow(0 0 2px rgba(52, 199, 89, 0.6)) drop-shadow(0 0 6px rgba(52, 199, 89, 0.4)) drop-shadow(0 0 10px rgba(52, 199, 89, 0.25));
}

.set-item.set-completed .btn-set-success:hover:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
}

/* Когда подход выполнен, кнопка "не выполнено" должна оставаться ненажатой */
.set-item.set-completed .btn-set-failed {
    background: var(--neu-bg);
    color: var(--text-secondary);
    box-shadow: var(--neu-shadow-outer);
}

.set-item.set-completed .btn-set-failed .material-symbols-outlined {
    color: var(--text-secondary);
}

.btn-set-failed {
    background: var(--neu-bg);
    color: var(--text-secondary);
    /* На старте используем drop shadow */
    box-shadow: var(--neu-shadow-outer);
}

.btn-set-failed .material-symbols-outlined {
    color: var(--text-secondary);
}

.btn-set-failed:hover:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.95);
}

.btn-set-failed:active:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.92);
}

.set-item.set-failed .btn-set-failed {
    background: var(--neu-bg);
    color: var(--danger-color);
    box-shadow: var(--neu-shadow-inset);
}

.set-item.set-failed .btn-set-failed .material-symbols-outlined {
    color: var(--danger-color);
    text-shadow: 
        0 0 4px rgba(255, 59, 48, 0.8),
        0 0 8px rgba(255, 59, 48, 0.6),
        0 0 12px rgba(255, 59, 48, 0.4),
        0 0 16px rgba(255, 59, 48, 0.3),
        0 0 20px rgba(255, 59, 48, 0.2);
    filter: drop-shadow(0 0 2px rgba(255, 59, 48, 0.6)) drop-shadow(0 0 6px rgba(255, 59, 48, 0.4)) drop-shadow(0 0 10px rgba(255, 59, 48, 0.25));
}

.set-item.set-failed .btn-set-failed:hover:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
}

/* Когда подход провален, кнопка "выполнено" должна оставаться ненажатой */
.set-item.set-failed .btn-set-success {
    background: var(--neu-bg);
    color: var(--text-secondary);
    box-shadow: var(--neu-shadow-outer);
}

.set-item.set-failed .btn-set-success .material-symbols-outlined {
    color: var(--text-secondary);
}

.set-item.set-failed .btn-set-failed:hover:not(:disabled) {
    box-shadow: var(--neu-shadow-inset);
}

.set-status {
    display: none;
}

/* Таймер отдыха */
.rest-timer-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--neu-bg);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--neu-shadow-outer);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.rest-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

.rest-timer .material-symbols-outlined {
    font-size: 32px;
    color: var(--text-primary);
}

.rest-timer-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

#rest-timer-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

/* План тренировки */
.workout-plan-preview {
    margin-bottom: 24px;
}

.plan-preview-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.plan-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    gap: 8px;
}

.plan-preview-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-preview-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.plan-preview-toggle .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.plan-preview-card:not(.collapsed) .plan-preview-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.plan-preview-body {
    padding: 0 20px 20px 20px;
}

.plan-preview-card.collapsed .plan-preview-body {
    display: none;
}

.plan-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-exercise-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
}

.plan-exercise-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.plan-exercise-info {
    flex: 1;
}

.plan-exercise-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.plan-exercise-params {
    font-size: 13px;
    color: var(--text-secondary);
}

.rest-info {
    margin-left: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Полноэкранный таймер отдыха */
.fullscreen-rest-timer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neu-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rest-timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    text-align: center;
}

.rest-timer-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rest-timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--neu-bg);
    border-radius: 50%;
    box-shadow: var(--neu-shadow-outer);
    padding: 20px;
}

.rest-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rest-timer-bg {
    fill: none;
    stroke: rgba(174, 174, 192, 0.3);
    stroke-width: 8;
}

.rest-timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s ease;
}

.rest-timer-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rest-timer-time span:first-child {
    font-size: 72px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.rest-timer-unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rest-timer-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.rest-timer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--neu-bg);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: var(--neu-shadow-outer);
}

.rest-timer-btn:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-2px);
}

.rest-timer-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.rest-timer-btn .material-symbols-outlined {
    font-size: 32px;
    color: var(--text-primary);
}

.rest-timer-btn-skip {
    background: var(--neu-bg);
    min-width: 160px;
    box-shadow: var(--neu-shadow-outer);
}

.rest-timer-btn-skip:hover {
    box-shadow: var(--neu-shadow-strong);
}

.btn-label {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .rest-timer-content {
        gap: 30px;
        padding: 20px;
    }
    
    .rest-timer-circle {
        width: 220px;
        height: 220px;
        padding: 15px;
    }
    
    .rest-timer-time span:first-child {
        font-size: 48px;
    }
    
    .rest-timer-unit {
        font-size: 14px;
    }
    
    .rest-timer-title {
        font-size: 24px;
    }
    
    .rest-timer-controls {
        gap: 12px;
    }
    
    .rest-timer-btn {
        padding: 14px 20px;
        min-width: 90px;
        font-size: 14px;
    }
    
    .rest-timer-btn .material-symbols-outlined {
        font-size: 24px;
    }
    
    .rest-timer-btn-skip {
        min-width: 120px;
    }
}

@media (max-width: 400px) {
    .rest-timer-circle {
        width: 180px;
        height: 180px;
        padding: 12px;
    }
    
    .rest-timer-time span:first-child {
        font-size: 40px;
    }
    
    .rest-timer-unit {
        font-size: 12px;
    }
    
    .rest-timer-title {
        font-size: 20px;
    }
    
    .rest-timer-btn {
        padding: 12px 16px;
        min-width: 80px;
        font-size: 12px;
    }
    
    .rest-timer-btn .material-symbols-outlined {
        font-size: 20px;
    }
    
    .rest-timer-btn-skip {
        min-width: 100px;
    }
}

/* ============= Subscription Plans ============= */

.subscription-plans {
    margin-bottom: 48px;
}

.subscription-plans .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.subscription-plan-card {
    background: var(--neu-bg);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--neu-shadow-outer-soft);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.subscription-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--neu-shadow-strong);
}

.subscription-plan-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: var(--neu-shadow-outer-soft), 0 0 0 4px rgba(255, 96, 0, 0.1);
}

.subscription-plan-card.featured:hover {
    box-shadow: var(--neu-shadow-strong), 0 0 0 4px rgba(255, 96, 0, 0.15);
}

.plan-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.plan-badge.free {
    background: rgba(44, 44, 46, 0.1);
    color: var(--text-primary);
}

.plan-badge.basic {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.plan-badge.premium {
    background: rgba(255, 96, 0, 0.15);
    color: var(--accent-color);
}

.plan-badge.ultimate {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.2), rgba(255, 149, 0, 0.2));
    color: var(--accent-color);
}

.subscription-plan-card .plan-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.subscription-plan-card .plan-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.subscription-plan-card .price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-plan-card .price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.subscription-plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex: 1;
}

.subscription-plan-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.subscription-plan-card .plan-features li .material-symbols-outlined {
    font-size: 20px;
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.subscription-plan-card .btn-subscribe {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--neu-bg);
    color: var(--text-primary);
    box-shadow: var(--neu-shadow-outer-soft);
}

.subscription-plan-card .btn-subscribe:hover {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.98);
}

.subscription-plan-card[data-tier="basic"] .btn-subscribe,
.subscription-plan-card[data-tier="premium"] .btn-subscribe,
.subscription-plan-card[data-tier="ultimate"] .btn-subscribe {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--neu-shadow-outer-soft);
}

.subscription-plan-card[data-tier="basic"] .btn-subscribe:hover,
.subscription-plan-card[data-tier="premium"] .btn-subscribe:hover,
.subscription-plan-card[data-tier="ultimate"] .btn-subscribe:hover {
    background: #E55500;
    box-shadow: var(--neu-shadow-inset);
}

.subscription-plan-card[data-tier="free"] .btn-subscribe {
    background: var(--neu-bg);
    color: var(--text-secondary);
    cursor: default;
}

.subscription-plan-card[data-tier="free"] .btn-subscribe:hover {
    transform: none;
    box-shadow: var(--neu-shadow-outer-soft);
}

/* Сравнение планов */
.comparison-section {
    margin-bottom: 48px;
}

.comparison-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.comparison-table {
    background: var(--neu-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--neu-shadow-outer-soft);
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table thead th:first-child {
    font-weight: 700;
}

.comparison-table tbody td {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .material-symbols-outlined {
    font-size: 20px;
}

.comparison-table .material-symbols-outlined.check {
    color: var(--success-color);
}

.comparison-table .material-symbols-outlined.close {
    color: var(--text-secondary);
}

/* Адаптивность для планов подписок */
@media (max-width: 768px) {
    .subscription-plans .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        padding: 16px;
    }
    
    .comparison-table table {
        font-size: 12px;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 8px;
    }
}

/* ============= Booking Slots ============= */

.booking-slots-group {
    margin-top: 8px;
    background: var(--neu-bg);
    padding: 16px;
    border-radius: 16px;
}

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.booking-slot-btn {
    padding: 12px 8px;
    border-radius: 12px;
    border: none;
    background: var(--neu-bg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--neu-shadow-outer-soft);
}

.booking-slot-btn:hover:not(.slot-disabled):not(.slot-active) {
    border: none;
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-2px);
}

.booking-slot-btn.slot-active {
    background: var(--neu-bg);
    color: var(--accent-color);
    border: none;
    box-shadow: var(--neu-shadow-inset);
    transform: none;
    font-weight: 700;
}

.booking-slot-btn.slot-disabled {
    background: var(--neu-bg);
    color: var(--text-secondary);
    border: none;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.slots-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .booking-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.metric-info {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    margin-left: 0; /* плотно к левому краю */
    padding-left: 0;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
}

.metric-mini-chart {
    width: 124px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    border-radius: 16px;
    padding: 4px 0 4px 0;
    margin-left: 0;
    margin-top: 12px;
}

/* ========== Date Scrollbar with Slide Calendar ========== */
.date-bar-wrapper {
  position: relative;
  margin-bottom: 12px;
  margin-top: 12px;
  overflow: visible;
  padding-bottom: 12px;
}

.date-scrollbar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 16px 24px 16px;
  margin: 0 -16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.date-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Выдвижной календарь */
.slide-calendar {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.slide-calendar.expanded {
  max-height: 420px;
}

.slide-calendar-content {
  background: #f8f8f8;
  border-radius: 16px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 16px 20px 20px 20px;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease;
  margin-top: -4px;
}

.slide-calendar.expanded .slide-calendar-content {
  opacity: 1;
  transform: translateY(0);
}

/* Закладка для вытягивания */
.calendar-tab {
  width: 100%;
  background: transparent;
  border-radius: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: grab;
  transition: none;
  position: relative;
  margin-top: 4px;
  user-select: none;
  z-index: 10;
}

.calendar-tab:active {
  cursor: grabbing;
}

.calendar-tab-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-tab:hover .calendar-tab-handle {
  background: var(--accent-color);
  width: 50px;
  height: 5px;
  box-shadow: 0 2px 6px rgba(255, 96, 0, 0.3);
}

/* Затухание date-scrollbar при раскрытии */
.date-bar-wrapper.calendar-expanding .date-scrollbar {
  opacity: 0.2;
  pointer-events: none;
  transform: scale(0.98);
}

/* Улучшенная анимация иконки закладки */
.calendar-tab-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.slide-calendar.expanded ~ .calendar-tab .calendar-tab-icon {
  transform: translate(-50%, -50%) rotate(180deg) !important;
  color: var(--accent-color);
}

.date-btn {
  min-width: 58px;
  text-align: center;
  padding: 10px 0 7px 0;
  background: var(--neu-bg);
  border: none;
  border-radius: 12px;
  box-shadow: var(--neu-shadow-outer-soft);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  user-select: none;
}
.date-btn.selected {
  background: var(--accent-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.35);
  transform: scale(1.05);
}
.date-btn.today:not(.selected) {
  border: none;
}

.date-btn.today:not(.selected):disabled {
  border: none;
}
.date-btn:hover:not(:disabled):not(.selected) {
  border: none;
  box-shadow: var(--neu-shadow-strong);
  transform: translateY(-2px);
}
.date-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f5f5;
  border: none !important;
}

.date-btn:disabled.today {
  border: none !important;
}


/* ========== Month Calendar (used in slide calendar) ========== */

.month-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.month-calendar-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.month-nav-btn {
  background: var(--neu-bg);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--neu-shadow-outer-soft);
}

.month-nav-btn:hover {
  box-shadow: var(--neu-shadow-strong);
  transform: scale(1.05);
}

.month-nav-btn:active {
  box-shadow: var(--neu-shadow-inset);
  transform: scale(0.98);
}

.month-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.month-day-btn {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  position: relative;
}

.month-day-btn:hover:not(:disabled):not(.selected) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: scale(1.08);
  background: #fafafa;
}

.month-day-btn.selected {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 96, 0, 0.4);
  transform: scale(1.1);
}

.month-day-btn.today:not(.selected) {
  position: relative;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 96, 0, 0.2);
}

.month-day-btn.today:not(.selected)::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  pointer-events: none;
}

.month-day-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f5f5f5;
  color: var(--text-secondary);
  box-shadow: none;
}

.month-day-btn.weekend:disabled {
  background: #ffe5e5;
  color: #999;
  position: relative;
}

.month-day-btn.weekend:disabled::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ff9999;
}

.month-day-btn.other-month {
  opacity: 0.3;
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
}


/* ========== Booking Section Styles ========== */
.booking-section {
  margin-bottom: 24px;
  margin-top: 0;
}

.booking-card {
  background: var(--neu-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--neu-shadow-outer-soft);
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.booking-card.hidden {
  display: none;
}

.btn-close-card {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--neu-shadow-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.btn-close-card:hover {
  box-shadow: var(--neu-shadow-strong);
  transform: translateY(-1px);
}

.btn-close-card:active {
  box-shadow: var(--neu-shadow-inset);
  transform: translateY(0);
}

.btn-close-card .material-symbols-outlined {
  font-size: 20px;
  color: var(--text-primary);
}

.booking-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-right: 40px;
}

.booking-card .btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: var(--neu-shadow-outer);
}

.booking-card .btn-primary:hover {
  background: #E55500;
  transform: translateY(-1px);
  box-shadow: var(--neu-shadow-outer);
}

.booking-card .btn-primary:active {
  box-shadow: var(--neu-shadow-inset);
  transform: translateY(1px);
}

.bookings-list-section {
  margin-bottom: 100px;
}

.bookings-list-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Адаптивность для дата-бара */
/* Улучшенные анимации */
.date-btn {
  animation: fadeInScale 0.3s ease-out backwards;
}

.date-btn:nth-child(1) { animation-delay: 0.05s; }
.date-btn:nth-child(2) { animation-delay: 0.1s; }
.date-btn:nth-child(3) { animation-delay: 0.15s; }
.date-btn:nth-child(4) { animation-delay: 0.2s; }
.date-btn:nth-child(5) { animation-delay: 0.25s; }
.date-btn:nth-child(6) { animation-delay: 0.3s; }
.date-btn:nth-child(7) { animation-delay: 0.35s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.booking-slot-btn {
  animation: fadeInUp 0.3s ease-out backwards;
}

.booking-slot-btn:nth-child(1) { animation-delay: 0.05s; }
.booking-slot-btn:nth-child(2) { animation-delay: 0.1s; }
.booking-slot-btn:nth-child(3) { animation-delay: 0.15s; }
.booking-slot-btn:nth-child(4) { animation-delay: 0.2s; }
.booking-slot-btn:nth-child(5) { animation-delay: 0.25s; }
.booking-slot-btn:nth-child(6) { animation-delay: 0.3s; }
.booking-slot-btn:nth-child(7) { animation-delay: 0.35s; }
.booking-slot-btn:nth-child(8) { animation-delay: 0.4s; }
.booking-slot-btn:nth-child(9) { animation-delay: 0.45s; }
.booking-slot-btn:nth-child(10) { animation-delay: 0.5s; }
.booking-slot-btn:nth-child(11) { animation-delay: 0.55s; }
.booking-slot-btn:nth-child(12) { animation-delay: 0.6s; }
.booking-slot-btn:nth-child(13) { animation-delay: 0.65s; }
.booking-slot-btn:nth-child(14) { animation-delay: 0.7s; }
.booking-slot-btn:nth-child(15) { animation-delay: 0.75s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .date-btn {
    min-width: 52px;
    font-size: 15px;
  }
  
  .calendar-tab {
    height: 28px;
  }
  
  .calendar-tab-icon {
    font-size: 20px;
  }
  
  .slide-calendar.expanded {
    max-height: 380px;
  }
  
  .slide-calendar-content {
    padding: 16px;
  }
  
  .month-calendar-header h3 {
    font-size: 18px;
  }
  
  .month-day-btn {
    font-size: 13px;
  }
}

/* ========================
   СТРАНИЦА КОМЬЮНИТИ
   ======================== */

/* Заголовок комьюнити */
.community-header {
    margin-bottom: 24px;
}

.community-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Stories карусель */
.stories-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.story-item:active {
    transform: scale(0.95);
}

.story-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    padding: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-item:hover .story-avatar::before {
    opacity: 1;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.story-avatar .avatar-placeholder .material-symbols-outlined {
    font-size: 32px;
    color: white;
}

.story-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Лента постов */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка поста */
.post-card {
    background: var(--neu-bg);
    border-radius: 22px;
    box-shadow: var(--neu-shadow-outer-soft);
    padding: 20px;
    animation: fadeInUp 0.4s ease-out backwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }

/* Заголовок поста */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-soft);
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.post-avatar .avatar-placeholder .material-symbols-outlined {
    font-size: 24px;
    color: white;
}

.post-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.post-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.post-menu-btn:hover {
    box-shadow: var(--neu-shadow-outer);
}

.post-menu-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.95);
}

.post-menu-btn .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Контент поста */
.post-content {
    margin-bottom: 16px;
}

.post-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

/* Изображение поста */
.post-image {
    margin: 0 -20px 16px -20px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-inset);
}

.post-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Статистика тренировки в посте */
.post-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--neu-bg);
    border-radius: 14px;
    box-shadow: var(--neu-shadow-inset);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-primary);
    padding: 6px 10px;
    background: var(--neu-bg);
    border-radius: 10px;
    box-shadow: var(--neu-shadow-soft);
}

.stat-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-color);
}

/* Действия с постом */
.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: var(--neu-bg);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-soft);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-action-btn:hover {
    box-shadow: var(--neu-shadow-outer);
    transform: translateY(-1px);
}

.post-action-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.post-action-btn .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

/* Кнопка лайка */
.like-btn.liked {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.1), rgba(255, 96, 0, 0.15));
}

.like-btn.liked .material-symbols-outlined {
    color: var(--accent-color);
    font-variation-settings: 'FILL' 1;
}

.like-btn:hover .material-symbols-outlined {
    color: var(--accent-color);
}

/* Кнопка закладки */
.bookmark-btn.bookmarked .material-symbols-outlined {
    color: var(--accent-color);
    font-variation-settings: 'FILL' 1;
}

.bookmark-btn:hover .material-symbols-outlined {
    color: var(--accent-color);
}

/* Кнопка комментария */
.comment-btn:hover .material-symbols-outlined {
    color: var(--primary-color);
}

/* Кнопка поделиться */
.share-btn {
    margin-left: auto;
}

.share-btn:hover .material-symbols-outlined {
    color: var(--primary-color);
}

.action-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Адаптивность для комьюнити */
@media (max-width: 480px) {
    .community-title {
        font-size: 28px;
    }

    .story-avatar {
        width: 56px;
        height: 56px;
    }

    .story-avatar .avatar-placeholder .material-symbols-outlined {
        font-size: 28px;
    }

    .story-name {
        font-size: 11px;
        max-width: 60px;
    }

    .post-card {
        padding: 16px;
        border-radius: 18px;
    }

    .post-image {
        margin: 0 -16px 12px -16px;
    }

    .post-action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .post-action-btn .material-symbols-outlined {
        font-size: 18px;
    }

    .action-count {
        font-size: 13px;
    }

    .stat-item {
        font-size: 12px;
        padding: 5px 8px;
    }

    .stat-item .material-symbols-outlined {
        font-size: 16px;
    }

    /* Компактная навигация для 5 кнопок */
    .bottom-nav {
        padding: 4px 4px;
        gap: 3px;
    }

    .nav-item {
        box-shadow: none;
        padding: 6px 3px;
        border-radius: 12px;
        gap: 1px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .nav-icon .material-symbols-outlined {
        font-size: 20px;
    }

    .nav-label {
        font-size: 9px;
    }
}

.max-records {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--neu-shadow-outer);
    padding: 24px 16px 28px 16px;
    margin-bottom: 40px;
}

/* Модальное окно подтверждения */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirm-modal.show {
    opacity: 1;
    pointer-events: all;
}

.confirm-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 50vh;
    background: var(--neu-bg);
    border-radius: 24px 24px 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow-y: auto;
}

.confirm-modal.show .confirm-modal-content {
    transform: translateY(0);
}

.confirm-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-modal-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
}

.confirm-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-modal-btn-cancel {
    background: var(--neu-bg);
    color: var(--text-primary);
    box-shadow: var(--neu-shadow-outer-soft);
}

.confirm-modal-btn-cancel:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(1px);
}

.confirm-modal-btn-confirm {
    background: var(--accent-color);
    color: #fff;
    box-shadow: var(--neu-shadow-outer);
}

.confirm-modal-btn-confirm:hover {
    background: #E55500;
    transform: translateY(-1px);
}

.confirm-modal-btn-confirm:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(1px);
}

/* Модальное окно входа/регистрации */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    position: relative;
    background: var(--neu-bg);
    border-radius: 20px;
    padding: 30px;
    padding-top: 50px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--neu-shadow-outer);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--neu-bg);
    box-shadow: var(--neu-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10001;
    flex-shrink: 0;
}

.auth-modal-close:hover {
    box-shadow: var(--neu-shadow-strong);
    transform: translateY(-1px);
}

.auth-modal-close:active {
    box-shadow: var(--neu-shadow-inset);
    transform: translateY(0);
}

.auth-modal-close .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для форм в модальном окне */
.auth-modal .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--neu-bg);
    padding: 5px;
    border-radius: 12px;
    box-shadow: var(--neu-shadow-inset);
}

.auth-modal .tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal .tab:hover {
    color: var(--text-primary);
}

.auth-modal .tab.active {
    background: var(--neu-bg);
    color: var(--accent-color);
    box-shadow: var(--neu-shadow-outer-soft);
}

.auth-modal .auth-form {
    display: none;
}

.auth-modal .auth-form.active {
    display: block;
}

.auth-modal .form-group {
    margin-bottom: 20px;
}

.auth-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.auth-modal .form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.1);
}

.auth-modal .form-group input::placeholder {
    color: var(--text-secondary);
}

.auth-modal .form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.auth-modal .error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 20px;
}

.auth-modal .btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--neu-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-modal .btn-primary:disabled {
    background: var(--text-secondary);
    color: #fff;
    cursor: not-allowed;
    box-shadow: var(--neu-shadow-outer);
    opacity: 0.6;
}

.auth-modal .btn-primary:hover:not(:disabled) {
    background: #E55500;
    transform: translateY(-1px);
    box-shadow: var(--neu-shadow-strong);
}

.auth-modal .btn-primary:active:not(:disabled) {
    box-shadow: var(--neu-shadow-outer);
    transform: translateY(0);
}

/* Сообщение о недоступных слотах */
.no-slots-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    background: var(--surface-light);
    border-radius: 12px;
    margin: 20px 0;
}

/* Выходные дни в горизонтальной полосе дат */
.date-btn.weekend {
    opacity: 0.4;
    cursor: not-allowed;
    background: #ffe5e5 !important;
    color: #999 !important;
}

.date-btn.weekend:disabled {
    pointer-events: none;
}

.date-btn.weekend span {
    opacity: 0.6;
}

/* Рабочие часы праздника */
.holiday-working-hours {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}