/* ════════════════════════════════════════════════════════════════
   STYLES — modern editorial base + per-industry layout variants.
   Theme tokens are CSS variables set by theme.js, so business
   presets and seasonal palettes swap instantly.
   ════════════════════════════════════════════════════════════════ */

:root {
  --color-primary:  #1a1a1a;
  --color-accent:   #c9a961;
  --color-bg:       #fafaf7;
  --color-surface:  #ffffff;
  --color-text:     #1a1a1a;
  --color-muted:    #666666;
  --font-heading:   "Playfair Display", Georgia, serif;
  --font-body:      "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 12px 36px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.12);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --max-width: 1240px;
}

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "kern";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
p  { margin: 0 0 var(--space-2); color: var(--color-text); }
em { font-style: italic; color: var(--color-accent); }
.muted { color: var(--color-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hidden { display: none !important; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-surface); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent  { background: var(--color-accent); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: var(--color-surface); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  gap: var(--space-3);
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex; align-items: center; gap: .5rem;
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--color-accent); }
.nav__logo-img { height: 40px; width: auto; }
.nav__links { display: flex; gap: var(--space-3); align-items: center; }
.nav__links a {
  font-size: .9rem; color: var(--color-text); font-weight: 500;
  position: relative; padding: .25rem 0;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; gap: .5rem; align-items: center; }
.nav__hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
}
.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--color-surface); z-index: 40;
  padding: var(--space-4);
  flex-direction: column; gap: var(--space-2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.2rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta .btn:not(:last-child) { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Hero (editorial base) ──────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
  background: var(--color-bg);
  padding: var(--space-6) 0 var(--space-7);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .9;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.4) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: end;
  width: 100%;
}
.hero__content { max-width: 720px; }
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .75rem;
  color: var(--color-accent);
  font-weight: 700;
  padding: .35rem .75rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.hero h1 { margin-bottom: var(--space-3); }
.hero__sub {
  font-size: 1.2rem;
  color: var(--color-text);
  max-width: 600px;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hero__meta {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.hero__meta-row { display: flex; align-items: center; gap: .5rem; }
.hero__meta-label { font-size: 1.1rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero { min-height: 70vh; padding: var(--space-5) 0; }
}

/* ── Per-industry hero variants ────────────────────────── */
[data-industry="barbershop"] .hero {
  background: #0e0e0e;
}
[data-industry="barbershop"] .hero__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 100%);
}
[data-industry="barbershop"] .hero h1,
[data-industry="barbershop"] .hero__sub,
[data-industry="barbershop"] .hero__meta-row { color: #fff; }
[data-industry="barbershop"] .hero__eyebrow { color: var(--color-accent); border-color: var(--color-accent); }
[data-industry="barbershop"] .hero__meta {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

[data-industry="spa"] .hero,
[data-industry="massage"] .hero {
  background: var(--color-bg);
}
[data-industry="spa"] .hero__overlay,
[data-industry="massage"] .hero__overlay {
  background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.4) 100%);
}

[data-industry="nailSpa"] .hero h1,
[data-industry="makeup"]  .hero h1 { font-style: italic; }

/* ── Section base ───────────────────────────────────────── */
section { padding: var(--space-7) 0; }
.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.section-title { margin-bottom: var(--space-2); }
.section-lede  { color: var(--color-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.section-footer { text-align: center; margin-top: var(--space-4); }

/* ── About ──────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about__image { width: 100%; height: 100%; object-fit: cover; }
.about__stat-badge {
  position: absolute; right: -20px; bottom: -20px;
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 120px;
}
.about__stat-badge strong {
  display: block; font-size: 2.5rem; color: var(--color-accent);
  font-family: var(--font-heading); line-height: 1;
}
.about__stat-badge span { color: var(--color-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.about__text { padding: var(--space-3) 0; }
.about__text .section-eyebrow,
.about__text .section-title,
.about__text .section-lede { text-align: left; margin-left: 0; }
.badge {
  display: inline-block;
  background: rgba(0,0,0,.05);
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  margin: 0 .35rem .5rem 0;
  color: var(--color-text);
  font-weight: 500;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .about__image-wrap { aspect-ratio: 4/3; max-width: 500px; margin: 0 auto; }
}

/* ── Services (base — cards) ────────────────────────────── */
.services-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.svc {
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.04);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc__icon { font-size: 2.4rem; margin-bottom: var(--space-2); }
.svc__img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.svc__name { color: var(--color-primary); margin-bottom: .35rem; }
.svc__desc { color: var(--color-muted); font-size: .92rem; flex-grow: 1; line-height: 1.5; }
.svc__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: .9rem;
}
.svc__price { font-weight: 700; color: var(--color-accent); font-family: var(--font-heading); font-size: 1.1rem; }
.svc__dur   { color: var(--color-muted); }

/* ── Services variant: list (barbershop pricelist) ─────── */
[data-industry="barbershop"] .services-display {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
[data-industry="barbershop"] .svc {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border: 0;
  border-bottom: 1px dashed rgba(0,0,0,.15);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
[data-industry="barbershop"] .svc:last-child { border-bottom: 0; }
[data-industry="barbershop"] .svc:hover { transform: none; box-shadow: none; }
[data-industry="barbershop"] .svc__icon { font-size: 1.6rem; margin: 0; }
[data-industry="barbershop"] .svc__img { display: none; }
[data-industry="barbershop"] .svc__name { font-family: var(--font-heading); margin: 0; font-size: 1.15rem; }
[data-industry="barbershop"] .svc__desc { margin: .15rem 0 0; font-size: .85rem; }
[data-industry="barbershop"] .svc__meta {
  display: contents;
}
[data-industry="barbershop"] .svc__dur { white-space: nowrap; }
[data-industry="barbershop"] .svc__price {
  white-space: nowrap;
  font-size: 1.4rem;
  border-bottom: 2px dotted var(--color-accent);
  padding-bottom: 2px;
}

/* ── Services variant: editorial cards (nailSpa, makeup) ── */
[data-industry="nailSpa"] .svc,
[data-industry="makeup"] .svc {
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}
[data-industry="nailSpa"] .svc:hover,
[data-industry="makeup"] .svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Services variant: airy grid (massage, spa) ────────── */
[data-industry="massage"] .services-display,
[data-industry="spa"] .services-display { gap: var(--space-4); }
[data-industry="massage"] .svc,
[data-industry="spa"] .svc {
  border: 1px solid rgba(0,0,0,.06);
  background: var(--color-surface);
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-2);
}
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: rgba(0,0,0,.05);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:nth-child(7n+1) { aspect-ratio: 1/1.3; grid-row: span 2; }
[data-industry="barbershop"] .gallery__item { border-radius: 0; }
[data-industry="nailSpa"] .gallery__item,
[data-industry="makeup"] .gallery__item { border-radius: var(--radius-lg); }

/* ── Staff teaser cards ─────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.staff-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.staff-card__photo { aspect-ratio: 1; background: #ddd center/cover no-repeat; }
.staff-card__name { padding: var(--space-2) var(--space-2) 0; color: var(--color-primary); }
.staff-card__role { padding: 0 var(--space-2) var(--space-2); color: var(--color-muted); font-size: .9rem; }
[data-industry="barbershop"] .staff-card { border-radius: 0; }

/* ── Reviews ────────────────────────────────────────────── */
.reviews-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
}
.review-card__rating { color: var(--color-accent); font-size: 1.1rem; letter-spacing: .1em; }
.review-card__comment { font-style: italic; color: var(--color-text); margin: .5rem 0; }
.review-card__author { color: var(--color-muted); font-size: .85rem; margin-top: .75rem; }
.review-empty {
  text-align: center; color: var(--color-muted);
  padding: var(--space-5); border: 2px dashed rgba(0,0,0,.08);
  border-radius: var(--radius-md);
}
.reviews__cta { text-align: center; margin-top: var(--space-3); }

/* ── Location ──────────────────────────────────────────── */
.location {
  background: var(--color-surface);
}
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
  align-items: stretch;
}
.location__info p { margin-bottom: .5rem; }
.location__info strong { display: inline-block; width: 26px; }
.contact__hours {
  list-style: none; padding: 0; margin: 0;
}
.contact__hours li {
  display: flex; justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .92rem;
}
.contact__hours li span:first-child { font-weight: 600; }
.location__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 360px;
  background: rgba(0,0,0,.05);
  box-shadow: var(--shadow-md);
}
.location__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.location__map-placeholder {
  width: 100%; height: 100%; min-height: 360px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--color-muted); padding: var(--space-3); text-align: center;
}
@media (max-width: 900px) { .location__grid { grid-template-columns: 1fr; } }

/* ── Newsletter ─────────────────────────────────────────── */
.newsletter {
  background: var(--color-primary);
  color: var(--color-surface);
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.newsletter h2 { color: var(--color-surface); }
.newsletter p  { color: rgba(255,255,255,.75); }
.newsletter__form {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
.newsletter__form input {
  flex: 1; min-width: 200px;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1rem;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter__form input:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.newsletter__msg { width: 100%; font-size: .85rem; min-height: 1.2em; opacity: .85; }
@media (max-width: 800px) { .newsletter__inner { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0e0e0e;
  color: rgba(255,255,255,.85);
  padding: var(--space-5) 0 var(--space-3);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.site-footer__brand { font-family: var(--font-heading); font-size: 1.6rem; }
.site-footer__brand .muted { font-family: var(--font-body); font-size: .9rem; }
.site-footer__links { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__links a { font-size: .9rem; opacity: .8; }
.site-footer__links a:hover { opacity: 1; color: var(--color-accent); }
.site-footer__legal { font-size: .8rem; opacity: .7; }
.site-footer a { color: var(--color-accent); }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.social-links a {
  background: rgba(0,0,0,.05);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--color-text);
}
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ── Sticky floating CTA ────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 100;
  background: var(--color-accent);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sticky-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.sticky-cta__icon { font-size: 1.1rem; }
@media (max-width: 600px) { .sticky-cta { padding: .85rem 1.1rem; bottom: 1rem; right: 1rem; } }

/* ── Translate picker ──────────────────────────────────── */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid rgba(0,0,0,.1);
  padding: .4rem .75rem; border-radius: 999px;
  cursor: pointer; font-size: .85rem; font-weight: 500;
  color: var(--color-text);
}
.lang-btn:hover { background: rgba(0,0,0,.04); }
.lang-flag { font-size: 1rem; }
.lang-chevron { opacity: .6; }
.lang-dropdown {
  position: absolute; top: 110%; right: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  min-width: 220px;
  max-height: 0; overflow: hidden;
  transition: max-height .2s ease;
  z-index: 60;
}
.lang-dropdown.open { max-height: 360px; overflow-y: auto; }
.lang-dropdown-inner { padding: .5rem; }
.lang-option {
  display: flex; align-items: center; gap: .5rem;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--color-text);
}
.lang-option:hover { background: rgba(0,0,0,.04); }
.lang-option.active { background: rgba(0,0,0,.06); font-weight: 600; }
.lang-option .check { margin-left: auto; color: var(--color-accent); }

/* ── Auth (login pages) ────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  background: linear-gradient(135deg, var(--color-bg), var(--color-surface));
}
.auth-card {
  background: var(--color-surface);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px;
}
.auth-card h1 { text-align: center; margin-bottom: var(--space-3); font-size: 2rem; }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,169,97,.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: var(--space-2);
}
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }

/* ── Admin shell ─────────────────────────────────────── */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side h2 { color: #fff; font-size: 1.1rem; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; margin-top: var(--space-3); }
.admin-nav button {
  background: transparent; border: none; color: #fff;
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  text-align: left; cursor: pointer; font-size: .95rem;
  opacity: .8;
}
.admin-nav button:hover, .admin-nav button.active { background: rgba(255,255,255,.1); opacity: 1; }
.admin-main { padding: var(--space-4); background: var(--color-bg); }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section h2 { color: var(--color-primary); margin-bottom: var(--space-3); }
.admin-card {
  background: var(--color-surface);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}
.admin-card h3 { margin-bottom: var(--space-2); }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}

/* Admin preset / season / staff / svc rows */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
.preset-card {
  background: var(--color-surface);
  border: 2px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  text-align: center;
  transition: border .2s ease, transform .2s ease;
}
.preset-card:hover { transform: translateY(-2px); }
.preset-card.active { border-color: var(--color-accent); }
.preset-card__icon { font-size: 1.8rem; margin-bottom: .35rem; }
.preset-card__label { font-weight: 600; font-size: .9rem; }
.preset-card__swatches { display: flex; gap: 4px; justify-content: center; margin-top: .5rem; }
.preset-card__swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }

.staff-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: var(--space-2);
  align-items: center;
  padding: .75rem;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.staff-row__avatar { width: 60px; height: 60px; border-radius: 50%; background: #ddd center/cover no-repeat; }
.staff-row__actions { display: flex; gap: .35rem; }
.icon-btn {
  background: transparent; border: 1px solid rgba(0,0,0,.1);
  padding: .35rem .6rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .85rem;
}
.icon-btn:hover { background: rgba(0,0,0,.04); }
.icon-btn.danger { color: #c0392b; border-color: #f5b7b1; }
.icon-btn.active { background: var(--color-primary); color: var(--color-surface); border-color: var(--color-primary); }
.svc-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr 1fr 1fr auto;
  gap: .5rem; align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.svc-row input { padding: .5rem; font-size: .85rem; }
@media (max-width: 700px) { .svc-row { grid-template-columns: 1fr; } }

/* ── Calendar component ──────────────────────────────── */
.cal { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,.06);
  flex-wrap: wrap; gap: .5rem;
}
.cal__nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.cal__view-tabs { display: flex; gap: .25rem; }
.cal__view-tabs .icon-btn.active { background: var(--color-primary); color: var(--color-surface); border-color: var(--color-primary); }
.cal__timeline { display: grid; grid-template-columns: 60px 1fr; min-height: 540px; }
.cal__hours { border-right: 1px solid rgba(0,0,0,.06); }
.cal__hour {
  height: calc(540px / (var(--slots) / 2));
  font-size: .75rem; color: var(--color-muted);
  padding: .25rem .5rem; text-align: right;
  border-bottom: 1px dashed rgba(0,0,0,.04);
}
.cal__cols { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.cal__col { border-right: 1px solid rgba(0,0,0,.06); position: relative; }
.cal__col.is-today { background: rgba(201,169,97,.04); }
.cal__col-head {
  text-align: center; padding: .5rem; font-size: .8rem;
  border-bottom: 1px solid rgba(0,0,0,.06); position: sticky; top: 0;
  background: var(--color-surface); z-index: 1;
}
.cal__col-date { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); }
.cal__col-body { position: relative; height: 540px; }
.cal__cell {
  height: calc(540px / var(--slots));
  border-bottom: 1px dashed rgba(0,0,0,.03);
  cursor: pointer;
}
.cal__cell:hover { background: rgba(201,169,97,.08); }
.cal__event {
  position: absolute; left: 4px; right: 4px;
  border-radius: 6px; padding: 4px 6px;
  color: #fff; font-size: .75rem; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cal__event strong { font-size: .7rem; opacity: .9; }
.cal__month { padding: .75rem; }
.cal__mheader { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: .5rem; }
.cal__mhead { text-align: center; font-size: .75rem; color: var(--color-muted); font-weight: 600; }
.cal__mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__mcell {
  background: rgba(0,0,0,.02); border-radius: 6px; padding: .35rem;
  min-height: 80px; cursor: pointer;
}
.cal__mcell:hover { background: rgba(201,169,97,.1); }
.cal__mcell.dim   { opacity: .35; }
.cal__mcell.today .cal__mday { background: var(--color-accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.cal__mday { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; display: inline-block; }
.cal__mevent {
  font-size: .68rem; color: #fff; padding: 1px 4px;
  border-radius: 3px; margin-bottom: 2px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal__mmore { font-size: .65rem; color: var(--color-muted); }

/* ── Booking flow ───────────────────────────────────── */
.booking-step { display: none; }
.booking-step.active { display: block; }
.step-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(0,0,0,.05); padding: .25rem .75rem;
  border-radius: 999px; font-size: .8rem; color: var(--color-muted);
}
.step-pill.active { background: var(--color-accent); color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.choice-card {
  background: var(--color-surface); border: 2px solid transparent;
  border-radius: var(--radius-md); padding: 1.25rem; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border .2s ease;
}
.choice-card:hover { transform: translateY(-2px); }
.choice-card.selected { border-color: var(--color-accent); }
.choice-card__photo { width: 80px; height: 80px; border-radius: 50%; background: #ddd center/cover no-repeat; margin-bottom: .75rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; max-height: 300px; overflow-y: auto; }
.slot-btn {
  background: var(--color-surface); border: 1px solid rgba(0,0,0,.1);
  padding: .5rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .9rem; font-weight: 500;
}
.slot-btn:hover { border-color: var(--color-accent); }
.slot-btn.selected { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
/* Auto-apply promo: a qualifying time slot carries a small "save" tag
   (ported from HealthyServices; adapted to the CMP slot grid). */
.slot-btn.has-promo { border-color: var(--color-accent); }
.slot-tag { display: block; margin-top: 2px; font-size: .62rem; font-weight: 800; letter-spacing: .01em; color: var(--color-accent); white-space: nowrap; }
.slot-btn.selected .slot-tag { color: #fff; }
/* Per-service pre-booking instructions shown on the confirm step */
.book-instructions { margin-top: 1rem; padding: .75rem .9rem; background: var(--color-surface); border: 1px solid rgba(0,0,0,.1); border-left: 4px solid var(--color-accent); border-radius: var(--radius-sm); }
.book-instructions h4 { margin: 0 0 .25rem; font-size: .85rem; }
.book-instructions p { margin: 0; font-size: .88rem; line-height: 1.5; }

/* ── Messaging ─────────────────────────────────────── */
.chat-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 600px; gap: 1rem; }
@media (max-width: 800px) { .chat-shell { grid-template-columns: 1fr; } }
.chat-side {
  background: var(--color-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow-y: auto; max-height: 700px;
}
.chat-conv { padding: .75rem 1rem; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,.04); transition: background .15s ease; }
.chat-conv:hover { background: rgba(0,0,0,.03); }
.chat-conv.active { background: rgba(201,169,97,.1); }
.chat-conv__name { font-weight: 600; font-size: .9rem; }
.chat-conv__last { font-size: .8rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; max-height: 700px; }
.chat-head { padding: 1rem; border-bottom: 1px solid rgba(0,0,0,.06); font-weight: 600; }
.chat-feed { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.chat-bubble { max-width: 70%; padding: .55rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.4; word-wrap: break-word; }
.chat-bubble.them { background: rgba(0,0,0,.05); color: var(--color-text); align-self: flex-start; }
.chat-bubble.me   { background: var(--color-accent); color: #fff; align-self: flex-end; }
.chat-meta { font-size: .65rem; opacity: .7; margin-top: 2px; }
.chat-input { padding: .75rem; border-top: 1px solid rgba(0,0,0,.06); display: flex; gap: .5rem; }
.chat-input input { flex: 1; padding: .65rem; border: 1px solid rgba(0,0,0,.1); border-radius: var(--radius-sm); }

/* ── Analytics dashboard ───────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.kpi { background: var(--color-surface); padding: 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.kpi__label { color: var(--color-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.kpi__value { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-primary); }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: .5rem 0; }
.bar-chart__bar {
  flex: 1; background: var(--color-accent); border-radius: 4px 4px 0 0;
  min-width: 8px; position: relative; transition: opacity .15s ease;
}
.bar-chart__bar:hover { opacity: .8; }
.bar-chart__bar::after {
  content: attr(data-label);
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: .65rem; color: var(--color-muted); white-space: nowrap;
}

/* Working hours, booking row */
.wh-row { display: grid; grid-template-columns: 60px auto 1fr 1fr; gap: .5rem; align-items: center; padding: .5rem 0; }
.wh-row label { font-weight: 600; }
.booking-row {
  background: var(--color-surface); padding: 1rem;
  border-radius: var(--radius-sm); margin-bottom: .5rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
}
.booking-row__status { padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; color: #fff; font-weight: 600; }
.booking-row__status.pending   { background: #f4a261; }
.booking-row__status.approved  { background: #2a9d8f; }
.booking-row__status.completed { background: #888; }
.booking-row__status.rejected, .booking-row__status.cancelled { background: #c0392b; }

/* Staff detail page */
.staff-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-5);
  align-items: start;
}
.staff-detail__photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.staff-detail__info h1 { color: var(--color-primary); }
.staff-detail__role  { color: var(--color-accent); font-weight: 600; margin-bottom: var(--space-3); }
.staff-detail__bio   { color: var(--color-text); margin-bottom: var(--space-3); }
@media (max-width: 800px) { .staff-detail { grid-template-columns: 1fr; } }

/* ════ Mobile polish ════ */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  section { padding: var(--space-5) 0; }
  .hero { padding: var(--space-4) 0; min-height: 60vh; }
  .hero__sub { font-size: 1rem; }
  .hero__ctas .btn { flex: 1; min-width: 0; justify-content: center; }
  .booking-step .step-pill { font-size: .72rem; padding: .2rem .55rem; }
  .cal__header { flex-direction: column; align-items: stretch; }
  .cal__view-tabs { justify-content: center; }
  .cal__hour { font-size: .65rem; padding: .2rem .35rem; }
  .cal__col-head { font-size: .7rem; padding: .35rem .15rem; }
  .cal__col-date { font-size: .9rem; }
  .cal__event { font-size: .65rem; padding: 2px 4px; }
  .cal__mcell  { min-height: 56px; padding: .25rem; }
  .cal__mevent { font-size: .6rem; }
  .cal__timeline { overflow-x: auto; }
  .cal__cols { min-width: 540px; }
  .admin-side { padding: 1rem; height: auto; position: static; }
  .admin-side h2 { font-size: 1rem; margin: 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; gap: .25rem; margin-top: 1rem; }
  .admin-nav button { flex: 1 1 calc(50% - .25rem); font-size: .8rem; padding: .55rem .5rem; }
  .admin-main { padding: 1rem; }
  .admin-card { padding: 1rem; }
  .booking-row { grid-template-columns: 1fr; gap: .5rem; }
  .booking-row__status { justify-self: start; }
  .staff-row { grid-template-columns: 50px 1fr; row-gap: .5rem; }
  .staff-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row .svc-desc { grid-column: 1 / -1; }
  .svc-row .svc-del  { grid-column: 1 / -1; justify-self: end; }
  .wh-row { grid-template-columns: 60px 1fr; row-gap: .25rem; }
  .wh-row input[type="time"] { grid-column: 2; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { max-height: 220px; margin-bottom: .5rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .kpi { padding: .8rem; }
  .kpi__value { font-size: 1.5rem; }
  .auth-card { padding: 1.5rem; }
  .choice-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .choice-card { padding: .75rem; }
  .choice-card__photo { width: 56px; height: 56px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(7n+1) { grid-row: span 1; aspect-ratio: 1; }
}
@media (max-width: 380px) {
  .nav__cta { gap: .25rem; }
  .nav__cta .btn-sm { padding: .4rem .6rem; font-size: .75rem; }
  .kpi-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* ════════ Feedback round (Apr 30) ════════ */
.svc--link { text-decoration: none; cursor: pointer; }
.svc__cta {
  margin-top: var(--space-2);
  font-weight: 600; font-size: .85rem;
  color: var(--color-accent);
  text-transform: uppercase; letter-spacing: .08em;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.svc--link:hover .svc__cta { opacity: 1; transform: translateX(0); }
[data-industry="barbershop"] .svc__cta { display: none; }
[data-industry="barbershop"] .svc--link:hover { background: rgba(201,169,97,.06); }

/* Auth page close button */
.auth-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid rgba(0,0,0,.1);
  background: var(--color-surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  color: var(--color-text); text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.auth-close:hover { background: rgba(0,0,0,.04); transform: scale(1.05); }
.auth-wrap { position: relative; }

/* Booking step 4 — registration emphasis */
.signup-promo {
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3); margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap;
}
.signup-promo h3 { color: #fff; margin: 0 0 .25rem; }
.signup-promo p { color: rgba(255,255,255,.8); margin: 0; font-size: .9rem; }
.signup-promo .signup-promo__copy { flex: 1; min-width: 200px; }
.guest-toggle {
  text-align: center; margin: var(--space-3) 0;
  border-top: 1px dashed rgba(0,0,0,.1);
  padding-top: var(--space-3); color: var(--color-muted);
}
.guest-toggle a { color: var(--color-accent); cursor: pointer; text-decoration: underline; }

/* Receipt upload + thumbnail */
.receipt-upload {
  background: rgba(201,169,97,.08);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  margin-top: var(--space-2);
  font-size: .9rem;
}
.receipt-thumb {
  display: inline-block;
  width: 48px; height: 48px; border-radius: 6px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(0,0,0,.08);
  margin-right: .35rem; vertical-align: middle;
}
.receipt-thumb:hover { box-shadow: 0 0 0 2px var(--color-accent); }

/* ════════ Recurring-block day picker ════════ */
.day-picker {
  display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .25rem;
}
.day-picker label {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  cursor: pointer; font-size: .85rem; font-weight: 500;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}
.day-picker label:has(input:checked) {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.day-picker input[type="checkbox"] { accent-color: var(--color-accent); }

/* ════════ Working hours editor (override) ════════ */
.wh-row {
  display: grid;
  grid-template-columns: 110px 130px 1fr;
  gap: var(--space-2);
  align-items: center;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-sm);
  margin-bottom: .4rem;
  background: var(--color-surface);
  transition: opacity .15s ease, border-color .15s ease;
}
.wh-row:not(.is-open) { opacity: .55; }
.wh-row.is-open { border-color: var(--color-accent); }
.wh-day { font-weight: 600; font-size: .95rem; }

/* iOS-style toggle */
.wh-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer; user-select: none;
  font-size: .85rem; font-weight: 500;
}
.wh-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.wh-toggle__slider {
  position: relative;
  width: 38px; height: 22px;
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  transition: background .2s ease;
}
.wh-toggle__slider::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wh-toggle input:checked + .wh-toggle__slider {
  background: var(--color-accent);
}
.wh-toggle input:checked + .wh-toggle__slider::after {
  transform: translateX(16px);
}
.wh-toggle__label { font-size: .82rem; color: var(--color-muted); min-width: 50px; }

/* Time inputs */
.wh-times {
  display: flex; align-items: center; gap: .35rem;
  justify-self: end;
}
.wh-times input[type="time"] {
  width: 110px;
  padding: .45rem .6rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  background: var(--color-surface);
}
.wh-times input[type="time"]:disabled {
  opacity: .4; cursor: not-allowed;
  background: rgba(0,0,0,.03);
}
.wh-dash { color: var(--color-muted); font-size: .9rem; }

@media (max-width: 600px) {
  .wh-row { grid-template-columns: 1fr 1fr; row-gap: .5rem; }
  .wh-times { grid-column: 1 / -1; justify-self: start; }
}

/* ════════ Hours editor — wider time inputs (override) ════════ */
.wh-times input[type="time"] {
  width: 145px;             /* was 110px — too narrow for "HH:MM AM" */
  min-width: 0;
  padding: .5rem .55rem;
  font-variant-numeric: tabular-nums;
}
.wh-row {
  grid-template-columns: 110px 130px auto;
}
@media (max-width: 700px) {
  .wh-times input[type="time"] { width: 130px; }
}

/* ════════ My-account portal ════════ */
.acct-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.acct-tabs .icon-btn {
  padding: .6rem 1.1rem; font-size: .9rem; font-weight: 500;
}
.acct-tabs .icon-btn.active {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.acct-pane { display: none; }
.acct-pane.active { display: block; }

/* ════════ Modals (review, tip) ════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Star rating input */
.star-input {
  display: flex; gap: .25rem; font-size: 2rem; cursor: pointer; margin: 1rem 0;
  user-select: none;
}
.star-input span {
  color: rgba(0,0,0,.15); transition: color .15s ease, transform .15s ease;
}
.star-input span:hover { transform: scale(1.15); }
.star-input span.on { color: var(--color-accent); }

/* Quick tip percentage buttons */
.tip-quick {
  flex: 1; padding: .65rem; font-weight: 600;
}
.tip-quick:hover { border-color: var(--color-accent); }

/* Internal client notes (staff-side) */
.notes-block {
  margin-top: .5rem;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  grid-column: 1 / -1;
}
.notes-block summary {
  cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--color-muted);
  list-style: none;
}
.notes-block summary::-webkit-details-marker { display: none; }
.notes-block summary::before { content: "📝 "; }
.notes-block[open] summary::before { content: "📝 "; }
.notes-list { margin: .5rem 0 .25rem; }
.note-item {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: .5rem .75rem;
  margin-bottom: .35rem;
  border-radius: 4px;
  font-size: .9rem;
}
.note-item__meta { font-size: .72rem; color: var(--color-muted); margin-bottom: .15rem; }
.notes-form { display: flex; gap: .35rem; margin-top: .5rem; }
.notes-form input {
  flex: 1; padding: .45rem .65rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm); font-size: .85rem;
}

/* ===== MOBILE FIT 2026-07-25 =====
   iOS Safari zooms the entire page in whenever a focused form control has a
   font-size below 16px, and the zoomed page can then be panned sideways — which
   reads as "the site doesn't fit, it scrolls left and right". Several forms here
   sit at .85–.95rem, and the ones with no font-size at all fall back to the UA
   default of ~13.3px. 16px is the exact threshold that suppresses the zoom;
   checkboxes and radios are excluded because sizing them changes their painted
   box. Scoped to coarse pointers so desktop typography is untouched.
   !important is deliberate: the component rules that set .85–.95rem on form
   controls are class-scoped and would otherwise out-specify this, and this is a
   device-behaviour workaround rather than a styling preference. */
@media (max-width: 600px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Belt-and-braces: nothing should ever produce a sideways scroll on a phone.
   `clip` rather than `hidden` because `hidden` turns the element into a scroll
   container, which breaks position:sticky headers. */
@media (max-width: 600px) {
  html { overflow-x: clip; }
}
/* ===== END MOBILE FIT 2026-07-25 ===== */
