/* Основные стили для веб-версии бота */

:root {
    --brand-primary: #FF7700;
    --brand-primary-dark: #FF6B35;
    --brand-secondary: #1D3557;
    --brand-secondary-light: #4A90E2;
    --brand-text: #2B2D42;
    --brand-muted: #8D99AE;
    --brand-success: #06D6A0;
    --brand-warning: #FFD166;
    --brand-surface: #FFFFFF;
    --brand-background: #FFFFFF;
    --brand-shadow: rgba(29, 53, 87, 0.15);
}

/* Стили для календаря тренировок */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: var(--brand-surface);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px var(--brand-shadow);
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.calendar-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.calendar-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10000;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.calendar-tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.calendar-tooltip-detail {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-tooltip-detail-icon {
    width: 16px;
    text-align: center;
}

/* Индикаторы в событиях календаря */
.fc-event-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
}

.fc-event-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0; /* Важно для flex-контейнера, чтобы обрезка работала */
}

/* Улучшенная группировка событий */
.fc-daygrid-day-events {
    margin-top: 2px;
}

/* Предотвращаем выход событий за границы ячейки дня */
.fc-daygrid-day {
    overflow: hidden !important;
}

.fc-daygrid-day-frame {
    overflow: hidden !important;
}

.fc-daygrid-day-events {
    overflow: hidden !important;
}

.fc-daygrid-event {
    max-width: 100% !important;
    overflow: hidden !important;
}

.fc-event {
    border-radius: 4px;
    border: none;
    padding: 2px 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100% !important;
    overflow: hidden !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0; /* Критично для flex-контейнера */
    flex: 1 1 auto; /* Позволяет сжиматься */
}

.fc-event-title > * {
    flex-shrink: 1;
    min-width: 0;
}

.fc-event-title > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.fc-event-more {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 500;
}

/* Адаптивность календаря */
@media (max-width: 768px) {
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}

/* Стили для фильтров календаря */
.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: var(--brand-surface);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px var(--brand-shadow);
}

.calendar-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--brand-background);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.calendar-filter-item:hover {
    background: #e2e8f0;
}

.calendar-filter-item.active {
    background: var(--brand-secondary-light);
    color: white;
}

.calendar-filter-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid var(--brand-muted);
    display: inline-block;
    position: relative;
}

.calendar-filter-item.active .calendar-filter-checkbox {
    background: white;
    border-color: white;
}

.calendar-filter-item.active .calendar-filter-checkbox::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--brand-secondary-light);
    font-size: 12px;
    font-weight: bold;
}

/* Основные стили для веб-версии бота */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 35%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.9) 65%, rgba(255, 119, 0, 1) 100%);
    min-height: 100vh;
    color: var(--brand-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--brand-surface);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px var(--brand-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--brand-secondary);
    font-size: 24px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    border-radius: 16px;
    padding: 8px;
    background: var(--brand-background);
    box-shadow: 0 10px 25px var(--brand-shadow);
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-tagline {
    margin-top: 6px;
    font-size: 14px;
    color: var(--brand-muted);
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-name {
    font-weight: 600;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
    font-weight: 600;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #c81e2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
    font-weight: 500;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--brand-secondary-light) 0%, #5a8fb8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 53, 87, 0.35);
}

.btn-danger {
    background: var(--brand-primary-dark);
    color: #ffffff;
}

.btn-danger:hover {
    background: #c81e2b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.welcome-section {
    background: var(--brand-surface);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--brand-shadow);
    margin-bottom: 20px;
}

.welcome-section h2 {
    color: var(--brand-secondary);
    margin-bottom: 15px;
}

.welcome-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.welcome-section li {
    margin: 8px 0;
}

#dashboard {
    background: var(--brand-surface);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--brand-shadow);
}

.main-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 20px;
    border: 2px solid var(--brand-secondary-light);
    background: white;
    color: var(--brand-secondary-light);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--brand-background);
}

.nav-btn.active {
    background: var(--brand-secondary-light);
    color: white;
}

#content {
    min-height: 400px;
}

/* Стили для форм */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--brand-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brand-muted);
    border-radius: 8px;
    font-size: 14px;
    background: var(--brand-surface);
    transition: all 0.3s ease;
    color: var(--brand-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    outline: none;
    background: white;
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--brand-secondary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 20px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 209, 102, 0.25);
    color: var(--brand-secondary);
    border-radius: 12px;
    font-size: 12px;
}

.btn-link {
    background: transparent;
    color: var(--brand-secondary-light);
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--brand-primary);
}

.section-subtitle {
    margin-top: 8px;
    margin-bottom: 24px;
    color: var(--brand-muted);
}

.booking-sections {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.booking-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.booking-section-header h3 {
    font-size: 20px;
    color: var(--brand-text);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(69, 123, 157, 0.15);
    color: var(--brand-secondary);
    font-weight: 600;
    font-size: 14px;
}

.booking-list {
    display: grid;
    gap: 20px;
}

.booking-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.15);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.booking-date {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.booking-card-body {
    display: grid;
    gap: 6px;
    color: #374151;
    font-size: 15px;
}

.booking-card-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.booking-card-actions .btn {
    min-width: 130px;
}

.booking-reschedule-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-reschedule-form label {
    font-weight: 600;
    color: #4c51bf;
}

.booking-reschedule-form input,
.booking-reschedule-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.booking-reschedule-form input:focus,
.booking-reschedule-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.booking-reschedule-form textarea {
    min-height: 100px;
    resize: vertical;
}

.booking-item strong {
    color: #4c51bf;
    font-weight: 600;
}

.booking-notes {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f3f4ff;
    color: #4338ca;
    white-space: pre-line;
}

.booking-empty {
    padding: 24px;
    border-radius: 12px;
    border: 2px dashed #c7d2fe;
    background: #f8f9ff;
    color: #6366f1;
    text-align: center;
    font-size: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-confirmed {
    background: #d1fae5;
    color: #047857;
}

.status-completed {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-neutral {
    background: #e5e7eb;
    color: #374151;
}

.info-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card h2 {
    margin-bottom: 12px;
    color: #1f2937;
}

.info-card p + p {
    margin-top: 6px;
}

.warning-card {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.warning-card a {
    color: #b45309;
}

.error-card {
    border-color: #f87171;
    background: #fef2f2;
    color: #b91c1c;
}

.activities-share {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.share-card {
    flex: 1;
    min-width: 260px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-card h3 {
    color: #667eea;
    margin-bottom: 5px;
}

.share-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-fields input,
.share-fields select {
    flex: 1;
    min-width: 140px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.activities-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.activity-icon {
    font-size: 28px;
    line-height: 1;
}

.activity-meta h3 {
    color: #333;
    margin: 0;
}

.activity-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.activity-date {
    color: #888;
}

.activity-description {
    color: #444;
    line-height: 1.5;
}

.activity-share-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.activity-share-block code {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    color: #444;
    max-width: 100%;
    overflow-x: auto;
}

.activity-meta-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #555;
}

.empty-state {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #666;
}

.activities-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-end;
}

.activities-filters .filter-group label {
    font-weight: 500;
    font-size: 12px;
    color: #555;
}

.activities-filters .filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

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

.activities-source-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activities-source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.activities-source-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.activities-source-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activities-source-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 12px 15px;
}

.activities-source-item .item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.activities-source-item .meta {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

/* Стили для списков */
.list-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.list-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.list-item .meta {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Стили для страницы входа */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h1 {
    color: #667eea;
    margin-bottom: 20px;
}

.login-info {
    margin-top: 30px;
    text-align: left;
}

.login-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Стили для статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Старые стили для stat-card перенесены в секцию профиля ниже */
.stat-label {
    color: #666;
    font-size: 14px;
}

/* Стили для AI чата */
.ai-chat {
    margin-top: 20px;
}

.chat-messages {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.user-message {
    background: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message {
    background: white;
    border: 1px solid #ddd;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.form-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #667eea;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Toast уведомления */
.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 24px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-out;
}

/* Фильтры и поиск */
.filters-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.filter-group input,
.filter-group select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

/* Пагинация */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-btn:hover {
    background: #f0f0f0;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Графики */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.profile-hero header h3 {
    margin-bottom: 6px;
}

/* Улучшенная карточка профиля */
.profile-hero-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-photo-container {
    position: relative;
    flex-shrink: 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.profile-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-header-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: #1f2937;
}

.profile-rating-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
}

.profile-rating-status.rating-master {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.profile-rating-status.rating-pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.profile-rating-status.rating-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.profile-rating-status.rating-beginner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.rating-icon {
    font-size: 1.2em;
}

.rating-label {
    font-weight: 600;
}

.rating-level {
    font-size: 0.85em;
    opacity: 0.9;
}

.profile-quote {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.profile-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.profile-quote blockquote p {
    margin: 0 0 8px 0;
    font-style: italic;
    color: #374151;
    font-size: 1em;
    line-height: 1.6;
}

.profile-quote blockquote cite {
    display: block;
    font-size: 0.85em;
    color: #6b7280;
    font-style: normal;
    margin-top: 8px;
}

.profile-meta {
    display: grid;
    gap: 8px;
    color: #374151;
}

.profile-meta p strong {
    color: #1f2937;
}

.profile-stats-grid .stat-card {
    min-height: 120px;
}

.progress-preview {
    margin-top: 16px;
}

.progress-preview h4 {
    margin-bottom: 8px;
    color: #1f2937;
}

.progress-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.progress-preview li {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    font-size: 14px;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

.achievements-list {
    display: grid;
    gap: 12px;
}

.achievement-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    display: grid;
    gap: 6px;
}

.achievement-card h4 {
    margin: 0;
    color: #1f2937;
}

.achievement-card p {
    margin: 0;
    color: #374151;
}

/* Виджет топ-3 достижений */
.top-achievements-widget {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.top-achievements-widget h4 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 1.2em;
}

.top-achievements-list {
    display: grid;
    gap: 12px;
}

.top-achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.top-achievement-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.achievement-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
}

.achievement-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 4px;
}

.achievement-title {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-date {
    font-size: 0.85em;
    opacity: 0.9;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.timeline-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

/* Улучшенный блок ближайших событий */
.upcoming-events-list {
    display: grid;
    gap: 12px;
}

.upcoming-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.upcoming-event-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.event-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1em;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.event-days-badge {
    padding: 4px 10px;
    background: #667eea;
    color: #fff;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
}

.event-details {
    display: grid;
    gap: 6px;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #6b7280;
}

.event-date-icon,
.event-location-icon {
    font-size: 1em;
}

.event-status {
    flex-shrink: 0;
}

.progress-mini-chart-container {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Стили для блока снаряжения */
.equipment-grid {
    display: grid;
    gap: 16px;
}

.equipment-card {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.equipment-card.status-confirmed {
    border-left: 4px solid #10b981;
}

.equipment-card.status-pending {
    border-left: 4px solid #f59e0b;
}

.equipment-card.status-cancelled {
    border-left: 4px solid #ef4444;
}

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

.equipment-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.equipment-info {
    flex: 1;
    min-width: 0;
}

.equipment-info h4 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 1.1em;
}

.equipment-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.equipment-status-badge.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.equipment-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.equipment-status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.equipment-notes {
    margin: 8px 0;
    color: #6b7280;
    font-size: 0.9em;
}

.equipment-service-info {
    margin-top: 8px;
    padding: 8px;
    background: #f0f9ff;
    border-radius: 6px;
    font-size: 0.85em;
    color: #0369a1;
}

.equipment-service-warning {
    margin-top: 8px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.85em;
    color: #92400e;
    font-weight: 500;
}

/* Стили для команды поддержки */
.support-team-grid {
    display: grid;
    gap: 16px;
}

.support-member-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.support-member-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.support-member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.support-member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-role-icon {
    font-size: 2em;
}

.support-member-info {
    flex: 1;
    min-width: 0;
}

.support-member-info h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 1.1em;
}

.support-member-role {
    margin: 0 0 4px 0;
    color: #6b7280;
    font-size: 0.9em;
}

.support-member-experience {
    margin: 0;
    color: #9ca3af;
    font-size: 0.85em;
}

.support-member-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.support-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.support-contact-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.support-next-session {
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 12px;
}

.support-session-label {
    display: block;
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 4px;
}

.support-session-date {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.support-consult-btn {
    width: 100%;
    margin-top: 8px;
}

/* Стили для мини-галереи */
.media-mini-gallery {
    display: grid;
    gap: 16px;
}

.media-mini-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.media-mini-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.media-mini-preview {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.media-preview-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-mini-item:hover .media-overlay {
    opacity: 1;
}

.media-preview-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.media-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.media-type-label {
    font-size: 0.9em;
    font-weight: 500;
}

.media-mini-info h5 {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 1em;
}

.media-difficulty {
    margin: 0 0 4px 0;
    color: #667eea;
    font-weight: 500;
    font-size: 0.9em;
}

.media-date {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 0.85em;
}

.media-copy-link-btn {
    width: 100%;
}

.media-more-info {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.media-more-info a {
    color: #667eea;
    text-decoration: none;
}

.media-more-info a:hover {
    text-decoration: underline;
}

/* Стили для обработки ошибок */
.error-card {
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px;
}

.error-card h2 {
    color: #dc2626;
    margin: 0 0 12px 0;
}

.error-card p {
    color: #991b1b;
    margin: 0 0 16px 0;
}

/* Стили для настроек уведомлений */
.notifications-settings {
    display: grid;
    gap: 16px;
}

.notification-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.notification-setting-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.notification-setting-info {
    flex: 1;
    min-width: 0;
}

.notification-setting-info label {
    display: block;
    cursor: pointer;
}

.notification-setting-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 1em;
}

.notification-desc {
    display: block;
    color: #6b7280;
    font-size: 0.85em;
    font-weight: normal;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #667eea;
}

/* Стили для кнопки заметок */
.btn-notes {
    background: #10b981;
    color: #fff;
}

.btn-notes:hover {
    background: #059669;
}
    align-items: flex-start;
}

.training-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.training-day-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-day-card header h4 {
    margin: 0 0 4px;
    color: #1f2937;
}

.training-sessions {
    display: grid;
    gap: 12px;
}

.training-session {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.training-session strong {
    color: #1f2937;
}

.training-session-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.training-session-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.training-session-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.btn-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-complete {
    background: #10b981;
    color: white;
}

.btn-complete:hover {
    background: #059669;
    transform: scale(1.1);
}

.btn-complete-old {
    background: #f59e0b;
    color: white;
}

.btn-complete-old:hover {
    background: #d97706;
    transform: scale(1.1);
}

.btn-reschedule {
    background: #3b82f6;
    color: white;
}

.btn-reschedule:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Улучшенные стили для тренировочного плана */
.training-plan-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.training-week-range {
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    text-align: center;
}

.training-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.training-plan-header h3 {
    margin: 0;
}

.training-plan-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out 0.1s,
                margin-top 0.3s ease-out,
                margin-bottom 0.3s ease-out,
                padding-top 0.3s ease-out,
                padding-bottom 0.3s ease-out;
    opacity: 1;
    max-height: 5000px;
}

.training-plan-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease-out,
                margin-top 0.3s ease-out,
                margin-bottom 0.3s ease-out,
                padding-top 0.3s ease-out,
                padding-bottom 0.3s ease-out;
}

.training-plan-summary {
    margin: 16px 0;
}

.training-progress-bar-container {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.training-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.training-week-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
}

.stat-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}

.training-session-colored {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.training-session-colored:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.training-session-content {
    flex: 1;
}

.training-session-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.training-session-icon {
    font-size: 18px;
}

.training-session-time {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
}

.training-session-indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.indicator-icon {
    font-size: 16px;
    cursor: help;
}

.training-program-section {
    margin: 16px 0;
}

.training-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.training-program-info {
    margin: 12px 0;
    display: grid;
    gap: 6px;
    color: #374151;
}

.training-program-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out 0.1s,
                margin-top 0.3s ease-out,
                margin-bottom 0.3s ease-out,
                padding-top 0.3s ease-out,
                padding-bottom 0.3s ease-out;
    opacity: 1;
    max-height: 5000px;
}

.training-program-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out,
                margin-top 0.3s ease-out,
                margin-bottom 0.3s ease-out,
                padding-top 0.3s ease-out,
                padding-bottom 0.3s ease-out;
    overflow: hidden;
}

.equipment-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.equipment-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    align-items: flex-start;
}

.equipment-list strong {
    color: #1f2937;
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.support-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.media-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    display: grid;
    gap: 6px;
}

.media-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.media-card h4 {
    margin: 0;
    color: #1f2937;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.neutral {
    background: #e5e7eb;
    color: #374151;
}

.notifications-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    gap: 8px;
    color: #374151;
}

/* Стили для антропометрических данных */
.profile-data-section {
    margin-top: 24px;
}

.profile-data-group {
    margin-bottom: 24px;
}

.profile-data-group h4 {
    margin-bottom: 16px;
    color: var(--brand-text);
    font-size: 1.1em;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 8px;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.profile-data-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--brand-background);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.profile-data-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(255, 119, 0, 0.1);
}

.profile-data-label {
    font-size: 0.9em;
    color: var(--brand-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.profile-data-value {
    font-size: 1.1em;
    color: var(--brand-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-data-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profile-data-item {
        padding: 10px;
    }
    
    .profile-data-group {
        margin-bottom: 20px;
    }
    
    .profile-data-group h4 {
        font-size: 1em;
    }
    
    .form-group-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.profile-settings .form-group-grid {
    margin-bottom: 16px;
}

/* Модальное окно истории измерений */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 16px;
        max-height: 95vh;
    }
}

.status-neutral {
    background: #e5e7eb;
    color: #4b5563;
}

/* Heatmap календарь */
.heatmap-day {
    transition: all 0.2s;
}

.heatmap-day:hover {
    outline: 2px solid #667eea;
    outline-offset: 1px;
    transform: scale(1.1);
}

/* Сравнение периодов */
.change-positive {
    color: #10b981;
}

.change-negative {
    color: #ef4444;
}

/* Lightbox галерея */
.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    text-align: center;
    color: #666;
    margin-top: 15px;
    font-size: 14px;
    max-width: 600px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #333;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    overflow-x: auto;
    max-width: 100%;
    justify-content: center;
}

.lightbox-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.lightbox-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-thumbnail.active {
    border-color: #667eea;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .lightbox-image-wrapper {
        max-height: 60vh;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    /* Мобильная адаптивность для улучшенного тренировочного плана */
    .training-plan-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .training-week-range {
        order: -1;
        font-size: 14px;
    }
    
    .training-plan-navigation .btn {
        width: 100%;
    }
    
    .training-plan-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .training-plan-header h3 {
        font-size: 16px;
    }
    
    .training-week-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        justify-content: space-between;
    }
    
    .training-session-colored {
        padding: 10px;
    }
    
    .training-session-header {
        flex-wrap: wrap;
    }
    
    .training-session-indicators {
        margin-top: 6px;
    }
    
    .training-session-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Загрузка файлов */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.file-upload.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-preview {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .brand-title h1 {
        font-size: 20px;
    }
    
    .brand-tagline {
        font-size: 12px;
    }
    
    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .toast {
        min-width: auto;
        width: calc(100% - 40px);
        right: 10px;
        left: 10px;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    #user-info {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    #user-name {
        text-align: center;
    }
    
    .booking-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-card-actions {
        flex-direction: column;
    }
    
    .booking-card-actions .btn {
        width: 100%;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .brand-logo {
        width: 48px;
        height: 48px;
    }
    
    .brand-title h1 {
        font-size: 18px;
    }
    
    .nav-btn {
        flex: 1 1 100%;
        min-width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .main-nav {
        gap: 6px;
    }
    
    header {
        padding: 12px;
    }
    
    .container {
        padding: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .welcome-section {
        padding: 15px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
        padding: 15px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .welcome-section h2 {
        font-size: 22px;
    }
    
    .about-page .stat-card {
        padding: 15px;
    }
    
    .about-page h1 {
        font-size: 24px;
    }
    
    .about-page h2 {
        font-size: 20px;
    }
    
    .about-page > div > div {
        grid-template-columns: 1fr !important;
    }
    
    .search-input {
        width: 100%;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .training-week-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-list li,
    .equipment-list li,
    .support-list li {
        flex-direction: column;
        align-items: stretch;
    }
    
    .training-session {
        flex-direction: column;
        align-items: stretch;
    }
    
    .training-session-meta {
        align-items: flex-start;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Улучшенные стили для профиля */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-header h2 {
    margin: 0;
    color: #333;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--brand-surface);
    border-radius: 12px;
    border-left: 4px solid var(--brand-primary);
    box-shadow: 0 8px 20px var(--brand-shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(29, 53, 87, 0.2);
}

.stat-card-primary {
    border-left-color: var(--brand-primary);
}

.stat-card-success {
    border-left-color: var(--brand-success);
}

.stat-card-info {
    border-left-color: var(--brand-secondary-light);
}

.stat-card-warning {
    border-left-color: var(--brand-warning);
}

.stat-card-danger {
    border-left-color: var(--brand-primary-dark);
}

.stat-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-content .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.progress-chart-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-chart-container h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.progress-chart-container canvas {
    max-height: 300px;
}

.training-types-stats {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.training-types-stats h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.training-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-types-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.training-types-list li:last-child {
    border-bottom: none;
}

.training-type-name {
    color: #666;
    font-weight: 500;
}

.training-type-count {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.routes-detailed-stats {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.routes-detailed-stats h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

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

.route-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.route-stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.route-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.route-stat-success {
    color: #10b981;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.change-indicator {
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.change-indicator.positive {
    color: #10b981;
}

.change-indicator.negative {
    color: #ef4444;
}

.achievements-grouped {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-category {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.achievement-category h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

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

.achievement-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid #667eea;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.achievement-content h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.achievement-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.achievement-date {
    font-size: 11px;
    color: #999;
}

/* Стили для конструктора тренировок */
.training-builder {
    max-width: 1200px;
    margin: 0 auto;
}

.builder-mode-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.builder-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.builder-block:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.builder-block h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
}

.builder-block .form-group {
    margin-bottom: 15px;
}

.builder-block label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.builder-block input[type="text"],
.builder-block input[type="number"],
.builder-block select,
.builder-block textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.builder-block input[type="text"]:focus,
.builder-block input[type="number"]:focus,
.builder-block select:focus,
.builder-block textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.builder-block textarea {
    resize: vertical;
    min-height: 80px;
}

.block-type-select,
.template-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.builder-block .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

#quick-builder-summary,
#detailed-builder-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

#quick-builder-summary h4,
#detailed-builder-summary h4 {
    margin: 0;
    color: #1f2937;
}

#total-duration,
#total-duration-detailed {
    color: #667eea;
    font-weight: 700;
}

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

.template-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Drag & Drop стили для блоков тренировок */
.sortable-blocks {
    position: relative;
}

.builder-block {
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
}

.builder-block.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.builder-block.drag-over {
    border-top: 3px solid #667eea;
    margin-top: 10px;
}

.drag-handle {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.drag-handle:hover {
    color: #667eea !important;
}



/* Анимация подсветки тренировки */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
}

/* ========== СТИЛИ ДЛЯ АБОНЕМЕНТОВ ========== */

.memberships-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
}

.memberships-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.memberships-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.memberships-tabs .tab-btn:hover {
    color: #667eea;
}

.memberships-tabs .tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.memberships-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.membership-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.membership-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-used_up {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.membership-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.membership-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.membership-stats .stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.membership-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.membership-expires {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

.membership-details {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.membership-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.membership-details-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #1a202c;
}

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

.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.info-item .value {
    font-size: 14px;
    color: #1a202c;
    font-weight: 600;
}

.info-card .btn {
    width: 100%;
    margin-bottom: 10px;
}

.info-card .btn:last-child {
    margin-bottom: 0;
}

.usage-history {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.usage-history h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table thead {
    background: #f8fafc;
}

.usage-table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #1a202c;
}

.usage-table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.purchase-membership {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.purchase-membership h1 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
}

.membership-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.membership-type-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.membership-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.membership-type-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
}

.membership-type-card .description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.type-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.type-details .detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.type-details .detail i {
    color: #667eea;
}

.membership-type-card .price {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.membership-type-card .price .amount {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
}

.membership-type-card .price .currency {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
}
