:root {
  --bg: #171514;
  --bg-soft: #211e1c;
  --card: rgba(34, 31, 29, 0.88);
  --card-strong: #2a2623;
  --line: rgba(255, 255, 255, 0.11);
  --text: #fff8ee;
  --muted: #b9aea1;
  --faint: #82776e;
  --cream: #fff1d5;
  --accent: #d6a15d;
  --accent-2: #b9785f;
  --rose: #d7a2a4;
  --green: #8fd19e;
  --yellow: #ffd36c;
  --red: #ff8a78;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 161, 93, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(183, 120, 95, 0.18), transparent 28%),
    linear-gradient(145deg, #131211 0%, #211b18 42%, #171514 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.56;
  pointer-events: none;
}

.ambient-one {
  width: 280px;
  height: 280px;
  left: -80px;
  top: 80px;
  background: rgba(214, 161, 93, 0.12);
}

.ambient-two {
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -120px;
  background: rgba(215, 162, 164, 0.12);
}

.shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 0.84fr 1.36fr;
  gap: 20px;
}

.hero-card,
.booking-card,
.desk-card,
.metric-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 64px);
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px -60px;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(214, 161, 93, 0.42), rgba(215, 162, 164, 0.1)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px);
  transform: rotate(-4deg);
  border-radius: 45% 45% 0 0;
  z-index: -1;
}

.topbar,
.brand-lockup,
.mini-brand,
.desk-head,
.admin-header,
.admin-actions,
.button-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
}

.back-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.demo-pill,
.date-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(214, 161, 93, 0.28);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(214, 161, 93, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-lockup {
  gap: 18px;
  margin-top: auto;
}

.logo-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #251611;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  background: linear-gradient(145deg, #ffe2ac, #c98654);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 40px rgba(214, 161, 93, 0.22);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 66px);
  line-height: .95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
}

.subcopy,
.screen-head p,
.policy-note,
.success-screen p,
.admin-header p,
.verify-card p,
.handover-note {
  color: var(--muted);
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-grid div {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}

.trust-value {
  display: block;
  color: var(--cream);
  font-size: 22px;
  font-weight: 900;
}

.trust-label {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
}

.policy-note,
.handover-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(214, 161, 93, 0.22);
  border-radius: var(--radius-md);
  background: rgba(214, 161, 93, 0.08);
}

.booking-card {
  min-height: calc(100vh - 64px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.step {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  color: #201411;
  background: var(--faint);
  font-size: 12px;
}

.step.is-active {
  color: var(--cream);
  background: rgba(214, 161, 93, 0.08);
}

.step.is-active span,
.step.is-done span {
  background: var(--accent);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
}

.panel-main {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.single-panel {
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-enter 320ms cubic-bezier(.16, 1, .3, 1) both;
}

.screen.is-leaving {
  display: block;
  pointer-events: none;
  animation: screen-leave 145ms cubic-bezier(.7, 0, .84, 0) both;
}

.single-panel.is-screen-changing {
  filter: saturate(1.04);
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.986);
    filter: blur(7px);
  }
  62% {
    opacity: 1;
    transform: translateY(-2px) scale(1.002);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes screen-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(.992);
    filter: blur(5px);
  }
}

.screen-head {
  margin-bottom: 24px;
}

.category-tabs,
.date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.category-tab,
.date-card,
.staff-card,
.service-card,
.time-slot,
.booking-row,
.verify-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}

.category-tab,
.date-card,
.time-slot {
  border-radius: 18px;
}

.category-tab {
  flex: 0 0 auto;
  padding: 11px 15px;
  color: var(--muted);
  font-weight: 850;
}

.category-tab.is-active,
.date-card.is-selected,
.time-slot.is-selected {
  color: #211511;
  border-color: var(--accent);
  background: var(--accent);
}

.service-list,
.staff-list {
  display: grid;
  gap: 13px;
}

.service-list.is-switching-out {
  animation: category-list-out 190ms cubic-bezier(.7, 0, .84, 0) both;
}

.service-list.is-switching-in {
  animation: category-list-in 380ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes category-list-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(18px) scale(.985);
    filter: blur(7px);
  }
}

@keyframes category-list-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.982);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.006);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


.service-card,
.staff-card {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: inherit;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.service-card:hover,
.staff-card:hover,
.time-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 161, 93, 0.45);
  background: rgba(214, 161, 93, 0.07);
}

.service-card.is-selected,
.staff-card.is-selected {
  border-color: var(--accent);
  background: rgba(214, 161, 93, 0.12);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.service-card strong,
.staff-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cream);
  font-size: 17px;
}

.service-meta,
.staff-card span,
.summary-lines span,
.mini-brand span {
  color: var(--muted);
  font-size: 13px;
}

.price-tag {
  text-align: right;
  color: var(--cream);
  font-weight: 900;
}

.deposit-tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(214, 161, 93, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.staff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.staff-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #231411;
  font-weight: 950;
  background: linear-gradient(145deg, #ffe2ac, #d7a2a4);
}

.select-pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 850;
}

.date-card {
  min-width: 86px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.date-card strong {
  display: block;
  color: inherit;
  font-size: 24px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.time-slot {
  min-height: 58px;
  color: var(--cream);
  font-weight: 900;
}

.details-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--cream);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  padding: 14px 15px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.policy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(214, 161, 93, 0.22);
  border-radius: 16px;
  background: rgba(214, 161, 93, 0.06);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.5;
}

.policy-check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}


.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field-pair.single-field {
  grid-template-columns: 1fr;
}

.deposit-box {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(214, 161, 93, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(214, 161, 93, 0.075);
}

.qr-card {
  padding: 10px;
  border-radius: 18px;
  background: #fff8ee;
  color: #211511;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.qr-pattern {
  height: 112px;
  margin-bottom: 8px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 31px, transparent 31px 43px),
    linear-gradient(#111 8px, transparent 8px 18px, #111 18px 29px, transparent 29px 42px),
    repeating-linear-gradient(45deg, #111 0 5px, #fff 5px 10px);
  background-size: 43px 43px, 38px 38px, 18px 18px;
  background-blend-mode: normal, difference, normal;
}

.summary-card {
  min-height: calc(100vh - 141px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255,255,255,0.025);
}

.mini-brand {
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mini-photo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(214,161,93,.9), rgba(215,162,164,.62)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.18) 8px 9px);
}

.summary-lines {
  display: grid;
  gap: 12px;
}

.summary-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-item strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream);
}

.summary-next {
  margin-top: auto;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 950;
  transition:
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 180ms ease,
    filter 180ms ease,
    background 180ms ease;
  will-change: transform;
}

.primary-action {
  border: 0;
  color: #251611;
  background: linear-gradient(135deg, #ffe1a8, #d69a59);
  box-shadow: 0 12px 28px rgba(214, 154, 89, .22);
}

.primary-action:not(:disabled):hover,
.secondary-action:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.primary-action:not(:disabled):active,
.secondary-action:not(:disabled):active,
.primary-action.is-pressing,
.secondary-action.is-pressing,
.step.is-pressing {
  transform: translateY(1px) scale(.985);
  filter: brightness(.98) saturate(1.04);
}

.primary-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.secondary-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255,255,255,0.04);
}

.admin-link {
  color: var(--accent);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.success-screen {
  min-height: 560px;
  text-align: center;
  place-content: center;
}

.success-screen.is-active {
  display: grid;
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1a120f;
  background: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.success-ref {
  width: fit-content;
  margin: 14px auto 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Admin */
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.admin-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-actions,
.button-row {
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.metric-card strong {
  font-size: 32px;
}

.metric-card.warning strong {
  color: var(--yellow);
}

.metric-card.good strong {
  color: var(--green);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 14px;
}

.desk-card {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.desk-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.booking-table {
  display: grid;
  gap: 8px;
}

.booking-row {
  display: grid;
  grid-template-columns: .65fr 1fr 1.35fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 18px;
}

.booking-row.header {
  min-height: auto;
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status.paid,
.status.confirmed {
  color: #16381f;
  background: var(--green);
}

.status.pending,
.status.waiting {
  color: #442f09;
  background: var(--yellow);
}

.verify-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.compact {
  min-height: 40px;
  padding-inline: 13px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .booking-layout,
  .admin-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .panel-main {
    border-right: 0;
  }

  .summary-card {
    min-height: auto;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding-block: 10px;
  }

  .hero-card,
  .booking-card,
  .desk-card {
    border-radius: 24px;
  }

  .hero-card,
  .panel-main,
  .summary-card,
  .desk-card {
    padding: 18px;
  }

  .stepper {
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    overflow-x: auto;
  }

  .step {
    min-height: 62px;
    font-size: 13px;
  }

  .trust-grid,
  .field-pair,
  .deposit-box,
  .time-grid,
  .booking-row {
    grid-template-columns: 1fr;
  }

  .booking-row.header {
    display: none;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .price-tag {
    text-align: left;
  }

  .admin-header,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* V2 centered single-card booking layout */
.booking-page-v2 {
  display: block;
}

.center-shell {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.booking-hero-card {
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.compact-topbar {
  padding: 18px 18px 0;
}

.salon-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 28px 24px;
  text-align: left;
}

.salon-title h1 {
  margin-bottom: 7px;
  font-size: clamp(34px, 5.2vw, 62px);
}

.salon-title p:last-child {
  margin: 0;
  color: var(--muted);
}

.pill-stepper {
  width: min(720px, calc(100% - 36px));
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
}

.pill-stepper .step {
  min-height: 58px;
}

.single-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.single-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 30px 28px 20px;
  border-right: 0;
}

.centered-head {
  text-align: center;
}

.centered-head p:not(.eyebrow) {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.inline-summary {
  width: min(720px, calc(100% - 56px));
  min-height: auto;
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
}

.inline-summary .summary-lines {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.inline-summary .summary-item {
  padding: 0 14px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.inline-summary .summary-item:last-child {
  border-right: 0;
}

.inline-summary .summary-item strong {
  display: block;
  margin-top: 4px;
}

.inline-summary .summary-item em {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-style: normal;
}

.inline-summary .summary-next {
  width: 100%;
  margin-top: 16px;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.booking-footer a {
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 760px) {
  .center-shell {
    width: min(100% - 18px, 920px);
    padding: 9px 0;
  }

  .booking-hero-card {
    border-radius: 26px;
  }

  .salon-header {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 18px 20px;
  }

  .salon-header .logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 30px;
  }

  .pill-stepper {
    width: calc(100% - 24px);
    border-radius: 22px;
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    overflow-x: auto;
  }

  .single-panel {
    padding: 24px 16px 12px;
  }

  .inline-summary {
    width: calc(100% - 24px);
    position: sticky;
    bottom: 10px;
    z-index: 5;
    box-shadow: 0 18px 55px rgba(0,0,0,.42);
  }

  .inline-summary .summary-lines {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .inline-summary .summary-item {
    padding: 0;
    border-right: 0;
  }

  .booking-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px 20px;
  }
}

/* UX polish pass: reassurance, decision badges, confirmation next steps */
.reassurance-strip {
  width: min(720px, calc(100% - 36px));
  margin: -4px auto 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reassurance-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(214, 161, 93, 0.20);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(214, 161, 93, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.reassurance-strip span::before {
  content: "✓";
  color: var(--accent);
  font-weight: 950;
}

.service-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.choice-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #251611;
  background: linear-gradient(135deg, #ffe1a8, #d69a59);
  font-size: 12px;
  font-weight: 950;
}

.service-card.is-selected .choice-badge {
  box-shadow: 0 0 0 3px rgba(214, 161, 93, .12);
}

.next-steps {
  width: min(440px, 100%);
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(214, 161, 93, .22);
  border-radius: 20px;
  text-align: left;
  background: rgba(214, 161, 93, .075);
}

.next-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
}

.next-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .reassurance-strip {
    width: calc(100% - 24px);
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .reassurance-strip span {
    font-size: 11px;
  }
}

/* Subtle parallax / depth pass */
.booking-page-v2 {
  perspective: 1400px;
  perspective-origin: 50% 18%;
}

.booking-hero-card {
  position: relative;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, 0, 0);
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.booking-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--glow-opacity, .50);
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 18%),
      rgba(255, 226, 172, 0.16),
      rgba(214, 161, 93, 0.055) 22%,
      transparent 48%
    );
  transition: opacity 260ms ease;
}

.booking-hero-card::after {
  content: "";
  position: absolute;
  inset: 96px -90px auto auto;
  z-index: 0;
  width: 360px;
  height: 145px;
  border-radius: 32px;
  opacity: .17;
  transform: rotate(-8deg) translateZ(18px);
  background:
    linear-gradient(135deg, rgba(255, 226, 172, .32), rgba(215, 162, 164, .12)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255,255,255,.16) 16px 18px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 22px);
}

.booking-hero-card > * {
  position: relative;
  z-index: 1;
}

.booking-hero-card.is-depth-active {
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(214, 161, 93, 0.08);
}

.salon-header {
  transform: translateZ(34px);
}

.pill-stepper {
  transform: translateZ(26px);
}

.single-panel {
  transform: translateZ(18px);
}

.inline-summary {
  transform: translateZ(24px);
}

.service-card,
.staff-card,
.time-slot,
.date-card {
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.category-tab {
  transform: translateZ(0);
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.service-card:hover,
.staff-card:hover,
.time-slot:hover,
.date-card:hover {
  transform: translateY(-3px) translateZ(16px);
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
}

.service-card:active,
.staff-card:active,
.time-slot:active,
.date-card:active {
  transform: translateY(0) scale(.992) translateZ(8px);
  transition-duration: 90ms;
}

.category-tab:active,
.category-tab.is-pressing {
  filter: brightness(.94);
  transform: scale(.985);
  transition-duration: 80ms;
}

.inline-summary.is-summary-pulsing {
  animation: summary-pulse 360ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes summary-pulse {
  0% { transform: translateZ(24px) scale(1); }
  45% { transform: translateZ(30px) scale(1.012); }
  100% { transform: translateZ(24px) scale(1); }
}

.logo-mark {
  transform: translateZ(44px);
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .booking-page-v2 {
    perspective: none;
  }

  .booking-hero-card,
  .salon-header,
  .pill-stepper,
  .single-panel,
  .inline-summary,
  .service-card,
  .staff-card,
  .time-slot,
  .date-card,
  .category-tab,
  .logo-mark {
    transform: none !important;
  }

  .booking-hero-card::before {
    opacity: .22;
  }

  .booking-hero-card::after {
    display: none;
  }
}


.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-status[data-type="error"] {
  color: var(--red);
}


.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}








/* Time slots: grouped, sharp, appointment-board style */
.time-grid {
  display: block;
}

.time-panel {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255,255,255,.022);
}

.time-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
}

.time-panel-head span,
.time-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.time-panel-head strong {
  color: var(--cream);
  font-size: 15px;
}

.time-section {
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.time-section:last-child {
  border-bottom: 0;
}

.time-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,.025);
}

.time-section-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-slot {
  min-height: 62px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.075);
  border-right: 1px solid rgba(255,255,255,.075);
  border-radius: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: var(--cream);
  background: transparent;
  font-weight: 950;
}

.time-slot:nth-child(2n) {
  border-right: 0;
}

.time-slot span {
  color: inherit;
}

.time-slot em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.time-slot:hover {
  transform: none;
  background: rgba(246,189,114,.10);
  box-shadow: inset 3px 0 0 rgba(246,189,114,.50);
}

.time-slot.is-selected {
  color: #211511;
  border-color: rgba(0,0,0,.16);
  background: #f6bd72;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}

.time-slot.is-selected em {
  color: rgba(33,21,17,.72);
}

/* Appointment calendar: sharp editorial grid */
.date-strip {
  display: block;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 22px;
}

.calendar-panel {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
}

.calendar-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f6bd72, rgba(246,189,114,0));
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.10);
}

.calendar-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.calendar-head strong {
  color: var(--cream);
  font-size: 17px;
  letter-spacing: .01em;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .10em;
  background: rgba(255,255,255,.025);
}

.calendar-weekdays span {
  padding: 11px 4px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.calendar-weekdays span:last-child {
  border-right: 0;
}

.calendar-grid {
  background:
    linear-gradient(rgba(255,255,255,.075), rgba(255,255,255,.075)) 0 0 / 100% 1px no-repeat;
}

.calendar-day {
  position: relative;
  min-height: 61px;
  padding: 9px 6px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.075);
  border-bottom: 1px solid rgba(255,255,255,.075);
  border-radius: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day span {
  min-height: 13px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-day strong {
  color: inherit;
  font-size: 21px;
  line-height: 1;
}

.calendar-day.is-available {
  color: var(--cream);
  background: rgba(255,255,255,.026);
}

.calendar-day.is-available::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(246, 189, 114, .50);
}

.calendar-day.is-selected {
  color: #211511;
  background: #f6bd72;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 -4px 0 rgba(0,0,0,.18);
}

.calendar-day.is-selected::after {
  background: rgba(33,21,17,.55);
}

.calendar-day.is-outside-month {
  opacity: .52;
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: .20;
}

.calendar-day:not(:disabled):hover {
  background: rgba(246, 189, 114, .12);
  transform: none;
  box-shadow: inset 0 -3px 0 rgba(246, 189, 114, .25);
}

/* Make category switches visible, not just stateful */
.service-card.is-card-leaving {
  animation: service-card-out 240ms cubic-bezier(.7, 0, .84, 0) both;
  animation-delay: var(--stagger, 0ms);
}

.service-card.is-card-entering {
  animation: service-card-in 520ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes service-card-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateX(-24px) scale(.982);
    filter: blur(6px);
  }
}

@keyframes service-card-in {
  from {
    opacity: 0;
    transform: translateX(30px) scale(.978);
    filter: blur(8px);
  }
  72% {
    opacity: 1;
    transform: translateX(-3px) scale(1.004);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

/* Sharper selector language: segmented tabs, not pills */
.category-tabs {
  width: fit-content;
  max-width: 100%;
  gap: 0;
  padding: 0;
  margin-inline: auto;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 0;
  overflow-x: auto;
  background: rgba(255,255,255,.035);
}

.category-tab {
  min-width: 104px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  color: var(--cream);
  background: transparent;
  letter-spacing: .015em;
  box-shadow: none;
}

.category-tab:last-child {
  border-right: 0;
}

.category-tab.is-active {
  color: #211511;
  border-color: transparent;
  background: linear-gradient(135deg, #f6bd72, #d79b58);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.22);
}

.category-tab:hover {
  box-shadow: inset 0 -2px 0 rgba(246, 189, 114, .34);
}

.deposit-tag,
.choice-badge,
.select-pill {
  border-radius: 8px;
}

.service-badges .choice-badge,
.service-badges .deposit-tag {
  padding-inline: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active,
  .screen.is-leaving,
  .inline-summary.is-summary-pulsing,
  .service-list.is-switching-out,
  .service-list.is-switching-in,
  .service-card.is-card-leaving,
  .service-card.is-card-entering {
    animation: none !important;
  }

  .primary-action,
  .secondary-action,
  .service-card,
  .staff-card,
  .time-slot,
  .date-card,
  .category-tab {
    transition: none !important;
  }
}

@media (max-width: 680px) {
  .calendar-head {
    padding: 13px 14px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 7px 4px;
  }

  .calendar-day strong {
    font-size: 17px;
  }
}


@media (max-width: 680px) {
  .time-panel-head,
  .time-section-head {
    padding-inline: 14px;
  }

  .time-slot-grid {
    grid-template-columns: 1fr;
  }

  .time-slot {
    border-right: 0;
    min-height: 56px;
  }
}


/* V3 polish: warm clinical luxury palette + obvious tactile movement */
:root {
  --bg: #151312;
  --bg-soft: #201c19;
  --card: rgba(35, 31, 28, 0.9);
  --card-strong: #2d2824;
  --text: #fff7eb;
  --muted: #c4b7a8;
  --faint: #8f8378;
  --cream: #fff0d3;
  --accent: #e2b978;
  --accent-2: #a7754f;
  --trust: #9fb8a5;
  --line: rgba(255, 246, 232, 0.13);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(226, 185, 120, 0.17), transparent 31%),
    radial-gradient(circle at 86% 16%, rgba(159, 184, 165, 0.12), transparent 29%),
    linear-gradient(145deg, #121110 0%, #221b18 44%, #151312 100%);
}

.booking-hero-card {
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.052), rgba(255, 247, 235, 0.018)),
    linear-gradient(135deg, rgba(226, 185, 120, 0.035), rgba(159, 184, 165, 0.025)),
    var(--card);
}

.reassurance-strip span:nth-child(3) {
  border-color: rgba(159, 184, 165, .25);
  background: rgba(159, 184, 165, .07);
}

.reassurance-strip span:nth-child(3)::before {
  color: var(--trust);
}

.single-panel::after {
  content: "";
  position: absolute;
  inset: 22px auto 22px 0;
  width: 3px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(226, 185, 120, .95), transparent);
  transform: translateY(24px) scaleY(.4);
}

.single-panel.is-screen-changing::after {
  animation: panel-sweep 620ms cubic-bezier(.16, 1, .3, 1) both;
}

.screen.is-active {
  animation: screen-enter-forward 520ms cubic-bezier(.16, 1, .3, 1) both;
}

.screen.is-active.is-going-back {
  animation-name: screen-enter-back;
}

.screen.is-leaving {
  animation: screen-leave-forward 280ms cubic-bezier(.7, 0, .84, 0) both;
}

.screen.is-leaving.is-going-back {
  animation-name: screen-leave-back;
}

@keyframes panel-sweep {
  0% { opacity: 0; transform: translateY(34px) scaleY(.2); }
  30% { opacity: .95; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(-34px) scaleY(.32); }
}

@keyframes screen-enter-forward {
  from { opacity: 0; transform: translateX(42px) scale(.982); filter: blur(8px); }
  68% { opacity: 1; transform: translateX(-5px) scale(1.004); filter: blur(0); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes screen-enter-back {
  from { opacity: 0; transform: translateX(-42px) scale(.982); filter: blur(8px); }
  68% { opacity: 1; transform: translateX(5px) scale(1.004); filter: blur(0); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes screen-leave-forward {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(-34px) scale(.988); filter: blur(7px); }
}

@keyframes screen-leave-back {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(34px) scale(.988); filter: blur(7px); }
}

.category-tab {
  position: relative;
  isolation: isolate;
}

.category-tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  opacity: 0;
  background: currentColor;
  transform: scaleX(.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.category-tab:hover::after,
.category-tab.is-pressing::after {
  opacity: .45;
  transform: scaleX(1);
}

.category-tab.is-active::after {
  opacity: .38;
  transform: scaleX(1);
}

.calendar-helper,
.time-helper {
  margin: 0;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  background: rgba(255,255,255,.016);
}

.calendar-panel,
.time-panel,
.inline-summary {
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}

.calendar-day.is-available:not(.is-selected):hover,
.time-slot:not(.is-selected):hover {
  background:
    linear-gradient(135deg, rgba(226,185,120,.16), rgba(159,184,165,.055));
}

.time-panel {
  margin-top: 20px;
}

.time-section-head {
  border-left: 3px solid rgba(226,185,120,.62);
}

.time-slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-slot {
  min-height: 66px;
  text-align: center;
}

.time-slot:nth-child(2n) {
  border-right: 1px solid rgba(255,255,255,.075);
}

.time-slot:nth-child(3n) {
  border-right: 0;
}

.time-slot.is-selected {
  background: linear-gradient(135deg, #f4cc8d, #d99b58);
}

.primary-action {
  background: linear-gradient(135deg, #f6d79e, #d99b58);
}

.primary-action:not(:disabled):hover {
  box-shadow: 0 16px 36px rgba(217, 155, 88, .28);
}

.primary-action:not(:disabled):active,
.primary-action.is-pressing {
  transform: translateY(2px) scale(.978);
  box-shadow: 0 6px 16px rgba(217, 155, 88, .18);
}

@media (max-width: 680px) {
  .time-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-slot:nth-child(3n) {
    border-right: 1px solid rgba(255,255,255,.075);
  }

  .time-slot:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-panel.is-screen-changing::after,
  .screen.is-active,
  .screen.is-active.is-going-back,
  .screen.is-leaving,
  .screen.is-leaving.is-going-back {
    animation: none !important;
  }
}


/* Stable booking pane: prevent the card from jumping between shorter/longer steps */
@media (min-width: 761px) {
  .booking-hero-card {
    min-height: calc(100vh - 72px);
  }

  .single-booking-layout {
    min-height: 690px;
    align-content: start;
  }

  .single-panel {
    min-height: 455px;
    display: grid;
    align-items: start;
  }

  .screen.is-active {
    width: 100%;
  }

  .inline-summary {
    margin-top: 0;
  }
}

@media (min-width: 761px) and (min-height: 900px) {
  .single-booking-layout {
    min-height: 735px;
  }

  .single-panel {
    min-height: 500px;
  }
}


/* Pin footer to the bottom of the stable booking card */
.booking-hero-card {
  display: flex;
  flex-direction: column;
}

.single-booking-layout {
  flex: 1 0 auto;
}

.booking-footer {
  margin-top: auto;
}


/* V4 date picker: compact 2-week availability board instead of bulky dead-month grid */
.calendar-panel {
  display: none;
}

.availability-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}

.availability-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f6bd72, rgba(159,184,165,.32), transparent);
}

.availability-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.10);
}

.availability-head span,
.week-marker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.availability-head strong {
  color: var(--cream);
  font-size: 16px;
}

.availability-helper {
  margin: 0;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  background: rgba(255,255,255,.016);
}

.availability-grid {
  display: grid;
  grid-template-columns: 88px repeat(7, minmax(0, 1fr));
  background: rgba(255,255,255,.018);
}

.week-marker {
  min-height: 66px;
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  color: rgba(196,183,168,.82);
  background: rgba(0,0,0,.08);
}

.availability-day {
  position: relative;
  min-height: 66px;
  padding: 10px 4px 9px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.075);
  border-bottom: 1px solid rgba(255,255,255,.075);
  border-radius: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  color: var(--cream);
  background: transparent;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.availability-day:nth-of-type(7n) {
  border-right: 0;
}

.availability-day span {
  color: rgba(255,240,211,.76);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.availability-day strong {
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.availability-day em {
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-day::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(246, 189, 114, .42);
}

.availability-day:hover {
  transform: none;
  background: linear-gradient(135deg, rgba(226,185,120,.16), rgba(159,184,165,.055));
  box-shadow: inset 0 -3px 0 rgba(226,185,120,.28);
}

.availability-day.is-selected {
  color: #211511;
  background: linear-gradient(135deg, #f6d79e, #d99b58);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.36),
    inset 0 -4px 0 rgba(0,0,0,.18);
}

.availability-day.is-selected span,
.availability-day.is-selected em {
  color: rgba(33,21,17,.72);
}

.availability-day.is-selected::after {
  background: rgba(33,21,17,.55);
}

@media (max-width: 680px) {
  .availability-head,
  .availability-helper {
    padding-inline: 14px;
  }

  .availability-grid {
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .week-marker {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 10px 12px;
    border-right: 0;
  }

  .availability-day {
    min-height: 58px;
  }

  .availability-day strong {
    font-size: 18px;
  }
}


/* V5 picker cleanup: less spreadsheet, more premium appointment selector */
.availability-grid {
  grid-template-columns: 82px repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,.055);
}

.week-marker {
  min-height: 58px;
  padding: 10px 8px;
  border: 0;
  align-items: center;
  background: transparent;
}

.availability-day {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.032);
  box-shadow: none;
}

.availability-day:nth-of-type(7n),
.availability-day {
  border-right: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.availability-day::after {
  bottom: 6px;
  width: 16px;
}

.availability-day:hover {
  box-shadow:
    inset 0 -2px 0 rgba(226,185,120,.38),
    0 10px 24px rgba(0,0,0,.16);
}

.time-panel {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.018);
}

.time-section {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.time-section-head {
  padding: 15px 16px;
  border-left: 3px solid rgba(226,185,120,.65);
  border-right: 1px solid rgba(255,255,255,.08);
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgba(0,0,0,.075);
}

.time-section-head em {
  font-size: 11px;
}

.time-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
}

.time-slot,
.time-slot:nth-child(2n),
.time-slot:nth-child(3n) {
  min-width: 112px;
  min-height: 45px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 0;
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  background: rgba(255,255,255,.035);
  box-shadow: none;
}

.time-slot:hover {
  background: linear-gradient(135deg, rgba(226,185,120,.16), rgba(159,184,165,.06));
  box-shadow:
    inset 0 -2px 0 rgba(226,185,120,.38),
    0 10px 24px rgba(0,0,0,.16);
}

.time-slot.is-selected {
  background: linear-gradient(135deg, #f6d79e, #d99b58);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.30),
    inset 0 -3px 0 rgba(0,0,0,.17);
}

@media (max-width: 680px) {
  .availability-grid {
    grid-template-columns: repeat(7, minmax(58px, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .week-marker {
    min-height: auto;
    padding: 4px 2px 2px;
  }

  .time-section {
    grid-template-columns: 1fr;
  }

  .time-section-head {
    border-right: 0;
    padding: 12px 14px;
  }

  .time-slot-grid {
    padding: 10px;
  }

  .time-slot,
  .time-slot:nth-child(2n),
  .time-slot:nth-child(3n) {
    min-width: calc(50% - 5px);
  }
}


/* V6 Step 3 layout: time-first appointment board with schedule rail */
@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(268px, .72fr);
    gap: 18px;
    align-items: start;
  }

  .screen[data-screen="time"] .screen-head {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .screen[data-screen="time"] .time-grid {
    grid-column: 1;
    grid-row: 2;
  }

  .screen[data-screen="time"] .date-strip {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .screen[data-screen="time"] .time-panel,
  .screen[data-screen="time"] .availability-panel {
    min-height: 100%;
  }

  .screen[data-screen="time"] .time-panel {
    margin-top: 0;
  }

  .screen[data-screen="time"] .availability-head,
  .screen[data-screen="time"] .time-panel-head {
    min-height: 50px;
  }

  .screen[data-screen="time"] .availability-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .screen[data-screen="time"] .availability-helper,
  .screen[data-screen="time"] .time-helper {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .screen[data-screen="time"] .availability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .screen[data-screen="time"] .week-marker {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 8px 0 2px;
    border-bottom: 0;
    color: rgba(255,240,211,.62);
  }

  .screen[data-screen="time"] .availability-day {
    min-height: 52px;
    padding: 8px 6px;
  }

  .screen[data-screen="time"] .availability-day strong {
    font-size: 19px;
  }

  .screen[data-screen="time"] .availability-day span,
  .screen[data-screen="time"] .availability-day em {
    font-size: 9px;
  }

  .screen[data-screen="time"] .time-section {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .screen[data-screen="time"] .time-slot-grid {
    gap: 8px;
  }

  .screen[data-screen="time"] .time-slot,
  .screen[data-screen="time"] .time-slot:nth-child(2n),
  .screen[data-screen="time"] .time-slot:nth-child(3n) {
    min-width: 102px;
    flex: 1 1 102px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .screen[data-screen="time"].is-active {
    grid-template-columns: 1fr;
  }

  .screen[data-screen="time"] .time-grid,
  .screen[data-screen="time"] .date-strip {
    grid-column: 1;
    grid-row: auto;
  }

  .screen[data-screen="time"] .date-strip {
    order: -1;
  }

  .screen[data-screen="time"] .availability-grid {
    grid-template-columns: 82px repeat(7, minmax(0, 1fr));
  }

  .screen[data-screen="time"] .week-marker {
    grid-column: auto;
    min-height: 58px;
    padding: 10px 8px;
  }
}


/* V7 appointment board: reduce spreadsheet feel, use softer grouped controls */
.availability-panel,
.time-panel {
  border-color: rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
}

.availability-panel::before,
.calendar-panel::before {
  width: 2px;
}

.week-marker {
  display: none !important;
}

.screen[data-screen="time"] .availability-grid,
.availability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: transparent;
}

.availability-day,
.screen[data-screen="time"] .availability-day {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.075);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: start;
  column-gap: 7px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.availability-day span,
.screen[data-screen="time"] .availability-day span {
  width: 26px;
  color: rgba(255,240,211,.66);
  font-size: 9px;
  text-align: left;
}

.availability-day strong,
.screen[data-screen="time"] .availability-day strong {
  color: var(--cream);
  font-size: 19px;
  line-height: 1;
}

.availability-day em,
.screen[data-screen="time"] .availability-day em {
  justify-self: end;
  color: var(--faint);
  font-size: 9px;
}

.availability-day::after {
  display: none;
}

.availability-day:hover {
  background: rgba(226,185,120,.10);
  border-color: rgba(226,185,120,.28);
  box-shadow: inset 2px 0 0 rgba(226,185,120,.45);
}

.availability-day.is-selected,
.screen[data-screen="time"] .availability-day.is-selected {
  color: #211511;
  border-color: rgba(246,215,158,.75);
  background: linear-gradient(135deg, #f6d79e, #d99b58);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}

.availability-day.is-selected strong,
.availability-day.is-selected span,
.availability-day.is-selected em {
  color: rgba(33,21,17,.82);
}

.screen[data-screen="time"] .time-section,
.time-section {
  grid-template-columns: 112px minmax(0, 1fr);
  border-bottom: 0;
  padding: 10px 12px;
  gap: 12px;
}

.time-section + .time-section {
  border-top: 1px solid rgba(255,255,255,.07);
}

.screen[data-screen="time"] .time-section-head,
.time-section-head {
  padding: 0;
  border: 0;
  background: transparent;
}

.time-section-head span {
  color: rgba(255,240,211,.72);
}

.screen[data-screen="time"] .time-slot-grid,
.time-slot-grid {
  padding: 0;
  gap: 8px;
}

.screen[data-screen="time"] .time-slot,
.screen[data-screen="time"] .time-slot:nth-child(2n),
.screen[data-screen="time"] .time-slot:nth-child(3n),
.time-slot,
.time-slot:nth-child(2n),
.time-slot:nth-child(3n) {
  min-width: 98px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.04);
}

.time-slot:hover {
  border-color: rgba(226,185,120,.30);
  background: rgba(226,185,120,.10);
  box-shadow: inset 0 -2px 0 rgba(226,185,120,.30);
}

.time-slot.is-selected {
  border-color: rgba(246,215,158,.75);
}

@media (max-width: 680px) {
  .availability-grid,
  .screen[data-screen="time"] .availability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-section,
  .screen[data-screen="time"] .time-section {
    grid-template-columns: 1fr;
  }
}


/* V8 familiar calendar: month view, not custom schedule blocks */
@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    grid-template-columns: minmax(0, .96fr) 300px;
    gap: 18px;
  }

  .screen[data-screen="time"] .date-strip {
    grid-column: 1;
    grid-row: 2;
  }

  .screen[data-screen="time"] .time-grid {
    grid-column: 2;
    grid-row: 2;
  }
}

.month-calendar {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.015));
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}

.month-calendar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, #f6bd72, rgba(246,189,114,0));
}

.month-calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.month-calendar-top > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.month-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.month-nav strong {
  min-width: 100px;
  color: var(--cream);
  font-size: 15px;
  text-align: center;
}

.month-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(255,255,255,.045);
  font-size: 18px;
  line-height: 1;
}

.month-nav-btn:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.month-nav-btn:not(:disabled):hover {
  border-color: rgba(226,185,120,.34);
  background: rgba(226,185,120,.10);
}

.month-calendar-helper {
  margin: 0;
  padding: 0 15px 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.month-weekdays {
  padding: 4px 13px 2px;
  color: rgba(255,240,211,.72);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.month-weekdays span {
  padding: 7px 0;
}

.month-grid {
  padding: 5px 13px 14px;
  gap: 4px 5px;
}

.month-day {
  aspect-ratio: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255,240,211,.92);
  background: transparent;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.month-day.is-outside {
  color: rgba(255,240,211,.35);
}

.month-day:disabled {
  color: rgba(255,240,211,.22);
  cursor: not-allowed;
}

.month-day.is-available:not(.is-selected) {
  color: var(--cream);
  background: rgba(255,255,255,.045);
}

.month-day.is-available:not(.is-selected):hover {
  transform: translateY(-1px);
  background: rgba(226,185,120,.15);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.month-day.is-selected {
  color: #211511;
  background: linear-gradient(135deg, #f6d79e, #d99b58);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 10px 22px rgba(217,155,88,.20);
}

/* Softer time rail beside the familiar calendar */
@media (min-width: 761px) {
  .screen[data-screen="time"] .time-panel {
    border-radius: 12px;
  }

  .screen[data-screen="time"] .time-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .screen[data-screen="time"] .time-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .screen[data-screen="time"] .time-section-head {
    display: flex;
    justify-content: space-between;
  }

  .screen[data-screen="time"] .time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen[data-screen="time"] .time-slot,
  .screen[data-screen="time"] .time-slot:nth-child(2n),
  .screen[data-screen="time"] .time-slot:nth-child(3n) {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .month-calendar {
    border-radius: 12px;
  }

  .month-grid {
    gap: 3px;
  }

  .month-day {
    min-height: 38px;
    font-size: 13px;
  }
}


/* V9 calmer palette pass: desaturate dark UI and reserve gold for real decisions */
:root {
  --bg: #171615;
  --bg-soft: #22211f;
  --card: rgba(36, 34, 31, 0.91);
  --card-strong: #2d2a27;
  --line: rgba(255, 248, 236, 0.095);
  --text: #f7efe4;
  --muted: #b7aea3;
  --faint: #817970;
  --cream: #f2e6d6;
  --accent: #cda66f;
  --accent-2: #a78258;
  --trust: #93aa98;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(205, 166, 111, 0.095), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(147, 170, 152, 0.065), transparent 31%),
    linear-gradient(145deg, #141312 0%, #201d1a 46%, #171615 100%);
}

.booking-hero-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.038), rgba(255, 248, 236, 0.014)),
    var(--card);
  box-shadow: 0 24px 72px rgba(0,0,0,.34);
}

.booking-hero-card::before {
  opacity: var(--glow-opacity, .28);
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 18%),
      rgba(230, 201, 149, 0.09),
      rgba(205, 166, 111, 0.032) 24%,
      transparent 50%
    );
}

.booking-hero-card::after {
  opacity: .08;
}

.logo-mark,
.choice-badge,
.primary-action,
.month-day.is-selected,
.time-slot.is-selected,
.availability-day.is-selected,
.category-tab.is-active {
  background: linear-gradient(135deg, #e7c996, #bd915b);
}

.logo-mark {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 12px 32px rgba(205, 166, 111, 0.14);
}

.primary-action {
  box-shadow: 0 10px 22px rgba(189, 145, 91, .16);
}

.primary-action:not(:disabled):hover {
  box-shadow: 0 14px 30px rgba(189, 145, 91, .20);
}

.demo-pill,
.reassurance-strip span,
.policy-note,
.handover-note,
.deposit-box,
.next-steps {
  border-color: rgba(205, 166, 111, .17);
  background: rgba(205, 166, 111, .045);
}

.reassurance-strip span::before,
.booking-footer a,
.admin-link,
.time-slot em,
.inline-summary .summary-item em,
.price-tag,
.deposit-tag {
  color: #d3ad78;
}

.step.is-active {
  background: rgba(205, 166, 111, .055);
}

.step.is-active span,
.step.is-done span {
  background: #d4af78;
}

.category-tab.is-active,
.date-card.is-selected,
.time-slot.is-selected,
.month-day.is-selected {
  color: #211a14;
}

.category-tab:hover,
.month-nav-btn:not(:disabled):hover,
.month-day.is-available:not(.is-selected):hover,
.time-slot:hover,
.availability-day:hover {
  background: rgba(205, 166, 111, .085);
  border-color: rgba(205, 166, 111, .22);
}

.service-card,
.staff-card,
.inline-summary,
.month-calendar,
.time-panel,
.availability-panel {
  border-color: rgba(255, 248, 236, .085);
  background-color: rgba(255,255,255,.024);
}

.service-card.is-selected,
.staff-card.is-selected {
  border-color: rgba(205, 166, 111, .48);
  background: rgba(205, 166, 111, .075);
}

.service-card:hover,
.staff-card:hover {
  border-color: rgba(205, 166, 111, .25);
  background: rgba(205, 166, 111, .045);
}

.deposit-tag {
  background: rgba(205, 166, 111, .065);
}

.month-calendar::before,
.availability-panel::before,
.calendar-panel::before {
  background: linear-gradient(180deg, rgba(205,166,111,.72), rgba(205,166,111,0));
}

.month-day.is-available:not(.is-selected),
.time-slot,
.availability-day,
.month-nav-btn {
  background: rgba(255,255,255,.032);
}

.month-day.is-selected,
.time-slot.is-selected,
.availability-day.is-selected {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.24),
    0 8px 18px rgba(189,145,91,.13);
}

.screen-head p,
.month-calendar-helper,
.time-helper,
.availability-helper {
  color: #aaa197;
}

h1,
h2 {
  color: #f1e8dd;
}


/* V10 Step 3 alignment: make calendar/time/summary feel like one composed board */
@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    width: min(660px, 100%);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .screen[data-screen="time"] .month-calendar,
  .screen[data-screen="time"] .time-panel {
    height: 385px;
  }

  .screen[data-screen="time"] .time-panel {
    display: flex;
    flex-direction: column;
  }

  .screen[data-screen="time"] .time-section {
    flex: 1;
  }

  .screen[data-screen="time"] .time-helper,
  .screen[data-screen="time"] .month-calendar-helper {
    min-height: 47px;
  }

  .screen[data-screen="time"] .month-calendar-top,
  .screen[data-screen="time"] .time-panel-head {
    min-height: 50px;
  }

  .screen[data-screen="time"] .time-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .inline-summary {
    width: min(660px, calc(100% - 56px));
  }
}

.month-nav-btn {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.month-nav strong {
  min-width: 86px;
}

.month-calendar-top,
.time-panel-head {
  padding-inline: 14px;
}

.month-calendar-helper,
.time-helper {
  padding-inline: 14px;
}

.month-grid {
  padding-inline: 12px;
}

.time-panel-head strong,
.month-nav strong {
  color: var(--cream);
}

@media (min-width: 761px) and (max-width: 900px) {
  .screen[data-screen="time"].is-active {
    width: min(660px, 100%);
    grid-template-columns: 1fr;
  }

  .screen[data-screen="time"] .month-calendar,
  .screen[data-screen="time"] .time-panel {
    height: auto;
  }
}


/* V11 verified layout direction: one-column appointment picker, no cramped split panels */
@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    width: min(660px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .screen[data-screen="time"] .screen-head {
    grid-column: 1;
    margin-bottom: 4px;
  }

  .screen[data-screen="time"] .date-strip,
  .screen[data-screen="time"] .time-grid {
    grid-column: 1;
    grid-row: auto;
  }

  .screen[data-screen="time"] .month-calendar,
  .screen[data-screen="time"] .time-panel {
    height: auto;
  }

  .screen[data-screen="time"] .month-calendar {
    max-width: 520px;
    margin-inline: auto;
  }

  .screen[data-screen="time"] .time-panel {
    width: 100%;
    display: block;
  }

  .screen[data-screen="time"] .time-panel-head {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .screen[data-screen="time"] .time-helper {
    min-height: auto;
  }

  .screen[data-screen="time"] .time-section {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .screen[data-screen="time"] .time-section-head {
    display: grid;
    align-content: center;
    gap: 4px;
  }

  .screen[data-screen="time"] .time-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .screen[data-screen="time"] .time-slot,
  .screen[data-screen="time"] .time-slot:nth-child(2n),
  .screen[data-screen="time"] .time-slot:nth-child(3n) {
    flex: 1 1 104px;
    width: auto;
    min-width: 104px;
  }

  .inline-summary {
    width: min(660px, calc(100% - 56px));
  }
}

.month-calendar {
  border-radius: 16px;
}

.time-panel {
  border-radius: 16px;
}

.month-calendar-top,
.time-panel-head {
  border-bottom-color: rgba(255,255,255,.06);
}

.month-calendar-helper,
.time-helper {
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.month-grid {
  max-width: 438px;
  margin-inline: auto;
}

.month-day {
  min-height: 40px;
}

.time-section + .time-section {
  border-top-color: rgba(255,255,255,.055);
}

@media (max-width: 760px) {
  .screen[data-screen="time"] .month-calendar {
    max-width: none;
  }

  .screen[data-screen="time"] .time-section {
    grid-template-columns: 1fr;
  }
}


/* V12 compact calendar pass after render check */
@media (min-width: 761px) {
  .screen[data-screen="time"] .month-calendar {
    max-width: 455px;
  }
}

.month-calendar-helper {
  display: none;
}

.month-calendar-top {
  padding: 12px 14px 8px;
}

.month-weekdays {
  padding: 2px 13px 0;
  font-size: 10px;
}

.month-weekdays span {
  padding: 6px 0;
}

.month-grid {
  max-width: 386px;
  padding: 4px 12px 12px;
  gap: 3px 4px;
}

.month-day {
  min-height: 35px;
  font-size: 14px;
}

.month-nav-btn {
  min-width: 36px;
  height: 25px;
  border-radius: 7px;
}

.month-nav strong {
  min-width: 82px;
  font-size: 14px;
}

.screen[data-screen="time"] .time-panel {
  margin-top: 0;
}

.screen[data-screen="time"] .time-panel-head {
  padding-block: 12px 8px;
}

.screen[data-screen="time"] .time-helper {
  display: none;
}

.screen[data-screen="time"] .time-section {
  padding-block: 10px;
}

@media (max-width: 760px) {
  .month-grid {
    max-width: none;
  }
}


/* V13 final fit pass for Step 3: less vertical drift, same familiar layout */
@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    margin-top: -14px;
    gap: 12px;
  }

  .screen[data-screen="time"] .screen-head {
    margin-bottom: 0;
  }

  .screen[data-screen="time"] .screen-head h2 {
    margin-bottom: 7px;
  }

  .screen[data-screen="time"] .screen-head p:not(.eyebrow) {
    line-height: 1.45;
  }

  .screen[data-screen="time"] .month-calendar {
    max-width: 430px;
  }

  .screen[data-screen="time"] .time-panel {
    max-width: 660px;
    margin-inline: auto;
  }

  .screen[data-screen="time"] .month-day {
    min-height: 32px;
    font-size: 13px;
  }

  .screen[data-screen="time"] .month-grid {
    max-width: 364px;
    padding-bottom: 10px;
  }

  .screen[data-screen="time"] .month-weekdays span {
    padding-block: 4px;
  }

  .screen[data-screen="time"] .time-slot,
  .screen[data-screen="time"] .time-slot:nth-child(2n),
  .screen[data-screen="time"] .time-slot:nth-child(3n) {
    min-height: 38px;
  }

  .screen[data-screen="time"] .time-section {
    padding-block: 8px;
  }
}


/* V14 soften time slots: premium buttons, not table cells */
.screen[data-screen="time"] .time-slot,
.screen[data-screen="time"] .time-slot:nth-child(2n),
.screen[data-screen="time"] .time-slot:nth-child(3n),
.time-slot,
.time-slot:nth-child(2n),
.time-slot:nth-child(3n) {
  border-radius: 12px;
  border-color: rgba(255, 248, 236, .065);
  background: rgba(255, 248, 236, .045);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 6px 16px rgba(0,0,0,.075);
}

.time-slot:hover {
  border-color: rgba(205, 166, 111, .20);
  background: rgba(205, 166, 111, .085);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 22px rgba(0,0,0,.13);
}

.time-slot.is-selected {
  border-color: rgba(231, 201, 150, .62);
  background: linear-gradient(135deg, #e7c996, #bd915b);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 10px 22px rgba(189,145,91,.18);
}

.time-section + .time-section {
  border-top-style: dashed;
  border-top-color: rgba(255,255,255,.045);
}

.time-panel {
  border-color: rgba(255,248,236,.075);
}


/* V15 Takda-specific design language: appointment docket, not generic SaaS card */
.booking-hero-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.034), rgba(255, 248, 236, 0.012)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 12% 8%, rgba(205,166,111,.065), transparent 28%),
    var(--card);
}

.booking-hero-card::after {
  opacity: .055;
  background:
    linear-gradient(135deg, rgba(205,166,111,.22), rgba(147,170,152,.08)),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.10) 15px 16px),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.06) 22px 23px);
}

.inline-summary {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(205,166,111,.20);
  background:
    linear-gradient(180deg, rgba(255,248,236,.045), rgba(255,248,236,.020)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.026) 31px 32px),
    rgba(31, 29, 27, .74);
  box-shadow:
    0 18px 48px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.inline-summary::before,
.inline-summary::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(205,166,111,.16);
  z-index: 2;
}

.inline-summary::before {
  left: -10px;
}

.inline-summary::after {
  right: -10px;
}

.inline-summary .summary-lines {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.docket-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px dashed rgba(205,166,111,.24);
}

.docket-head strong {
  display: block;
  margin-top: 3px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -.02em;
}

.docket-kicker {
  color: var(--faint) !important;
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.docket-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(147,170,152,.24);
  border-radius: 999px;
  color: #b9c7ba !important;
  background: rgba(147,170,152,.075);
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inline-summary .summary-item {
  position: relative;
  padding: 0 14px;
  border-right: 1px solid rgba(255,248,236,.085);
}

.inline-summary .summary-item:last-of-type {
  border-right: 0;
}

.inline-summary .summary-item span {
  color: #a99f94;
  font-size: 12px;
}

.inline-summary .summary-item strong {
  color: #f0e5d6;
  line-height: 1.25;
}

.inline-summary .summary-item em {
  color: #cda66f;
}

.docket-note {
  grid-column: 1 / -1;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed rgba(205,166,111,.18);
  color: #a99f94;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.docket-note::before {
  content: "VERIFY: ";
  color: #cda66f;
  font-weight: 950;
  letter-spacing: .08em;
}

.inline-summary .summary-next {
  margin-top: 15px;
}

.month-calendar,
.time-panel,
.service-card,
.staff-card {
  box-shadow: none;
}

.month-calendar,
.time-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
}

.service-card,
.staff-card {
  background: rgba(255,255,255,.026);
}

.service-card:hover,
.staff-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

@media (max-width: 760px) {
  .inline-summary .summary-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docket-head,
  .docket-note {
    grid-column: 1 / -1;
  }

  .docket-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .inline-summary .summary-item {
    padding: 0;
    border-right: 0;
  }
}

.inline-summary .summary-item:nth-of-type(5) {
  border-right: 0;
}



/* V16 docket fit cleanup */
.inline-summary {
  padding-block: 14px;
}

.docket-head {
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.docket-head strong {
  font-size: 17px;
}

.docket-note {
  margin-top: 10px;
  padding-top: 9px;
}

.inline-summary .summary-next {
  margin-top: 12px;
}

@media (min-width: 761px) {
  .screen[data-screen="time"].is-active {
    gap: 10px;
  }
}


/* V17 month calendar transition */
.month-calendar {
  will-change: transform, opacity, filter;
}

.month-calendar.is-month-leaving-next {
  animation: month-leave-next 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-calendar.is-month-leaving-prev {
  animation: month-leave-prev 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-calendar.is-month-entering-next {
  animation: month-enter-next 340ms cubic-bezier(.16, 1, .3, 1) both;
}

.month-calendar.is-month-entering-prev {
  animation: month-enter-prev 340ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes month-leave-next {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(-18px) scale(.992); filter: blur(4px); }
}

@keyframes month-leave-prev {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(18px) scale(.992); filter: blur(4px); }
}

@keyframes month-enter-next {
  from { opacity: 0; transform: translateX(24px) scale(.992); filter: blur(5px); }
  70% { opacity: 1; transform: translateX(-2px) scale(1.002); filter: blur(0); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes month-enter-prev {
  from { opacity: 0; transform: translateX(-24px) scale(.992); filter: blur(5px); }
  70% { opacity: 1; transform: translateX(2px) scale(1.002); filter: blur(0); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .month-calendar.is-month-leaving-next,
  .month-calendar.is-month-leaving-prev,
  .month-calendar.is-month-entering-next,
  .month-calendar.is-month-entering-prev {
    animation: none !important;
  }
}


/* V18 calendar transition: vertical sheet motion, days move top-to-bottom */
.month-calendar.is-month-leaving-next,
.month-calendar.is-month-leaving-prev {
  animation: month-sheet-leave 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-calendar.is-month-entering-next,
.month-calendar.is-month-entering-prev {
  animation: month-sheet-enter 360ms cubic-bezier(.16, 1, .3, 1) both;
}

.month-calendar.is-month-leaving-next .month-day,
.month-calendar.is-month-leaving-prev .month-day {
  animation: calendar-day-out 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-calendar.is-month-entering-next .month-day,
.month-calendar.is-month-entering-prev .month-day {
  animation: calendar-day-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 1):nth-child(-n + 7),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 1):nth-child(-n + 7) {
  animation-delay: 0ms;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 8):nth-child(-n + 14),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 8):nth-child(-n + 14) {
  animation-delay: 24ms;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 15):nth-child(-n + 21),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 15):nth-child(-n + 21) {
  animation-delay: 48ms;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 22):nth-child(-n + 28),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 22):nth-child(-n + 28) {
  animation-delay: 72ms;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 29):nth-child(-n + 35),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 29):nth-child(-n + 35) {
  animation-delay: 96ms;
}

.month-calendar.is-month-entering-next .month-day:nth-child(n + 36):nth-child(-n + 42),
.month-calendar.is-month-entering-prev .month-day:nth-child(n + 36):nth-child(-n + 42) {
  animation-delay: 120ms;
}

@keyframes month-sheet-leave {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(14px) scale(.994); filter: blur(4px); }
}

@keyframes month-sheet-enter {
  from { opacity: 0; transform: translateY(-18px) scale(.992); filter: blur(5px); }
  72% { opacity: 1; transform: translateY(2px) scale(1.001); filter: blur(0); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes calendar-day-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes calendar-day-in {
  from { opacity: 0; transform: translateY(-16px); }
  74% { opacity: 1; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .month-calendar.is-month-leaving-next .month-day,
  .month-calendar.is-month-leaving-prev .month-day,
  .month-calendar.is-month-entering-next .month-day,
  .month-calendar.is-month-entering-prev .month-day {
    animation: none !important;
  }
}


/* V19 tactile interaction pass: press, settle, docket stamp, grid-only month motion */
.service-card,
.staff-card,
.month-day,
.time-slot,
.category-tab,
.month-nav-btn,
.primary-action,
.secondary-action {
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}

.service-card:active,
.staff-card:active,
.month-day:active,
.time-slot:active,
.category-tab:active,
.month-nav-btn:active,
.primary-action:active,
.secondary-action:active {
  transform: translateY(1px) scale(.982);
  filter: brightness(.96) saturate(1.02);
}

.service-card.is-selected-settling,
.staff-card.is-selected-settling,
.month-day.is-selected-settling,
.time-slot.is-selected-settling,
.category-tab.is-selected-settling {
  animation: selection-settle 420ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes selection-settle {
  0% {
    transform: translateY(1px) scale(.982);
    filter: brightness(.96);
  }
  45% {
    transform: translateY(-2px) scale(1.018);
    filter: brightness(1.045);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

.inline-summary.is-docket-stamping {
  animation: docket-stamp 520ms cubic-bezier(.16, 1, .3, 1) both;
}

.inline-summary.is-docket-stamping .docket-status {
  animation: status-stamp 520ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes docket-stamp {
  0% {
    transform: translateZ(24px) scale(1);
    box-shadow: 0 18px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035);
  }
  38% {
    transform: translateZ(28px) scale(1.008);
    box-shadow: 0 22px 56px rgba(0,0,0,.24), 0 0 0 1px rgba(205,166,111,.13), inset 0 1px 0 rgba(255,255,255,.05);
  }
  100% {
    transform: translateZ(24px) scale(1);
    box-shadow: 0 18px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035);
  }
}

@keyframes status-stamp {
  0% { transform: rotate(0deg) scale(1); filter: brightness(1); }
  32% { transform: rotate(-1.5deg) scale(1.055); filter: brightness(1.08); }
  100% { transform: rotate(0deg) scale(1); filter: brightness(1); }
}

.month-grid {
  will-change: transform, opacity, filter;
}

.month-grid.is-grid-leaving-next,
.month-grid.is-grid-leaving-prev {
  animation: grid-sheet-leave 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-grid.is-grid-entering-next,
.month-grid.is-grid-entering-prev {
  animation: grid-sheet-enter 420ms cubic-bezier(.16, 1, .3, 1) both;
}

.month-grid.is-grid-leaving-next .month-day,
.month-grid.is-grid-leaving-prev .month-day {
  animation: calendar-day-grid-out 150ms cubic-bezier(.7, 0, .84, 0) both;
}

.month-grid.is-grid-entering-next .month-day,
.month-grid.is-grid-entering-prev .month-day {
  animation: calendar-day-grid-in 460ms cubic-bezier(.16, 1, .3, 1) both;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 1):nth-child(-n + 7),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 1):nth-child(-n + 7) {
  animation-delay: 0ms;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 8):nth-child(-n + 14),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 8):nth-child(-n + 14) {
  animation-delay: 24ms;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 15):nth-child(-n + 21),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 15):nth-child(-n + 21) {
  animation-delay: 48ms;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 22):nth-child(-n + 28),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 22):nth-child(-n + 28) {
  animation-delay: 72ms;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 29):nth-child(-n + 35),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 29):nth-child(-n + 35) {
  animation-delay: 96ms;
}

.month-grid.is-grid-entering-next .month-day:nth-child(n + 36):nth-child(-n + 42),
.month-grid.is-grid-entering-prev .month-day:nth-child(n + 36):nth-child(-n + 42) {
  animation-delay: 120ms;
}

@keyframes grid-sheet-leave {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}

@keyframes grid-sheet-enter {
  from { opacity: 0; transform: translateY(-16px); filter: blur(5px); }
  72% { opacity: 1; transform: translateY(2px); filter: blur(0); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes calendar-day-grid-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(9px); }
}

@keyframes calendar-day-grid-in {
  from { opacity: 0; transform: translateY(-14px); }
  72% { opacity: 1; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

input:focus,
textarea:focus,
select:focus {
  box-shadow:
    inset 0 0 0 1px rgba(205,166,111,.20),
    0 10px 24px rgba(0,0,0,.13);
  background: rgba(255,248,236,.055);
}

label:focus-within {
  color: #ead7bb;
}

@media (prefers-reduced-motion: reduce) {
  .service-card.is-selected-settling,
  .staff-card.is-selected-settling,
  .month-day.is-selected-settling,
  .time-slot.is-selected-settling,
  .category-tab.is-selected-settling,
  .inline-summary.is-docket-stamping,
  .inline-summary.is-docket-stamping .docket-status,
  .month-grid.is-grid-leaving-next,
  .month-grid.is-grid-leaving-prev,
  .month-grid.is-grid-entering-next,
  .month-grid.is-grid-entering-prev,
  .month-grid.is-grid-leaving-next .month-day,
  .month-grid.is-grid-leaving-prev .month-day,
  .month-grid.is-grid-entering-next .month-day,
  .month-grid.is-grid-entering-prev .month-day {
    animation: none !important;
  }
}

/* V20 restore selected-time emphasis after tactile soft-slot pass */
.screen[data-screen="time"] .time-slot.is-selected,
.screen[data-screen="time"] .time-slot.is-selected:nth-child(2n),
.screen[data-screen="time"] .time-slot.is-selected:nth-child(3n),
.time-slot.is-selected {
  color: #211a14;
  border-color: rgba(231, 201, 150, .62);
  background: linear-gradient(135deg, #e7c996, #bd915b);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    0 10px 22px rgba(189,145,91,.18);
}

.demo-disclaimer {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 211, 108, 0.28);
  border-radius: 12px;
  color: var(--cream);
  background: rgba(255, 211, 108, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.screen[data-screen="time"] .time-slot.is-selected em,
.time-slot.is-selected em {
  color: rgba(33, 26, 20, .68);
}

@media (max-width: 760px) {
  html,
  body {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }

  .center-shell,
  .booking-hero-card,
  .salon-header,
  .salon-title,
  .single-booking-layout,
  .single-panel,
  .screen,
  .service-list {
    min-width: 0;
    max-width: 100%;
  }

  .center-shell {
    width: calc(100vw - 18px);
  }

  .booking-hero-card {
    width: 100%;
  }

  .salon-title {
    width: calc(100% - 76px);
  }

  .salon-title h1,
  .salon-title p,
  .centered-head h2,
  .centered-head p {
    overflow-wrap: anywhere;
  }

  .pill-stepper {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .category-tabs {
    max-width: 100%;
    overflow-x: auto;
  }
}

/*
## Changes
- styles.css: style explicit demo/sample-data disclosures and prevent mobile flex/grid children from widening the page.

## Blockers
- Interactive browser-flow testing remains pending.

## Next step for Claude
- Confirm later booking steps remain within the viewport during the first deployed walkthrough.
*/
