/* ============================================================
   Unique Hair Braiding — styles.

   Token-driven, single light theme (no dark mode / i18n toggle needed
   for a single-language, single-brand salon app). [hidden] sits near
   the top because a couple of components could otherwise fight it
   with an inline display value.
   ============================================================ */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --plum-900: #1c0730;
  --plum-800: #2a0e42;
  --plum-700: #3a1552;
  --plum-600: #4a1f66;
  --gold: #d4af37;
  --gold-light: #f0c862;
  --gold-dark: #a97e1f;
  --cream: #faf3e6;
  --cream-dim: #f0e6d4;
  --ink: #2a1f33;
  --ink-soft: #766a82;
  --green: #1c7c4d;
  --red: #c33a2e;
  --line: rgba(42, 14, 66, 0.13);
  --shadow: 0 14px 34px rgba(28, 7, 48, 0.22);
  --radius: 20px;
  --radius-sm: 14px;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }

/* The page itself scrolls — this is a site at a domain, not a fixed app
   frame with an inner scrolling pane. */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1 1 auto;
  width: 100%;
  padding: 20px 18px calc(96px + env(safe-area-inset-bottom));
}

/* One shared measure for page content at every breakpoint. */
.screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- typography ---------- */

.h1 { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 800; color: var(--plum-900); line-height: 1.2; }
.h2 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--plum-900); }
.h3 { font-size: 15.5px; font-weight: 700; color: var(--plum-900); }
.sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-soft); }
.center { text-align: center; }

.pageHead { display: flex; flex-direction: column; gap: 4px; }

.eyebrow {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 17px; color: var(--plum-800);
  margin: 6px 0 -4px;
}
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 -4px; }
.section__head .eyebrow { margin: 0; }

.linklike {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--plum-700); font-weight: 700; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px;
}
.ownerLoginLink { color: var(--ink-soft); opacity: .75; font-size: 12px; margin-top: -4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14.5px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--plum-900);
  box-shadow: 0 8px 20px rgba(212, 175, 55, .35);
}
.btn--ghost { background: var(--cream-dim); color: var(--plum-800); border-color: var(--line); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 22px; font-size: 16px; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--plum-800), var(--plum-600));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__art { display: none; }
.hero__crown { color: var(--gold); margin-bottom: 8px; }
.hero__crown svg { width: 30px; height: 30px; }
.hero__brand { font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 800; letter-spacing: .3px; }
.hero__tag { font-style: italic; color: var(--gold-light); margin-top: 5px; font-size: 14.5px; }
.hero__badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.hero__ctaRow { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero .btn--ghost { background: rgba(255, 255, 255, .1); color: var(--cream); border-color: rgba(255, 255, 255, .3); }

/* ---------- cards ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; box-shadow: 0 3px 12px rgba(42, 14, 66, .05);
}
.card.center { text-align: center; }
.card.empty { text-align: center; padding: 30px 18px; color: var(--ink-soft); }
.card.empty svg { width: 26px; height: 26px; color: var(--gold-dark); margin-bottom: 8px; }

.stack { display: flex; flex-direction: column; gap: 12px; }

.infoStrip { display: flex; flex-direction: column; gap: 8px; }
.infoStrip__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.infoStrip__row svg { width: 17px; height: 17px; color: var(--gold-dark); flex-shrink: 0; }

.messageCta { display: flex; align-items: center; gap: 12px; }
.messageCta svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }

.ctaRow { display: flex; gap: 10px; flex-wrap: wrap; }
.ctaRow .btn { flex: 1 1 auto; }

/* ---------- tags ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--cream-dim); color: var(--ink-soft); vertical-align: middle;
}
.tag--gold { background: rgba(212, 175, 55, .2); color: var(--gold-dark); }
.tag--ok { background: rgba(28, 124, 77, .14); color: var(--green); }
.tag--err { background: rgba(195, 58, 46, .13); color: var(--red); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero .tag { background: rgba(255, 255, 255, .12); color: var(--cream); }
.hero .tag--gold { background: rgba(212, 175, 55, .28); color: var(--gold-light); }

/* ---------- services ---------- */

.serviceList { display: flex; flex-direction: column; gap: 12px; }

/* The card is a real <button>, so it starts by unlearning button styling.
   On a phone the photo sits beside the copy — a portrait crop of long
   braids stays whole, and the whole menu still fits a reasonable scroll.
   From 640px up the same markup stands the photo above the copy (see the
   tablet block) and the list becomes a grid, which is the layout a style
   this expensive deserves once there's room for it. */
.serviceCard {
  display: flex; align-items: stretch; gap: 14px;
  width: 100%; padding: 12px; cursor: pointer; text-align: left;
  font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.serviceCard:active { transform: scale(.99); }
.serviceCard:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.serviceCard__photo {
  position: relative; flex: 0 0 116px; align-self: flex-start;
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--cream-dim);
}
.serviceCard__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  /* Faces and hairlines live in the upper half of a portrait; centring the
     crop would behead the model in the shorter boxes. */
  object-position: 50% 28%;
  transition: transform .5s ease;
}
/* The badge rides the photo instead of the title, where it used to push a
   long style name onto a second line. */
.serviceCard__photo .tag {
  position: absolute; left: 7px; top: 7px;
  background: rgba(250, 243, 230, .95); color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(28, 7, 48, .2);
}

.serviceCard__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.serviceCard__title {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px;
  line-height: 1.25; color: var(--plum-900);
}
.serviceCard p.sub {
  margin-top: 5px; font-size: 14px;
  /* Descriptions run to three lines; a fourth would misalign every card
     in the grid beside it. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* margin-top:auto pins price and duration to the bottom of the card, so
   they line up across a row no matter how long the names run. */
.serviceCard__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--ink-soft);
}
.serviceCard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.serviceCard__meta svg { width: 14px; height: 14px; }
.serviceCard__price { font-weight: 800; color: var(--plum-800); font-size: 17px; }

/* Booking step one: a thumbnail is enough to recognise the style you came
   for, so these stay horizontal at every width. */
.serviceCard--compact { align-items: center; }
.serviceCard--compact .serviceCard__photo { flex: 0 0 72px; align-self: center; aspect-ratio: 1 / 1; border-radius: 10px; }
.serviceCard--compact .serviceCard__meta { margin-top: 6px; padding-top: 0; }

.stylesFoot { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.stylesFoot .ctaRow { justify-content: center; }

@media (hover: hover) {
  .serviceCard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28, 7, 48, .17); }
  .serviceCard:hover .serviceCard__photo img { transform: scale(1.05); }
}

.chipRow { display: flex; gap: 8px; flex-wrap: wrap; }
/* Six filters wrap to three rows on a narrow phone and push the first
   style below the fold; one swipeable row keeps the menu in view. */
.chipRow--scroll {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chipRow--scroll::-webkit-scrollbar { display: none; }
.chipRow--scroll .chip { flex: 0 0 auto; }
.chip {
  padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit;
}
.chip--active { background: var(--plum-800); border-color: var(--plum-800); color: var(--cream); }
.chip__s { font-size: 10.5px; opacity: .8; }

/* ---------- booking ---------- */

.stepper { display: flex; gap: 6px; }
.stepper i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.stepper i.stepper__on { background: var(--gold-dark); }

.selectedService { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selectedService__photo {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px;
  object-fit: cover; object-position: 50% 28%; background: var(--cream-dim);
}

.dayRow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
.dayChip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-family: inherit;
}
.dayChip__wd { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 700; }
.dayChip__d { font-size: 14px; font-weight: 700; color: var(--ink); }
.dayChip--active { background: var(--plum-800); border-color: var(--plum-800); }
.dayChip--active .dayChip__wd { color: var(--gold-light); }
.dayChip--active .dayChip__d { color: var(--cream); }

.messageForm { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
/* 16px is the floor, not a style choice: iPhone Safari zooms the whole
   page in when a focused field's text is any smaller. */
input, textarea, select {
  font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 13px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
textarea { resize: vertical; font-family: inherit; }
select { cursor: pointer; }
.err { color: var(--red); font-size: 12px; }

/* Two fields per row on anything wide enough, one per row on a phone —
   used for price + duration in the style editor. */
.formRow { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 420px) { .formRow { grid-template-columns: 1fr 1fr; } }

.checkField {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
}
.checkField input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; padding: 0; accent-color: var(--gold-dark); cursor: pointer; }
.checkField__label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.fieldHint { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* The photo field shows the picture the style will actually use — the
   uploaded one, or the standard photo it falls back to — at the same 4:5
   crop the client-facing cards use, so what the salon approves here is
   what a customer sees. */
.photoField__row { display: flex; align-items: center; gap: 14px; }
.photoField__frame {
  flex: 0 0 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--cream-dim); border: 1px solid var(--line);
}
.photoField__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.photoField__side { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.photoField__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photoField__clear { font-size: 13px; }

/* ---------- manage styles (staff) ---------- */

.manageGroup .eyebrow { margin-bottom: 10px; }
.manageList { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* A <button>, so the whole row is keyboard-reachable — reset the UA
   button styling back to a plain card. */
.manageRow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.manageRow:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(42, 14, 66, .08); }
.manageRow:focus-visible { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.manageRow svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); }
.manageRow__photo {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px;
  object-fit: cover; object-position: 50% 28%; background: var(--cream-dim);
}
.manageRow--hidden .manageRow__photo { opacity: .55; }
.manageRow__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.manageRow__title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.manageRow__name { font-size: 15.5px; font-weight: 700; color: var(--plum-900); line-height: 1.3; }
.manageRow__meta { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.manageRow__price { font-size: 16px; font-weight: 800; color: var(--plum-800); }
.manageRow--hidden { background: var(--cream); }
.manageRow--hidden .manageRow__name, .manageRow--hidden .manageRow__price { color: var(--ink-soft); }

.dangerBtn { color: var(--red); }
.dangerBtn svg { color: var(--red); }

.reviewCard { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.kv:last-child { border-bottom: none; padding-bottom: 0; }
.kv__k { color: var(--ink-soft); font-weight: 600; flex-shrink: 0; }
.kv__v { font-weight: 700; text-align: right; }

.confirmScreen { align-items: center; text-align: center; padding-top: 30px; gap: 12px; }
.confirmIcon {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(28, 124, 77, .12);
  color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.confirmIcon svg { width: 42px; height: 42px; }
.confirmIcon--waiting { background: rgba(212, 175, 55, .18); color: var(--gold-dark); }
.confirmScreen .stack { width: 100%; margin-top: 10px; }

/* ---------- gallery ---------- */

.galleryStrip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
.galleryStrip__item { flex: 0 0 auto; width: 112px; height: 142px; border-radius: 14px; background: var(--plum-700) center/cover no-repeat; box-shadow: var(--shadow); }
.galleryGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.galleryGrid__item { aspect-ratio: 3 / 4; border-radius: 16px; background: var(--plum-700) center/cover no-repeat; }

/* ---------- login / owner ---------- */

.loginScreen { justify-content: center; min-height: 78vh; gap: 22px; }
.loginBrand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--plum-800); }
.loginBrand svg { color: var(--gold-dark); width: 30px; height: 30px; }
.loginError {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(195, 58, 46, .09); color: var(--red);
  font-size: 14px; font-weight: 600; line-height: 1.4;
}

.ownerHead { display: flex; align-items: center; gap: 10px; }

.statRow { display: flex; gap: 10px; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; }
.stat__n { font-family: 'Playfair Display', serif; font-size: 23px; font-weight: 800; color: var(--plum-800); }
.stat__l { font-size: 10.5px; color: var(--ink-soft); font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .02em; }

.bookingRow, .myBookingRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.messageRow { display: flex; flex-direction: column; gap: 9px; cursor: pointer; }
.messageRow--unread { border-left: 3px solid var(--gold-dark); }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-dark); flex-shrink: 0; margin-top: 4px; }

/* ---------- shared chrome ---------- */

.backHead { display: flex; align-items: center; gap: 10px; padding: 2px 0 4px; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--plum-800); flex-shrink: 0;
}
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- site header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 243, 230, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--plum-900); font: inherit;
}
.topbar__brand svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }
.topbar__name {
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 17px;
  letter-spacing: .2px; white-space: nowrap;
}
.topbar__links { display: none; gap: 4px; margin-left: auto; }
.topbar__links button {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px;
}
.topbar__links button:hover { color: var(--plum-800); background: rgba(42, 14, 66, .05); }
.topbar__links button[aria-current="page"] { color: var(--plum-900); background: rgba(42, 14, 66, .07); }
.topbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar__phone {
  display: none; align-items: center; gap: 7px;
  color: var(--plum-800); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.topbar__phone svg { width: 16px; height: 16px; color: var(--gold-dark); }

/* ---------- site footer ---------- */

.footer { background: var(--plum-900); color: var(--cream); margin-top: 40px; }
.footer__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 26px;
  padding: 36px 18px 26px;
}
.footer__col { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 17px; }
.footer__brand svg { width: 20px; height: 20px; color: var(--gold); }
.footer__h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.footer__note { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(250, 243, 230, .72); }
.footer__link {
  font-size: 13.5px; color: rgba(250, 243, 230, .88); text-decoration: none;
  padding: 2px 0; line-height: 1.5;
}
.footer__link:hover { color: var(--gold-light); }
.footer__link--btn { background: none; border: none; cursor: pointer; font: inherit; font-size: 13.5px; padding: 2px 0; text-align: left; color: rgba(250, 243, 230, .88); }
.footer__bar {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 16px 18px calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(250, 243, 230, .14);
  font-size: 12.5px; color: rgba(250, 243, 230, .55);
}
.footer__staff {
  background: none; border: none; cursor: pointer; font: inherit; font-size: 12.5px;
  color: rgba(250, 243, 230, .55); text-decoration: underline; text-underline-offset: 3px;
}
.footer__staff:hover { color: var(--gold-light); }

.nav {
  display: flex; align-items: stretch; gap: 4px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 15;
}
.nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--ink-soft); font: inherit;
  font-size: 10.5px; font-weight: 700; padding: 7px 2px; border-radius: 13px; cursor: pointer;
}
.nav button svg { width: 20px; height: 20px; }
.nav button[aria-current="page"] { background: var(--plum-800); color: var(--cream); }

.offlinebar {
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  text-align: center; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.offlinebar i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---------- toast / sheet ---------- */

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--plum-900); color: var(--cream); padding: 11px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 80;
  box-shadow: var(--shadow); max-width: 88vw; text-align: center;
  animation: toastIn .18s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%); } }

.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(20, 6, 32, .55); }
.sheet__panel {
  position: relative; background: #fff; width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .22);
}
.sheet__grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet__title { font-family: 'Playfair Display', serif; font-size: 18px; margin: 0 0 4px; color: var(--plum-900); }

/* ---------- icons ---------- */

.icn svg, svg { display: block; }

/* ---------- tablet ---------- */

@media (min-width: 640px) {
  .view { padding: 26px 24px calc(96px + env(safe-area-inset-bottom)); }
  .screen { gap: 22px; }
  .hero { padding: 44px 34px 38px; }
  .hero__brand { font-size: 34px; }
  .hero__tag { font-size: 16px; }

  .serviceList { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Room for a grid: the photo takes the full card width and the copy
     sits under it, which is how a lookbook reads. */
  .serviceCard { flex-direction: column; gap: 12px; }
  .serviceCard__photo { flex: none; width: 100%; align-self: stretch; }
  .serviceCard--compact { flex-direction: row; align-items: center; }
  .serviceCard--compact .serviceCard__photo { flex: 0 0 72px; width: 72px; }
  .chipRow--scroll { flex-wrap: wrap; overflow: visible; }
  .manageList { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .galleryGrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .statRow { gap: 14px; }
}

/* ---------- desktop: a real site, not a phone frame ---------- */

@media (min-width: 900px) {
  /* The tab bar is a small-screen affordance; the header takes over. */
  .nav { display: none; }
  .view { padding: 34px 32px 20px; }
  .footer__bar { padding-bottom: 18px; }

  .topbar__links { display: flex; }
  .topbar__actions { margin-left: 0; }
  .topbar__phone { display: inline-flex; }
  .topbar__name { font-size: 18px; }

  .screen { gap: 28px; }

  /* Two-column hero: the copy earns the left, the work earns the right. */
  .hero {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: 34px; text-align: left; padding: 0; overflow: hidden;
  }
  .hero__copy { padding: 54px 12px 54px 46px; }
  .hero__crown { margin-bottom: 12px; }
  .hero__brand { font-size: 44px; line-height: 1.08; }
  .hero__tag { font-size: 18px; margin-top: 10px; }
  .hero__badges { justify-content: flex-start; margin-top: 20px; }
  .hero__ctaRow { justify-content: flex-start; margin-top: 28px; }
  /* No photo yet: one centred column, not copy beside an empty half. */
  .hero--solo { grid-template-columns: 1fr; text-align: center; }
  .hero--solo .hero__copy { padding: 58px 46px; }
  .hero--solo .hero__crown { display: flex; justify-content: center; }
  .hero--solo .hero__badges, .hero--solo .hero__ctaRow { justify-content: center; }
  .hero__art {
    display: block; align-self: stretch; min-height: 430px;
    background: var(--plum-700) center/cover no-repeat;
  }

  .serviceList { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .galleryGrid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  /* The home strip is a swipeable rail on a phone; on a wide screen a
     row of fixed 112px thumbnails just huddles at the left edge. */
  .galleryStrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible; }
  .galleryStrip__item { width: auto; height: 260px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 46px 32px 30px; }
  .footer__bar { padding-left: 32px; padding-right: 32px; }

  .h1 { font-size: 30px; }
  .eyebrow { font-size: 20px; }

  /* Forms and single-column flows shouldn't sprawl to 1120px. */
  .loginScreen, .confirmScreen { max-width: 460px; }
  .bookingScreen { max-width: 780px; }
  /* A style editor at 1120px wide stretches a 3-digit price field across the page. */
  .editServiceScreen { max-width: 680px; }
  .messageForm { max-width: 620px; }

  /* Buttons size to their label instead of splitting the full measure —
     a "Directions" button has no business being 370px wide. */
  .ctaRow .btn { flex: 0 1 auto; }
}

@media (min-width: 1180px) {
  .view { padding-left: 0; padding-right: 0; }
  .topbar__inner, .footer__inner, .footer__bar { padding-left: 0; padding-right: 0; }
}

/* ---------- mobile: tighten up narrow phones ---------- */

@media (max-width: 380px) {
  .view { padding-left: 14px; padding-right: 14px; }
  .hero { padding: 28px 16px 22px; }
  .statRow { gap: 7px; }
  .topbar__name { font-size: 15px; }
}
