@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg: #ffffff;
    --black: #000000;
    --red: #FF3B30;
    --grey-bg: #F9F9F9;
    --grey-txt: #999999;
    --border-color: #E0E0E0;
}

.profile-header-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--grey-bg);
    border: 2px solid var(--border-color);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body { margin: 0; background: var(--bg); color: var(--black); font-family: 'Montserrat', sans-serif; font-weight: 300; }

.app-container {
    width: 100%;
    margin: 0;
    padding: 0 !important;
    height: auto !important;
    min-height: 100%;
    box-sizing: border-box;
}

.screen {
    display: none;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-top: 40px;
    padding: 40px 20px 90px !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    overflow-y: auto;
    opacity: 1 !important;
    margin: 0 !important;
}

.screen.active {
    display: block !important;
}

/* Тексты */
h1 { font-size: 28px; font-weight: 200; margin: 0 0 30px 0; letter-spacing: -1px; text-transform: uppercase; }
h2 { font-size: 18px; font-weight: 400; margin-bottom: 12px; text-transform: uppercase; }
p { font-size: 14px; line-height: 1.6; color: #444; }

::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* или 200, как у тебя в модалках */
    opacity: 1; /* Чтобы цвет не был слишком тусклым в Firefox */
}

/* Для старых Safari/Chrome */
::-webkit-input-placeholder {
    font-family: 'Montserrat', sans-serif;
}

/* Header Главная */
.header-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.brand { font-weight: 800; letter-spacing: 3px; font-size: 18px; }
.dot { color: var(--red); }
.status-badge { border: 1px solid var(--black); padding: 4px 12px; font-size: 10px; font-weight: 600; border-radius: 4px; color: red}

/* Подписка */
.sub-container { display: flex; gap: 15px; border-top: 1.5px solid var(--border-color); padding-top: 25px; margin-top: 30px; }
.sub-box { flex: 1; }
.label { font-size: 10px; color: var(--grey-txt); text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 5px; }
.val { font-size: 16px; font-weight: 300; }
.val-red { font-size: 16px; color: var(--red); font-weight: 500; }

/* Услуги */
.section-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px; }
.add-link { background: none; border: none; color: var(--red); font-weight: 700; font-size: 10px; cursor: pointer; }

.service-card { display: flex; gap: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
.s-image {position: relative; width: 85px; height: 85px; background: var(--grey-bg); border-radius: 12px; border: 1px solid var(--border-color); background-size: cover; flex-shrink: 0; }
.s-info { flex: 1; }
.s-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.s-name { font-size: 18px;  font-weight: 600; }

.s-description { font-size: 14px; color: #777; line-height: 1.4; margin: 0 0 12px 0; }

.s-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Чтобы цена была сверху, если текст в две строки */
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Контейнер для часов и минут */
.s-time-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333; /* Цвет минут (можно поменять) */
    margin-bottom: 2px;
}

/* Сами часы (серые) */
.s-clock-icon {
    width: 14px;
    height: 14px;
    color: #bbb; /* Тот самый серый цвет */
}

.s-abs-toggle {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 10;
    transition: 0.3s;
}

.s-edit-link {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: right;
    white-space: nowrap; /* Чтобы текст не переносился внутри кнопки */
}


.s-actions-group {
    display: flex !important;
    flex-direction: column !important; /* Выстраивает детей в столбик */
    align-items: flex-end;            /* Прижимает кнопки к правому краю */
    gap: 8px;                         /* Расстояние между ними */
    min-width: fit-content;           /* Чтобы контейнер не сжимался */
}

/* Если услуга выключена — делаем всю карточку чуть прозрачной */
.service-card.inactive {
    opacity: 0.8;
    filter: grayscale(0.8); /* Можно даже чуть обесцветить */
}

/* Редактор дня (возвращаем ширину) */
.day-controls { 
    border-top: 1.5px solid var(--border-color); 
    padding-top: 20px; 
    width: 100%; 
}
.controls-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.work-indicator { font-size: 10px; font-weight: 800; color: var(--red); }
#sel-date { font-size: 12px; font-weight: 600; }

.time-range-row { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Стягиваем всё к центру */
    background: var(--grey-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 15px; 
    padding: 10px; 
    margin: 0 auto 20px auto; /* Центрируем сам блок на странице */
    max-width: 280px; /* Ограничили ширину, чтобы инпуты не разлетались */
}

.time-unit { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100px; /* Фиксированная ширина для каждого блока времени */
    flex-shrink: 0; 
}

.time-unit label { 
    font-size: 8px; 
    color: var(--grey-txt); 
    font-weight: 800; 
    margin-bottom: 2px; 
    text-transform: uppercase;
}

.time-unit input { 
    border: none; 
    background: none; 
    font-size: 20px; 
    font-weight: 200; 
    text-align: center; 
    width: 100%; 
    outline: none; 
    color: var(--black);
    padding: 0;
}

.time-divider { 
    color: var(--red); 
    font-size: 20px; 
    font-weight: 200; 
    padding: 0 15px; /* Управляй этим числом, чтобы сблизить или раздвинуть */
    margin-top: 10px; /* Выравнивание тире по центру цифр */
    flex-shrink: 0;
}

/* Формы */
.input-field { margin-bottom: 25px; }
.input-field label { display: block; font-size: 10px; color: var(--grey-txt); font-weight: 600; margin-bottom: 8px; }
.input-field input, .input-field textarea { font-family: 'Montserrat', sans-serif !important; font-weight: 300; width: 100%; border: none; border-bottom: 1.5px solid var(--border-color); padding: 10px 0; font-size: 16px; outline: none; background: none; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mono-font { font-family: 'Montserrat', sans-serif ; font-size: 13px !important; }

.input-field input::placeholder,
.input-field textarea::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--grey-txt);
}

.btn-save { width: 100%; background: none; border: 1.5px solid var(--black); padding: 16px; border-radius: 35px; font-size: 13px; font-weight: 200; letter-spacing: 1px; cursor: pointer; }
.btn-save.dark { background: var(--black); color: white; }

/* Навигация: активные цвета */
.footer-nav { position: fixed; bottom: 0; width: 100%; height: 80px; background: white; border-top: 1.5px solid var(--border-color); display: flex; justify-content: space-around; padding-bottom: 15px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #CCCCCC; cursor: pointer; transition: 0.2s; }
.nav-item svg { width: 24px; height: 24px; fill: currentColor; margin-bottom: 4px; }
.nav-item span { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; }
.nav-item.active { color: var(--red); }



.tariffs-wrapper, #stats-wrapper {
    margin-top: 40px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 25px;
    margin-bottom: 0;
}

.mini-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--grey-txt);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tariff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.tariff-item:active {
    background: #f0f0f0;
}

.t-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Группируем правую часть */
.t-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.t-benefit {
    font-size: 11px;
    color: var(--red); /* Твой красный цвет для акцента на выгоде */
    font-weight: 500;
}

.t-month-price {
    font-size: 11px;
    color: var(--grey-txt);
    margin-top: 2px;
}

/* Выделение популярного тарифа (по желанию) */
.tariff-item.popular {
    border: 1.5px solid var(--red);
    background: #fffafa; /* Очень легкий красноватый оттенок */
}

.tariff-item.selected {
    border: 1.5px solid var(--black);
    background: var(--bg); /* Выделяем белым на сером фоне */
}

/* Выравнивание для первой карточки, где нет доп. инфо */
.tariff-item > span:first-child {
    font-size: 14px;
    font-weight: 400;
}

.tariff-item > span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

.t-period {
    font-size: 14px;
    font-weight: 400; /* Тонкий шрифт */
    color: var(--black);
}

.t-price {
    font-size: 14px;
    font-weight: 600; /* Небольшой акцент на цене */
    color: var(--red);
}

/* Кнопка промо в стиле Профиля */
#promo-btn.dark {
    background: var(--black);
    color: white;
    border: none;
    font-weight: 200;
    letter-spacing: 0.5px;
    font-size: 12px;
}



/* Кнопка оплаты (по умолчанию скрыта) */
#pay-btn {
    display: none;
    margin-top: 20px;
}


/* для алертов */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.5); /* Затемнение */
    backdrop-filter: blur(5px);
}
.modal-content {
    border-radius: 15px;
    background: var(--bg);
    margin: 40% auto;
    padding: 25px;
    width: 80%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: auto !important;
}
.modal-content p { font-size: 15px; margin-bottom: 20px; font-weight: 300; }

/* для добавления услуг */

/* Оверлей (фон) модалки услуг */
.service-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Контент модалки услуг */
.service-modal-content {
    background: var(--bg) !important;
    opacity: 1 !important;
    margin: 40px auto;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    height: auto !important;
    min-height: min-content;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2001;
}

/* Контейнер списка */
.schedule-list {
    margin-top: 10px;
}

/* Строка-таблица (Строго в один ряд) */
.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
}

/* Состояние "Выходной" - тусклая строка */
.schedule-row.off {
    opacity: 0.3;
}

/* Название дня (ПН, ВТ...) - фиксируем ширину */
.day-name {
    width: 40px;
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
}

/* Центр: Инпуты времени */
.time-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.time-box input {
    width: 75px; /* Фикс ширина, чтобы не прыгало */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 14px;
    text-align: center;
    background: var(--grey-bg);
    color: var(--black);
    outline: none;
    font-weight: 200;
}

.time-box span {
    color: #ccc;
    font-weight: 300;
}

/* Твой КРАСНЫЙ Свитч справа */
.switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 10px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}

/* зеленый цвет при включении */
input:checked + .slider {
    background-color: #44944a;
}

.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider:before {
    transform: translateX(18px);
}

/* Стили шапки */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Выравнивание по вертикали, чтобы не ехало */
    padding: 10px 5px; /* Увеличил отступ, чтобы не прилипало */
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 5px;
    height: 10px; /* Фиксированная высота для стабильности */
}

.h-col {
    font-size: 9px; /* Сделал чуть меньше, чтобы не раздувало */
    font-weight: 200;
    color: var(--grey-txt);
    letter-spacing: 0.5px;
    line-height: 1; /* Убираем лишние межстрочные отступы */
}

/* Фиксируем ширину колонок шапки под твой CSS */
.h-col.day { width: 40px; text-align: left; }
.h-col.time { flex: 1; text-align: center; }
.h-col.status { width: 45px; text-align: right; }

/* Убедись, что в .schedule-row есть боковые отступы 5px */
.schedule-row {
    padding: 12px 5px;
}




/* Табы (фильтры) сверху */
.records-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 800; /* Жирный как в профиле */
    color: var(--grey-txt);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--black);
    border-bottom-color: var(--black);
}

/* КАРТОЧКА записи — 15px и Montserrat */
/* ОСНОВНАЯ КАРТОЧКА */
.record-card {
    background: var(--bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0,0,0,0.02);
    font-family: 'Montserrat', sans-serif;
}

.record-card.past { opacity: 0.6; filter: grayscale(0.5); }

/* ВЕРХНЯЯ СТРОКА */
.rec-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rec-time-block {
    background: var(--black);
    padding: 10px 14px;
    border-radius: 16px;
    text-align: center;
    min-width: 65px;
}

.rec-time { color: var(--bg); font-size: 20px; font-weight: 700; line-height: 1; }

.rec-date-small {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ИНФО О КЛИЕНТЕ */
.rec-client-info { flex: 1; margin-left: 15px; display: flex; flex-direction: column; gap: 2px; }

.rec-client-name { font-size: 17px; font-weight: 900; color: var(--black); text-transform: uppercase; }

.info-item-service { font-size: 10px; font-weight: 800; color: var(--red); text-transform: uppercase; }

/* КНОПКА ОТМЕНЫ/УДАЛЕНИЯ */
.btn-action-cancel {
    background: transparent;
    border: 1px solid #f0f0f0;
    color: var(--black);
    font-size: 8px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    cursor: pointer;
}

/* КОММЕНТАРИЙ */
.rec-comment-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fcfcfd;
    border-left: 3px solid var(--black);
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
    border-radius: 4px 12px 12px 4px;
}

/* НИЖНЯЯ ПЛАШКА */
.rec-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.rec-price { font-size: 14px; font-weight: 900; color: var(--black); }

.rec-links { display: flex; gap: 8px; }

.link-tag {
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 10px;
}

.link-tag.tg { color: #0088cc; background: #f0f9ff; }
.link-tag.tel { color: #0f172a; background: #f8fafc; }

.btn-ban-link {
    background: none;
    border: none;
    font-size: 9px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    cursor: pointer;
}

/* Контейнер тумблера */
.switch-mini {
    min-width: 34px;
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    vertical-align: middle;
}

/* Скрываем стандартный чекбокс */
.switch-mini input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Фон тумблера */
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* Кругляшок внутри */
.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Цвет когда включен (черный в твоем стиле) */
input:checked + .slider-round {
    background-color: var(--red);
}

/* Движение кругляшка */
input:checked + .slider-round:before {
    transform: translateX(14px);
}


/* Стили для лоадера внутри круга */
.avatar-circle {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.avatar-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Состояние блокировки кнопки */
.btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


#calendar-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Позволяет листать вбок */
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iPhone */
}

.scroll-calendar {
    display: flex; overflow-x: auto; gap: 8px; padding: 10px 0;
    scrollbar-width: none; /* скрываем скролл */
}
.cal-item {
    min-width: 45px; padding: 8px; text-align: center;
    background: #f1f5f9; border-radius: 10px; cursor: pointer;
}
.cal-item.has-records { background: #fee2e2; border: 1px solid #fecaca; } /* бледно-красный */
.cal-item.active { background: #ff4d4d; color: white; border-color: #ff4d4d; }
.cal-day { font-size: 10px; text-transform: uppercase; }
.cal-num { font-size: 14px; font-weight: bold; }


/* 2. Настраиваем сам значок */
.settings-trigger {
    position: absolute; /* Фиксируем положение относительно экрана */
    top: 16px;           /* Отступ сверху */
    right: 18px;        /* Отступ справа — всегда БУДЕТ В УГЛУ */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 3. Делаем меньше и прозрачнее */
    width: 20px;        /* Было 28px, стало 20px */
    height: 20px;
    opacity: 0.4;       /* Было 0.8, стало 0.4 (более прозрачный) */

    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s;
    z-index: 10;        /* Чтобы был поверх всего */
}

.settings-trigger svg {
    width: 100%;
    height: 100%;
    fill: #888; /* Явно задаем неброский серый цвет */
}

.settings-trigger:hover {
    transform: rotate(60deg);
    opacity: 0.8;       /* При наведении становится ярче */
}

.close-trigger {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.close-trigger:hover {
    opacity: 1;
    transform: scale(1.1);
}

.close-trigger svg {
    width: 100%;
    height: 100%;
    fill: #333; /* Цвет крестика */
}



/* Карточка контакта — строгий стиль */
.contact-card {
    background: var(--bg);
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
}

.contact-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
}

.contact-sub-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.contact-username {
    color: #64748b;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
}

.contact-phone-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}


.contact-stats {
    background: #f8fafc;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 400;
    color: #475569;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 5px;
}


.btn-chat {
    background: transparent;
    color: var(--grey-txt);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 10px 25px;
    text-transform: uppercase;
    transition: 0.2s;
    border: 1px solid var(--grey-txt);
    border-radius: 10px;
}

.btn-chat:hover {
    background: #334155;
}

/*----------МОДАЛКА ЗАПИСИ АДМИНОМ (ПАЛИТРА)-------------*/
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10000; 
    
}
.modal-admin-content { 
    background: var(--bg);
    width: 92%; 
    max-width: 400px; 
    margin: 30px auto; 
    font-family: 'Montserrat', sans-serif;
    border-radius: 15px;
    /* ФИКС ПРОКРУТКИ */
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Ограничиваем высоту (90% экрана) */
    overflow: hidden !important; /* Прокрутка функционально ЕСТЬ */
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-admin-body::-webkit-scrollbar {
    display: none;
}

.modal-admin-body {
    padding: 20px;
    overflow-y: auto !important;
    flex: 1;
}

.modal-admin-header { 
    background: var(--bg); 
    color: var(--grey-txt); 
    padding: 12px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.modal-admin-header h2 { 
    font-size: 11px; 
    font-weight: 500;
    letter-spacing: 1px; 
    margin: 0; 
    text-transform: uppercase;
}

.close-modal-btn { 
    background: none; 
    border: none; 
    color: var(--grey-txt); 
    font-size: 22px; 
    font-weight: 300;
    cursor: pointer; 
    line-height: 1;
}

.adm-field { margin-bottom: 15px; }

.adm-field label {font-size: 10px; font-weight: 200;}

.adm-field-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.adm-field.full-width {
    grid-column: 1 / -1; /* Растягиваем на обе колонки сетки */
}

.adm-input {
    width: 100%;
    background: var(--grey-bg);
    border: 1px solid var(--border-color);
    color: var(--black);
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    box-sizing: border-box;
    display: block;
    border-radius: 5px;
}

/* Специфические правки только для выпадающего списка (селекта) */
select.adm-input {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; /* Добавил для Firefox */

    padding: 12px; /* Базовый отступ, чтобы текст не прилипал */
    padding-right: 30px;

    background-color: var(--grey-bg);
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    outline: none;

    /* ИСПРАВЛЕННЫЙ SVG: добавлен /2000/svg и корректный путь */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.adm-input:focus {
    border-color: var(--black);
    background: var(--bg);
}

/* Календарь сеткой ПН-ВС */
.adm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 колонок обязательно */
    gap: 2px;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: var(--bg);
    border-radius: 5px;
    min-height: 200px; /* Даем минимальную высоту для теста */
}

.adm-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.adm-btn-m {
    background: var(--black); color: var(--bg); border: none;
    padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.adm-btn-m:hover { opacity: 0.5; }
#adm-month-name { font-size: 11px; font-weight: 800; color: var(--black); }

.adm-cal-header {
    font-size: 9px;
    font-weight: 800;
    color: var(--grey-txt);
    text-align: center;
    padding: 5px 0;
    text-transform: uppercase;
}

.adm-cal-day {
    padding: 10px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.adm-cal-day.disabled {
    opacity: 0.1;
    pointer-events: none;
}

.adm-cal-day.active {
    background: var(--red);
    color: var(--bg);
    border-radius: 5px;
}

.adm-cal-empty {
    height: 30px;
}


.adm-hint {
    grid-column: 1 / -1; /* Растягиваем на все 4 колонки сетки */
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800; /* Максимальный вес для строгости */
    color: var(--grey-txt);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 10px;
    margin: 0;
    border-radius: 10px;
    /* Делаем легкий фон, чтобы выделить зону ожидания */
    background: var(--grey-bg);
    border: 1px dashed var(--border-color);
}

/* Состояние, когда мест нет (красный акцент) */
.adm-hint[style*="color:#e11d48"],
.adm-hint[style*="color:red"] {
    color: var(--red) !important;
    background: #fff5f5; /* Очень бледный красный фон */
    border: 1px solid var(--red);
}

.adm-hint {
    grid-column: 1 / -1; /* Растягиваем на все 4 колонки сетки времени */
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800; /* Максимальный вес для строгости */
    color: var(--grey-txt);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 25px 10px;
    margin: 0;
    background: var(--grey-bg);
    border: 1px dashed var(--border-color);
    box-sizing: border-box;
}

/* Если мест нет — подсвечиваем красным из твоей палитры */
.adm-hint[style*="color:#e11d48"],
.adm-hint[style*="color:red"] {
    color: var(--red) !important;
    border-color: var(--red);
    background: #fffafa; /* Очень легкий красный оттенок фона */
}

#adm-service-select option {
    background-color: var(--bg);
    color: var(--grey-txt);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; /* Размер может сработать */
    padding: 10px; /* Скорее всего НЕ сработает, это ограничение браузеров */
}

/* Убираем серый фон у задизейбленного плейсхолдера */
#adm-service-select option:disabled {
    color: var(--grey-txt);
}

.adm-time-btn {
    background: var(--bg);
    border: 1px solid var(--border-color);
    color: var(--black);
    padding: 10px 5px; /* Немного уменьшим боковые отступы внутри */
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    border-radius: 5px;

    /* Добавь это обязательно */
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* АКТИВНОЕ СОСТОЯНИЕ */
.adm-time-btn.active {
    background: var(--black) !important;
    color: var(--bg) !important;
    border-color: var(--black) !important;
}

/* Эффект при наведении */
.adm-time-btn:hover {
    border-color: var(--black);
    background: var(--grey-bg);
}

/* Если кнопка заблокирована (например, время уже занято) */
.adm-time-btn:disabled {
    display: none !important;
}

/* Эффект нажатия */
.adm-time-btn:active {
    background: var(--red); /* Вспышка красным при клике */
    color: var(--bg);
    border-color: var(--red);
    transform: scale(0.92);
    transition: transform 0.1s;
}

#adm-time-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 кнопки в ряд */
    gap: 8px; /* Расстояние МЕЖДУ кнопками */
    margin-top: 10px;
    min-height: 40px;
}

/*              БЛОК СТАТИСТИКИ               */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* В ряд на десктопе */
    gap: 10px;
    margin-top: 10px;
}

.stat-box {
    background: var(--bg);
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    border-radius: 15px;
}

.stat-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--grey-txt);
    margin-bottom: 5px;
}

.stat-val {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.bot-link-box {
    background: var(--bg);
    color: var(--grey-txt);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.bot-link-box:active {
    background: var(--red);
}

/* МОБИЛКА: 2 ВЕРХ, 1 НИЗ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* Две колонки */
    }

    .stats-grid .stat-box:last-child {
        grid-column: 1 / -1; /* Бабло на всю ширину снизу */
    }
}


/* Цвет для цифр в Записях */
#stat-total {
    color: #007AFF; /* Глубокий синий */
}

/* Цвет для цифр в Клиентах */
#stat-clients {
    color: black; /* красный */
}

/* Цвет для цифр в Доходе */
#stat-rev {
    color: #34C759; /* Сочный зеленый */
}

/* Сделаем маленькие подписи (Всего/Общее) чуть контрастнее, а то их не видно */
.stat-box div {
    color: #8E8E93 !important;
    font-weight: 700 !important;
}

/* Добавим легкую тень боксам, чтобы они не сливались с фоном */
.stat-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}


/*       политика          */
.legal-links {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.legal-links a {
    display: block;
    font-size: 10px;
    color: var(--grey-txt);
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.copyright {
    font-size: 8px;
    color: #ccc;
    margin-top: 10px;
}