:root {
  --page: #f4f7fb;
  --panel: #ffffff;
  --side: #263449;
  --side-deep: #1f2a3d;
  --side-text: #dce6f3;
  --side-muted: #94a6bd;
  --cyan: #29d4c8;
  --blue: #5b8def;
  --lavender: #9c8cff;
  --pink: #ff8fb7;
  --mint: #8fe3b0;
  --peach: #ffbf9b;
  --rose: #d8738a;
  --graphite: #202734;
  --muted: #6b7688;
  --line: #e6ecf4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--graphite);
  background:
    radial-gradient(circle at 18% 0%, rgba(41, 212, 200, .18), transparent 360px),
    radial-gradient(circle at 95% 6%, rgba(156, 140, 255, .18), transparent 380px),
    var(--page);
}
a { color: inherit; text-decoration: none; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(41,212,200,.24), transparent 430px),
    radial-gradient(circle at 84% 10%, rgba(156,140,255,.22), transparent 470px),
    radial-gradient(circle at 55% 98%, rgba(255,143,183,.18), transparent 430px),
    linear-gradient(135deg, #eefcff, #f6f3ff 52%, #fff6fa);
}
.login-card {
  width: min(100%, 620px);
  border: 1px solid rgba(230,236,244,.95);
  border-radius: 16px;
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 0 0, rgba(41,212,200,.13), transparent 260px),
    radial-gradient(circle at 100% 0, rgba(156,140,255,.13), transparent 300px),
    rgba(255,255,255,.88);
  box-shadow: 0 28px 80px rgba(31,42,61,.14);
  backdrop-filter: blur(16px);
}
.login-logo {
  display: block;
  width: 260px;
  max-width: 70%;
  margin: -12px auto 30px;
}
.login-logo img {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
.login-heading {
  margin-bottom: 30px;
  text-align: left;
}
.login-heading span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.login-heading h1 {
  font-size: clamp(38px, 6vw, 58px);
}
.login-form {
  display: grid;
  gap: 24px;
}
.login-form .btn {
  margin-top: 4px;
  min-height: 58px;
  font-size: 18px;
}
.brand-full { display: block; }
.brand-full img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.admin-side .brand-full img {
  max-width: 176px;
  opacity: 1;
}
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  background: linear-gradient(180deg, var(--side), var(--side-deep));
  box-shadow: 12px 0 32px rgba(31, 42, 61, .22);
}
.admin-side .brand-full {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}
.admin-side .brand-full img { max-width: 176px; }
.admin-nav { display: grid; gap: 7px; margin-top: 24px; }
.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--side-text);
  font-size: 14px;
  font-weight: 700;
  transition: .18s ease;
}
.admin-nav a:hover {
  background: rgba(255,255,255,.08);
  color: white;
  transform: translateX(2px);
}
.admin-nav a.active {
  color: #12202d;
  background: linear-gradient(135deg, var(--cyan), #8af1dd);
  box-shadow: 0 12px 26px rgba(41, 212, 200, .28);
}
.admin-main { padding: 18px 16px 22px; overflow-x: auto; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--graphite); }
h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: 0;
}
h2 { font-size: 22px; font-weight: 750; }
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.owner-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--panel);
  color: var(--graphite);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(31,42,61,.06);
}
.soft-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(31,42,61,.08);
}
.metric {
  position: relative;
  min-height: 126px;
  padding: 22px;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lavender));
}
.metric strong { display: block; font-size: 30px; color: var(--graphite); }
.metric span { color: var(--muted); font-weight: 650; }
.dashboard-metrics .metric:nth-child(1) { border-top: 4px solid var(--cyan); }
.dashboard-metrics .metric:nth-child(2) { border-top: 4px solid var(--lavender); }
.dashboard-metrics .metric:nth-child(3) { border-top: 4px solid var(--pink); }
.dashboard-metrics .metric:nth-child(4) { border-top: 4px solid var(--mint); }
.dashboard-metrics .metric:nth-child(5) { border-top: 4px solid var(--peach); }
.row > .col-12:nth-child(1) .metric { border-top: 4px solid var(--cyan); }
.row > .col-12:nth-child(2) .metric { border-top: 4px solid var(--lavender); }
.row > .col-12:nth-child(3) .metric { border-top: 4px solid var(--pink); }
.row > .col-12:nth-child(4) .metric { border-top: 4px solid var(--mint); }
.weekday-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  margin-right: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #165a55;
  background: rgba(41,212,200,.16);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.table-modern {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}
.table-modern table { margin: 0; min-width: 860px; }
.table-modern th {
  color: var(--muted);
  background: #f8fafd;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.table-modern td { color: var(--graphite); }
.row-pending td {
  background: rgba(255, 191, 155, .28) !important;
}
.client-phone-link {
  color: var(--graphite);
  font-weight: inherit;
  text-decoration: none;
}
.client-phone-link:hover {
  color: var(--blue);
}
.table-link {
  color: var(--graphite);
  font-weight: inherit;
  text-decoration: none;
}
.table-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.table-modern .form-select,
.table-modern .form-control {
  min-width: 150px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
}
.appointments-table table {
  min-width: 900px;
}
.appointments-table th,
.appointments-table td {
  padding-left: 8px;
  padding-right: 8px;
}
.appointments-table .form-select,
.appointments-table .form-control {
  min-width: 0;
}
.appointment-term {
  display: grid;
  gap: 5px;
  width: 112px;
}
.appointment-term .form-control {
  width: 112px;
  min-height: 34px;
  padding: 5px 7px;
}
.compact-service { width: 144px; }
.compact-initials { width: 72px; text-align: center; }
.compact-payment { width: 122px; }
.compact-source { width: 104px; }
.appointments-table .status-select { width: 132px; }
.icon-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(91,141,239,.55);
  border-radius: 8px;
  background: rgba(255,255,255,.85);
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
}
.icon-btn:hover {
  background: rgba(91,141,239,.12);
  color: var(--blue);
}
.icon-btn.save {
  border-color: rgba(41,212,200,.55);
  color: #16746d;
}
.icon-btn.save:hover {
  background: rgba(41,212,200,.12);
}
.icon-btn.danger {
  border-color: rgba(255,92,128,.5);
  color: #9c2448;
}
.icon-btn.danger:hover {
  background: rgba(255,92,128,.12);
}
.danger-zone {
  display: flex;
  justify-content: flex-end;
}
.table-modern .status-select {
  font-weight: 700;
}
.status-select.status-value-CONFIRMED {
  color: #146b59;
  border-color: rgba(41,212,200,.45);
  background-color: rgba(41,212,200,.16);
}
.status-select.status-value-PENDING {
  color: #8b5d00;
  border-color: rgba(255,191,155,.78);
  background-color: rgba(255,191,155,.28);
}
.status-select.status-value-CANCELLED {
  color: #9c2448;
  border-color: rgba(255,92,128,.45);
  background-color: rgba(255,92,128,.16);
}
.status-select.status-value-COMPLETED {
  color: #345ac7;
  border-color: rgba(91,141,239,.45);
  background-color: rgba(91,141,239,.16);
}
.status-select.status-value-NO_SHOW {
  color: #a21f68;
  border-color: rgba(255,143,183,.5);
  background-color: rgba(255,143,183,.2);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 750;
  color: var(--graphite);
  background: #eef3f8;
}
.status-CONFIRMED { color: #146b59; background: rgba(41, 212, 200, .2); }
.status-PENDING { color: #8b5d00; background: rgba(255, 191, 155, .35); }
.status-COMPLETED { color: #345ac7; background: rgba(91, 141, 239, .18); }
.status-CANCELLED { color: #9c2448; background: rgba(255, 92, 128, .18); }
.status-NO_SHOW { color: #a21f68; background: rgba(255, 143, 183, .22); }
.service-dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; margin-right: 8px; }
.calendar-grid {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(150px, 1fr));
  min-width: 1120px;
  background: #fff;
}
.calendar-cell {
  min-height: 92px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}
.calendar-cell.fw-bold {
  min-height: 76px;
  background: #f8fafd;
}
.calendar-time {
  border-top: 1px solid var(--line);
  padding: 12px 10px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 12px;
}
.calendar-event {
  display: block;
  margin-bottom: 7px;
  padding: 9px;
  border-radius: 8px;
  color: #182230;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(31,42,61,.08);
}
#calendar {
  --fc-border-color: var(--line);
  --fc-button-bg-color: var(--side);
  --fc-button-border-color: var(--side);
  --fc-button-active-bg-color: var(--blue);
  --fc-button-active-border-color: var(--blue);
  --fc-today-bg-color: rgba(41, 212, 200, .08);
}
.fc .fc-toolbar {
  gap: 10px;
}
.fc .fc-toolbar-title {
  font-size: 22px;
  font-weight: 800;
}
.fc .fc-event {
  border-radius: 8px;
  padding: 3px 5px;
  box-shadow: 0 6px 14px rgba(31,42,61,.1);
}
.schedule-add {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 1.2fr) minmax(140px, .9fr) repeat(4, minmax(92px, .55fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafd;
}
.schedule-add label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.schedule-switch {
  min-height: 48px;
  align-items: center;
}
.schedule-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.schedule-day {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}
.schedule-day h3 {
  margin: 0;
  padding: 12px;
  background: rgba(41,212,200,.12);
  font-size: 14px;
  font-weight: 850;
}
.schedule-day-body {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 10px;
}
.schedule-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px 10px;
  color: var(--muted);
  text-align: center;
}
.schedule-slot {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(41,212,200,.34);
  border-radius: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 8px 18px rgba(31,42,61,.06);
}
.schedule-slot.inactive {
  opacity: .62;
  border-color: var(--line);
}
.schedule-slot-time {
  color: #14594f;
  font-size: 18px;
  font-weight: 850;
}
.schedule-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  gap: 6px;
}
.schedule-capacity {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.schedule-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.appointment-section > h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 850;
}
.booking-page {
  min-height: 100vh;
  padding: 28px 14px 54px;
  background:
    radial-gradient(circle at 8% 4%, rgba(41,212,200,.25), transparent 360px),
    radial-gradient(circle at 92% 8%, rgba(156,140,255,.24), transparent 420px),
    radial-gradient(circle at 62% 100%, rgba(255,143,183,.20), transparent 380px),
    linear-gradient(135deg, #eefcff, #f8f3ff 52%, #fff3f8);
}
.booking-wrap { max-width: 1120px; margin: 0 auto; }
.booking-header { text-align: center; margin-bottom: 34px; }
.booking-header .brand-full img { margin: 0 auto 18px; max-width: 260px; }
.booking-header .eyebrow { margin-top: 18px; }
.booking-header h1 { margin-top: 12px; margin-bottom: 14px; }
.booking-header p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}
.booking-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.36)),
    linear-gradient(135deg, rgba(41,212,200,.16), rgba(255,143,183,.13));
  box-shadow: 0 24px 70px rgba(31,42,61,.12);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.booking-panel { padding: clamp(22px, 4vw, 42px); }
.booking-panel-form {
  background:
    radial-gradient(circle at 10% 0%, rgba(41, 212, 200, .28), transparent 300px),
    radial-gradient(circle at 100% 12%, rgba(255, 143, 183, .26), transparent 300px),
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(238,252,255,.58));
}
.booking-summary {
  height: 100%;
  padding: clamp(20px, 4vw, 38px);
  background:
    radial-gradient(circle at top right, rgba(41,212,200,.25), transparent 220px),
    linear-gradient(180deg, rgba(156,140,255,.14), rgba(255,143,183,.12));
}
.summary-step {
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 28px rgba(31,42,61,.07);
  font-weight: 700;
}
.form-control, .form-select {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 10px;
}
textarea.form-control { min-height: 170px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
  font-weight: 750;
}
.form-heading {
  margin-bottom: 20px;
}
.form-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.form-heading h2 {
  margin: 0;
}
.form-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.booking-calendar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.76);
}
.booking-calendar-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  text-align: center;
}
.booking-calendar-head strong {
  font-size: 18px;
}
.calendar-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--graphite);
  font-size: 26px;
  line-height: 1;
}
.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.booking-calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.booking-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--graphite);
  font-weight: 800;
}
.booking-day.outside {
  color: var(--muted);
  background: rgba(248,250,253,.72);
}
.booking-day.selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 8px 16px rgba(91,141,239,.18);
}
.booking-day:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.booking-time-button,
.booking-time-state {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--graphite);
  font-weight: 800;
}

/* Public booking flow */
.booking-page {
  background: #f5f7f8;
}
.booking-wrap { max-width: 1240px; }
.booking-header { margin-bottom: 28px; }
.booking-header p { max-width: 620px; }
.booking-flow {
  display: grid;
  gap: 22px;
}
.booking-service-step,
.booking-card,
.booking-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31,42,61,.07);
}
.booking-service-step,
.booking-schedule-step,
.booking-contact-step {
  padding: clamp(18px, 3vw, 30px);
}
.booking-step-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.booking-step-heading p,
.booking-order > p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.booking-step-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 27px);
}
.booking-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #167d87;
  color: #fff;
  font-weight: 850;
}
.booking-service-list {
  display: grid;
  gap: 10px;
}
.booking-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 17px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.booking-service-card:hover {
  border-color: #60aeb5;
  box-shadow: 0 8px 20px rgba(31,42,61,.08);
  transform: translateY(-1px);
}
.booking-service-card:has(input:checked) {
  border: 2px solid #167d87;
  padding: 14px 16px;
  background: #f2fbfb;
}
.booking-service-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-card-copy,
.service-card-meta {
  display: grid;
}
.service-card-copy { gap: 4px; }
.service-card-copy small { color: #167d87; font-weight: 800; }
.service-card-copy strong { color: var(--graphite); font-size: 17px; }
.service-card-copy > span { color: var(--muted); font-size: 13px; }
.service-card-meta {
  grid-template-columns: auto auto;
  gap: 1px 14px;
  align-items: center;
  text-align: right;
}
.service-card-meta strong { color: var(--graphite); font-size: 16px; }
.service-card-meta small { color: var(--muted); }
.service-card-meta b {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 7px;
  color: #167d87;
  font-size: 13px;
}
.booking-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}
.booking-main[hidden],
.booking-contact-step[hidden],
.booking-week-view[hidden],
#bookingDayView[hidden] { display: none !important; }
.booking-content { display: grid; gap: 18px; min-width: 0; }
.booking-employee-field {
  display: grid;
  gap: 7px;
  max-width: 360px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
}
.booking-view-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 4px;
  background: #eef1f3;
}
.booking-view-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 7px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.booking-view-tabs button.active {
  background: #fff;
  color: #167d87;
  box-shadow: 0 2px 8px rgba(31,42,61,.09);
}
.booking-week-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.booking-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(62px, 1fr));
  gap: 7px;
}
.booking-date-card {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 4px;
  background: #fff;
  color: var(--graphite);
}
.booking-date-card small,
.booking-date-card span { color: var(--muted); font-size: 11px; }
.booking-date-card strong { font-size: 21px; }
.booking-date-card.selected {
  border-color: #167d87;
  background: #167d87;
  color: #fff;
}
.booking-date-card.selected small,
.booking-date-card.selected span { color: #d9f7f5; }
.booking-date-card:disabled { opacity: .35; }
.booking-selected-day {
  margin-bottom: 14px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 850;
  text-transform: capitalize;
}
.booking-time-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.booking-time-group h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.booking-time-group .booking-time-grid { grid-template-columns: 1fr; }
.booking-time-button,
.booking-week-slot {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  color: var(--graphite);
}
.booking-time-button small,
.booking-week-slot small { color: var(--muted); font-size: 10px; font-weight: 600; }
.booking-time-button:hover,
.booking-week-slot:hover { border-color: #167d87; }
.booking-time-button.selected,
.booking-week-slot.selected {
  border-color: #167d87;
  background: #167d87;
  color: #fff;
}
.booking-time-button.selected small,
.booking-week-slot.selected small { color: #d9f7f5; }
.booking-week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 8px;
}
.booking-week-column {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 210px;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}
.booking-week-column:first-child { border-left: 0; padding-left: 0; }
.booking-week-heading {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid #167d87;
  background: transparent;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}
.booking-week-column > p { margin: 8px 0; color: var(--muted); font-size: 12px; text-align: center; }
.booking-month-details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; }
.booking-month-details summary { color: #167d87; cursor: pointer; font-weight: 800; }
.booking-month-details .booking-calendar { margin-top: 14px; max-width: 620px; }
.booking-order {
  position: sticky;
  top: 18px;
  padding: 22px;
}
.booking-order h3 { margin: 4px 0 18px; font-size: 20px; }
.booking-order-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.booking-order-row span,
.booking-order-total span { color: var(--muted); font-size: 12px; }
.booking-order-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.booking-order-total strong { font-size: 24px; }
.booking-order-total small { grid-column: 2; color: var(--muted); text-align: right; }
.booking-contact-step textarea.form-control { min-height: 105px; }

/* Visual weekly schedule builder */
.schedule-builder { padding: clamp(16px, 2.4vw, 28px); padding-bottom: 92px; overflow: hidden; }
.schedule-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.schedule-builder-head h2 { margin: 0 0 5px; }
.schedule-builder-head p { margin: 0; color: var(--muted); }
.schedule-saved {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 8px 11px;
  background: #e7f7ef;
  color: #176542;
  font-size: 13px;
  font-weight: 800;
}
.schedule-config {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr) 150px minmax(210px, .85fr);
  gap: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  background: #f8fafb;
}
.schedule-config-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.schedule-config-title strong { color: var(--graphite); font-size: 17px; }
.schedule-config-title span { color: var(--muted); font-size: 12px; }
.schedule-current-choice {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--graphite);
  font-size: 13px;
}
.schedule-current-choice span { color: var(--muted); font-weight: 750; }
.schedule-current-choice strong { color: #12666e; }
.schedule-current-choice b,
.schedule-current-choice em,
.schedule-current-choice i { font-style: normal; font-weight: 750; }
.schedule-current-choice b::before,
.schedule-current-choice em::before,
.schedule-current-choice i::before { content: '\2022'; margin-right: 12px; color: #a8b1bd; }
.schedule-config h3 > span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 4px;
  border-radius: 50%;
  background: #167d87;
  color: #fff;
  font-size: 11px;
}
.schedule-config h3 {
  margin: 0 0 9px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 850;
}
.schedule-choice-list {
  display: grid;
  gap: 7px;
}
.schedule-config > section:nth-of-type(1) .schedule-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-config > section:nth-of-type(2) .schedule-choice-list { grid-template-columns: 1fr; }
.schedule-choice {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 11px;
  background: #fff;
  color: var(--graphite);
  text-align: left;
}
.schedule-choice strong { overflow-wrap: anywhere; }
.schedule-choice small { color: var(--muted); }
.schedule-choice.selected {
  border-color: #167d87;
  background: #eefafa;
  color: #12666e;
  box-shadow: inset 0 0 0 1px #167d87;
}
.schedule-capacity-picker > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.schedule-recurrence-list { display: grid; gap: 6px; }
.schedule-recurrence {
  display: grid;
  gap: 1px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  background: #fff;
  color: var(--graphite);
  text-align: left;
}
.schedule-recurrence strong { font-size: 12px; }
.schedule-recurrence small { color: var(--muted); font-size: 10px; }
.schedule-recurrence.selected {
  border-color: #167d87;
  background: #eefafa;
  color: #12666e;
  box-shadow: inset 0 0 0 1px #167d87;
}
.schedule-recurrence-picker > p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.capacity-stepper {
  display: grid;
  grid-template-columns: 40px 58px 40px;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.capacity-stepper button,
.capacity-stepper strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 0;
  background: #fff;
}
.capacity-stepper button { color: #167d87; font-size: 22px; }
.capacity-stepper strong { border-inline: 1px solid var(--line); }
.schedule-mobile-days { display: none; }
.schedule-grid {
  display: grid;
  grid-template-columns: 66px repeat(6, minmax(0, 1fr));
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.schedule-grid-corner,
.schedule-grid-header,
.schedule-grid-time,
.schedule-grid-slot,
.schedule-grid-cell {
  min-width: 0;
  min-height: 76px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.schedule-grid-corner,
.schedule-grid-header {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px;
  background: #f2f6f7;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.schedule-grid-time {
  display: grid;
  place-items: center;
  padding: 5px;
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.schedule-grid-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px;
  background: #fff;
  color: #167d87;
  overflow: hidden;
}
.schedule-slot-add { opacity: 0; font-size: 20px; }
.schedule-grid-slot:hover { background: #f0fafa; }
.schedule-grid-slot:hover .schedule-slot-add { opacity: 1; }
.schedule-grid-slot.selected { background: #167d87; color: #fff; }
.schedule-slot-service,
.schedule-slot-employee,
.schedule-slot-meta {
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-slot-service {
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.schedule-slot-employee { color: #d9f7f5; font-size: 9px; line-height: 1.2; }
.schedule-slot-meta { color: #fff; font-size: 9px; line-height: 1.2; }
.schedule-grid-slot.closed { cursor: default; background: #f1f3f5; }
.schedule-grid-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 4px;
  background: #fff;
  overflow: hidden;
}
.schedule-grid-cell.closed { background: #f1f3f5; }
.schedule-event-card {
  position: relative;
  display: grid;
  gap: 1px;
  min-width: 0;
  border-left: 4px solid var(--service-color, #167d87);
  border-radius: 5px;
  padding: 6px 25px 6px 7px;
  background: #eaf7f7;
  background: color-mix(in srgb, var(--service-color, #167d87) 14%, white);
  color: #15323a;
}
.schedule-event-card strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.schedule-event-card small,
.schedule-event-card span {
  overflow: hidden;
  color: #47616a;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-event-card.moving { box-shadow: inset 0 0 0 2px #167d87, 0 0 0 2px #fff; }
.schedule-event-card.dragging { opacity: .35; }
.schedule-event-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
}
.schedule-event-capacity > span {
  flex: 1 1 auto;
  color: #47616a;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.schedule-event-stepper {
  display: inline-grid;
  grid-template-columns: 23px 25px 23px;
  align-items: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(22, 125, 135, .26);
  border-radius: 6px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 1px 2px rgba(21, 50, 58, .06);
}
.schedule-event-stepper button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #126f78;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.schedule-event-stepper button:first-child { border-right: 1px solid rgba(22, 125, 135, .18); }
.schedule-event-stepper button:last-child { border-left: 1px solid rgba(22, 125, 135, .18); }
.schedule-event-stepper button:hover { background: rgba(22, 125, 135, .1); }
.schedule-event-stepper button:focus-visible { outline: 2px solid #167d87; outline-offset: -2px; }
.schedule-event-stepper output {
  display: grid;
  place-items: center;
  color: #15323a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.schedule-event-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: rgba(255,255,255,.84);
  color: #8b2446;
  font-size: 16px;
}
.schedule-cell-add {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px dashed #83bfc4;
  border-radius: 5px;
  background: #f5fbfb;
  color: #167d87;
  font-size: 18px;
}
.schedule-cell-add:hover { border-style: solid; background: #e6f6f6; }
.schedule-cell-add.move-target { font-size: 10px; font-weight: 800; }
.schedule-grid-cell.drop-ready { background: #fbfefe; }
.schedule-grid-cell.drag-over { background: #dff5f3; box-shadow: inset 0 0 0 2px #167d87; }
.schedule-grid.drop-error { animation: schedule-error .45s ease; }
@keyframes schedule-error {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}
.schedule-trainer-busy {
  display: block;
  padding: 5px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.schedule-grid-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.schedule-save-bar {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 1250;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 36px rgba(31,42,61,.2);
}
.schedule-save-bar > span { color: var(--muted); font-size: 13px; font-weight: 750; }
.schedule-save-bar .btn { min-width: 150px; }
.schedule-save-bar.has-changes { border-color: #70b9bf; }
.schedule-save-bar .btn:disabled { background: #aab6c3; box-shadow: none; opacity: 1; }
body.menu-open .schedule-save-bar { display: none; }
.booking-time-button.selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
}
.booking-time-state {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  color: var(--muted);
}
.edit-notice {
  border: 1px solid rgba(41,212,200,.32);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(41,212,200,.12);
  color: #165a55;
}
.editor-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 212, 200, .15), transparent 250px),
    radial-gradient(circle at 100% 0%, rgba(156, 140, 255, .14), transparent 260px),
    rgba(255,255,255,.96);
}
.service-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31,42,61,.1);
}
.online-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.72);
}
.online-switch .form-check-input {
  margin: 0;
}
.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(41,212,200,.18), transparent 280px),
    radial-gradient(circle at 100% 0, rgba(156,140,255,.16), transparent 320px),
    #fff;
}
.detail-hero-main h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.72);
}
.appointment-editor,
.notes-card {
  min-height: 100%;
}
.notes-card textarea.form-control {
  min-height: 190px;
}
.note-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,.8);
}
.note-item + .note-item {
  margin-top: 12px;
}
.reservation-summary {
  display: grid;
  gap: 12px;
}
.reservation-summary div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.76);
}
.reservation-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reservation-summary strong {
  display: block;
  color: var(--graphite);
}
.inline-table {
  background: rgba(255,255,255,.82);
}
.inline-table table { min-width: 1040px; }
.clients-table table { min-width: 940px; }
.services-table table { min-width: 980px; }
.employees-table table { min-width: 980px; }
.slots-table table { min-width: 960px; }
.inline-table th {
  white-space: nowrap;
}
.inline-table td {
  vertical-align: middle;
}
.inline-table .add-row td {
  background:
    radial-gradient(circle at 0% 0%, rgba(41,212,200,.12), transparent 220px),
    rgba(248,250,253,.92);
}
.inline-control {
  min-width: 120px;
  min-height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  font-size: 13px;
}
.wide-control {
  min-width: 180px;
}
.small-control {
  min-width: 86px;
  max-width: 110px;
}
.inline-color {
  width: 54px;
  min-width: 54px;
  height: 40px;
  min-height: 40px;
  padding: 4px;
}
.tiny-color {
  width: 34px !important;
  min-width: 34px !important;
  padding: 3px !important;
}
.phone-control {
  min-width: 108px;
  max-width: 132px;
}
.email-control {
  min-width: 176px;
}
.source-control {
  min-width: 132px;
}
.day-control {
  min-width: 132px;
}
.time-control {
  min-width: 94px;
  max-width: 108px;
}
.step-control {
  min-width: 72px;
  max-width: 86px;
}
.appointment-create {
  align-items: end;
}
.appointment-create .form-label {
  font-size: 12px;
  margin-bottom: 5px;
}
.appointment-create .form-control,
.appointment-create .form-select {
  min-height: 42px;
  font-size: 13px;
}
.appointment-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.appointment-new-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.appointment-new-main,
.appointment-new-summary,
.appointment-create-card {
  background:
    radial-gradient(circle at 0 0, rgba(41,212,200,.14), transparent 300px),
    radial-gradient(circle at 100% 0, rgba(255,143,183,.13), transparent 340px),
    var(--panel);
}
.appointment-new-main,
.appointment-new-summary {
  padding: 22px;
}
.appointment-new-summary {
  position: sticky;
  top: 18px;
}
.summary-sticky { min-width: 0; }
.client-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.client-mode-tabs > button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,.75);
  color: var(--graphite);
  font: inherit;
  font-weight: 750;
  line-height: 1.1;
}
.client-mode-tabs > button.active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(41,212,200,.82), rgba(138,241,221,.82));
  color: #12202d;
}
.form-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.section-title > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #12202d;
  background: linear-gradient(135deg, rgba(41,212,200,.75), rgba(138,241,221,.75));
  font-weight: 850;
}
.section-title h3 {
  margin: 0 0 2px;
  font-size: 18px;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.create-field {
  display: grid;
  gap: 7px;
}
.create-field > span {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 750;
}
.create-field.span-2,
.new-client-fields.span-2,
.selected-client-note.span-2 {
  grid-column: span 2;
}
.new-client-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.selected-client-note {
  border: 1px solid rgba(41,212,200,.28);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(41,212,200,.1);
  color: #165a55;
  font-weight: 700;
}
.selected-client-note[hidden],
.new-client-fields[hidden] {
  display: none !important;
}
.summary-compact {
  display: grid;
  gap: 10px;
}
.summary-compact div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.72);
}
.summary-compact span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.summary-compact strong {
  display: block;
  color: var(--graphite);
  line-height: 1.35;
}
.mini-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 78px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.mini-switch input {
  width: 18px;
  height: 18px;
}
.menu-toggle,
.menu-backdrop {
  display: none;
}
.menu-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1200;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(230,236,244,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(31,42,61,.16);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--graphite);
}
.btn-rose {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 750;
  box-shadow: 0 12px 22px rgba(91,141,239,.22);
}
.btn-rose:hover { filter: brightness(.96); color: white; }
.success-box {
  border: 1px solid rgba(41,212,200,.35);
  border-radius: 12px;
  padding: 16px;
  background: rgba(41,212,200,.12);
  color: #14594f;
  text-align: left;
}
.error-box {
  border: 1px solid rgba(255,143,183,.3);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,143,183,.15);
  color: #8b2446;
  text-align: left;
}
@media (max-width: 900px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .admin-shell { display: block; }
  .menu-toggle { display: block; }
  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(22,31,45,.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    width: min(84vw, 330px);
    height: 100vh;
    padding: 22px 18px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }
  body.menu-open .admin-side { transform: translateX(0); }
  body.menu-open .menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .admin-side .brand-full img,
  .booking-header .brand-full img,
  .login-logo img { max-width: 190px; }
  .admin-nav { grid-template-columns: 1fr; }
  .admin-main {
    width: 100%;
    padding: 74px 14px 18px;
    overflow-x: hidden;
  }
  .admin-topbar {
    min-height: 48px;
    margin: -60px 0 18px 56px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  .admin-topbar .owner-chip { display: none; }
  .admin-topbar h1 {
    font-size: 25px;
    line-height: 1.1;
  }
  .admin-topbar .eyebrow {
    font-size: 10px;
    letter-spacing: .14em;
  }
  .soft-card { padding: 16px !important; }
  .appointment-new-shell,
  .appointment-create-form {
    grid-template-columns: 1fr;
  }
  .appointment-new-summary {
    position: static;
  }
  .create-grid,
  .new-client-fields {
    grid-template-columns: 1fr;
  }
  .create-field.span-2,
  .new-client-fields.span-2,
  .selected-client-note.span-2 {
    grid-column: span 1;
  }
  .table-responsive,
  .table-modern {
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .table-modern table { min-width: 860px; }
  .appointments-table table { min-width: 900px; }
  .inline-table table { min-width: 940px; }
  .services-table table,
  .employees-table table,
  .slots-table table { min-width: 980px; }
  .inline-control { min-width: 132px; }
  .wide-control { min-width: 200px; }
  .phone-control { min-width: 118px; }
  .tiny-color {
    width: 34px !important;
    min-width: 34px !important;
  }
  .fc .fc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .fc .fc-toolbar-title {
    font-size: 18px;
    text-align: center;
  }
  .fc .fc-button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .fc .fc-list-event-title,
  .fc .fc-list-event-time {
    font-size: 13px;
  }
  .schedule-add {
    grid-template-columns: 1fr;
  }
  .schedule-calendar {
    grid-template-columns: repeat(7, minmax(210px, 1fr));
  }
  .schedule-config { grid-template-columns: 1fr; }
  .schedule-mobile-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 10px;
  }
  .schedule-mobile-days button {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 2px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .schedule-mobile-days button.selected { border-color: #167d87; background: #167d87; color: #fff; }
  .schedule-grid { grid-template-columns: 66px minmax(0, 1fr); }
  .schedule-grid .mobile-hidden { display: none; }
  .schedule-slot-add { opacity: 1; }
  .schedule-slot-service { font-size: 13px; }
  .schedule-slot-employee,
  .schedule-slot-meta { font-size: 11px; }
  .schedule-save-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 1250;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(31,42,61,.14);
  }
  .schedule-save-bar .btn { min-width: 132px; }
  .booking-date-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
  .booking-date-card { min-width: 0; }
  .booking-week-view { grid-template-columns: 1fr; overflow: visible; }
  .booking-week-column { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .booking-main { grid-template-columns: 1fr; }
  .booking-order { position: static; order: -1; }
  .booking-time-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
  .booking-calendar {
    padding: 10px;
  }
  .booking-calendar-weekdays,
  .booking-calendar-grid {
    gap: 4px;
  }
  .booking-day {
    min-height: 38px;
    font-size: 13px;
  }
  .booking-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-page { padding: 18px 10px 36px; }
  .booking-service-step,
  .booking-schedule-step,
  .booking-contact-step { padding: 16px; }
  .booking-service-card { grid-template-columns: 1fr; gap: 10px; }
  .service-card-meta { grid-template-columns: auto 1fr auto; text-align: left; }
  .service-card-meta b { grid-column: auto; justify-self: end; margin: 0; }
  .booking-week-nav { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 5px; }
  .booking-week-nav .calendar-nav { width: 34px; height: 40px; }
  .booking-date-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .booking-date-card { min-height: 70px; padding: 5px 2px; }
  .booking-date-card strong { font-size: 17px; }
  .booking-date-card span { display: none; }
  .booking-time-groups { grid-template-columns: 1fr; overflow: visible; }
  .booking-time-group .booking-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-view-tabs { display: grid; }
  .schedule-builder-head { display: grid; }
  .schedule-config { padding: 14px; }
  .schedule-config-title { display: grid; gap: 2px; }
  .schedule-config > section:nth-of-type(1) .schedule-choice-list { grid-template-columns: 1fr; }
  .schedule-choice { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .schedule-current-choice { display: grid; gap: 4px; }
  .schedule-current-choice b::before,
  .schedule-current-choice em::before,
  .schedule-current-choice i::before { content: none; }
  .schedule-event-card { padding-block: 8px; }
  .schedule-event-card strong { font-size: 13px; }
  .schedule-event-card small,
  .schedule-event-card span { font-size: 11px; }
  .schedule-mobile-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-save-bar { gap: 8px; }
  .schedule-save-bar > span { font-size: 11px; }
  .schedule-save-bar .btn { min-width: 118px; padding-inline: 10px; }
}
