/* Boekings- en beheerinterface — sluit aan op styles.css */

.app-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: clamp(28px, 5vw, 56px) 0 64px; width: min(820px, 100% - 44px); }

.app-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.app-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 18px; }
.app-nav { display: flex; align-items: center; gap: 20px; }
.app-nav a, .app-nav__link {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--ink-soft);
  background: none; border: none; padding: 0; cursor: pointer;
}
.app-nav a:hover, .app-nav__link:hover { color: var(--ink); }

.app-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 4vw, 34px); letter-spacing: 0; margin: 0 0 20px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }

.button--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

.booking-shell {
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-ink);
}

.booking-flow-shell {
  padding-bottom: 104px;
}

.booking-main {
  display: block;
  padding-top: 32px;
  padding-bottom: 52px;
}

.booking-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.booking-intro__eyebrow {
  color: var(--home-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 12vw, 4.75rem);
  line-height: 0.96;
}

.booking-intro p {
  max-width: 40rem;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 3vw, 1.14rem);
  line-height: 1.55;
}

.booking-shell .app-title {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 7vw, 2.4rem);
  letter-spacing: 0;
}

.booking-shell .button {
  min-height: 58px;
  padding-inline: 22px;
  border-radius: var(--home-radius-pill, 999px);
  background: var(--home-ink);
  color: var(--home-bg);
  font-size: 1rem;
  font-weight: 700;
}

.booking-shell .button:hover,
.booking-shell .button:focus-visible {
  background: #22201e;
  color: var(--home-bg);
}

.booking-shell .button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.booking-shell .button--ghost {
  background: transparent;
  color: var(--home-ink);
  border-color: var(--home-line);
}

.booking-shell .button--ghost:hover,
.booking-shell .button--ghost:focus-visible {
  background: var(--home-ink);
  color: var(--home-bg);
}

.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.step-actions--center { justify-content: center; }

/* Stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 30px; padding: 0; counter-reset: step; }
.stepper li {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-pill, 999px);
  background: #ffffff;
  color: var(--home-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
}
.stepper li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  background: #f2f1ee;
  color: inherit;
  font-size: 0.72rem;
}
.stepper li.is-active {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: var(--home-bg);
}
.stepper li.is-active::before {
  background: rgba(255, 255, 255, 0.16);
  color: var(--home-bg);
}
.stepper li.is-done {
  border-color: rgba(3, 3, 3, 0.18);
  background: #f7f6f3;
  color: var(--home-ink);
}

/* Diensten / opties */
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt {
  display: grid; gap: 4px; padding: 18px; text-align: left; cursor: pointer;
  background: #ffffff; border: 1px solid var(--home-line-soft); border-radius: var(--home-radius-inner, 18px);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.opt:hover { transform: translateY(-2px); border-color: var(--home-ink); }
.opt.is-active { border-color: var(--home-ink); box-shadow: inset 0 0 0 1px var(--home-ink); }
.opt--disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.opt--disabled:hover {
  transform: none;
  border-color: var(--line);
}
.opt__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.opt__meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.opt__price { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.service-opt {
  min-height: 124px;
}

/* Datum + slots */
.booking-choice {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-card, 24px);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(3, 3, 3, 0.04);
}

.booking-choice--nearest {
  border-color: var(--home-ink);
}

.booking-choice__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.booking-choice__head h2,
.booking-choice__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.booking-choice__head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.nearest-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
}

.nearest-slot {
  display: grid;
  gap: 3px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-field, 12px);
  background: #ffffff;
  color: var(--home-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.nearest-slot:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.nearest-slot--first {
  border-color: var(--home-ink);
}

.nearest-slot.is-active {
  background: var(--home-ink);
  color: var(--home-bg);
  border-color: var(--home-ink);
}

.nearest-slot__meta {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nearest-slot strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.nearest-slot small {
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
  text-transform: capitalize;
}

.chosen-moment {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--home-ink);
  border-radius: var(--home-radius-inner, 18px);
  background: #ffffff;
}

.chosen-moment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chosen-moment strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: capitalize;
}

.chosen-moment small {
  color: var(--home-muted);
  font-size: 0.92rem;
}

.booking-calendar {
  display: grid;
  gap: 12px;
}

.booking-calendar__nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.booking-calendar__nav strong {
  font-family: var(--font-display);
  font-size: 1rem;
  min-width: 0;
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--home-ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.booking-calendar__weekdays,
.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.booking-calendar__weekdays {
  color: var(--home-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.booking-calendar__grid {
  gap: 6px;
}

.booking-cal-day {
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 8px 4px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-field, 12px);
  color: var(--home-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: capitalize;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.booking-cal-day:hover { border-color: var(--home-ink); }
.booking-cal-day:disabled {
  cursor: default;
  color: rgba(3, 3, 3, 0.24);
  background: #fafafa;
}
.booking-cal-day--muted:not(.booking-cal-day--available) {
  opacity: 0.42;
}
.booking-cal-day.is-active {
  background: var(--home-ink);
  color: var(--home-bg);
  border-color: var(--home-ink);
}
.date-pill__label { font-size: 12px; color: inherit; opacity: 0.72; }
.booking-cal-day strong { font-size: 1.25rem; line-height: 1; }
.booking-cal-day small { color: inherit; font-size: 0.68rem; opacity: 0.72; }
.booking-cal-day small:empty { display: none; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.slot {
  min-height: 48px;
  padding: 12px 0; cursor: pointer; text-align: center;
  background: #ffffff; border: 1px solid var(--home-line); border-radius: var(--home-radius-field, 12px);
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.slot:hover { border-color: var(--ink-soft); }
.slot.is-active { background: var(--home-ink); color: var(--home-bg); border-color: var(--home-ink); }

/* Formulier */
.form { display: grid; gap: 18px; max-width: 460px; }
.booking-shell .form {
  max-width: none;
  padding: 22px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-card, 24px);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(3, 3, 3, 0.04);
}
.field { display: grid; gap: 6px; }
.field span { font-family: var(--font-display); font-weight: 500; font-size: 14px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .blocked-add input, .gate__card input, .hours-row input, .slot-date-controls input {
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--home-radius-field, 12px); color: var(--ink);
}
.booking-shell .field input {
  min-height: 54px;
  border-color: var(--home-line);
  border-radius: var(--home-radius-input, 18px);
  background: #ffffff;
}
.field input:focus, .gate__card input:focus, .hours-row input:focus, .slot-date-controls input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.checkbox input { margin-top: 2px; }
.form-error { color: #9a1b1b; font-size: 14px; }

/* Bevestiging */
.done { text-align: center; max-width: 520px; margin-inline: auto; }
.booking-shell .done {
  max-width: none;
  padding: 24px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-card, 24px);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(3, 3, 3, 0.04);
}
.done__mark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 28px; line-height: 56px;
}
.booking-shell .done__mark {
  background: var(--home-ink);
  color: var(--home-bg);
}
.summary { text-align: left; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.booking-shell .summary {
  border-color: var(--home-line-soft);
  border-radius: var(--home-radius-inner, 18px);
}
.booking-confirm .summary {
  margin: 0;
}
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.summary__row:last-child { border-bottom: none; }
.summary__row span { color: var(--muted); }
.summary__row strong { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 600; text-align: right; }

.thank-main {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.thank-page {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
}

.thank-page__watermark {
  position: absolute;
  right: -8px;
  bottom: -14px;
  z-index: -1;
  width: min(42vw, 170px);
  height: auto;
  opacity: 0.045;
  filter: grayscale(100%);
  transform: rotate(-7deg);
  pointer-events: none;
}

.thank-page .app-title {
  margin-bottom: 0;
}

.thank-page__eyebrow {
  color: var(--home-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.thank-page__copy {
  max-width: 34rem;
  margin-inline: auto;
}

.thank-page .summary {
  width: 100%;
  margin: 8px 0 2px;
}

.thank-page__note {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-inner, 18px);
  background: #fbfaf8;
  text-align: left;
}

.thank-page__note strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.thank-page__note span {
  color: var(--home-muted);
  font-size: 0.92rem;
}

.thank-page__actions {
  margin-top: 6px;
}

.thank-socials {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--home-line-soft);
}

.thank-socials > span {
  color: var(--home-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.thank-socials .social-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thank-socials .social-link {
  justify-content: center;
}

.booking-progress {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(720px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius-card, 24px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(3, 3, 3, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.booking-progress[hidden] {
  display: none;
}

.booking-progress > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 8px;
}

.booking-progress span {
  color: var(--home-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-progress strong,
.booking-progress small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-progress strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.booking-progress small {
  color: var(--home-muted);
  font-size: 0.82rem;
}

.booking-progress .button {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 18px;
}

/* Admin lijst */
.appt-list, .admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.appt, .admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--home-radius-inner, 18px);
}
.appt > div { display: grid; gap: 3px; }
.appt strong, .admin-row__main strong { font-family: var(--font-display); font-weight: 600; }
.appt__when, .admin-row__main span { color: var(--ink-soft); font-size: 14px; }
.admin-row__main { display: grid; gap: 3px; }
.admin-row__cust { color: var(--muted) !important; }
.admin-row__side { display: grid; gap: 8px; justify-items: end; }
.admin-row__btns { display: flex; gap: 8px; }
.appt__status { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.status--pending { color: #8a6d1a; }
.status--confirmed { color: #1f6b3a; }
.status--approved { color: #1f6b3a; }
.status--rejected { color: #8f2f28; }

.review-admin-row__message {
  max-width: 54ch;
  color: var(--ink-soft) !important;
  line-height: 1.45;
}

/* Toegangspoort */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(252, 251, 249, 0.96);
  backdrop-filter: blur(10px);
}
.gate[hidden] {
  display: none;
}
.gate__card { display: grid; gap: 12px; width: min(360px, 100%); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--home-radius-card, 24px); text-align: center; box-shadow: 0 24px 70px rgba(3, 3, 3, 0.12); }
.gate__card .app-title { margin-bottom: 4px; }

/* Tabs + uren + chips */
.tabbar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-pill, 999px);
  background: #ffffff;
}
.tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--home-radius-pill, 999px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* Admin dashboard */
.dashboard-panel {
  display: grid;
  gap: 18px;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-card, 24px);
  background: var(--surface);
}

.dashboard-hero .app-title {
  margin-bottom: 6px;
}

.dashboard-hero__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card {
  display: grid;
  gap: 7px;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-inner, 18px);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 12px 30px rgba(3, 3, 3, 0.06);
  transform: translateY(-1px);
}

.dashboard-card span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-card strong {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 64px);
  line-height: 0.95;
}

.dashboard-card small {
  color: var(--ink-soft);
  font-size: 14px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-settings,
.slot-advanced {
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-card, 24px);
  background: #ffffff;
}

.admin-settings {
  margin-top: 4px;
}

.admin-settings summary,
.slot-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}

.admin-settings summary::-webkit-details-marker,
.slot-advanced summary::-webkit-details-marker {
  display: none;
}

.admin-settings summary::after,
.slot-advanced summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.admin-settings[open] summary::after,
.slot-advanced[open] summary::after {
  content: "-";
}

.admin-settings__grid {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.admin-settings__panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-inner, 18px);
  background: #fbfaf8;
}

.admin-settings__panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

/* Gedeelde kalender */
.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.calendar-head .app-title {
  margin-bottom: 6px;
}

.calendar-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: capitalize;
}

.calendar-layout {
  display: grid;
  gap: 18px;
}

.calendar-month {
  min-width: 0;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.calendar-weekdays span {
  padding: 0 4px;
}

.calendar-grid {
  gap: 8px;
}

.calendar-day {
  min-height: 122px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-field, 12px);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: rgba(3, 3, 3, 0.38);
  box-shadow: 0 10px 24px rgba(3, 3, 3, 0.05);
  outline: none;
  transform: translateY(-1px);
}

.calendar-day--muted {
  opacity: 0.42;
}

.calendar-day--today {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.calendar-day--selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink), 0 14px 30px rgba(3, 3, 3, 0.08);
}

.calendar-day--closed {
  background: var(--bg-alt);
}

.calendar-day__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-day__date {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.calendar-day__label {
  display: none;
}

.calendar-day__closed,
.calendar-empty,
.calendar-more,
.calendar-slots {
  color: var(--muted);
  font-size: 11px;
}

.calendar-day__items {
  display: grid;
  gap: 5px;
}

.calendar-event {
  display: grid;
  gap: 1px;
  padding: 6px 7px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

.calendar-event.status--pending {
  background: #8a6d1a;
}

.calendar-event.status--confirmed {
  background: #1f6b3a;
}

.calendar-event__time {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.calendar-event__name {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-slot-link {
  width: 100%;
  margin-top: 9px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-field, 12px);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.calendar-slot-link:hover {
  border-color: var(--ink);
}

.day-agenda {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-card, 24px);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(3, 3, 3, 0.04);
}

.day-agenda__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.day-agenda__head span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: capitalize;
}

.day-agenda__status {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--home-radius-inner, 18px);
  background: #f7f6f3;
}

.day-agenda__status.is-open {
  background: #f1f6ef;
}

.day-agenda__status.is-closed {
  background: #f4f1ee;
}

.day-agenda__status strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.day-agenda__status span,
.day-agenda__empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.day-agenda__section {
  display: grid;
  gap: 10px;
}

.day-agenda__section h4 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.day-agenda__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-agenda__appointment {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-inner, 18px);
  background: #fbfaf8;
}

.day-agenda__appointment div:first-child {
  display: grid;
  gap: 2px;
}

.day-agenda__appointment strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.day-agenda__appointment span {
  color: var(--muted);
  font-size: 0.9rem;
}

.day-agenda__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-agenda__chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.day-agenda__chips span,
.day-agenda__chips em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-pill, 999px);
  background: #fbfaf8;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.calendar-bookings {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.calendar-bookings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calendar-bookings__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.slot-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.slot-manager-head .app-title {
  margin-bottom: 6px;
}

.slot-date-controls,
.slot-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-date-controls {
  justify-content: flex-end;
}

.slot-date-controls input {
  min-height: 38px;
  padding-block: 7px;
}

.slot-tools {
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--home-radius-inner, 18px);
  background: #ffffff;
}

.slot-advanced {
  margin-bottom: 20px;
}

.slot-advanced summary {
  min-height: 50px;
  padding-inline: 16px;
}

.slot-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 0 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.slot-range label {
  display: grid;
  gap: 5px;
}

.slot-range span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.slot-range input {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-field, 12px);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.slot-editor {
  display: grid;
  gap: 18px;
}

.slot-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-inner, 18px);
  background: var(--surface);
}

.slot-group h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.slot-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.slot-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius-field, 12px);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.slot-toggle:hover {
  border-color: var(--ink-soft);
}

.slot-toggle.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.hours-editor { display: grid; gap: 10px; margin-bottom: 4px; }
.hours-row { display: grid; grid-template-columns: 120px auto auto auto; align-items: center; gap: 12px; }
.hours-row__day { font-family: var(--font-display); font-weight: 500; }
.hours-row__sep { color: var(--muted); font-size: 14px; }
.save-flash { margin-left: 12px; color: #1f6b3a; font-size: 14px; }

.blocked-add { display: flex; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.chip button { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--bg-alt); cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink); }
.chip button:hover { background: var(--ink); color: var(--bg); }

@media (min-width: 760px) {
  .admin-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.72fr);
    align-items: start;
  }

  .day-agenda {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 560px) {
  .app-main { width: min(100% - 28px, 820px); }
  .booking-main {
    width: min(100% - 28px, 900px);
    padding-top: 22px;
  }
  .booking-intro { margin-bottom: 22px; }
  .booking-intro h1 { font-size: clamp(2rem, 12vw, 3.2rem); }
  .booking-choice {
    padding: 16px;
    border-radius: 20px;
  }
  .booking-calendar { gap: 10px; }
  .booking-calendar__nav { gap: 8px; }
  .booking-calendar__nav strong { font-size: 0.95rem; }
  .calendar-nav-button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.76rem;
  }
  .booking-calendar__weekdays {
    font-size: 0.72rem;
    padding-inline: 2px;
  }
  .booking-calendar__grid { gap: 5px; }
  .booking-cal-day {
    min-height: 54px;
    padding: 7px 2px;
    border-radius: 14px;
  }
  .date-pill__label { display: none; }
  .booking-cal-day strong { font-size: 1.35rem; }
  .booking-cal-day small {
    min-height: 12px;
    font-size: 0.62rem;
    line-height: 1;
  }
  .opt-grid { grid-template-columns: 1fr; }
  .booking-choice__head { align-items: flex-start; }
  .booking-choice__head span { max-width: 44%; }
  .nearest-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearest-slot { min-height: 88px; }
  .appt, .admin-row { flex-direction: column; align-items: stretch; }
  .admin-row__side { justify-items: stretch; }
  .admin-row__btns { justify-content: flex-start; }
  .dashboard-hero {
    display: grid;
    padding: 18px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    min-height: 118px;
  }
  .dashboard-actions .button {
    width: 100%;
  }
  .admin-settings summary,
  .slot-advanced summary {
    min-height: 54px;
  }
  .admin-settings__grid {
    padding-inline: 14px;
    padding-bottom: 14px;
  }
  .admin-settings__panel {
    padding: 14px;
  }
  .calendar-head { display: grid; }
  .calendar-controls { justify-content: flex-start; }
  .calendar-layout {
    gap: 14px;
  }
  .day-agenda {
    padding: 16px;
  }
  .day-agenda__head {
    display: grid;
  }
  .day-agenda__head .button {
    width: 100%;
  }
  .slot-manager-head { display: grid; }
  .slot-date-controls { justify-content: flex-start; }
  .slot-date-controls input { width: 100%; }
  .slot-range {
    grid-template-columns: 1fr;
  }
  .slot-range .button {
    width: 100%;
  }
  .calendar-weekdays { display: none; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-day { min-height: 0; }
  .calendar-day--muted { display: none; }
  .calendar-day__top { margin-bottom: 10px; }
  .calendar-day__date { display: none; }
  .calendar-day__label {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
  }
  .hours-row { grid-template-columns: 90px 1fr auto 1fr; gap: 8px; }
  .stepper {
    gap: 6px;
  }
  .stepper li {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }
  .stepper li::before {
    display: none;
  }
  .booking-progress {
    bottom: 10px;
    width: calc(100% - 20px);
    border-radius: 22px;
  }
  .booking-progress strong { font-size: 0.94rem; }
  .booking-progress .button {
    min-height: 46px;
    padding-inline: 15px;
  }
}

@media (max-width: 380px) {
  .booking-main { width: min(100% - 20px, 900px); }
  .booking-choice { padding: 14px; }
  .booking-calendar__grid { gap: 4px; }
  .calendar-nav-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.72rem;
  }
  .booking-calendar__nav strong { font-size: 0.9rem; }
  .booking-cal-day {
    min-height: 50px;
    border-radius: 12px;
  }
  .booking-cal-day strong { font-size: 1.2rem; }
  .booking-cal-day small { font-size: 0.58rem; }
  .stepper li { font-size: 0.62rem; }
  .booking-progress small { display: none; }
}
