/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 15px;
    background-color: #f8f9fa;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

h1, h2, h3 {
    color: #333;
    text-align: center;
    margin-top: 0;
}

h1 {
    margin-bottom: 25px;
    font-size: 22px;
}

h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

/* Календарь: одна сетка 7 колонок (пн–вс), подписи и даты выровнены */
.calendar-wrapper {
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-wday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    padding: 4px 0;
}

.calendar-cell-empty {
    aspect-ratio: 1;
    min-width: 0;
    background: transparent;
}

.date-btn {
    aspect-ratio: 1;
    min-width: 0;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    padding: 0;
    box-sizing: border-box;
}

.date-btn.future-date:hover {
    border-color: #007aff;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.date-btn.future-date.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

/* Сетка времени */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.time-btn {
    padding: 12px 5px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.time-btn:hover {
    border-color: #007aff;
    background: #f0f7ff;
    transform: translateY(-1px);
}

.time-btn.trainer-available {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.time-btn.trainer-available:hover {
    background: #c8e6c9;
    border-color: #81c784;
}

.time-btn.time-btn-selected {
    border-color: #007aff;
    background: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

.time-btn.time-btn-selected.trainer-available {
    background: #c8e6c9;
    border-color: #007aff;
}

.time-btn:active {
    transform: translateY(0);
}

.time-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.time-btn-time {
    font-weight: 600;
}

.time-btn-price {
    font-size: 11px;
    color: #6c757d;
}

.teacher-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px;
    cursor: pointer;
    font-size: 14px;
}

.teacher-checkbox input {
    width: auto;
}

.teacher-checkbox-wrap.teacher-disabled {
    opacity: 0.7;
    pointer-events: none;
}

.teacher-checkbox-wrap.teacher-disabled .teacher-checkbox {
    cursor: default;
}

.step3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.step3-actions .back-btn {
    margin-top: 0;
}

.step3-actions .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.step3-trainer-conflict {
    margin: 10px 0;
    padding: 0;
    min-height: 0;
    font-size: 14px;
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 10px 12px;
    display: none;
}

.step3-trainer-conflict.step3-trainer-conflict-visible {
    display: block;
}

/* Шаг 4: красный блок «преподаватель недоступен» с причиной */
.step4-trainer-conflict.step3-trainer-conflict-visible {
    color: #b71c1c;
    background: #ffcdd2;
    border-color: #e57373;
    font-weight: 500;
}

.duration-btn.duration-btn-selected {
    border-color: #007aff;
    background: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

.price-footnotes {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 8px;
}

.footnote {
    display: block;
}

.duration-price-display {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 15px;
}

.duration-price-display-visible {
    font-weight: 600;
    color: #28a745;
}

.step4-duration-summary {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.step4-price {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 15px;
}

.step4-price-visible {
    font-weight: 600;
    color: #28a745;
}
.step4-telegram-id {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 12px 0;
}

.step5-points-wrap {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f5f6f8;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}
.step5-points-label { font-weight: 500; }
.step5-points-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; }
.step5-points-input {
    width: 50px;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}
.step5-points-inline strong { color: #28a745; }

/* Кнопки длительности */
.duration-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.duration-btn {
    padding: 14px 8px;
    border: 2px solid #007aff;
    background: white;
    color: #007aff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.duration-btn:hover {
    background: #007aff;
    color: white;
}

/* Форма */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007aff;
}

.rules-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, background 0.2s;
}

.rules-checkbox:hover {
    background: #f0f4f8;
    border-color: #dee2e6;
}

.rules-checkbox input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #28a745;
}

.rules-checkbox span {
    line-height: 1.4;
}

.rules-link {
    color: #007aff;
    text-decoration: underline;
    font-weight: 500;
}

.rules-link:hover {
    text-decoration: none;
    color: #0056b3;
}

/* Модальное окно правил */
.rules-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.rules-modal.rules-modal-open {
    visibility: visible;
    opacity: 1;
}

.rules-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.rules-modal-content {
    position: relative;
    max-width: 500px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.rules-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.rules-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.rules-modal-close:hover {
    color: #000;
}

.rules-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

/* Кнопки */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.submit-btn-pay {
    background: #28a745;
}

.submit-btn-pay:hover {
    background: #218838;
}

.confirmation-warning {
    margin-top: 12px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
}

.confirmation-pay-hint {
    margin-top: 10px;
    padding: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #495057;
    border: none;
    background: transparent;
}

.submit-btn {
    flex: 2;
    padding: 12px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background: #0056cc;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-btn {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #545b62;
}

.close-btn {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}

.close-btn:hover {
    background: #218838;
}

/* Шаг 6: Оплатить + Закрыть */
.step6-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    align-items: stretch;
}

.step6-actions .pay-btn,
.step6-actions .step6-close-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    margin-top: 0;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, #e85d5d 0%, #c93434 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201, 52, 52, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pay-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(201, 52, 52, 0.45);
    transform: translateY(-1px);
}

.pay-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.pay-return-banner {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.pay-return-banner--ok {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pay-return-banner--fail {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@media (max-width: 380px) {
    .step6-actions {
        flex-direction: column;
    }
    .step6-actions .pay-btn,
    .step6-actions .step6-close-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

.refresh-btn {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #e9ecef;
}

/* Сообщения */
.loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007aff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 15px;
    background: #f8d7da;
    border-radius: 8px;
    margin: 10px 0;
}

.no-times {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    grid-column: 1 / -1;
}

/* Подтверждение */
.confirmation-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.confirmation-details p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.confirmation-details p:last-child {
    border-bottom: none;
}

/* Упрощенные стили для кнопок длительности */
.duration-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.duration-btn {
    padding: 15px 10px;
    border: 2px solid #007aff;
    background: white;
    color: #007aff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.duration-btn:hover {
    background: #007aff;
    color: white;
    transform: translateY(-2px);
}

.duration-btn:active {
    transform: translateY(0);
}

.duration-btn .duration-main {
    font-size: 16px;
    margin-bottom: 3px;
}

.duration-btn .duration-sub {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

/* Для мобильных */
@media (max-width: 480px) {
    .duration-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных */
@media (max-width: 480px) {
    .duration-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .duration-btn {
        padding: 16px 10px;
        min-height: 70px;
    }
    
    .duration-btn .duration-main {
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .duration-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .date-btn {
        font-size: 14px;
    }
    
    .time-btn {
        padding: 10px 3px;
        font-size: 13px;
    }
}

/* Шапка и кнопка Вход */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.top-bar h1 {
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.auth-btn-header {
    flex-shrink: 0;
    padding: 10px 18px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
    text-decoration: none;
}

.auth-btn-header:hover {
    background: #0056cc;
}

.auth-btn-header:active {
    transform: scale(0.98);
}

/* Кнопка "Главная" на шаге записи */
#booking-home-link {
    background: #ff62a0;
    color: #fff;
}

#booking-home-link:hover {
    background: #ff4a93;
}

/* Модальное окно входа/регистрации */
.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
}

.auth-modal-backdrop.auth-modal-open {
    display: flex;
}

.auth-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.auth-modal h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    text-align: center;
    color: #333;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.auth-tab-btn:hover {
    border-color: #007aff;
    background: #f0f7ff;
    color: #333;
}

.auth-tab-btn.active {
    border-color: #007aff;
    background: #007aff;
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.auth-form .form-group:last-of-type {
    margin-bottom: 0;
}

.auth-form .rules-checkbox {
    margin: 16px 0;
}

.auth-form .submit-btn {
    width: 100%;
    margin-top: 20px;
    flex: none;
}

.auth-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.auth-buttons-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cabinet-modal {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cabinet-modal .auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.cabinet-bookings {
    margin-bottom: 20px;
}

.cabinet-points-wrap {
    margin: 4px 0 16px 0;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-align: left;
}

.cabinet-calendar-wrap {
    margin-bottom: 20px;
    position: relative;
}

.cabinet-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cabinet-calendar-month-title {
    font-size: 16px;
    font-weight: 600;
}

.cabinet-calendar-nav {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
}

.cabinet-calendar-nav:hover {
    background: #e0e0e0;
}

.cabinet-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cabinet-calendar-wday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.cabinet-calendar-cell {
    aspect-ratio: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
}

.cabinet-calendar-cell-empty {
    background: transparent;
}

.cabinet-calendar-day {
    background: #f5f5f5;
    color: #333;
}

.cabinet-calendar-day.cabinet-date-clickable {
    cursor: pointer;
    border: none;
    font: inherit;
}

.cabinet-calendar-day.cabinet-date-ok {
    background: #c8e6c9;
    color: #1b5e20;
    font-weight: 600;
}

.cabinet-calendar-day.cabinet-date-ok:hover {
    background: #a5d6a7;
}

.cabinet-calendar-day.cabinet-date-cancelled {
    background: #e8b4b8;
    color: #6d2c2c;
    font-weight: 600;
}

.cabinet-calendar-day.cabinet-date-cancelled:hover {
    background: #d4989e;
}

.cabinet-calendar-day.cabinet-date-mixed {
    background: linear-gradient(to right, #e8b4b8 50%, #c8e6c9 50%);
    color: #333;
    font-weight: 600;
}

.cabinet-calendar-day.cabinet-date-mixed:hover {
    background: linear-gradient(to right, #d4989e 50%, #a5d6a7 50%);
}

.cabinet-date-popover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.cabinet-date-popover.cabinet-date-popover-visible {
    pointer-events: auto;
    opacity: 1;
}

.cabinet-date-popover-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
}

.cabinet-date-popover-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.cabinet-date-popover-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cabinet-date-popover-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #666;
}

.cabinet-date-popover-close:hover {
    color: #333;
}

.cabinet-date-popover-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cabinet-popover-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.cabinet-popover-item-text {
    line-height: 1.45;
    word-break: break-word;
    min-width: 0;
}

.cabinet-pay-btn {
    flex-shrink: 0;
    align-self: stretch;
    box-sizing: border-box;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(180deg, #e87070 0%, #d04545 48%, #c43838 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 2px 8px rgba(180, 48, 48, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cabinet-pay-btn--full {
    width: 100%;
    margin-left: 0;
}

.cabinet-pay-btn:hover {
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 4px 14px rgba(180, 48, 48, 0.42);
    transform: translateY(-1px);
}

.cabinet-pay-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.cabinet-popover-item-cancelled {
    background: #ffebee;
    color: #8b4545;
}

.cabinet-popover-item.cabinet-no-items {
    color: #666;
    font-style: italic;
}

.cabinet-upcoming-wrap {
    margin-top: 16px;
}

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

.cabinet-upcoming-list {
    max-height: 180px;
}

.cabinet-no-upcoming {
    color: #666;
    font-style: italic;
}

.cabinet-bookings h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
}

.cabinet-bookings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.cabinet-booking-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}

.cabinet-booking-item-text {
    line-height: 1.45;
    word-break: break-word;
    min-width: 0;
}

.cabinet-no-bookings {
    color: #666;
    font-size: 14px;
    padding: 12px 0;
}

.cabinet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cabinet-actions .cabinet-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.cabinet-btn-secondary {
    background: #6c757d !important;
}

.cabinet-btn-secondary:hover {
    background: #5a6268 !important;
}

.register-on-booking-text {
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.cabinet-change-pwd {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}

.cabinet-change-pwd h3 {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: left;
}