.booking-page {
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .075);
  --line: rgba(212, 175, 106, .2);
  --wine: #b56576;
  --wine-soft: rgba(181, 101, 118, .28);
  --charcoal: #1c1a1e;
  --charcoal-soft: #242229;
  --charcoal-deep: #17161a;
  --ink: #221f26;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 5%, rgba(181, 101, 118, .16), transparent 30rem),
    radial-gradient(circle at 90% 30%, rgba(212, 175, 106, .09), transparent 24rem),
    var(--charcoal);
  min-height: 100vh;
}

@media (min-width: 721px) {
  html { height: 100%; }
  body.booking-page {
    --nav-height: 64px;
    height: 100dvh;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .booking-page #site-nav { height: var(--nav-height); }
  .booking-page #site-footer { display: none; }
}

.nav-brand-logo {
  width: 112px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
}
.nav-brand-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (min-width: 721px) {
  .booking-page #site-nav { justify-content: space-between; }
  .booking-page #site-nav .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.booking-hero {
  flex: 0 0 auto;
  padding: calc(var(--nav-height) + .7rem) 2rem .8rem;
  text-align: center;
}

.booking-hero .eyebrow,
.section-kicker {
  color: var(--gold);
  font: 600 .72rem/1 var(--font-body);
  letter-spacing: .28em;
  text-transform: uppercase;
}

.booking-hero h1 { margin: .2rem 0; color: var(--gold-light); font-size: clamp(2rem, 4.5vh, 3.25rem); }
.booking-hero p { color: var(--text-muted); font-size: 1rem; line-height: 1.35; }

.booking-shell {
  width: 100%;
  max-width: 1640px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 1.5rem .8rem;
}

.booking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  margin-bottom: .6rem;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold);
  font: 600 .72rem/1 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, .45);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Pinned into the nav bar's empty right-hand space on the standalone
   page (nav-links are centered via absolute positioning, leaving room);
   the embedded booking widget has no nav bar, so it stays inline there
   — see the .booking-embed reset further down. */
.auth-state {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: fixed;
  top: 0;
  right: 14px;
  height: var(--nav-height);
  z-index: 150;
}
@media (min-width: 721px) {
  .auth-state { right: 2rem; gap: .6rem; }
}

.small-button,
.icon-button,
.view-button {
  border: 1px solid var(--line);
  color: var(--gold-light);
  background: var(--surface);
  border-radius: 999px;
  font: 600 .72rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .72rem 1rem;
  cursor: pointer;
}
.small-button:hover, .icon-button:hover, .view-button:hover,
.view-button.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.service-picker { flex: 0 0 auto; margin-bottom: .65rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: .65rem;
  margin-top: .5rem;
}

.price-item-picker { flex: 0 0 auto; margin-bottom: .65rem; }
.price-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.price-item-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--gold-light);
  font: 600 .78rem/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.price-item-pill:hover { border-color: rgba(212, 175, 106, .65); }
.price-item-pill.is-selected { border-color: var(--gold); background: rgba(212, 175, 106, .12); }
.price-item-pill small { color: var(--gold); font: 400 .68rem var(--font-body); }

.service-tile {
  position: relative;
  min-height: clamp(96px, 14vh, 136px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: var(--gold-light);
  background: var(--charcoal-soft);
  text-align: left;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 13, 16, .98) 2%, rgba(14, 13, 16, .36) 70%, transparent);
}
.service-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.service-tile span { position: absolute; left: .75rem; right: .75rem; bottom: .65rem; font-family: var(--font-serif); font-size: clamp(.78rem, 1vw, .95rem); line-height: 1.08; }
.service-tile small { display: block; color: var(--gold); font: 400 .7rem var(--font-body); margin-top: .35rem; }
.service-tile:hover { transform: translateY(-3px); border-color: rgba(212, 175, 106, .65); }
.service-tile.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,106,.18), 0 18px 45px rgba(0,0,0,.24); }
.service-tile.is-selected::before { content: '✓'; position: absolute; top: .65rem; right: .65rem; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-weight: 700; }

.calendar-section { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.calendar-section > .step-kicker { flex: 0 0 auto; margin-bottom: .45rem; }
.calendar-card { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; background: rgba(24, 22, 28, .7); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.calendar-toolbar { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.calendar-nav, .view-switch { display: flex; align-items: center; gap: .5rem; }
.calendar-nav .icon-button { width: 40px; height: 40px; padding: 0; font-size: 1.1rem; }
.calendar-title { text-align: center; color: var(--gold-light); font-family: var(--font-serif); font-size: 1.35rem; }
.view-switch { justify-content: flex-end; }

.calendar-content { min-height: 0; flex: 1 1 auto; padding: .65rem; overflow: hidden; }
.calendar-loading { height: 100%; min-height: 180px; display: grid; place-items: center; color: var(--text-muted); letter-spacing: .12em; }
.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row div { padding: .35rem; color: var(--gold); font-size: .68rem; letter-spacing: .15em; text-align: center; text-transform: uppercase; }
.month-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month-day { min-height: 52px; padding: .35rem; color: var(--gold-light); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.month-day:hover:not(:disabled) { background: var(--surface-strong); }
.month-day.is-outside { opacity: .25; }
.month-day.is-today .day-number { background: var(--gold); color: var(--ink); }
.month-day:disabled { cursor: default; opacity: .3; }
.day-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: .86rem; }
.availability-badge { display: block; color: #bcd9bc; font-size: .74rem; margin-top: .8rem; }
.availability-badge.is-full { color: rgba(245,230,200,.33); }

.week-grid { height: 100%; display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); gap: .45rem; overflow-x: auto; }
.week-day { min-width: 115px; }
.week-day-head { text-align: center; margin-bottom: .35rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); line-height: 1.15; }
.week-day-head strong { display: block; color: var(--gold-light); font-weight: 500; }
.week-day-head span { color: var(--text-muted); font-size: .78rem; }
.slot-list { display: grid; gap: clamp(.3rem, .65vh, .5rem); }
.slot {
  width: 100%;
  min-height: clamp(42px, 5.4vh, 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: clamp(.45rem, .8vh, .72rem) .7rem;
  border-radius: 8px;
  border: 1px solid rgba(128, 184, 133, .25);
  color: #d9edda;
  background: rgba(84, 140, 90, .1);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .86rem;
  line-height: 1.15;
}
.slot span:first-child { color: inherit; font-weight: 600; letter-spacing: .025em; }
.slot span:last-child { font-size: .72rem; letter-spacing: .04em; opacity: .76; text-transform: uppercase; }
.week-grid .slot span + span::before { content: '·'; margin-right: .55rem; opacity: .65; }
.slot:hover { background: rgba(84, 140, 90, .24); border-color: rgba(128,184,133,.55); }
.slot.is-unavailable { color: rgba(245,230,200,.25); border-color: rgba(255,255,255,.05); background: rgba(255,255,255,.025); cursor: not-allowed; text-decoration: line-through; }
.slot.is-past { opacity: .25; cursor: not-allowed; }
.closed-day { padding: 1rem .25rem; text-align: center; color: rgba(245,230,200,.28); font-size: .8rem; }

.day-view { height: 100%; max-width: 760px; margin: 0 auto; }
.day-view-head { text-align: center; margin-bottom: .6rem; }
.day-view-head h2 { color: var(--gold-light); margin-bottom: .25rem; }
.day-slots { grid-template-columns: repeat(2, 1fr); }
.day-slots .slot { align-items: center; justify-content: space-between; padding-inline: 1rem; text-align: left; }
.day-slots .slot span:last-child { color: var(--text-muted); font-size: .75rem; text-decoration: none; }

.booking-note { flex: 0 0 auto; display: flex; gap: 1.1rem; flex-wrap: wrap; padding: .42rem 1rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .72rem; }
.legend { display: inline-flex; align-items: center; gap: .45rem; }
.legend::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(84,140,90,.6); }
.legend.busy::before { background: rgba(255,255,255,.15); }

.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; background: rgba(10,9,12,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 2.75rem 2.5rem 2.5rem;
  border-radius: 22px;
  background: linear-gradient(175deg, var(--charcoal-soft) 0%, var(--charcoal-deep) 100%);
  border: 1px solid rgba(212,175,106,.3);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  animation: modal-rise .45s cubic-bezier(.19,1,.22,1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.modal-eyebrow { display: block; color: var(--gold); font: 600 .68rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; margin-bottom: .85rem; }
.modal h2 { color: var(--gold-light); margin-bottom: .5rem; font-size: clamp(1.55rem, 4vw, 1.95rem); }
.modal > p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; margin: 0 0 1.5rem; }
.modal-close {
  position: absolute; top: 1.15rem; right: 1.15rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(212,175,106,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.modal-close:hover { background: rgba(212,175,106,.14); border-color: var(--gold); transform: rotate(90deg); }
.booking-page button:focus-visible,
.booking-page a:focus-visible,
.booking-page input:focus-visible,
.booking-page textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.auth-tabs {
  display: flex;
  gap: .3rem;
  margin: .3rem 0 1.6rem;
  padding: .3rem;
  background: rgba(0,0,0,.24);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  padding: .68rem .5rem;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font: 600 .76rem/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .28s ease, color .28s ease, box-shadow .28s ease;
}
.auth-tab.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, #d4af6a, #c8a06a);
  box-shadow: 0 8px 20px rgba(212,175,106,.32);
}
.form-stack { display: grid; gap: 1.4rem; }
.field label { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; margin-bottom: .5rem; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: .7rem .1rem .6rem; color: var(--gold-light); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: 400 1.05rem var(--font-body); outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.field input::placeholder { color: rgba(255,240,216,.35); }
.field textarea {
  width: 100%; padding: .85rem 1rem; color: var(--gold-light); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; font: 400 1rem var(--font-body); outline: none; resize: vertical;
  transition: border-color .25s ease;
}
.field textarea:focus { border-color: var(--gold); }
.password-field { position: relative; }
.password-field input { padding-right: 2.6rem; }
.password-toggle { position: absolute; top: .55rem; right: 0; border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: .3rem; color: var(--gold); opacity: .55; }
.password-toggle:hover, .password-toggle.is-active { opacity: 1; }
.checkbox { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-muted); font-size: .85rem; line-height: 1.55; }
.checkbox[hidden] { display: none; }
.checkbox input { margin-top: .35rem; accent-color: var(--gold); }
.form-message { min-height: 1.4rem; color: #e8b7ad; font-size: .85rem; }
.form-message.success { color: #bcd9bc; }
.link-button { justify-self: start; margin-top: -.6rem; padding: 0; border: 0; background: none; color: var(--gold); font-size: .8rem; letter-spacing: .02em; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-button:hover { color: var(--gold-light); }
.modal .btn { width: 100%; margin-top: .3rem; }
.booking-summary { margin: 0 0 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.booking-summary strong { color: var(--gold); display: block; }
.account-appointment {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(212,175,106,.5);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.account-appointment:hover { background: var(--surface-strong); border-left-color: var(--gold); }
.account-appointment strong { display: block; color: var(--gold-light); font-weight: 500; }
.account-appointment span { color: var(--text-muted); font-size: .83rem; }
.account-empty { padding: 2rem 0; color: var(--text-muted); text-align: center; font-size: .92rem; }
.account-modal { width: min(96vw, 1360px); }
.account-subhead { margin: 1.6rem 0 .35rem; color: var(--gold); font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: .01em; }
.account-subhead:first-of-type { margin-top: 1.2rem; }
.account-hint { margin: 0 0 .9rem; color: var(--text-muted); font-size: .84rem; line-height: 1.55; }
#account-past { display: grid; gap: .6rem; }

.account-welcome { text-align: left; margin-bottom: 2rem; display: flex; align-items: center; gap: 1.1rem; }
.account-welcome-text { display: flex; flex-direction: column; gap: .3rem; }
.account-avatar {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(212,175,106,.4), var(--wine-soft));
  border: 1px solid rgba(212,175,106,.45);
  color: var(--gold-light);
  font: 500 1.05rem var(--font-serif);
  letter-spacing: .04em;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}
.account-welcome .section-kicker { display: block; }
.account-greeting { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 4vw, 1.95rem); color: var(--gold-light); margin: 0; }
.account-greeting-name { color: var(--gold); }
.account-greeting-name:not(:empty)::before { content: ', '; color: var(--gold-light); }

/* Hauptspalte (Hero, Beauty Konfigurator, Chat, Fotos) links -- dort passiert
   alles, was die Kundin gerade tun will. Seitenspalte (Verlauf, Newsletter,
   Bewertung) rechts -- Nachschlage-/Einstellungs-Inhalte, die seltener
   gebraucht werden. Trennung nach Wichtigkeit statt einem langen Stapel. */
.account-columns { display: grid; grid-template-columns: 1.65fr 1fr; gap: 2.2rem; align-items: start; }
.account-main, .account-sidebar { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }

.account-hero-card, .account-invite {
  padding: 2rem 2.1rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--charcoal-soft), rgba(181,101,118,.16));
  border: 1px solid rgba(212,175,106,.28);
  box-shadow: 0 25px 60px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.account-hero-eyebrow, .account-invite-eyebrow { display: block; color: var(--gold); font: 600 .68rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; margin-bottom: .8rem; }
.account-hero-service, .account-invite h4 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 1.8rem); color: var(--gold-light); margin: 0 0 .4rem; }
.account-hero-when { color: var(--text-muted); font-size: .95rem; }
.account-hero-badge { display: inline-block; margin-top: 1.1rem; padding: .4rem .95rem; border-radius: 999px; background: linear-gradient(135deg, #d4af6a, #c8a06a); color: var(--ink); font: 700 .72rem/1 var(--font-body); letter-spacing: .05em; box-shadow: 0 6px 16px rgba(212,175,106,.3); }
.account-hero-cancel { display: block; margin: 1.2rem auto 0; padding: 0; border: 0; background: none; color: var(--text-muted); font-size: .78rem; letter-spacing: .01em; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.account-hero-cancel:hover { color: var(--gold-light); }
.account-hero-extra { margin-top: 1.1rem; display: grid; gap: .5rem; text-align: left; }

.account-invite p { color: var(--text-muted); font-size: .93rem; margin: 0 auto 1.5rem; max-width: 32rem; line-height: 1.6; }
.account-invite .btn { width: auto; padding-inline: 1.9rem; }
.account-invite-secondary { display: block; margin: 1.1rem auto 0; padding: 0; border: 0; background: none; color: var(--text-muted); font-size: .78rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.account-invite-secondary:hover { color: var(--gold-light); }

.account-subhead-row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.account-subhead-row .account-subhead { margin: 1.6rem 0 .35rem; }
.account-count-badge { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }
.account-count-badge strong { color: var(--gold); font-weight: 700; }

/* Card-Rahmen für alle Sektionen ausserhalb von Hero/Beauty-Konfigurator --
   dieselbe Optik (Verlauf, Kartenfarbe, Schatten) wie .account-hero-card,
   aber linksbündig statt zentriert, da Fliesstext/Listen/Formulare hier
   drin liegen statt einer einzelnen CTA. */
.account-card { padding: 1.75rem 1.9rem; border-radius: 20px; text-align: left; background: linear-gradient(160deg, var(--charcoal-soft), rgba(181,101,118,.1)); border: 1px solid rgba(212,175,106,.22); box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04); }
.account-card > *:first-child { margin-top: 0; }

.account-chat {
  display: grid;
  gap: .65rem;
  max-height: 280px;
  overflow-y: auto;
  padding: .9rem;
  margin-bottom: .8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.account-chat-empty { padding: 1rem 0; color: var(--text-muted); text-align: center; font-size: .85rem; }
.account-chat-bubble { max-width: 82%; padding: .6rem .8rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.account-chat-bubble.is-customer { justify-self: end; background: linear-gradient(135deg, #c8a06a, #b8903a); color: var(--ink); border-bottom-right-radius: 4px; }
.account-chat-bubble.is-admin { justify-self: start; background: linear-gradient(135deg, rgba(181,101,118,.28), rgba(181,101,118,.12)); color: var(--gold-light); border: 1px solid rgba(212,175,106,.2); border-bottom-left-radius: 4px; }
/* Fixed px, not width:100%: inside a non-stretched grid item (justify-self:
   end/start) a percentage-width image has no stable basis to resolve
   against and collapses to a sliver -- see .account-chat { display:grid }
   above. */
.account-chat-bubble img { display: block; width: 220px; max-width: 100%; height: 200px; object-fit: cover; margin-top: .45rem; border-radius: 10px; cursor: zoom-in; }
.account-chat-bubble time { display: block; margin-top: .35rem; font-size: .68rem; opacity: .65; }

.account-chat-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--gold-light);
  font: inherit;
  resize: vertical;
  transition: border-color .2s ease;
}
.account-chat-form textarea:focus { border-color: var(--gold); outline: none; }
.account-chat-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .55rem; }
.account-chat-attach { position: relative; color: var(--text-muted); font-size: .85rem; cursor: pointer; transition: color .2s ease; }
.account-chat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.account-chat-attach:hover { color: var(--gold-light); }
.account-chat-filename { display: block; margin-top: .4rem; color: var(--gold-light); font-size: .78rem; }

.account-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .65rem; }
.account-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.account-gallery img:hover { transform: scale(1.04); box-shadow: 0 12px 26px rgba(0,0,0,.35); border-color: rgba(212,175,106,.5); }

.toast { position: fixed; z-index: 700; right: 1.5rem; bottom: 1.5rem; max-width: 390px; padding: 1rem 1.2rem; color: var(--gold-light); background: var(--charcoal-soft); border: 1px solid var(--gold); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(calc(100% + 3rem)); transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; }
.toast.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }

@media (max-width: 1050px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .account-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  body.booking-page {
    --nav-height: 64px;
    min-width: 320px;
    min-height: 100svh;
    overflow: auto;
    display: block;
    -webkit-text-size-adjust: 100%;
  }
  .account-welcome { align-items: flex-start; gap: .8rem; }
  .account-card { padding: 1.4rem 1.3rem; }
  .account-hero-card, .account-invite { padding: 1.5rem 1.3rem; }
  .account-avatar { width: 48px; height: 48px; font-size: .92rem; }
  .booking-page button,
  .booking-page a { touch-action: manipulation; }
  .booking-page #site-footer { display: block; }
  .booking-page #site-nav {
    height: var(--nav-height);
    padding-inline: 14px;
    background: rgba(26, 24, 30, .96);
    border-bottom: 1px solid rgba(212, 175, 106, .14);
  }
  .nav-brand-logo { width: 86px; height: 44px; }
  .booking-hero { padding: calc(var(--nav-height) + 1.7rem) 1.15rem 1.4rem; }
  .booking-hero .eyebrow { font-size: .64rem; letter-spacing: .22em; }
  .booking-hero h1 {
    max-width: 10ch;
    margin: .45rem auto .45rem;
    font-size: clamp(2.25rem, 10vw, 2.9rem);
    line-height: 1.04;
    text-wrap: balance;
  }
  .booking-hero p { max-width: 32rem; margin-inline: auto; font-size: 1.02rem; line-height: 1.45; }
  .booking-shell { padding: 0 14px 2.5rem; }
  .calendar-toolbar { grid-template-columns: 1fr; text-align: center; }
  .booking-topline { margin-bottom: .8rem; }
  .small-button,
  .icon-button,
  .view-button { min-height: 44px; }
  .calendar-nav, .view-switch { justify-content: center; }
  .calendar-title { grid-row: 1; font-size: 1.45rem; }
  .service-picker { margin: 0 -14px 1rem; }
  .service-picker > .service-grid { padding-inline: 14px; }
  .service-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .65rem;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-tile {
    flex: 0 0 min(76vw, 284px);
    min-width: 0;
    min-height: 154px;
    scroll-snap-align: center;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(8, 4, 3, .28);
  }
  .service-tile img { opacity: .68; }
  .service-tile span { left: 1rem; right: 1rem; bottom: .9rem; font-size: 1.13rem; }
  .service-tile small { font-size: .76rem; }
  .calendar-section > .step-kicker { margin-bottom: .7rem; }
  .calendar-card { border-radius: 14px; }
  .calendar-toolbar { gap: .7rem; padding: .85rem .75rem; }
  .calendar-nav { order: 2; }
  .view-switch { order: 3; }
  .calendar-content { padding: .75rem; overflow: visible; }
  .month-day { min-height: 76px; padding: .35rem; }
  .availability-badge { font-size: 0; margin-top: .3rem; }
  .availability-badge::after { content: attr(data-count); font-size: .68rem; }
  .day-slots { grid-template-columns: 1fr; }
  .day-view-head { margin-bottom: .9rem; }
  .day-view-head h2 { font-size: 1.45rem; }
  .day-slots .slot { min-height: 52px; border-radius: 10px; font-size: .95rem; }
  .booking-note { padding: .75rem; gap: .65rem 1rem; font-size: .75rem; }
  #site-nav .nav-links { display: none; }
  .modal-backdrop {
    align-items: end;
    padding: max(.65rem, env(safe-area-inset-top)) .65rem max(.65rem, env(safe-area-inset-bottom));
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 1.3rem);
    padding: 2rem 1.35rem 1.6rem;
    border-radius: 20px 20px 14px 14px;
  }
  .field input,
  .field textarea,
  .field select { min-height: 48px; font-size: 16px; }
  .toast { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 390px) {
  .booking-hero { padding-inline: .9rem; }
  .booking-shell { padding-inline: 10px; }
  .service-picker { margin-inline: -10px; }
  .service-picker > .service-grid { padding-inline: 10px; }
  .service-grid { scroll-padding-inline: 10px; }
  .service-tile { flex-basis: calc(100vw - 52px); min-height: 148px; }
  .view-button { padding-inline: .78rem; }
  .calendar-nav .small-button { padding-inline: .8rem; }
}

@media (min-width: 721px) and (max-height: 820px) {
  .booking-hero .eyebrow, .booking-hero p { display: none; }
  .booking-hero { padding-top: calc(var(--nav-height) + .25rem); padding-bottom: .3rem; }
  .booking-hero h1 { font-size: 2rem; }
  .service-tile { min-height: 88px; }
  .service-tile small { margin-top: .15rem; }
  .booking-note { display: none; }
}

/* Seamless calendar variant embedded at the end of the homepage. */
html.booking-embed,
html.booking-embed body.booking-page {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

html.booking-embed body.booking-page {
  display: block;
}

.booking-embed #site-nav,
.booking-embed .booking-hero,
.booking-embed #site-footer {
  display: none !important;
}

.booking-embed .booking-shell {
  width: 100%;
  max-width: 1640px;
  height: auto;
  min-height: 0;
  display: block;
  margin: 0 auto;
  padding: 12px 16px 14px;
}

.booking-embed .booking-topline {
  margin-bottom: 6px;
}

/* No nav bar in the embedded widget, so the login/account controls stay
   inline in the topline instead of pinning into the (hidden) nav. */
.booking-embed .auth-state {
  position: static;
  height: auto;
}

.booking-embed .service-picker {
  margin-bottom: 8px;
}

.booking-embed .price-item-picker {
  margin-bottom: 8px;
}

.booking-embed .price-item-pill {
  padding: .45rem .7rem;
  font-size: .72rem;
}

.booking-embed .calendar-section {
  min-height: 0;
  display: block;
}

.booking-embed .calendar-card {
  min-height: 0;
  display: block;
  overflow: visible;
}

.booking-embed .calendar-content {
  min-height: 0;
  overflow: visible;
}

@media (min-width: 721px) {
  .booking-embed .booking-topline {
    min-height: 34px;
  }

  .booking-embed .small-button,
  .booking-embed .view-button {
    padding: .56rem .82rem;
  }

  .booking-embed .service-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .48rem;
    margin-top: .32rem;
  }

  .booking-embed .service-tile {
    min-height: 92px;
    border-radius: 13px;
  }

  .booking-embed .service-tile span {
    left: .6rem;
    right: .6rem;
    bottom: .5rem;
    font-size: clamp(.72rem, .9vw, .88rem);
  }

  .booking-embed .service-tile small {
    margin-top: .22rem;
    font-size: .64rem;
  }

  .booking-embed .service-tile.is-selected::before {
    top: .48rem;
    right: .48rem;
    width: 23px;
    height: 23px;
  }

  .booking-embed .calendar-section > .step-kicker {
    margin-bottom: .3rem;
  }

  .booking-embed .calendar-toolbar {
    gap: .55rem;
    padding: .43rem .75rem;
  }

  .booking-embed .calendar-nav,
  .booking-embed .view-switch {
    gap: .38rem;
  }

  .booking-embed .calendar-nav .icon-button {
    width: 34px;
    height: 34px;
  }

  .booking-embed .calendar-title {
    font-size: 1.18rem;
  }

  .booking-embed .calendar-content {
    padding: .42rem;
  }

  .booking-embed .week-grid {
    height: auto;
    gap: .32rem;
    overflow: visible;
  }

  .booking-embed .week-day {
    min-width: 0;
  }

  .booking-embed .week-day-head {
    margin-bottom: .24rem;
    padding-bottom: .24rem;
  }

  .booking-embed .week-day-head span {
    font-size: .68rem;
  }

  .booking-embed .slot-list {
    gap: .24rem;
  }

  .booking-embed .slot {
    min-height: 32px;
    gap: .32rem;
    padding: .28rem .35rem;
    border-radius: 7px;
    font-size: .76rem;
  }

  .booking-embed .slot span:last-child {
    font-size: .64rem;
  }

  .booking-embed .week-grid .slot span + span::before {
    margin-right: .32rem;
  }

  .booking-embed .closed-day {
    padding: .65rem .2rem;
    font-size: .72rem;
  }

  .booking-embed .booking-note {
    gap: .8rem;
    padding: .3rem .75rem;
    font-size: .65rem;
  }
}

@media (max-width: 720px) {
  html.booking-embed,
  html.booking-embed body.booking-page {
    min-width: 0;
  }

  .booking-embed .booking-shell {
    padding: 8px 10px 12px;
  }

  .booking-embed .booking-topline {
    gap: .48rem;
    margin-bottom: 8px;
  }

  .booking-embed .booking-topline .step-kicker,
  .booking-embed .calendar-section > .step-kicker {
    font-size: .62rem;
    letter-spacing: .23em;
  }

  .booking-embed .auth-state {
    flex-wrap: nowrap;
    gap: .5rem;
  }

  .booking-embed .auth-state .small-button {
    min-height: 38px;
    flex: 0 0 auto;
    padding: .58rem .76rem;
    font-size: .64rem;
  }

  .booking-embed .service-picker {
    margin: 0 -10px 8px;
  }

  .booking-embed .service-picker > .service-grid {
    gap: .55rem;
    padding: 0 10px .4rem;
    scroll-padding-inline: 10px;
  }

  .booking-embed .service-tile {
    flex-basis: min(62vw, 228px);
    min-height: 120px;
    border-radius: 13px;
  }

  .booking-embed .service-tile span {
    left: .8rem;
    right: .8rem;
    bottom: .65rem;
    font-size: 1rem;
  }

  .booking-embed .service-tile small {
    margin-top: .22rem;
    font-size: .7rem;
  }

  .booking-embed .service-tile.is-selected::before {
    top: .55rem;
    right: .55rem;
    width: 25px;
    height: 25px;
  }

  .booking-embed .calendar-section > .step-kicker {
    margin-bottom: .42rem;
  }

  .booking-embed .calendar-card {
    border-radius: 13px;
  }

  .booking-embed .calendar-toolbar {
    gap: .45rem;
    padding: .55rem .5rem;
  }

  .booking-embed .calendar-title {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .booking-embed .calendar-nav,
  .booking-embed .view-switch {
    gap: .4rem;
  }

  .booking-embed .calendar-nav .icon-button {
    width: 40px;
    height: 40px;
  }

  .booking-embed .calendar-nav .small-button,
  .booking-embed .view-button {
    min-height: 40px;
    padding: .6rem .72rem;
    font-size: .66rem;
  }

  .booking-embed .view-switch {
    width: 100%;
  }

  .booking-embed .view-switch .view-button {
    flex: 1 1 0;
  }

  .booking-embed .calendar-card,
  .booking-embed .calendar-content {
    min-height: 0;
  }

  .booking-embed .calendar-content {
    padding: .55rem;
    overflow: visible;
  }

  .booking-embed .day-view-head {
    margin-bottom: .5rem;
  }

  .booking-embed .day-view-head h2 {
    margin-bottom: .12rem;
    font-size: 1.28rem;
  }

  .booking-embed .day-view-head p {
    font-size: .82rem;
    line-height: 1.25;
  }

  .booking-embed .day-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
  }

  .booking-embed .day-slots .slot {
    min-height: 46px;
    gap: .32rem;
    padding: .45rem .58rem;
    border-radius: 9px;
    font-size: .84rem;
  }

  .booking-embed .day-slots .slot span:last-child {
    font-size: .68rem;
  }

  .booking-embed .month-day {
    min-height: 54px;
  }

  .booking-embed .booking-note {
    display: block;
    padding: .45rem .65rem;
    text-align: center;
    font-size: .68rem;
    line-height: 1.3;
  }

  .booking-embed .booking-note .legend {
    display: none;
  }
}

@media (max-width: 350px) {
  .booking-embed .day-slots {
    grid-template-columns: 1fr;
  }
}
