/* Исправление видимости видео в Telegram WebView */

/* Включаем высоту видео контейнера */
.auth-video-container {
    height: 100% !important;
}

/* Делаем фон карточки прозрачным сверху с градиентом */
.auth-content-wrapper {
    background: linear-gradient(to bottom, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.7) 50%, #fff 70%, #fff 100%) !important;
}

/* Прозрачный фон для блока описания */
.auth-description-block {
    background: transparent !important;
}

/* Белый текст с тенью для лучшей читаемости на видео */
.auth-description-text {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Разделитель скрыт */
.login-title-divider {
    display: none !important;
}

/* Обновленный дизайн блока баланса - светлый с акцентами */
.balance-block {
    background: #f1f5f9;
    /*border: 2px solid var(--color-primary) !important;*/
    border-radius: 24px !important;
    color: var(--color-text) !important;
    box-shadow: 0 4px 12px rgba(163, 131, 107, 0.15) !important;
}

.balance-label-text {
    margin-bottom: 16px !important;
    opacity: 0.9 !important;
}

.balance-amount-value {
    color: var(--color-text) !important;
}

.balance-currency-text {
    opacity: 0.9 !important;
}

.btn-gift-square {
    /*background: rgba(163, 131, 107, 0.1) !important;*/
    border: 2px solid var(--color-primary) !important;
}

/* Кнопка сброса фильтра по проблемам */
.problems-filter-reset-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-bg-light);
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
    font-size: 18px;
    line-height: 1;
    color: var(--color-primary);
    font-weight: 300;
}

.problems-filter-reset-btn:hover {
    background: rgba(163, 131, 107, 0.08) !important;
    border-color: var(--color-primary) !important;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(163, 131, 107, 0.2) !important;
}

.problems-filter-reset-btn:active {
    transform: scale(0.95);
    background: rgba(163, 131, 107, 0.12) !important;
}

/* Иконки услуг */
.service-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.service-course-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
}

.course-badge {
    display: inline-block !important;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.service-course-icon:hover .course-badge {
    background: #e2e8f0;
    color: #334155;
    border-color: #94a3b8;
    transform: scale(1.05);
}

/* Модальное окно курсов */
.course-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-modal.hidden {
    display: none;
}

.course-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.course-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.course-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.course-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #475569;
}

.course-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.course-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    text-align: center;
}

.course-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.course-loading,
.course-empty,
.course-error {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

.course-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.course-item:hover {
    border-color: #A3836B;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 131, 107, 0.15);
}

.course-item:active {
    transform: translateY(0);
}

.course-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.course-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.course-item-duration {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.course-item-price {
    font-size: 15px;
    font-weight: 600;
    color: #A3836B;
}

.course-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.course-price-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

/* Акционные временные слоты (зеленые) - акция дня */
.time-slot-expandable.promotion,
.time-slot-single.promotion,
.time-slot-unified.promotion {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: white !important;
    font-weight: 600;
}

.time-slot-expandable.promotion:hover,
.time-slot-single.promotion:hover,
.time-slot-unified.promotion:hover {
    background: #45a049 !important;
    border-color: #45a049 !important;
}

.time-slot-expandable.promotion.selected,
.time-slot-single.promotion.selected,
.time-slot-unified.promotion.selected {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: white !important;
    opacity: 1 !important;
}

/* Индикатор акции дня для мастера */
.master-expandable-promotion-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0px;
    /*margin: 0 16px 12px 16px;*/
}

.master-expandable-promotion-indicator.hidden {
    display: none;
}

.promotion-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}

.promotion-indicator-text {
    font-size: 14px;
    color: #4caf50;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Оповещение о консультации при применении фильтра */
.services-filter-notification {
    padding: 16px;
    margin-bottom: 16px;
    background: #f8fafc;
    border-left: 4px solid #a3836b;
    border-radius: 8px;
}

.services-filter-notification.hidden {
    display: none;
}

.filter-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.filter-notification-text {
    font-size: 14px;
    line-height: 1.5;
    color: #a3836b;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Модальное окно акции дня */
.promotion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-modal.hidden {
    display: none;
}

.promotion-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.promotion-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.promotion-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.promotion-modal-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.promotion-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.promotion-modal-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.promotion-modal-title-wrapper {
    flex: 1;
}

.promotion-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.promotion-modal-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin: 0;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-modal-close {
    position: relative;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.promotion-modal-body {
    padding: 16px 0;
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.promotion-item {
    padding: 16px;
    margin: 0 16px 16px 16px;
    border-radius: 16px;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.promotion-item:last-child {
    margin-bottom: 0;
}

.promotion-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #a3836b;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 1;
}

.promotion-master-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 90px; /* Место для бейджа */
}

.promotion-master-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.promotion-master-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.promotion-master-details {
    flex: 1;
    padding-top: 2px;
}

.promotion-master-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.promotion-master-spec {
    font-size: 13px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    line-height: 1.4;
}

.promotion-date-time-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.promotion-date-pill,
.promotion-time-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #000000;
    font-family: 'Inter', sans-serif;
    min-width: 48%;
}

.promotion-date-pill svg,
.promotion-time-pill svg {
    width: 14px;
    height: 14px;
    stroke: #475569;
    flex-shrink: 0;
}

.promotion-book-btn {
    width: 100%;
    padding: 12px;
    background: #a3836b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-book-btn:hover {
    background: #334155;
}

.promotion-book-btn:active {
    transform: scale(0.98);
}

/* Стили для выбора времени в блоках услуг */
.service-expandable-time-selector,
.service-block-unified-time-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.service-expandable-time-selector > span,
.service-block-unified-time-selector > span {
    color: #64748b;
}

.service-time-chevron {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.2s;
}

.service-time-chevron.expanded {
    transform: rotate(180deg);
}

.service-expandable-header,
.service-block-unified-header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.service-expandable-title,
.service-block-unified-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-remove-btn {
    flex-shrink: 0;
    margin-left: auto;
}
