/* ===================== Дизайн-токены ===================== */
:root {
    /* Тёмная премиум-тема */
    --bg: #0D0D0F;
    --text: #F5F5F7;
    --hint: #6B6B76;
    --link: #C9A96E;
    --accent: #C9A96E;
    --accent-hover: #D4B87A;
    --accent-text: #0D0D0F;
    --accent-muted: rgba(201, 169, 110, 0.12);
    --surface: #1A1A1F;
    --surface-2: #252529;
    --success: #34D399;
    --error: #F87171;
    --gradient: linear-gradient(135deg, #C9A96E 0%, #8B6914 100%);

    /* Glass morphism */
    --glass-bg: rgba(26, 26, 31, 0.7);
    --glass-border: rgba(201, 169, 110, 0.08);
    --glass-blur: blur(20px);

    /* Радиусы */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-full: 9999px;

    /* Тени (для тёмной темы — более заметные) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);

    /* Анимации */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.3s;
    --duration-fast: 0.15s;
}

/* ===================== Сброс и база ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 0 16px 100px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ===================== Шапка ===================== */
.header {
    text-align: center;
    padding: 24px 0 20px;
    position: relative;
}

.header-icon {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--accent);
}

.header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 14px;
    color: var(--hint);
    font-weight: 400;
}

/* ===================== Общие экраны ===================== */
.screen {
    animation: fadeIn var(--duration) var(--ease);
}

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

.screen-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}

/* Заголовок экрана с кнопкой «назад» */
.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.screen-header-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.screen-header-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-muted);
    padding: 3px 10px;
    border-radius: var(--r-full);
    margin-left: auto;
}

/* Кнопка «назад» */
.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration) var(--ease), transform var(--duration-fast);
    flex-shrink: 0;
}

.back-btn:active {
    transform: scale(0.92);
    background: var(--surface-2);
}

/* ===================== Категории ===================== */
.category-screen {
    padding-top: 4px;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color var(--duration) var(--ease), transform var(--duration-fast), box-shadow var(--duration);
    font-family: inherit;
    text-align: left;
}

.category-btn:active {
    transform: scale(0.98);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.1);
}

.category-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.category-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.1px;
}

/* ===================== Быстрая повторная запись ===================== */
.rebook-container {
    margin-top: 16px;
}

.rebook-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color var(--duration), transform var(--duration-fast);
}

.rebook-btn:active {
    transform: scale(0.98);
    border-color: var(--accent);
}

.rebook-icon {
    font-size: 20px;
    color: var(--accent);
}

.rebook-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rebook-label {
    font-size: 13px;
    color: var(--hint);
}

.rebook-details {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* ===================== Выбор времени ===================== */
.time-screen {
    padding-top: 4px;
}

/* Горизонтальная полоса дат */
.date-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
    padding-bottom: 2px;
}

.date-chips::-webkit-scrollbar {
    display: none;
}

.date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color var(--duration) var(--ease), background var(--duration), transform var(--duration-fast);
}

.date-chip:active {
    transform: scale(0.95);
}

.date-chip.active {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.date-chip-day {
    font-size: 13px;
    font-weight: 500;
    color: var(--hint);
}

.date-chip-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.date-chip.active .date-chip-day {
    color: var(--accent);
}

/* Кнопка «Ближайшие свободные» */
.nearest-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: var(--gradient);
    color: var(--accent-text);
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: transform var(--duration-fast), opacity var(--duration);
    font-family: inherit;
    text-align: left;
}

.nearest-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.nearest-btn-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nearest-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nearest-btn-title {
    font-size: 16px;
    font-weight: 600;
}

.nearest-btn-hint {
    font-size: 13px;
    opacity: 0.8;
}

/* Разделитель */
.time-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.time-divider::before,
.time-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-2);
}

.time-divider span {
    font-size: 13px;
    color: var(--hint);
    white-space: nowrap;
    font-weight: 500;
}

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

.time-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--duration) var(--ease), background var(--duration), transform var(--duration-fast);
}

.time-chip:active {
    transform: scale(0.95);
    border-color: var(--accent);
}

.time-chip.past {
    opacity: 0.3;
    pointer-events: none;
}

/* ===================== Загрузка ===================== */
.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 15px;
    color: var(--hint);
    font-weight: 500;
}

/* Анимация поиска ближайших */
.nearest-search-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
}

.nearest-search-icon {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.nearest-search-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.nearest-search-hint {
    font-size: 14px;
    color: var(--hint);
    margin: 0;
}

.nearest-search-dots {
    display: flex;
    gap: 6px;
}

.search-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dot-bounce 1s ease-in-out infinite;
}

@keyframes dot-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* ===================== Пустое состояние ===================== */
.empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--hint);
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-hint {
    font-size: 14px;
    color: var(--hint);
    margin-bottom: 24px;
}

/* ===================== Ошибка ===================== */
.error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--error);
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.error-hint {
    font-size: 14px;
    color: var(--hint);
    margin-bottom: 24px;
}

/* ===================== Кнопка обновления ===================== */
.refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration), transform var(--duration-fast);
    flex-shrink: 0;
    margin-left: auto;
}

.refresh-btn:active {
    transform: scale(0.92);
    background: var(--surface-2);
}

.refresh-btn.refreshing svg {
    animation: spin 0.8s linear infinite;
}

/* ===================== Тулбар слотов ===================== */
.slots-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

/* ===================== Сортировка ===================== */
.sort-toggle {
    display: flex;
    gap: 0;
    flex: 1;
    background: var(--surface);
    border-radius: var(--r-sm);
    padding: 3px;
}

.sort-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: calc(var(--r-sm) - 2px);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: transparent;
    color: var(--hint);
    transition: background var(--duration) var(--ease), color var(--duration), box-shadow var(--duration);
}

.sort-btn.active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* ===================== Список слотов ===================== */
.slots-screen-header {
    margin-bottom: 14px;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Карточка слота */
.slot-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform var(--duration-fast), border-color var(--duration);
}

.slot-card:active {
    transform: scale(0.99);
    border-color: rgba(201, 169, 110, 0.2);
}

/* Аватарка мастера */
.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.staff-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.slot-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    min-width: 58px;
    text-align: center;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

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

.slot-barbershop {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-staff {
    font-size: 13px;
    color: var(--hint);
}

.slot-address {
    font-size: 12px;
    color: var(--hint);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-distance {
    font-size: 12px;
    color: var(--link);
    font-weight: 600;
    margin-top: 2px;
}

.slot-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

/* Кнопка «Записаться» в карточке */
.btn-book {
    background: var(--accent);
    color: var(--accent-text);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--duration-fast), opacity var(--duration);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-book:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* ===================== Избранные ===================== */
.favorites-toggle {
    width: 40px;
    height: 36px;
    border-radius: calc(var(--r-sm) - 2px);
    border: none;
    background: var(--surface);
    color: var(--hint);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: color var(--duration), background var(--duration), transform var(--duration-fast);
}

.favorites-toggle:active {
    transform: scale(0.92);
}

.favorites-toggle.active {
    background: rgba(248, 113, 113, 0.15);
    color: #F87171;
}

.favorites-toggle.active .favorites-toggle-icon {
    color: #F87171;
}

/* Сердечко в карточке слота */
.slot-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--hint);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast), transform var(--duration-fast);
    padding: 0;
    z-index: 2;
}

.slot-favorite-btn:active {
    transform: scale(1.2);
}

.slot-favorite-btn.favorited {
    color: #F87171;
}

/* Карточке нужен position: relative для сердечка */
.slot-card {
    position: relative;
}

/* Счётчик слотов */
.slots-count {
    text-align: center;
    font-size: 13px;
    color: var(--hint);
    margin-top: 16px;
    padding-bottom: 16px;
    font-weight: 500;
}

/* ===================== Кнопки ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--r-md);
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--duration-fast), opacity var(--duration);
}

.btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.btn-primary {
    background: var(--gradient);
    color: var(--accent-text);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
}

.btn-danger.cancelled {
    background: var(--surface);
    color: var(--hint);
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: var(--r-md);
}

/* ===================== Форма записи ===================== */
.booking-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 100;
    overflow-y: auto;
    padding: 16px;
    animation: slideUp var(--duration) var(--ease);
}

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

.booking-form {
    max-width: 480px;
    margin: 0 auto;
}

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

.booking-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Информация о слоте в форме */
.booking-slot-info {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.booking-slot-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    min-width: 65px;
    text-align: center;
    letter-spacing: -0.5px;
}

.booking-slot-barbershop {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.booking-slot-staff {
    font-size: 14px;
    color: var(--hint);
    margin-bottom: 2px;
}

.booking-slot-date {
    font-size: 13px;
    color: var(--hint);
}

.booking-slot-service {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}

.booking-slot-address {
    font-size: 13px;
    color: var(--hint);
    margin-top: 2px;
}

/* Группа формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--surface-2);
    border-radius: var(--r-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-input::placeholder {
    color: var(--hint);
}

/* Ошибка формы */
.booking-error {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ===================== Экран успеха ===================== */
.booking-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn var(--duration) var(--ease);
}

.success-content {
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.4s var(--ease);
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.success-details {
    font-size: 15px;
    color: var(--hint);
    line-height: 1.6;
    margin-bottom: 28px;
    white-space: pre-line;
}

.success-content .btn + .btn {
    margin-top: 10px;
}

/* ===================== Совместимость с формой букинга ===================== */
.services-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--hint);
    font-size: 14px;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--surface);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--surface-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color var(--duration), background var(--duration);
}

.service-item:active {
    opacity: 0.8;
}

.service-item.selected {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.service-label {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.service-price {
    font-size: 14px;
    color: var(--hint);
    white-space: nowrap;
    margin-left: 8px;
}

.services-error,
.services-empty {
    font-size: 14px;
    color: var(--hint);
    padding: 8px 0;
}

/* ===================== Переходы между экранами ===================== */
.screen-enter-right {
    animation: slideInRight var(--duration) var(--ease) forwards;
}

.screen-exit-left {
    animation: slideOutLeft var(--duration) var(--ease) forwards;
}

.screen-enter-left {
    animation: slideInLeft var(--duration) var(--ease) forwards;
}

.screen-exit-right {
    animation: slideOutRight var(--duration) var(--ease) forwards;
}

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

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-30px); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* ===================== Skeleton loading ===================== */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.skeleton-card {
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.skeleton-line {
    background: var(--surface-2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-time {
    width: 58px;
    height: 28px;
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-name { width: 70%; height: 16px; }
.skeleton-staff { width: 45%; height: 13px; }
.skeleton-addr { width: 60%; height: 12px; }

.skeleton-btn {
    width: 80px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
}

/* ===================== Мои записи ===================== */
.my-bookings-btn {
    position: absolute;
    top: 24px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration), transform var(--duration-fast);
}

.my-bookings-btn:active {
    transform: scale(0.92);
}

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

.booking-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
}

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

.booking-card-shop {
    font-size: 15px;
    font-weight: 600;
}

.booking-card-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.booking-card-status.active {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
}

.booking-card-status.cancelled {
    background: rgba(107, 107, 118, 0.15);
    color: var(--hint);
}

.booking-card-status.past {
    background: var(--surface-2);
    color: var(--hint);
}

.booking-card-details {
    font-size: 13px;
    color: var(--hint);
    line-height: 1.6;
}

.booking-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bookings-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--hint);
    font-size: 15px;
}

/* ===================== Staggered карточки ===================== */
.slot-card-enter {
    animation: cardFadeIn 0.3s var(--ease) both;
}

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