/* ─── Переменные ─────────────────────────────────────────────────── */
:root {
    --bg:        #080810;
    --bg2:       #0f0f1a;
    --bg3:       #16162a;
    --card:      #1a1a2e;
    --card2:     #20203a;
    --gold:      #c9a254;
    --gold-l:    #e8c87a;
    --gold-d:    #9a7a3a;
    --text:      #eeeef5;
    --muted:     #8888aa;
    --border:    #2a2a42;
    --success:   #2ecc71;
    --danger:    #e74c3c;
    --warn:      #f39c12;
    --radius:    10px;
    --shadow:    0 4px 24px rgba(0,0,0,.5);
}

/* ─── Сброс и base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-l); }

/* ─── Навигация ──────────────────────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8,8,16,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 62px;
}
.nav-brand {
    display: flex; align-items: center;
    font-size: 1.4rem; font-weight: 800; letter-spacing: 2px;
    color: var(--text); text-transform: uppercase;
}
.nav-brand span { color: var(--gold); }
.nav-brand:hover { color: var(--text); opacity: .9; }
.nav-logo {
    height: 46px; width: auto;
    object-fit: contain;
    filter: brightness(1.05);
    transition: opacity .2s;
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
}
.nav-link {
    padding: 6px 14px; border-radius: 6px;
    color: var(--muted); font-size: .88rem; font-weight: 500;
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--text); background: var(--bg3);
}
.nav-user {
    padding: 4px 12px; border-radius: 20px;
    background: var(--bg3); color: var(--gold);
    font-size: .82rem; font-weight: 600; letter-spacing: .5px;
}
.nav-logout {
    padding: 6px 14px; border-radius: 6px;
    color: var(--muted); font-size: .88rem;
    transition: color .2s;
}
.nav-logout:hover { color: var(--danger); }
.nav-toggler { display: none; }

/* ─── Основной контент ───────────────────────────────────────────── */
.page-main { min-height: calc(100vh - 62px); }
.page-container {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 20px 80px;
}
.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.page-subtitle { color: var(--muted); font-size: .95rem; }
.gold-text { color: var(--gold); }

/* ─── Flash / Уведомления ────────────────────────────────────────── */
.flash-wrap { max-width: 1200px; margin: 12px auto; padding: 0 20px; }
.flash {
    padding: 12px 18px; border-radius: var(--radius);
    font-size: .9rem; margin-bottom: 8px;
}
.flash-success { background: rgba(46,204,113,.15); border: 1px solid var(--success); color: var(--success); }
.flash-error   { background: rgba(231,76,60,.15);  border: 1px solid var(--danger);  color: var(--danger); }

.toast-iv {
    position: fixed; bottom: 30px; right: 30px;
    padding: 14px 22px; border-radius: var(--radius);
    font-size: .9rem; font-weight: 600;
    background: var(--card2); border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(80px); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 9999; max-width: 320px;
}
.toast-iv.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: var(--success); color: var(--success); }
.toast-error   { border-color: var(--danger);  color: var(--danger); }

/* ─── Страница логина ────────────────────────────────────────────── */
.login-page { background: var(--bg); }
.login-bg {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,162,84,.07) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(100,80,200,.05) 0%, transparent 50%);
    pointer-events: none;
}
.login-wrap {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    padding: 20px;
}
.login-card {
    width: 100%; max-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: var(--shadow);
    position: relative; z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo-img {
    width: 220px; height: auto;
    object-fit: contain;
    display: block; margin: 0 auto;
}
.login-logo-text {
    font-size: 2.2rem; font-weight: 800; letter-spacing: 4px;
    color: var(--text);
}
.login-logo-text span { color: var(--gold); }
.login-tagline { color: var(--muted); font-size: .85rem; margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }
.login-error {
    background: rgba(231,76,60,.15); border: 1px solid var(--danger);
    color: var(--danger); padding: 10px 14px; border-radius: 8px;
    font-size: .88rem; margin-bottom: 20px; text-align: center;
}
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.login-input {
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text); padding: 12px 16px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: .95rem;
    outline: none; transition: border-color .2s;
}
.login-input:focus { border-color: var(--gold); }
.login-btn {
    background: var(--gold); color: var(--bg);
    border: none; padding: 14px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
    cursor: pointer; letter-spacing: 1px; text-transform: uppercase;
    margin-top: 6px; transition: background .2s;
}
.login-btn:hover { background: var(--gold-l); }

/* ─── Карточки услуг ─────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 32px;
}
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
    background: var(--card); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 28px 20px;
    cursor: pointer; text-align: center;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.service-card:hover {
    border-color: var(--gold); transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,162,84,.15);
}
.service-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--card2), var(--card));
    box-shadow: 0 0 0 3px rgba(201,162,84,.2), var(--shadow);
}
.service-card.service-limit {
    opacity: .6; cursor: not-allowed;
}
.service-card.service-limit:hover { transform: none; box-shadow: none; border-color: var(--border); }
.service-icon { font-size: 2.8rem; margin-bottom: 10px; }
.service-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.service-desc { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.badge-avail {
    font-size: .78rem; color: var(--gold);
    background: rgba(201,162,84,.12); padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.badge-limit {
    font-size: .75rem; color: var(--danger);
    background: rgba(231,76,60,.12); padding: 3px 10px; border-radius: 20px; font-weight: 600;
}

/* ─── Секция бронирования ────────────────────────────────────────── */
.booking-section {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 32px;
    overflow: hidden; box-shadow: var(--shadow);
}
.booking-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; background: var(--card2);
    border-bottom: 1px solid var(--border);
    font-size: 1rem; font-weight: 600; color: var(--gold);
}
.btn-close-booking {
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: .88rem; font-weight: 600;
    transition: color .2s;
}
.btn-close-booking:hover { color: var(--danger); }

.booking-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;
}
@media (max-width: 768px) {
    .booking-body { grid-template-columns: 1fr; }
}

/* ─── Календарь ──────────────────────────────────────────────────── */
.calendar-panel {
    padding: 24px; border-right: 1px solid var(--border);
}
.calendar-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.cal-month-title { font-weight: 700; font-size: 1rem; }
.cal-nav-btn {
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text); width: 32px; height: 32px; border-radius: 6px;
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
.cal-nav-btn:hover { background: var(--card2); border-color: var(--gold); color: var(--gold); }

.cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    text-align: center; font-size: .75rem; font-weight: 600;
    color: var(--muted); margin-bottom: 8px;
}
.cal-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-day {
    aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 6px; font-size: .88rem; font-weight: 500;
    position: relative; transition: background .15s;
}
.cal-day.empty { background: transparent; }
.cal-day.past { color: var(--muted); opacity: .4; }
.cal-day.available {
    cursor: pointer; color: var(--text);
}
.cal-day.available:hover { background: var(--bg3); }
.cal-day.closed {
    background: rgba(231,76,60,.15);
    color: var(--danger); cursor: default;
}
.cal-day.today {
    border: 2px solid var(--gold); font-weight: 700;
}
.cal-day.has-booking { color: var(--gold-l); }
.cal-day.selected {
    background: var(--gold); color: var(--bg); font-weight: 700;
}
.cal-day.selected.has-booking { background: var(--gold); }
.cal-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); position: absolute; bottom: 3px;
}
.cal-legend {
    display: flex; gap: 14px; margin-top: 14px;
    font-size: .75rem; color: var(--muted); flex-wrap: wrap;
}
.leg-item { display: flex; align-items: center; gap: 5px; }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-closed { background: var(--danger); }
.dot-booked { background: var(--gold); }
.dot-today  { border: 2px solid var(--gold); background: transparent; }

/* ─── Слоты ──────────────────────────────────────────────────────── */
.slots-panel {
    padding: 24px; overflow-y: auto; max-height: 440px;
}
.slots-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; color: var(--muted);
    gap: 12px; font-size: .95rem; min-height: 200px;
}
.placeholder-icon { font-size: 3rem; }
.slots-date { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: var(--gold-l); }
.slots-limit-warn {
    background: rgba(231,76,60,.12); border: 1px solid var(--danger);
    color: var(--danger); padding: 10px 14px; border-radius: 8px;
    font-size: .85rem; margin-bottom: 16px;
}
.slots-closed { color: var(--danger); font-size: .95rem; padding: 20px 0; }
.slots-loading { color: var(--muted); padding: 20px 0; }
.time-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.time-slot {
    padding: 10px 8px; text-align: center; border-radius: 8px;
    font-size: .85rem; font-weight: 600; border: 2px solid transparent;
    transition: all .15s;
}
.slot-free {
    background: rgba(201,162,84,.12); border-color: var(--gold-d);
    color: var(--gold); cursor: pointer;
}
.slot-free:hover {
    background: var(--gold); color: var(--bg); border-color: var(--gold);
    transform: scale(1.03);
}
.slot-booked {
    background: var(--bg3); color: var(--muted); border-color: var(--border);
    cursor: not-allowed; position: relative;
}
.slot-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: var(--card2); border: 1px solid var(--gold-d);
    color: var(--gold-l); padding: 5px 10px; border-radius: 7px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    z-index: 20; pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.slot-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gold-d);
}
.tooltip-icon { margin-right: 5px; font-size: .8rem; }
.slot-booked:hover .slot-tooltip { display: block; }
.slot-time-label { display: block; font-size: .9rem; }
.slot-past { color: var(--muted); opacity: .4; cursor: not-allowed; border-color: transparent; }
.slot-no-limit { background: var(--bg3); color: var(--muted); border-color: var(--border); cursor: not-allowed; }

/* ─── Секции ─────────────────────────────────────────────────────── */
.section-block { margin-bottom: 36px; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }

/* ─── Список записей ─────────────────────────────────────────────── */
.bookings-list { display: flex; flex-direction: column; gap: 8px; }
.booking-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px;
    transition: border-color .2s;
}
.booking-row:hover { border-color: var(--border); }
.brow-icon { font-size: 1.6rem; min-width: 36px; text-align: center; }
.brow-info { flex: 1; }
.brow-service { font-weight: 600; font-size: .95rem; }
.brow-datetime { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.brow-status { font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.status-active   { background: rgba(46,204,113,.15);  color: var(--success); }
.status-visited  { background: rgba(136,136,170,.15); color: var(--muted); }
.status-cancelled{ background: rgba(231,76,60,.12);   color: var(--danger); }

.btn-cancel-booking {
    background: none; border: 1px solid var(--border);
    color: var(--muted); padding: 6px 12px; border-radius: 6px;
    font-size: .8rem; cursor: pointer; font-family: 'Montserrat', sans-serif;
    transition: all .15s; white-space: nowrap;
}
.btn-cancel-booking:hover { border-color: var(--danger); color: var(--danger); }

.empty-state {
    text-align: center; padding: 40px; color: var(--muted);
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* ─── Карточки IV ────────────────────────────────────────────────── */
.iv-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
}
.iv-card-header {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.profile-icon { font-size: 2.5rem; }
.profile-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-d), var(--gold));
    color: var(--bg); font-size: 1.5rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; letter-spacing: 0;
}
.profile-login { font-size: 1.2rem; font-weight: 700; }
.profile-display-name { font-size: 1rem; color: var(--gold-l); font-weight: 600; margin-top: 1px; }
.profile-role { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.iv-card-title {
    font-size: 1rem; font-weight: 700; margin-bottom: 20px;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.iv-card-hint { font-size: .75rem; color: var(--muted); font-weight: 400; }
.form-hint { font-size: .75rem; color: var(--muted); margin-top: 5px; }

/* ─── Формы IV ───────────────────────────────────────────────────── */
.form-group-iv { margin-bottom: 16px; }
.form-label-iv {
    display: block; font-size: .8rem; font-weight: 600;
    color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 6px;
}
.form-input-iv {
    width: 100%; background: var(--bg3); border: 1px solid var(--border);
    color: var(--text); padding: 11px 14px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: .9rem;
    outline: none; transition: border-color .2s; appearance: none;
}
.form-input-iv:focus { border-color: var(--gold); }
.form-input-iv.small { padding: 8px 12px; font-size: .85rem; }
select.form-input-iv { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.alert-iv {
    padding: 10px 14px; border-radius: 8px;
    font-size: .88rem; margin-bottom: 12px;
}
.alert-success { background: rgba(46,204,113,.12); border: 1px solid var(--success); color: var(--success); }
.alert-error   { background: rgba(231,76,60,.12);  border: 1px solid var(--danger);  color: var(--danger); }

/* ─── Кнопки ─────────────────────────────────────────────────────── */
.btn-iv {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
    cursor: pointer; border: none; transition: all .15s;
    text-transform: uppercase; letter-spacing: .5px;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-l); color: var(--bg); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }

/* ─── Таблицы ────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.iv-table {
    width: 100%; border-collapse: collapse;
    font-size: .88rem;
}
.iv-table th {
    text-align: left; padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    font-size: .78rem; text-transform: uppercase;
    letter-spacing: .5px; color: var(--muted); white-space: nowrap;
}
.iv-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.iv-table tbody tr:hover { background: var(--bg3); }
.td-id { color: var(--muted); font-size: .8rem; }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.user-badge {
    background: rgba(201,162,84,.12); color: var(--gold);
    padding: 3px 10px; border-radius: 20px; font-size: .82rem; font-weight: 600;
}
.admin-badge {
    background: rgba(100,80,200,.15); color: #a090e0;
}
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

/* ─── Кнопки действий ────────────────────────────────────────────── */
.btn-sm {
    padding: 5px 10px; border-radius: 6px; font-size: .78rem; font-weight: 600;
    cursor: pointer; border: none; font-family: 'Montserrat', sans-serif;
    transition: opacity .15s; white-space: nowrap;
}
.btn-visited { background: rgba(46,204,113,.15);  color: var(--success); }
.btn-visited:hover { background: rgba(46,204,113,.3); }
.btn-cancel  { background: rgba(231,76,60,.15);   color: var(--danger); }
.btn-cancel:hover  { background: rgba(231,76,60,.3); }
.btn-edit    { background: rgba(201,162,84,.12);   color: var(--gold); }
.btn-edit:hover    { background: rgba(201,162,84,.25); }

/* ─── Вкладки администратора ─────────────────────────────────────── */
.admin-tabs {
    display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.admin-tab {
    background: none; border: none; padding: 10px 20px;
    font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 600;
    color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: color .2s, border-color .2s;
}
.admin-tab:hover  { color: var(--text); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-panel {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
}
.admin-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.admin-panel-header h3 { font-size: 1rem; font-weight: 700; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.hint-text { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }

/* ─── Закрытые дни ───────────────────────────────────────────────── */
.admin-cal-wrap {
    display: grid; grid-template-columns: 360px 1fr; gap: 24px;
}
@media (max-width: 768px) { .admin-cal-wrap { grid-template-columns: 1fr; } }

.admin-cal-day { cursor: pointer; }
.closed-list-wrap { }
.closed-list-title { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.closed-days-list { display: flex; flex-direction: column; gap: 8px; }
.closed-day-row {
    display: flex; align-items: center; gap: 12px;
    background: rgba(231,76,60,.08); border: 1px solid rgba(231,76,60,.2);
    border-radius: 8px; padding: 10px 14px;
}
.closed-date { font-weight: 700; color: var(--danger); }
.closed-note { flex: 1; font-size: .85rem; color: var(--muted); }

/* ─── Модальные окна ─────────────────────────────────────────────── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.75); z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    background: var(--card2); border: 1px solid var(--border);
    border-radius: 14px; padding: 32px; width: 100%; max-width: 440px;
    box-shadow: var(--shadow);
}
.modal-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.modal-subtitle { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.login-preview-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 1.1rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; }

/* ─── Уведомления ────────────────────────────────────────────────── */
.notif-wrapper { position: relative; }
.notif-bell {
    background: none; border: none; cursor: pointer;
    font-size: 1.15rem; padding: 5px 8px; border-radius: 8px;
    color: var(--muted); position: relative;
    transition: color .2s, background .2s; line-height: 1;
}
.notif-bell:hover { color: var(--gold); background: var(--bg3); }
.notif-badge {
    position: absolute; top: 1px; right: 1px;
    background: var(--danger); color: #fff;
    font-size: .6rem; font-weight: 700;
    border-radius: 10px; min-width: 15px; height: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1; pointer-events: none;
}
.notif-panel {
    position: fixed; right: 16px; top: 66px;
    width: 300px; background: var(--card2);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); z-index: 300; overflow: hidden;
}
.notif-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 15px; border-bottom: 1px solid var(--border);
}
.notif-panel-title { font-weight: 700; font-size: .88rem; }
.notif-clear-btn {
    background: none; border: none; cursor: pointer;
    font-size: .76rem; color: var(--muted); font-family: inherit;
    transition: color .2s; padding: 0;
}
.notif-clear-btn:hover { color: var(--gold); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
    padding: 11px 15px; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-unread { background: rgba(201,162,84,.07); }
.notif-msg { font-size: .83rem; margin-bottom: 3px; }
.notif-time { font-size: .73rem; color: var(--muted); }
.notif-empty { padding: 22px 15px; text-align: center; color: var(--muted); font-size: .83rem; }

/* ─── Выбор длительности ─────────────────────────────────────────── */
.dur-selector {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0 4px;
}
.dur-label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.dur-buttons { display: flex; gap: 6px; }
.dur-btn {
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--muted); border-radius: 8px;
    padding: 5px 14px; font-size: .82rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all .18s;
}
.dur-btn:hover { border-color: var(--gold-d); color: var(--gold); }
.dur-btn.active { background: var(--gold); border-color: var(--gold); color: #111; }
.slot-no-dur { opacity: .4; cursor: not-allowed; }

/* ─── Инфо о лимите бронирования ────────────────────────────────── */
.booking-info-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(201,162,84,.07);
    border: 1px solid rgba(201,162,84,.18);
    border-radius: 10px; padding: 12px 16px;
    margin: 16px 0 28px; font-size: .85rem; color: var(--muted);
}
.bin-icon {
    font-size: .95rem; font-weight: 800; color: var(--gold);
    flex-shrink: 0; line-height: 1.5;
}
.bin-text strong { color: var(--text); font-weight: 600; }

/* ─── Инфо о пользователе (только для админа) ───────────────────── */
.uinfo-name, .uinfo-contact {
    font-size: .82rem; color: var(--muted);
    max-width: 140px; word-break: break-word;
}
.uinfo-contact { color: var(--gold-d); }
.admin-only-note {
    font-size: .76rem; color: var(--muted);
    padding: 6px 0 2px; display: flex; align-items: center; gap: 6px;
}
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ─── Адаптив ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .page-title { font-size: 1.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .time-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-row { flex-wrap: wrap; gap: 6px; }
    .td-actions { display: flex; flex-wrap: wrap; gap: 4px; }
    .dur-selector { flex-wrap: wrap; gap: 8px; }
    .nav-toggler {
        display: flex; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 6px;
    }
    .nav-toggler span {
        display: block; width: 22px; height: 2px;
        background: var(--text); border-radius: 2px;
    }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 62px; left: 0; right: 0;
        background: var(--bg2); border-bottom: 1px solid var(--border);
        padding: 12px; gap: 4px; z-index: 150;
    }
    .nav-links.open { display: flex; }
    .site-nav { position: relative; }
    .notif-panel { left: 8px; right: 8px; width: auto; top: 62px; }
    .notif-wrapper { width: 100%; }
    .notif-bell { width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; }
}
