/* ===== CLIENT MODAL ===== */
.client-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .client-modal-overlay {
        align-items: center;
    }
}

.client-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .client-modal {
        border-radius: 20px;
        max-height: 80vh;
    }
}

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

.client-modal-back,
.client-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.client-modal-back:hover,
.client-modal-close:hover {
    background: #f5f5f5;
}

.client-modal-back svg,
.client-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: #666;
}

.client-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.client-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.client-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Аватар и имя */
.client-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.client-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.client-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #dd1847;
    overflow: hidden;
}

.client-avatar-lock {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    stroke: #999;
}

.client-name-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Поля ввода */
.client-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8f8f8;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.client-input:focus {
    outline: none;
    border-color: #dd1847;
    background: white;
}

/* Телефон */
.client-phone-wrapper {
    position: relative;
}

.client-country-selector {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    background: #f0f0f0;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
}

.client-phone-input {
    padding-left: 80px !important;
}

/* Секции */
.client-section {
    margin-bottom: 16px;
}

.client-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
}

.client-section-label {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.client-section-value {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-social-icons {
    display: flex;
    gap: 6px;
}

/* Скидка */
.client-discount-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.client-discount-input {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
}

.client-discount-symbol {
    font-size: 14px;
    color: #666;
}

/* Дата рождения */
.client-section-row-locked {
    cursor: default;
}

.client-birthday-lock {
    display: flex;
    align-items: center;
    stroke: #ccc;
}

.client-birthday-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

/* Заметки */
.client-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8f8f8;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    box-sizing: border-box;
}

.client-textarea:focus {
    outline: none;
    border-color: #dd1847;
    background: white;
}

/* Блокировка */
.client-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

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

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

.client-toggle input:checked + .client-toggle-slider {
    background-color: #dd1847;
}

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

.client-blocked-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Удалить */
.client-section-danger {
    margin-top: 20px;
}

.client-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #f44336;
    border-radius: 12px;
    color: #f44336;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.client-delete-btn:hover {
    background: rgba(244, 67, 54, 0.05);
}

.client-delete-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Кнопка сохранить */
.client-save-btn {
    width: 100%;
    padding: 16px;
    background: #dd1847;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.client-save-btn:hover {
    background: #c4153e;
}

.client-save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Под-попапы (соцсети, страна, пол) */
.social-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.social-field-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.social-input:focus {
    outline: none;
    border-color: #dd1847;
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    .client-modal { animation: none; }
}
.client-modal-overlay { z-index: 2000 !important; }
/* ============================================================
 * ДЕСКТОП: широкая компоновка профиля клиента (≥1024px)
 * Мобилка остаётся как есть (1 колонка).
 * ============================================================ */
@media (min-width: 1024px) {

    /* Расширяем контейнер профиля (был 600px — теперь 1100px) */
    .tab-content.active .main-content,
    .tab-content.active .profile-card {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Верхний блок: аватар слева + форма справа */
    .profile-card__main {
        display: block;
        padding: 0;
        border-bottom: none;
    }

    /* Шапка профиля: аватар + форма */
    .profile-card__top {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 40px;
        align-items: stretch;
        padding-bottom: 32px;
        margin-bottom: 32px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Аватар-портрет: 240px ширины, высота = высоте формы.
       Скруглённые углы 24px, фото через object-fit: cover. */
    .profile-card__top > .profile-photo-wrapper {
        position: relative;
        width: 240px;
        min-height: 240px;
        height: 100%;
        flex-shrink: 0;
        cursor: pointer;
    }

    .profile-card__top > .profile-photo-wrapper .profile-photo {
        width: 240px;
        height: 100%;
        min-height: 240px;
        border-radius: 24px;
        border: none;
        background: #f0f0f0;
        overflow: hidden;
    }

    .profile-card__top > .profile-photo-wrapper .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px;
        display: block;
    }

    .profile-card__top > .profile-photo-wrapper .profile-photo-overlay {
        border-radius: 24px;
    }

    /* Форма справа от аватара */
    .profile-card__top > .profile-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
    }

    .profile-card__top > .profile-form > .profile-section {
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .profile-card__top .profile-section-title {
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #999;
        margin-bottom: 8px;
    }

    .profile-card__top .profile-name-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .profile-card__top .profile-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        background: #fff;
        border: 1.5px solid #e5e7eb;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-card__top .profile-input:focus {
        border-color: #dd1847;
        background: #fff;
        outline: none;
    }


    /* Справа — секции формы идут подряд, увеличены отступы */
    .profile-card__main > .profile-section {
        margin-top: 0;
        margin-bottom: 16px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-card__main > .profile-section:last-child {
        margin-bottom: 0;
    }

    .profile-card__main > .profile-section .profile-section-title {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #999;
        margin-bottom: 8px;
    }

    /* Имя и фамилия — 2 колонки на десктопе */
    .profile-card__main .profile-name-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Поля — крупнее и «чище» на десктопе */
    .profile-card__main .profile-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        background: #fff;
        border: 1.5px solid #e5e7eb;
    }

    .profile-card__main .profile-input:focus {
        border-color: #dd1847;
        background: #fff;
    }

    /* Плитки ссылок — 2 колонки */
    .profile-card__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .profile-card__links > .profile-section {
        margin: 0;
        padding: 16px 20px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,.04);
        transition: box-shadow .15s ease, transform .12s ease;
        cursor: pointer;
    }

    .profile-card__links > .profile-section:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.06);
        transform: translateY(-1px);
    }

    /* Кнопка «Выйти» — в самом низу по центру */
    .profile-card > .profile-logout {
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px solid #f0f0f0;
        text-align: center;
    }

    /* Save bar на десктопе — прижат к правому нижнему углу */
    .profile-save-bar {
        position: fixed;
        bottom: 24px;
        right: 24px;
        left: auto;
        max-width: 320px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        margin: 0;
    }
}

/* ============================================================
 * ДЕСКТОП: фикс аватара (убрать sticky) + выравнивание формы
 * ============================================================ */
@media (min-width: 1024px) {
    /* Save bar — прижат к правому нижнему углу на десктопе */
    .profile-save-bar {
        position: fixed;
        bottom: 24px;
        right: 24px;
        left: auto;
        max-width: 340px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0,0,0,.16);
    }
}


/* ============================================
   Repeat Booking Modal (.rbm-*)
   Источник: app/views/client/partials/repeat-booking-modal.php
   ============================================ */

/* ===== SKELETON ANIMATIONS ===== */
    @keyframes rbm-shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
    
    @keyframes rbm-dot-pulse {
        0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
        40% { transform: scale(1); opacity: 1; }
    }
    
    @keyframes rbm-spin {
        to { transform: rotate(360deg); }
    }
    
    @keyframes rbm-fadeInUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* ===== SKELETON BASE ===== */
    .rbm-skeleton-block,
    .rbm-skeleton-date,
    .rbm-skeleton-text {
        position: relative;
        overflow: hidden;
        border-radius: 6px;
        background: #f0f0f0;
    }
    
    .rbm-skeleton-block::after,
    .rbm-skeleton-date::after,
    .rbm-skeleton-text::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: rbm-shimmer 1.5s infinite;
    }
    
    .rbm-skeleton-avatar {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.15);
    }
    
    .rbm-skeleton-avatar::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: rbm-shimmer 1.5s infinite;
    }
    
    .rbm-skeleton-text {
        height: 18px;
    }
    
    .rbm-skeleton-date {
        min-width: 62px;
        width: 62px;
        height: 62px;
        border-radius: 14px;
        flex-shrink: 0;
    }
    
    /* ===== HEADER ===== */
    .rbm-company-avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(255,255,255,0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }
    
    .rbm-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
    }
    
    .rbm-company-name {
        font-size: 18px;
        font-weight: 700;
        min-height: 18px;
        position: relative;
    }
    
    .rbm-service-info {
        font-size: 13px;
        opacity: 0.85;
        margin-top: 2px;
        min-height: 13px;
        position: relative;
    }
    
    .rbm-close-btn {
        background: rgba(255,255,255,0.15);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    
    .rbm-close-btn:hover {
        background: rgba(255,255,255,0.25);
    }
    
    /* ===== CONTENT ===== */
    .rbm-content {
        flex: 1;
        padding: 20px 16px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .rbm-step {
        transition: opacity 0.3s, transform 0.3s;
    }
    
    .rbm-step-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .rbm-step-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 4px;
    }
    
    .rbm-step-header p {
        font-size: 14px;
        color: #888;
        margin: 0;
    }
    
    /* ===== BOOKING INFO ===== */
    .rbm-booking-info {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        min-height: 80px;
        position: relative;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    
    /* ===== DATE PICKER ROW ===== */
    .rbm-date-picker-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .rbm-calendar-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: #fdf2f5;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        border: none;
    }
    
    .rbm-calendar-btn:hover {
        transform: scale(1.05);
    }
    
    .rbm-date-strip-wrapper {
        flex: 1;
        overflow: hidden;
    }
    
    .rbm-date-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
        min-height: 62px;
        align-items: center;
        -webkit-overflow-scrolling: touch;
    }
    
    .rbm-date-strip::-webkit-scrollbar {
        display: none;
    }
    
    /* ===== DATE BUTTONS ===== */
    .rbm-date-btn {
        min-width: 62px;
        width: 62px;
        padding: 12px 6px;
        border-radius: 14px;
        border: 2px solid #e8e8e8;
        background: #fff;
        color: #1a1a1a;
        cursor: pointer;
        text-align: center;
        font-family: inherit;
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s ease;
        animation: rbm-fadeInUp 0.3s ease;
    }
    
    .rbm-date-btn:hover:not(.rbm-selected-date) {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .rbm-date-btn.rbm-selected-date {
        color: #fff !important;
    }
    
    .rbm-date-btn:focus-visible {
        outline: 2px solid var(--primary, #dd1847);
        outline-offset: 2px;
    }
    
    /* ===== TIME SLOTS ===== */
    .rbm-time-slots {
        min-height: 120px;
    }
    
    .rbm-loading-state {
        text-align: center;
        padding: 40px;
        color: #888;
    }
    
    .bfs-loading-dots {
        display: flex;
        gap: 6px;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .bfs-loading-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        animation: rbm-dot-pulse 1.4s infinite ease-in-out;
    }
    
    .bfs-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
    .bfs-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
    
    /* ===== TIME SLOT BUTTONS ===== */
    .rbm-time-slot-btn {
        padding: 12px 18px;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        background: #f8f8f8;
        color: #1a1a1a;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s ease;
        animation: rbm-fadeInUp 0.3s ease;
    }
    
    .rbm-time-slot-btn:hover:not(.rbm-selected) {
        background: #f0f0f0;
        transform: translateY(-1px);
    }
    
    .rbm-time-slot-btn.rbm-selected {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(221,24,71,0.2);
    }
    
    .rbm-time-slot-btn:focus-visible {
        outline: 2px solid var(--primary, #dd1847);
        outline-offset: 2px;
    }
    
    /* ===== CONTINUE BUTTON ===== */
    #rbmContinueBtn {
        width: 100%;
        margin-top: 20px;
        padding: 16px;
        background: #ccc;
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: background 0.3s ease, transform 0.2s ease;
    }
    
    #rbmContinueBtn:not(:disabled):hover {
        transform: translateY(-1px);
    }
    
    #rbmContinueBtn:focus-visible {
        outline: 2px solid var(--primary, #dd1847);
        outline-offset: 2px;
    }
    
    /* ===== CONFIRM STEP ===== */
    .rbm-confirm-content {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    
    .rbm-finish-btn {
        width: 100%;
        padding: 16px;
        background: var(--primary, #dd1847);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .rbm-finish-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(221,24,71,0.3);
    }
    
    .rbm-finish-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
    
    .rbm-finish-btn:focus-visible {
        outline: 2px solid var(--primary, #dd1847);
        outline-offset: 2px;
    }
    
    .rbm-btn-spinner svg {
        animation: rbm-spin 0.8s linear infinite;
    }
    
    /* ===== NOTIFICATION ===== */
    .rbm-notification {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .rbm-notification.show {
        opacity: 1;
    }
    
    /* Адаптив */
    @media (max-width: 767px) {
        .rbm-date-btn {
            min-width: 56px;
            width: 56px;
            padding: 10px 4px;
            font-size: 13px;
        }
        
        .rbm-time-slot-btn {
            padding: 10px 14px;
            font-size: 13px;
        }
    }

/* ============================================
   Repeat Booking Modal — обёртки (overlay + wrap)
   ============================================ */

.rbm-modal {
    position: fixed;
    inset: 0;
    background: #f5f5f5;
    z-index: 3000;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: rbm-fadeInUp 0.25s ease;
}

.rbm-wrap {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.rbm-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary, #dd1847);
    color: #fff;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(221, 24, 71, 0.3);
}

.rbm-footer {
    margin-top: auto;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f0f0f0;
    position: sticky;
    bottom: 0;
}

.rbm-back-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: transparent;
    color: #888;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.rbm-back-btn:hover {
    color: #333;
}

.rbm-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 8px;
}

.rbm-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dd1847;
    animation: rbm-dot-pulse 1.4s infinite ease-in-out both;
}

.rbm-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.rbm-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.rbm-date-weekday,
.rbm-date-day,
.rbm-date-month {
    line-height: 1.2;
}

.rbm-date-weekday { font-size: 11px; opacity: 0.7; }
.rbm-date-day { font-size: 18px; font-weight: 700; margin: 2px 0; }
.rbm-date-month { font-size: 11px; opacity: 0.7; }

.rbm-date-btn.rbm-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rbm-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 16px 20px;
}

.rbm-time-slot-btn.rbm-selected {
    background: var(--primary, #dd1847);
    color: #fff;
    border-color: var(--primary, #dd1847);
}

/* ============================================
   Repeat Booking — выделение выбранной даты
   ============================================ */

.rbm-date-btn.rbm-selected {
    background: var(--primary, #dd1847) !important;
    color: #fff !important;
    border-color: var(--primary, #dd1847) !important;
}

.rbm-date-btn.rbm-selected .rbm-date-weekday,
.rbm-date-btn.rbm-selected .rbm-date-day,
.rbm-date-btn.rbm-selected .rbm-date-month {
    color: #fff !important;
    opacity: 1;
}

.rbm-time-slot-btn.rbm-selected {
    background: var(--primary, #dd1847) !important;
    color: #fff !important;
    border-color: var(--primary, #dd1847) !important;
    font-weight: 600;
}


/* === SmartImg: инициалы для аватаров без фото === */
.smart-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: #dd1847;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
    text-transform: uppercase;
}
