/* =========================================================
   Webttor Pocket — Field Pro Mobile (Template 01)
   Mobile-first. Single subdomain page. Public view.
   ========================================================= */

:root {
  /* Brand */
  --brand: #2563EB;
  --brand-soft: #EFF4FF;
  --whatsapp: #25D366;
  --whatsapp-soft: #E7FBEF;

  /* Neutrals */
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --chip-bg: #F1F5F9;

  /* Type */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Radii */
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-pill: 999px;

  /* Spacing */
  --pad: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ----- Page wrapper (mobile-first phone-width) ----- */
.page {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 24px;
  position: relative;
  overflow-x: hidden; /* prevent horizontal page scroll from edge-bleed sections */
}

/* ===================== Hero =====================
   Cover image + avatar overlapping half on cover, half on white space.
   Logo lives OUTSIDE .hero__media (which clips its image with overflow:
   hidden) and uses negative margin to bleed up over the cover. This is
   responsive-safe — no math, no absolute positioning calc. */
.hero {
  padding: 12px 8px 0;
  display: flex;
  flex-direction: column;
}
.hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #ddd;
  border-radius: var(--r-xl);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__logo {
  align-self: flex-start;
  margin: -36px 0 0 12px;     /* 50% of avatar pulls it onto the cover */
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  font-weight: 800;
  font-size: 28px;
  display: grid;
  place-items: center;
  border: 4px solid var(--bg);
  box-shadow:
    0 1px 2px rgba(15,23,42,.10),
    0 12px 28px -8px rgba(15,23,42,.25);
  position: relative;
  z-index: 5;
}

.hero__meta {
  padding: 14px var(--pad) 14px;
}
.biz-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.biz-tagline {
  margin-top: 6px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
}
.biz-area {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}

/* ===================== CTA row ===================== */
.cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding: 0 var(--pad);
}
/* Unified contact button — premium card style.
   Squircle radius (not full pill), tight border, layered shadow,
   subtle gradient surface, monochrome label, single accent icon.
   All three buttons share identical chrome — only the icon color changes. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  border-color: #CBD5E1;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 1px 2px rgba(15, 23, 42, .06),
    0 4px 10px -2px rgba(15, 23, 42, .10);
}
.btn:active {
  transform: scale(.98);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .06),
    0 1px 1px rgba(15, 23, 42, .04);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* All contact icons share the brand accent — single, consistent color. */
.btn--primary  svg,
.btn--neutral  svg,
.btn--whatsapp svg { color: var(--brand); }

/* ===================== Block heads ===================== */
.block { padding: 22px var(--pad) 0; }
.block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.block__head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

/* ===================== Service chips ===================== */
/* Service chips — share the .btn premium chrome.
   Squircle radius, white→off-white gradient, layered shadow. */
.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  width: 100%;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .08s ease;
}
.chip:hover {
  border-color: #CBD5E1;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 1px 2px rgba(15, 23, 42, .06),
    0 4px 10px -2px rgba(15, 23, 42, .10);
}
.chip:active { transform: scale(.98); }
.chip__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-2);
}

/* ===================== Before & After (horizontal drag-scroll + slider) ===================== */
.ba-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0 6px;
  margin: 0 calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
  cursor: grab;
  user-select: none;
}
.ba-scroller::-webkit-scrollbar { display: none; }
.ba-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ba-scroller.is-dragging a { pointer-events: none; }

.ba-card {
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* === Slider (drag handle compare) === */
.ba-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
  touch-action: pan-y; /* allow vertical page scroll; horizontal handled */
  user-select: none;
}
.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* Clip the "before" image via clip-path so the underlying image stays
   full-size and is revealed cleanly as the handle moves. */
.ba-slider__clip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba-slider__tag {
  position: absolute;
  top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  pointer-events: none;
  z-index: 2;
}
.ba-slider__tag--before {
  left: 10px;
  background: rgba(15, 23, 42, .85);
}
.ba-slider__tag--after {
  right: 10px;
  background: var(--brand);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, .95);
  border: none;
  padding: 0;
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18);
  touch-action: none;
}
.ba-slider__handle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ba-slider__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15,23,42,.25),
    0 6px 18px rgba(15,23,42,.20),
    inset 0 0 0 1px rgba(15,23,42,.06);
  display: grid;
  place-items: center;
}
.ba-slider__handle-grip::before,
.ba-slider__handle-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--ink);
  border-top: none;
  border-right: none;
}
.ba-slider__handle-grip::before {
  left: 9px;
  transform: translateY(-50%) rotate(45deg);
}
.ba-slider__handle-grip::after {
  right: 9px;
  transform: translateY(-50%) rotate(-135deg);
}

.ba-card__label {
  margin: 8px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ===================== Portfolio thumbs ===================== */
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumbs li a {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ddd;
  transition: transform .12s ease;
}
.thumbs li a:active { transform: scale(.97); }
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== Powered by footer ===================== */
/* Public-facing. Quiet text-only attribution, centered. No metrics. */
.powered {
  margin: 32px var(--pad) 0;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.powered__brand {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.powered__brand:hover {
  color: var(--ink-2);
}

/* ===================== Free-tier degradation hooks =====================
   Server toggles `data-degraded="true"` on <body> when monthly view limit
   exceeded. Images low-res grayscale, brand badge enlarged. Page stays
   live (suave degradation) until Pocket+ upgrade.
*/
body[data-degraded="true"] img {
  filter: grayscale(1) blur(.4px);
  image-rendering: pixelated;
}
body[data-degraded="true"] .powered {
  padding: 18px;
  font-size: 15px;
}
body[data-degraded="true"] .powered__quota::before {
  content: "Limit reached • ";
  color: #FCA5A5;
}

/* =========================================================
   POCKET+ PUBLIC PAGE — additional components
   (topbar, rich hero, reviews, service tags scroller, area map,
    review snippets, sticky bottom CTA)
   ========================================================= */

/* ----- Sticky topbar ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease;
}
.topbar__btn:hover { background: var(--chip-bg); }
.topbar__btn svg { width: 20px; height: 20px; }
.topbar__title {
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__actions {
  display: inline-flex;
  gap: 2px;
}

/* ----- Rich hero meta (Pocket+ adds verified + reviews badge) ----- */
.hero__meta--rich { padding-top: 14px; }
.biz-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.biz-verified {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand);
  display: inline-grid;
  place-items: center;
}
.biz-verified svg { width: 100%; height: 100%; }

/* Inline review summary, no chrome.
   Sits between the business name and the "Licensed • Insured • Local"
   tagline. Designed to read as a confident single line, not a chip. */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 6px 0 10px;
  padding: 0;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--ink-2);
}
.reviews-badge__stars {
  display: inline-flex;
  gap: 2px;
  color: #F5A524; /* amber, slightly deeper for confidence */
}
.reviews-badge__stars svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 0 rgba(245, 165, 36, .15));
}
.reviews-badge__score {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-left: 2px;
}
.reviews-badge__count {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-3);
  text-decoration-thickness: 1px;
}
.reviews-badge:hover .reviews-badge__count {
  text-decoration-color: var(--ink-2);
}

/* ----- Service tags (horizontal scroll, Pocket+ unlimited services) ----- */
.tag-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 4px var(--pad) 8px;
  cursor: grab;
  scroll-snap-type: x proximity;
}
.tag-scroller::-webkit-scrollbar { display: none; }
.tag-scroller.is-dragging { cursor: grabbing; }
.tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .12s ease;
}
.tag:hover { background: #E2E8F0; }
.tag--alt {
  background: var(--brand-soft);
  border-color: rgba(37, 99, 235, .2);
  color: var(--brand);
}
.tag--alt:hover { background: #E0EAFF; }

.block--service-tags { padding: 16px 0 0; }

/* ----- Service area card ----- */
.area-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.area-card__map {
  aspect-ratio: 16 / 9;
  background: #f4f7fb;
}
.area-card__map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.area-card__info {
  padding: 12px 14px 14px;
}
.area-card__title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.area-card__radius {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ----- Reviews carousel (drag-scroll) ----- */
.review-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 2px var(--pad) 6px;
  cursor: grab;
}
.review-scroller::-webkit-scrollbar { display: none; }
.review-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.review {
  flex: 0 0 80%;
  max-width: 320px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.review__name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.review__meta {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.review__stars {
  display: inline-flex;
  gap: 1px;
  color: #FBBF24;
}
.review__stars svg { width: 13px; height: 13px; }
.review__body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ----- Pocket+ inline Book Estimate CTA (between hero CTAs and Services) ----- */
.block--book {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;          /* breathing room between CTA and trust line */
}
.cta-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 14px;        /* match .btn squircle */
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  border: 1px solid #1F49B8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -1px 0 rgba(15, 23, 42, .12),
    0 1px 1px rgba(15, 23, 42, .08),
    0 10px 22px -8px rgba(37, 99, 235, .55);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.cta-book:hover {
  background: linear-gradient(180deg, #3B7AF7 0%, #2659E0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    inset 0 -1px 0 rgba(15, 23, 42, .12),
    0 1px 2px rgba(15, 23, 42, .10),
    0 14px 28px -8px rgba(37, 99, 235, .65);
}
.cta-book:active {
  transform: scale(.99);
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, .15),
    0 1px 1px rgba(15, 23, 42, .08);
}
.cta-book svg { width: 18px; height: 18px; }

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.trust-line svg { width: 12px; height: 12px; }

/* =========================================================
   DASHBOARD SURFACE — Field Pro
   App-like internal surface. Distinct chrome from public page:
   sticky topbar + grouped cards on a soft canvas + bottom tab bar.
   Reuses .btn premium recipe for actions inside cards.
   ========================================================= */

.page--dashboard {
  background: var(--surface);
  padding-bottom: 0;
  overflow-x: hidden;
}

/* ----- App topbar ----- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px var(--pad) 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.appbar__actions { display: inline-flex; gap: 4px; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease;
}
.icon-btn:hover { background: var(--chip-bg); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid #fff;
}

/* ----- Dashboard body (cards stack) ----- */
.dash {
  padding: 16px var(--pad) 96px; /* bottom = clear tabbar */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ----- Card (premium chrome inherited from system) ----- */
.card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}
.card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card__subtitle {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.card__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  text-align: right;
}
.card__metric strong {
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card__edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.card__edit svg { width: 14px; height: 14px; }

.card__body { padding: 6px 16px 16px; }
.card__body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 18px;
}

/* ----- Profile row (card body) ----- */
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-row__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(37, 99, 235, .15);
}
.profile-row__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.profile-row__meta {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Generic key/value row inside cards */
.kv-row {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.kv-row__key {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.kv-row__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}
.kv-row__link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-3);
  text-decoration-thickness: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status pill (small) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.status-pill--active {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .12);
}

/* ----- QR card body ----- */
.qr {
  width: 168px;
  height: 168px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .10);
}
.qr svg { width: 100%; height: 100%; display: block; }

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.qr-actions .btn { height: 44px; font-size: 13.5px; }

/* ----- Progress bar ----- */
.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #EEF2F7;
  overflow: hidden;
  margin-top: 4px;
}
.progress__fill {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--brand) 0%, #4A87F7 100%);
  border-radius: 999px;
  transition: width .4s ease;
}
.progress--warn .progress__fill {
  background: linear-gradient(90deg, #F59E0B 0%, #EF4444 100%);
}
.progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.progress-foot__meta {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ----- Lead list ----- */
.lead-list {
  margin: 0;
  padding: 0 4px 6px;
}
.lead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .12s ease;
}
.lead + .lead { margin-top: 2px; }
.lead:hover { background: var(--chip-bg); }
.lead__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lead__text { flex: 1; min-width: 0; }
.lead__name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead__source {
  margin-top: 1px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.lead__date {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  flex-shrink: 0;
}

/* ----- Bottom tab bar ----- */
.tabbar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  border-radius: 12px;
  transition: color .12s ease, background .12s ease;
}
.tab svg {
  width: 22px;
  height: 22px;
  color: currentColor;
}
.tab:hover { color: var(--ink-2); }
.tab.is-active {
  color: var(--brand);
}

/* =========================================================
   ONBOARDING SURFACE — Field Pro
   Form-driven multi-step shell. Soft surface, sticky topbar
   with step counter, sticky bottom CTA, premium form fields.
   ========================================================= */

.page--onboarding {
  background: var(--surface);
  padding-bottom: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ----- Onboarding topbar ----- */
.onb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.onb-topbar__step {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.onb-topbar__step strong {
  color: var(--ink);
  font-weight: 800;
}
.onb-topbar__spacer { width: 40px; height: 1px; }

/* 3-segment progress */
.step-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px var(--pad) 14px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
}
.step-progress__seg {
  height: 4px;
  border-radius: 999px;
  background: #E2E8F0;
  position: relative;
  overflow: hidden;
}
.step-progress__seg.is-active {
  background: linear-gradient(90deg, var(--brand) 0%, #4A87F7 100%);
}
.step-progress__seg.is-done {
  background: var(--brand);
}

/* ----- Onboarding body ----- */
.onb {
  flex: 1;
  padding: 22px var(--pad) 110px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.onb__head {
  margin-bottom: 4px;
}
.onb__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.onb__subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ----- Form field group ----- */
.field { display: flex; flex-direction: column; }
.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field__optional {
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 2px;
}
.field__hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 10px;
}
.field__label + .input-split,
.field__label + .select,
.field__label + .multi-chips,
.field__label + input { margin-top: 10px; }

/* ----- Input (premium chrome) ----- */
.input-split,
.select {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-split:focus-within,
.select:focus-within {
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 4px rgba(37, 99, 235, .12),
    0 2px 6px -2px rgba(15, 23, 42, .08);
}

.input-split {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 4px 0 14px;
  overflow: hidden;
}
.input-split input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.input-split__suffix {
  flex-shrink: 0;
  margin: 0 12px 0 4px;
  padding: 6px 10px;
  background: var(--chip-bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Select */
.select {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.select__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

/* Preview line */
.preview-line {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.preview-line svg {
  width: 16px;
  height: 16px;
  color: #16A34A;
  flex-shrink: 0;
}
.preview-line strong { color: var(--ink); font-weight: 700; }

/* ----- Multi-select chips (with remove / add icon) ----- */
.multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.multi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.multi-chip svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.multi-chip:hover {
  border-color: #CBD5E1;
  color: var(--ink);
}
.multi-chip.is-selected {
  background: linear-gradient(180deg, #EFF4FF 0%, #E5EDFE 100%);
  border-color: rgba(37, 99, 235, .35);
  color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(37, 99, 235, .08),
    0 2px 6px -2px rgba(37, 99, 235, .15);
}
.multi-chip.is-selected svg { color: var(--brand); }

/* ----- Banner ----- */
.banner {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F0F7FF 0%, #E5EFFE 100%);
  border: 1px solid rgba(37, 99, 235, .25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 2px rgba(37, 99, 235, .06),
    0 4px 14px -6px rgba(37, 99, 235, .15);
}
.banner__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .45);
}
.banner__icon svg { width: 18px; height: 18px; }
.banner__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.banner__body {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ----- Sticky bottom continue CTA ----- */
.onb-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #fff 60%, rgba(255, 255, 255, 0));
  z-index: 15;
}
.onb-footer .cta-book {
  width: 100%;
}

/* =========================================================
   EDITOR PATTERNS — Field Pro
   Reusable across Services, Portfolio, Schedule, Quiz editors.
   Adds: detail topbar, segmented tabs, reorder list rows with
   drag handle + toggle switch, add-row CTA.
   ========================================================= */

/* Detail topbar variant — back arrow + center title + right action */
.appbar--detail {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
}
.appbar--detail .appbar__title {
  text-align: center;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* Segmented tabs (Active / Inactive) */
.seg {
  position: sticky;
  top: 64px;            /* sit just below appbar */
  z-index: 19;
  display: inline-flex;
  gap: 4px;
  margin: 14px var(--pad) 0;
  padding: 4px;
  background: #EEF2F7;
  border-radius: 12px;
}
.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .08);
}
.seg__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.seg__btn.is-active .seg__count {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Card variant for list-only content (no padding) */
.card--list { overflow: hidden; }
.card--list .row-list { padding: 6px; }

/* Reorderable row list (Services, Portfolio, etc.) */
.row-list { margin: 0; padding: 0; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 8px;
  border-radius: 12px;
  transition: background .12s ease;
}
.row + .row { margin-top: 2px; }
.row:hover { background: var(--chip-bg); }

.row__drag {
  width: 24px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}
.row__drag:active { cursor: grabbing; }
.row__drag svg { width: 14px; height: 14px; }

.row__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
}
.row__icon svg { width: 20px; height: 20px; }

.row__text { flex: 1; min-width: 0; }
.row__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row--inactive .row__icon {
  background: var(--chip-bg);
  color: var(--ink-3);
  border-color: var(--line);
}
.row--inactive .row__title {
  color: var(--ink-2);
}

/* iOS-style toggle switch */
.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch__track {
  display: block;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #CBD5E1;
  position: relative;
  transition: background .2s ease;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .12);
}
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .10),
    0 2px 4px rgba(15, 23, 42, .15);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.switch input:checked + .switch__track {
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .15),
    0 0 0 1px rgba(37, 99, 235, .15);
}
.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(18px);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Add-row CTA (full-width dashed-style button to add new item) */
.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1.5px dashed #CBD5E1;
  color: var(--brand);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.add-row:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.add-row:active { transform: scale(.99); }
.add-row__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .35);
}
.add-row__icon svg { width: 16px; height: 16px; }

/* =========================================================
   FORM EDITOR — Service / Portfolio / etc. detail screens
   ========================================================= */

/* Text-only action button in topbar (Save / Cancel / Done) */
.text-btn {
  background: transparent;
  border: none;
  padding: 8px 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  letter-spacing: -0.005em;
  border-radius: 8px;
  transition: background .12s ease;
}
.text-btn:hover { background: var(--chip-bg); }

/* Required / optional flag */
.field__required {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Stack body inside cards (form sections) */
.card__body--stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Two-column field row (Price + Duration) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Plain input variant (no suffix) — same chrome */
.input-plain { padding: 0 14px; }
.input-plain input { font-size: 15px; padding: 0; }

/* Currency / unit prefix inside .input-split */
.input-split__prefix {
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
}

/* Textarea — same chrome as input */
.textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea::placeholder { color: var(--ink-3); }
.textarea:focus {
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 4px rgba(37, 99, 235, .12),
    0 2px 6px -2px rgba(15, 23, 42, .08);
}

/* Inline segmented control (smaller — used inside forms) */
.seg--inline {
  margin: 0;
  position: static;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  padding: 4px;
}
.seg--inline .seg__btn {
  justify-content: center;
  padding: 7px 0;
  font-size: 12.5px;
}

/* Cover image upload placeholder */
.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 16px;
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F9 100%);
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.upload__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(15, 23, 42, .06);
}
.upload__icon svg { width: 22px; height: 22px; }
.upload__text { display: flex; flex-direction: column; gap: 2px; }
.upload__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.upload__hint {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Icon picker (preset SVG icons grid) */
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}
.icon-pick {
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  color: var(--ink-2);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
  transition: all .15s ease;
}
.icon-pick:hover {
  border-color: #CBD5E1;
  color: var(--ink);
}
.icon-pick svg { width: 22px; height: 22px; }
.icon-pick.is-active {
  background: linear-gradient(180deg, #EFF4FF 0%, #E5EDFE 100%);
  border-color: rgba(37, 99, 235, .35);
  color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(37, 99, 235, .12);
}
.icon-pick--add {
  background: var(--bg);
  color: var(--ink-3);
  border-style: dashed;
}
.icon-pick--add:hover {
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
  color: var(--brand);
  border-color: var(--brand);
}

/* Multi-chip "add" variant (dashed + plus icon first) */
.multi-chip--add {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
  box-shadow: none;
}
.multi-chip--add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(37, 99, 235, .04);
}
.multi-chip--add svg { color: currentColor; }

/* Card head with toggle (label/description on left, switch on right) */
.card__head--toggle { align-items: center; padding-bottom: 16px; }

/* Collapsible card body */
.collapse {
  display: none;
}
.collapse.is-open {
  display: flex;
  animation: collapse-in .18s ease;
}
@keyframes collapse-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Helper hint row inside a card */
.hint-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.45;
}
.hint-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-3);
}
.hint-row strong { color: var(--ink); font-weight: 700; }

/* Standalone hint outside cards */
.hint-row--standalone {
  display: flex;
  width: 100%;
}
/* When hint contains a wrapping span (icon + paragraph), let text grow */
.hint-row > span {
  flex: 1;
  min-width: 0;
}

/* =========================================================
   PORTFOLIO LIST — extends .row with media thumbnail
   ========================================================= */

/* Compact icon-button variant for row trailing actions */
.icon-btn--sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--ink-3);
}
.icon-btn--sm:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.icon-btn--sm svg { width: 18px; height: 18px; }

/* Row variant with media thumbnail (Portfolio, Bookings) */
.row--media { padding: 8px 8px 8px 4px; }
.row__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chip-bg);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .08),
    inset 0 0 0 1px rgba(15, 23, 42, .06);
}
.row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.row__thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 5px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 5px;
  pointer-events: none;
}

/* Inline meta tags inside row (small pills) */
.row__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.row__tag {
  display: inline-flex;
  padding: 2px 7px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.row__tag--draft {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}
.row__date {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Draft row state — slightly muted */
.row--draft .row__thumb img { opacity: .65; }
.row--draft .row__title { color: var(--ink-2); }

/* =========================================================
   PROJECT EDITOR — photo grid + before/after pair
   ========================================================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.photo-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .04),
    inset 0 0 0 1px rgba(15, 23, 42, .04);
  cursor: grab;
}
.photo-cell:active { cursor: grabbing; }
.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.photo-cell--cover {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.photo-cell__badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  pointer-events: none;
}
.photo-cell__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .80);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}
.photo-cell:hover .photo-cell__remove,
.photo-cell:focus-within .photo-cell__remove {
  opacity: 1;
}
.photo-cell__remove svg { width: 12px; height: 12px; }

.photo-cell--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F9 100%);
  border: 1.5px dashed #CBD5E1;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  box-shadow: none;
  transition: all .15s ease;
}
.photo-cell--add:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.photo-cell--add svg {
  width: 22px;
  height: 22px;
}

/* Before / After paired slot picker */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  gap: 8px;
}
.ba-slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ba-slot__label {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.ba-slot__label--brand { background: var(--brand); }

.ba-slot__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F9 100%);
  border: 1.5px dashed #CBD5E1;
  color: var(--brand);
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
  display: grid;
  place-items: center;
}
.ba-slot__media:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.ba-slot__media.has-image {
  border-style: solid;
  border-color: var(--line);
}
.ba-slot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-slot__overlay {
  position: absolute;
  inset: auto 6px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, .80);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .15s ease;
}
.ba-slot__media:hover .ba-slot__overlay,
.ba-slot__media:focus-visible .ba-slot__overlay {
  opacity: 1;
}
.ba-slot__overlay svg { width: 13px; height: 13px; }

.ba-pair__swap {
  width: 32px;
  height: 32px;
  align-self: center;
  margin-top: 22px; /* visually align with media row, accounting for label */
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .08);
  transition: all .12s ease;
}
.ba-pair__swap:hover {
  color: var(--brand);
  border-color: rgba(37, 99, 235, .35);
}
.ba-pair__swap svg { width: 16px; height: 16px; }

/* Multi-pair list (Project Editor) */
.ba-pair-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.ba-pair-item {
  position: relative;
}
.ba-pair-item__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 10px -2px rgba(15, 23, 42, .12);
  transition: all .12s ease;
}
.ba-pair-item__remove:hover {
  color: #B91C1C;
  border-color: #FCA5A5;
}
.ba-pair-item__remove svg { width: 13px; height: 13px; }

/* Empty slot placeholder (plus icon centered) */
.ba-slot__placeholder {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
}
.ba-slot__placeholder svg { width: 20px; height: 20px; }

/* Add-another-pair button */
.add-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1.5px dashed #CBD5E1;
  color: var(--brand);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  position: relative;
  transition: all .15s ease;
}
.add-pair:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.add-pair:active { transform: scale(.99); }
.add-pair__icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .35);
}
.add-pair__icon svg { width: 14px; height: 14px; }

/* Disabled (gated) state */
.add-pair.is-disabled,
.add-pair[disabled] {
  cursor: not-allowed;
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: var(--ink-3);
  opacity: 1;
}
.add-pair.is-disabled .add-pair__icon,
.add-pair[disabled] .add-pair__icon {
  background: var(--ink-3);
  box-shadow: none;
  opacity: .8;
}
.add-pair.is-disabled:hover,
.add-pair[disabled]:hover {
  border-color: #E2E8F0;
  background: #F8FAFC;
}

.add-pair__hint {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 3px 8px;
  background: #FEF3C7;
  color: #B45309;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}
.add-pair__hint[hidden] { display: none; }

/* =========================================================
   SCHEDULE — weekly availability + integrations + week strip
   ========================================================= */

/* Row icon variant: green accent (Free Estimate, success states) */
.row__icon--green {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* Day-of-week toggle row */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.weekday {
  display: grid;
  place-items: center;
  height: 44px;
  width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
  transition: all .12s ease;
}
.weekday:hover { border-color: #CBD5E1; color: var(--ink-2); }
.weekday.is-on {
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  border-color: #1F49B8;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 1px 2px rgba(37, 99, 235, .25),
    0 6px 14px -6px rgba(37, 99, 235, .45);
}

/* Time range picker (start to end) */
.time-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.time-range__sep {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Connected service card row (Google Calendar etc.) */
.connected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
}
.connected__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.connected__logo svg { width: 100%; height: 100%; display: block; }
.connected__text { flex: 1; min-width: 0; }
.connected__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex-wrap: wrap;
}
.connected__meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connect-another row (CTA-style with arrow) */
.connect-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #FAFBFC 0%, #F4F6F9 100%);
  border: 1.5px dashed #CBD5E1;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.connect-row:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #F8FBFF 0%, #EFF4FF 100%);
}
.connect-row__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.connect-row__logo svg { width: 100%; height: 100%; display: block; }
.connect-row__text {
  flex: 1;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.connect-row__arrow {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* Week strip (compact 7-day overview with booking counts) */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
}
.week-day__name {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.week-day__num {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.week-day__count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}
.week-day.is-today {
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  border-color: #1F49B8;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .45);
}
.week-day.is-today .week-day__name,
.week-day.is-today .week-day__num { color: #fff; }
.week-day.is-today .week-day__count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}
.week-day.is-off {
  background: var(--surface);
  border-style: dashed;
}
.week-day.is-off .week-day__num { color: var(--ink-3); }

/* Mini booking list (today/week preview) */
.booking-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking-mini__row {
  display: grid;
  grid-template-columns: 64px 4px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 0;
  border-radius: 10px;
  transition: background .12s ease;
}
.booking-mini__row:hover { background: var(--chip-bg); }
.booking-mini__time {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: right;
}
.booking-mini__bar {
  width: 4px;
  height: 32px;
  border-radius: 999px;
  background: var(--c, var(--brand));
}
.booking-mini__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.booking-mini__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Booking format selector rows (visual preview + label + switch) */
.format-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.format-row__visual {
  width: 56px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  gap: 3px;
  padding: 4px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.format-row__visual span {
  background: var(--brand-soft);
  border-radius: 3px;
  border: 1px solid rgba(37, 99, 235, .25);
}
.format-row__visual--specific {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.format-row__visual--window {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.format-row__text { flex: 1; min-width: 0; }
.format-row__title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.format-row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* =========================================================
   BOOKING FLOW (visitor) — calendar + slots + form + confirm
   ========================================================= */

.page--booking {
  background: var(--surface);
  min-height: 100vh;
  padding-bottom: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Visitor topbar (mini biz header during booking) */
.visitbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.visitbar__biz {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.visitbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, .15);
}
.visitbar__name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.visitbar__sub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Step panel */
.step {
  flex: 1;
  padding: 22px var(--pad) 110px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step--center {
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 36px;
}
.step__head { display: flex; flex-direction: column; gap: 4px; }
.step__counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.step__subtitle {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* Step CTA row (Back + Next) */
.step-cta-row {
  display: flex;
  gap: 10px;
}
.step-cta-back {
  flex: 0 0 auto;
  width: 100px;
}
.step-cta-next {
  flex: 1;
}

/* ----- Calendar grid ----- */
.cal {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .08);
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal__month {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.cal__weekdays li {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cal-day {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .12s ease;
}
.cal-day:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.cal-day.is-out {
  color: var(--line);
  pointer-events: none;
}
.cal-day.is-disabled {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  pointer-events: none;
  opacity: .55;
}
.cal-day.is-off {
  color: var(--ink-3);
  pointer-events: none;
}
.cal-day.is-today {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 800;
}
.cal-day.is-selected {
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  color: #fff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 1px 2px rgba(37, 99, 235, .25),
    0 6px 14px -6px rgba(37, 99, 235, .45);
}

/* ----- Time slots ----- */
.slots {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .08);
}
.slots__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.slots__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.slots__tz {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 6px;
  row-gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slots__grid > li { display: block; }
.slots__grid > li > .slot { width: 100%; }
.slots__grid[hidden] { display: none; }
.slot {
  height: 44px;
  padding: 0 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: all .12s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04);
}
.slot:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.slot.is-busy {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  pointer-events: none;
  opacity: .55;
}
.slot.is-selected {
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  border-color: #1F49B8;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 6px 14px -6px rgba(37, 99, 235, .45);
}

/* ----- Form stack (Step 2) ----- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ----- Confirmation (Step 3) ----- */
.success-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 18px rgba(4, 120, 87, .25));
}
.success-mark svg { width: 100%; height: 100%; display: block; }
.success-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.success-meta {
  font-size: 14px;
  color: var(--ink-2);
}

.confirm-card {
  width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 8px 22px -8px rgba(15, 23, 42, .12);
  margin-top: 8px;
  overflow: hidden;
}
.confirm-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.confirm-card__brand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  border: 1px solid rgba(37, 99, 235, .15);
}
.confirm-card__name {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.confirm-card__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.confirm-card__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}
.confirm-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.confirm-card__list li strong {
  font-weight: 800;
  letter-spacing: -0.005em;
}
.confirm-card__list li + li { border-top: 1px solid var(--line); }
.confirm-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--chip-bg);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.confirm-card__icon svg { width: 16px; height: 16px; }
.confirm-card__muted { color: var(--ink-3); font-weight: 500; }

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.success-foot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  max-width: 320px;
  line-height: 1.5;
}

/* =========================================================
   CONVERSATIONAL BOOKING — q-step variant
   ========================================================= */

.qstep {
  flex: 1;
  padding: 26px var(--pad) 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qstep--center {
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 36px;
}
.qstep__greet {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.qstep__greet strong {
  color: var(--brand);
  font-weight: 800;
}
.qstep__q {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
}
.qstep__hint {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: -4px;
}
.qstep__hint strong { color: var(--ink); font-weight: 700; }

/* Big single-line input (conversational steps) */
.qstep__input {
  margin-top: 4px;
}
.q-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.q-input::placeholder { color: var(--ink-3); font-weight: 600; }
.q-input:focus {
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 4px rgba(37, 99, 235, .12),
    0 2px 6px -2px rgba(15, 23, 42, .08);
}

/* Service selection cards (Step 3) */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
}
.service-card:hover {
  border-color: #CBD5E1;
}
.service-card.is-selected {
  background: linear-gradient(180deg, #EFF4FF 0%, #E5EDFE 100%);
  border-color: rgba(37, 99, 235, .4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(37, 99, 235, .12),
    0 6px 16px -6px rgba(37, 99, 235, .25);
}
.service-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .15);
}
.service-card__icon svg { width: 20px; height: 20px; }
.service-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.service-card__name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-card__meta {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* Inline calendar variant (no card chrome — cleaner inside conversational flow) */
.cal--inline {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Inline 2-button toggle, centered. Used for time-mode (Pick a time / Pick a window) */
.seg--center {
  position: static;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: auto;
  margin: 0 auto;
  padding: 4px;
}
.seg--center .seg__btn { justify-content: center; padding: 8px 18px; font-size: 12.5px; }

/* Specific time slots: 3 columns. */
.slots__grid--specific { grid-template-columns: repeat(3, 1fr); }

/* Window slots: 2 columns. */
.slots__grid--window { grid-template-columns: repeat(2, 1fr); }

/* Review list (Step 5) */
.review-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
}
.review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .12s ease;
}
.review-item + .review-item { border-top: 1px solid var(--line); }
.review-item:hover { background: var(--chip-bg); }
.review-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
}
.review-item__icon svg { width: 16px; height: 16px; }
.review-item__text { flex: 1; min-width: 0; }
.review-item__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.review-item__value {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-item__edit {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

/* =========================================================
   ONBOARDING — template picker + plan picker (steps 2 & 3)
   ========================================================= */

.tpl-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
}
.tpl-card:hover { border-color: #CBD5E1; }
.tpl-card.is-selected {
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 3px rgba(37, 99, 235, .15),
    0 4px 14px -6px rgba(37, 99, 235, .35);
}
.tpl-card__preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.tpl-card__hero {
  width: 100%;
  height: 50%;
  border-radius: 6px;
  background: rgba(15, 23, 42, .15);
}
.tpl-card__row {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
}
.tpl-card__row--short { width: 55%; }

/* Per-template palette */
.tpl-card__preview--fieldpro { background: linear-gradient(180deg, #EFF4FF 0%, #FFFFFF 100%); }
.tpl-card__preview--fieldpro .tpl-card__hero { background: #2563EB; }
.tpl-card__preview--fieldpro .tpl-card__row { background: rgba(37, 99, 235, .25); }

.tpl-card__preview--craftsman { background: #F5F1E8; }
.tpl-card__preview--craftsman .tpl-card__hero { background: #1A5F3A; }
.tpl-card__preview--craftsman .tpl-card__row { background: rgba(26, 95, 58, .30); }

.tpl-card__preview--signal { background: #0F172A; }
.tpl-card__preview--signal .tpl-card__hero { background: #FFD60A; }
.tpl-card__preview--signal .tpl-card__row { background: rgba(255, 214, 10, .55); }

.tpl-card__preview--miami { background: linear-gradient(180deg, #E0F7F4 0%, #FFF1ED 100%); }
.tpl-card__preview--miami .tpl-card__hero { background: #2DA89E; }
.tpl-card__preview--miami .tpl-card__row { background: #F26B5E; }

.tpl-card__meta { padding: 2px 4px 4px; }
.tpl-card__name {
  display: block;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tpl-card__tag {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}

/* Plan cards (Step 3) */
.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
}
.plan-card.is-selected {
  background: linear-gradient(180deg, #EFF4FF 0%, #E5EDFE 100%);
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 3px rgba(37, 99, 235, .15),
    0 4px 14px -6px rgba(37, 99, 235, .35);
}
.plan-card__ribbon {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 4px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .45);
}
.plan-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.plan-card__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.plan-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.plan-card__price strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-card__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-card__feats li {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  padding-left: 16px;
  position: relative;
}
.plan-card__feats li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--brand);
  border-bottom: 1.6px solid var(--brand);
  transform: rotate(-45deg);
}
.plan-card__feats li strong { color: var(--ink); font-weight: 700; }

/* Card input (Stripe placeholder) */
.card-input {
  display: grid;
  grid-template-columns: 24px 1fr 80px 56px;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card-input:focus-within {
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 4px rgba(37, 99, 235, .12);
}
.card-input__brand { color: var(--ink-3); display: grid; place-items: center; }
.card-input__brand svg { width: 20px; height: 20px; }
.card-input input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.card-input input::placeholder { color: var(--ink-3); font-weight: 500; }
.card-input__exp { text-align: center; }
.card-input__cvc { text-align: center; }

/* =========================================================
   UPGRADE — feature compare + plan summary
   ========================================================= */

.upgrade-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 14px;
}
.upgrade-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2F6FF1 0%, #2253D8 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .55);
}
.upgrade-hero__icon svg { width: 28px; height: 28px; }
.upgrade-hero__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.upgrade-hero__sub {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 600;
  max-width: 320px;
  line-height: 1.45;
}

.compare {
  list-style: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 2px 6px -2px rgba(15, 23, 42, .06);
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr 64px 88px;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 12.5px;
}
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__label {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.compare__free, .compare__pro {
  text-align: right;
  font-weight: 700;
  color: var(--ink-3);
}
.compare__pro {
  color: var(--ink);
}
.compare__pro.is-yes {
  color: var(--brand);
}

.plan-summary { margin-top: 8px; }

/* =========================================================
   FREE-TIER DEGRADED — limit banner
   ========================================================= */

.limit-banner {
  margin: 12px 8px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FBBF24;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 1px 1px rgba(180, 83, 9, .12),
    0 4px 12px -4px rgba(180, 83, 9, .25);
}
.limit-banner__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #FCD34D;
  color: #92400E;
  display: grid;
  place-items: center;
}
.limit-banner__icon svg { width: 20px; height: 20px; }
.limit-banner__text { flex: 1; min-width: 0; }
.limit-banner__title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #78350F;
}
.limit-banner__body {
  margin-top: 2px;
  font-size: 11.5px;
  color: #92400E;
  font-weight: 600;
  line-height: 1.4;
}
.limit-banner__body strong { color: #78350F; font-weight: 800; }
.limit-banner__cta {
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -0.005em;
}

/* =========================================================
   REVIEWS PAGE
   ========================================================= */
.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .08);
}
.reviews-summary__score {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.reviews-summary .reviews-badge__stars svg { width: 22px; height: 22px; }
.reviews-summary__count {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.reviews-breakdown {
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reviews-breakdown li {
  display: grid;
  grid-template-columns: 16px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.reviews-breakdown .bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #EEF2F7;
  overflow: hidden;
}
.reviews-breakdown .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #F5A524 0%, #FBBF24 100%);
}

.review-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.review--full {
  flex: 0 0 auto;
  max-width: none;
  width: 100%;
}

/* Destructive row (Delete project / Disconnect / etc.) */
.danger-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.danger-row:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}
.danger-row svg { width: 16px; height: 16px; }

/* =========================================================
   BEFORE & AFTER LIST — interactive slider cards
   ========================================================= */

/* Variant of hint-row using brand accent (sparkle, count, etc.) */
.hint-row--brand {
  background: linear-gradient(180deg, #F0F7FF 0%, #E5EFFE 100%);
  border-color: rgba(37, 99, 235, .25);
  color: var(--ink);
}
.hint-row--brand svg { color: var(--brand); }

.ba-item {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(15, 23, 42, .04),
    0 4px 14px -6px rgba(15, 23, 42, .08);
}
.ba-item__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--chip-bg);
}
.ba-item__media .ba-slider {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.ba-item__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-top: 1px solid var(--line);
}
.ba-item__text { flex: 1; min-width: 0; }
.ba-item__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ba-item__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}


@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }
  .page {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .25),
                0 18px 36px -18px rgba(15, 23, 42, .18);
    min-height: auto;
    padding-bottom: 28px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
