/* Numoo UI system — RTL-first, no-build, progressive-enhancement friendly. */

/* ── Foundations ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

:root {
  color-scheme: light;
  --ink: #25182b;
  --ink-soft: #413648;
  --muted: #706775;
  --muted-light: #968d9b;
  --brand: #4a1d5a;
  --brand-deep: #32113f;
  --brand-bright: #7a4b95;
  --accent: #764c92;
  --accent-strong: #603579;
  --accent-soft: #f0e9f4;
  --lilac: #f3edf6;
  --champagne: #c6a783;
  --champagne-soft: #f5eadc;
  --brand-ink: #fffdfb;
  --bg: #faf7f2;
  --bg-elevated: #fefcf9;
  --card: rgba(255, 253, 250, .92);
  --card-solid: #fffdfa;
  --line: #e7dfe9;
  --line-strong: #d8cbdd;
  --ok: #236851;
  --ok-bg: #e9f5ef;
  --ok-line: #c6e3d6;
  --err: #9d3f54;
  --err-bg: #fdf0f2;
  --err-line: #eccbd2;
  --warn: #825c18;
  --warn-bg: #fbf3dd;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-xs: 0 1px 2px rgba(53, 27, 61, .05);
  --shadow-sm: 0 8px 24px rgba(53, 27, 61, .07), 0 1px 2px rgba(53, 27, 61, .05);
  --shadow: 0 20px 60px rgba(53, 27, 61, .10), 0 2px 8px rgba(53, 27, 61, .05);
  --shadow-brand: 0 16px 40px rgba(74, 29, 90, .24);
  --focus: #9f70bd;
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.25);
}

html {
  min-width: 300px;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Alexandria", "Avenir Next", Tahoma, Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 420;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(198, 167, 131, .14), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(118, 76, 146, .12), transparent 28rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

[dir="ltr"] body, body:lang(en) { font-size: 16px; }
/* Arabic cursive joins must never be letter-spaced or forced uppercase. */
[dir="rtl"] { letter-spacing: normal; }

::selection { color: var(--brand-deep); background: #dfcce9; }

img, svg { display: block; max-inline-size: 100%; }
button, input, textarea, select { font: inherit; }
button, select { color: inherit; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
p + p { margin-block-start: .65em; }
h1, h2, h3, strong { text-wrap: balance; }
h1, h2, h3 { line-height: 1.35; }
bdi, .num, .price { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.page-root {
  min-height: calc(100vh - 78px);
  isolation: isolate;
}
.page-root:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 999;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  translate: 0 -160%;
  padding: 9px 14px;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: translate var(--dur-fast) var(--ease);
}
.skip-link:focus { translate: 0; color: var(--brand-ink); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 150ms var(--ease) both fade-out; }
::view-transition-new(root) { animation: 300ms var(--ease) both page-in; }

@keyframes page-in {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0; }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes swap-in {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0; }
}
@keyframes spin { to { rotate: 1turn; } }
@keyframes success-pop {
  0% { opacity: 0; scale: .72; rotate: -8deg; }
  70% { scale: 1.07; rotate: 2deg; }
  100% { opacity: 1; scale: 1; rotate: 0; }
}
@keyframes celebration-in {
  from { opacity: 0; translate: 0 10px; scale: .985; }
  to { opacity: 1; translate: 0; scale: 1; }
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(var(--x), -12vh, 0) rotate(0deg); }
  10% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(var(--x) + var(--drift)), 108vh, 0) rotate(var(--spin)); }
}

.swap-enter, .htmx-added { animation: swap-in var(--dur-slow) var(--ease) both; }
.htmx-swapping { opacity: 0; transition: opacity var(--dur-fast) ease; }

/* ── Layout and type utilities ──────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 28px);
}
.wrap-narrow { max-width: 510px; }
.wrap-admin { max-width: 760px; padding-block-start: 22px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.text-sm { font-size: .84rem; }
.text-xs { font-size: .76rem; }
.price { white-space: nowrap; font-weight: 650; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.row > * { min-width: 0; }
.grow { flex: 1; }
.full { width: 100%; }
.section-gap { margin-block-start: 22px; }
.content-top { padding-block-start: clamp(28px, 8vw, 56px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; }

.page-heading { margin-block-end: 18px; }
.page-heading.center { max-width: 540px; margin-inline: auto; }
.page-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 760;
  letter-spacing: -.025em;
}
[dir="rtl"] .page-title { letter-spacing: 0; }
.page-lede { color: var(--muted); margin-block-start: 5px; font-size: .92rem; }
.section-title {
  margin-block-end: 10px;
  font-size: 1.03rem;
  font-weight: 720;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-block-end: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.back-link .icon { inline-size: 17px; rotate: 180deg; }
[dir="rtl"] .back-link .icon { rotate: 0deg; }

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  inline-size: 42px;
  block-size: 42px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
}
.brand-mark img {
  position: absolute;
  inset-block-start: 0;
  left: 0;
  max-inline-size: none;
  inline-size: auto;
  block-size: 124%;
}
.brand-logo {
  display: block;
  inline-size: clamp(168px, 42vw, 205px);
  block-size: auto;
}

/* ── Cards, buttons, feedback ───────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(216, 203, 221, .82);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 4vw, 22px);
  margin-block-end: 12px;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.72);
}
.card-hero {
  padding: clamp(22px, 6vw, 34px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.interactive-card {
  transition:
    translate var(--dur-base) var(--ease),
    border-color var(--dur-base) ease,
    box-shadow var(--dur-base) ease,
    background var(--dur-base) ease;
}
.card-link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
.card-link:focus-visible { outline-offset: 4px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    translate var(--dur-fast) var(--ease),
    scale var(--dur-fast) var(--ease),
    color var(--dur-fast) ease,
    background var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.18) 48%, transparent 76%);
  translate: -130% 0;
  transition: translate 650ms var(--ease);
}
[dir="rtl"] .btn::before { translate: 130% 0; }
.btn:active { scale: .975; }
.btn:disabled { cursor: not-allowed; opacity: .65; }
.btn .icon { inline-size: 19px; block-size: 19px; flex: 0 0 auto; }
.btn-primary {
  width: 100%;
  color: var(--brand-ink);
  background: linear-gradient(135deg, #5a256c 0%, var(--brand) 58%, var(--brand-deep) 100%);
  border-color: rgba(50,17,63,.4);
  box-shadow: var(--shadow-brand), inset 0 1px rgba(255,255,255,.22);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 44px rgba(74,29,90,.30), inset 0 1px rgba(255,255,255,.25); }
.btn-ghost {
  color: var(--brand);
  background: rgba(255,253,250,.7);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs), inset 0 1px rgba(255,255,255,.72);
}
.btn-ghost:hover { color: var(--brand); background: var(--accent-soft); border-color: #cbb8d3; }
.btn-soft { color: var(--brand); background: var(--lilac); border-color: transparent; }
.btn-danger { color: var(--err); background: rgba(255,253,250,.75); border-color: var(--err-line); }
.btn-danger:hover { color: #823046; background: var(--err-bg); border-color: #dcaab5; }
.btn-sm { min-height: 42px; padding: 8px 14px; border-radius: 12px; font-size: .86rem; }
.btn-icon { inline-size: 46px; min-width: 46px; padding: 0; border-radius: 14px; }
.btn-block { width: 100%; }
.is-loading { color: transparent !important; pointer-events: none; }
.is-loading::after {
  content: "";
  position: absolute;
  inline-size: 20px;
  block-size: 20px;
  border: 2px solid rgba(255,255,255,.38);
  border-block-start-color: #fff;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}
.btn-ghost.is-loading::after, .btn-danger.is-loading::after { border-color: var(--line); border-block-start-color: currentColor; }
.is-pending { opacity: .58; pointer-events: none; }

.actions { display: flex; gap: 10px; }
.actions > *, .actions .btn { flex: 1; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  border-radius: var(--radius);
  padding: 12px 15px;
  margin-block-end: 14px;
  font-size: .9rem;
  box-shadow: var(--shadow-xs);
}
.banner::before {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 800;
}
.banner.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.banner.ok::before { content: "✓"; color: #fff; background: var(--ok); }
.banner.err { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.banner.err::before { content: "!"; color: #fff; background: var(--err); }

.success-celebration {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(24px, 7vw, 38px) clamp(18px, 6vw, 34px);
  margin-block-end: 14px;
  border: 1px solid var(--ok-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% -15%, rgba(255,255,255,.92), transparent 48%),
    linear-gradient(145deg, #f7fcf9, var(--ok-bg));
  box-shadow: 0 18px 46px rgba(35,104,81,.12), inset 0 1px rgba(255,255,255,.8);
  text-align: center;
  animation: celebration-in 520ms var(--ease) both;
}
.success-celebration::before,
.success-celebration::after {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: 170px;
  block-size: 170px;
  border: 1px solid rgba(35,104,81,.11);
  border-radius: 50%;
}
.success-celebration::before { inset-block-start: -112px; inset-inline-start: -54px; box-shadow: 0 0 0 30px rgba(35,104,81,.035); }
.success-celebration::after { inset-block-end: -126px; inset-inline-end: -42px; box-shadow: 0 0 0 26px rgba(198,167,131,.055); }
.success-medallion {
  display: grid;
  place-items: center;
  inline-size: 78px;
  block-size: 78px;
  margin-block-end: 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #4d9a7e, var(--ok));
  box-shadow: 0 17px 36px rgba(35,104,81,.25), inset 0 1px rgba(255,255,255,.28), 0 0 0 9px rgba(35,104,81,.07);
  animation: success-pop 650ms 110ms var(--ease-spring) both;
}
.success-medallion .icon { inline-size: 35px; }
.success-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid var(--ok-line);
  border-radius: 999px;
  color: var(--ok);
  background: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 720;
}
.success-kicker .icon { inline-size: 14px; }
.success-celebration h2 { margin-block-start: 9px; font-size: clamp(1.28rem, 4.5vw, 1.65rem); font-weight: 760; }
.success-celebration p { max-width: 470px; margin-block-start: 5px; color: var(--muted); font-size: .88rem; }
.booking-card-confirmed { border-color: var(--ok-line); box-shadow: var(--shadow), 0 0 0 4px rgba(35,104,81,.035); }

.confetti-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.confetti-piece {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 8px;
  block-size: 14px;
  border-radius: 2px;
  opacity: 0;
  background: var(--confetti);
  box-shadow: 0 1px 2px rgba(37,24,43,.12);
  animation: confetti-fall var(--duration) cubic-bezier(.16,.76,.35,1) var(--delay) forwards;
}
.confetti-piece.is-round { inline-size: 9px; block-size: 9px; border-radius: 50%; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--lilac);
  font-size: .69rem;
  font-weight: 680;
  line-height: 1.3;
  white-space: nowrap;
}
.tag-err { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.tag-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(34px, 9vw, 64px) 20px;
  color: var(--muted);
  text-align: center;
}
.empty-state-icon {
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  margin-block-end: 4px;
  border-radius: 19px;
  color: var(--accent);
  background: var(--lilac);
  box-shadow: inset 0 1px #fff;
}
.empty-state-icon .icon { inline-size: 26px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
form { min-width: 0; }
label, .field-label {
  display: block;
  margin-block: 13px 5px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 630;
}
.field { min-width: 0; }
.field > label:first-child { margin-block-start: 0; }
.field-help { margin-block-start: 5px; color: var(--muted); font-size: .79rem; }
.field-err { margin-block-start: 5px; color: var(--err); font-size: .8rem; font-weight: 580; }
.field-err::before { content: "• "; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-stack .field label { margin-block-start: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
.form-actions { display: flex; gap: 10px; margin-block-start: 18px; }
.choice-fieldset { min-width: 0; padding: 0; border: 0; }
.choice-fieldset > legend { width: 100%; margin-block: 13px 5px; color: var(--ink-soft); font-size: .86rem; font-weight: 630; }

input, textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,253,250,.88);
  box-shadow: inset 0 1px 2px rgba(53,27,61,.025);
  transition:
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    background var(--dur-fast) ease;
}
textarea { min-height: 88px; resize: vertical; }
select {
  padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}
[dir="rtl"] select {
  padding-inline-end: 13px;
  padding-inline-start: 40px;
  background-position: 19px 50%, 14px 50%;
}
input::placeholder, textarea::placeholder { color: var(--muted-light); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #cbbbd1; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-solid);
  box-shadow: 0 0 0 4px rgba(118,76,146,.13), inset 0 1px 2px rgba(53,27,61,.025);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(157,63,84,.10);
}
input[type="tel"] { direction: ltr; text-align: end; }
input[type="checkbox"], input[type="radio"] {
  inline-size: 20px;
  block-size: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
  box-shadow: none;
}
input[type="time"], input[type="date"] { font-variant-numeric: tabular-nums; }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  font-weight: 520;
}
.check-list { display: flex; flex-direction: column; gap: 3px; margin-block-start: 7px; }
/* Walk-in add-on line: the tick+name stays one unit and the quantity select
   sits beside it at its own width, instead of the global 100%-wide <select>
   squeezing the label into a three-line wrap. */
.addon-desk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.addon-desk-row .check-row { flex: 0 1 auto; }
.addon-desk-row .check-row > span { min-width: 0; }
.addon-desk-qty { flex: 0 0 auto; width: auto; min-width: 96px; min-height: 40px; padding-block: 6px; font-size: .9rem; font-variant-numeric: tabular-nums; }

.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

/* ── Public booking journey ─────────────────────────────────────────────── */
header.biz {
  position: relative;
  isolation: isolate;
  min-height: 174px;
  overflow: hidden;
  padding: 30px max(20px, calc((100vw - 620px) / 2));
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.14), transparent 18rem),
    radial-gradient(circle at 88% 95%, rgba(198,167,131,.32), transparent 20rem),
    linear-gradient(135deg, #32113f 0%, #522363 52%, #6e3c7e 100%);
  box-shadow: 0 20px 56px rgba(50,17,63,.14);
  text-align: center;
}
header.biz::after {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: 190px;
  block-size: 190px;
  inset-block-start: -112px;
  inset-inline-end: -40px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 65px rgba(255,255,255,.025);
}
header.biz .brand-mark { margin-inline: auto; margin-block-end: 11px; }
header.biz .brand-mark img { filter: brightness(0) invert(1); opacity: .96; }
header.biz h1 { font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 760; }
header.biz .sub { color: rgba(255,253,251,.74); font-size: .88rem; }
header.biz .sub + .sub { margin-block-start: 3px; }
.business-location { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.business-location .icon { inline-size: 15px; }
.public-wrap { padding-block-start: 22px; }
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-card {
  min-height: 84px;
  margin: 0;
  padding: 16px;
}
.service-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(145deg, var(--lilac), var(--champagne-soft));
  box-shadow: inset 0 1px #fff;
}
.service-icon .icon { inline-size: 20px; }
.service-name { display: block; font-weight: 700; }
.service-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; }
.service-meta .icon { inline-size: 14px; }
.service-card-side { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.service-card .price {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 10px;
  color: var(--brand);
  background: var(--lilac);
  font-size: .86rem;
}
.direction-icon { inline-size: 18px; flex: 0 0 18px; color: var(--muted-light); }
[dir="rtl"] .direction-icon { rotate: 180deg; }

.days {
  display: flex;
  gap: 8px;
  margin-inline: calc(clamp(16px, 4vw, 28px) * -1);
  padding: 8px clamp(16px, 4vw, 28px) 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.days a, .days > span {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255,253,250,.82);
  box-shadow: var(--shadow-xs);
  font-size: .8rem;
  line-height: 1.55;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  transition: translate var(--dur-fast) var(--ease), border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
/* --biz-accent* are set per business by public/_theme.html (owner's calendar
   colour). Every use carries the brand fallback, so a page without them is
   pixel-identical to the default design. */
.days a.active {
  color: var(--biz-accent-ink, #fff);
  background: var(--biz-accent, linear-gradient(145deg, #6b397d, var(--brand)));
  border-color: var(--biz-accent, var(--brand));
  box-shadow: 0 10px 24px rgba(74,29,90,.20), inset 0 1px rgba(255,255,255,.2);
}
.days > span.closed { color: #b6adb9; background: rgba(247,244,240,.7); box-shadow: none; }
/* The "who" strip (any available + one chip per person) reuses the day strip's
   scrolling row and accent colour, as pills: no snap (a name is not a date
   to land on) and a 44px tap target. Sits outside #grid so a day switch
   (HTMX) never redraws it. */
.days-people { scroll-snap-type: none; padding-block: 4px 8px; }
.days-people a { min-width: auto; min-height: 44px; padding: 6px 14px; border-radius: 999px; font-size: .84rem; font-weight: 640; }
.day-number { font-size: .7rem; opacity: .78; }
.selected-day { display: flex; align-items: center; gap: 7px; margin-block: 5px 12px; color: var(--muted); font-size: .84rem; }
.selected-day .icon { inline-size: 16px; }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.slot-form { display: contents; }
.slots a, .slot-button {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 52px;
  padding: 8px 5px;
  border: 1.5px solid var(--biz-accent-line, #cdb8d6);
  border-radius: 13px;
  color: var(--biz-accent, var(--brand));
  background: var(--biz-accent-soft, rgba(255,253,250,.84));
  box-shadow: var(--shadow-xs);
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: translate var(--dur-fast) var(--ease), scale var(--dur-fast) var(--ease), color var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.slots a:active, .slot-button:active { scale: .97; color: var(--biz-accent-ink, #fff); background: var(--biz-accent, var(--brand)); }

/* Settings: the colour picker and its live preview (same variables as above). */
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-row input[type="color"] { inline-size: 56px; block-size: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-solid); cursor: pointer; }
.color-preview { display: inline-flex; gap: 8px; }
.color-preview .cp-day { min-width: 56px; padding: 7px 10px; border-radius: 12px; background: var(--biz-accent); color: var(--biz-accent-ink); font-size: .75rem; text-align: center; }
.color-preview .cp-slot { min-width: 56px; padding: 7px 10px; border: 1.5px solid var(--biz-accent-line); border-radius: 10px; color: var(--biz-accent); background: var(--biz-accent-soft); font-weight: 650; font-size: .75rem; text-align: center; }
.slot-note { display: block; margin-block-start: 2px; color: var(--muted); font-size: .65rem; font-weight: 450; }
.slots a.slot-tight { border-color: #d9a7b1; }
.slots a.slot-tight .slot-note { color: var(--err); }
.slot-empty { grid-column: 1 / -1; }

.booking-summary { display: grid; gap: 11px; margin-block-start: 13px; }
.summary-line { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 11px;
  color: var(--accent-strong);
  background: var(--lilac);
}
.summary-icon .icon { inline-size: 16px; }

.duration-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 7px 4px; }
.duration-option { margin: 0; cursor: pointer; }
.duration-option input, .type-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.duration-option span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-solid);
  font-size: .86rem;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease, scale var(--dur-fast) var(--ease);
}
.duration-option input:checked + span { color: var(--brand); background: var(--lilac); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.duration-option input:focus-visible + span, .type-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ── Add-on tiles (step 3): the duration-option surface, filled with a thumb,
   a name/description column and the price delta. Nested spans must NOT pick
   up the chip styling of `.duration-option span`. ─────────────────────── */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.addon-option { display: block; }
.duration-option .addon-tile { display: flex; inline-size: 100%; min-height: 56px; align-items: center; gap: 10px; padding: 8px 10px; text-align: start; }
.duration-option .addon-tile span { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: inherit; transition: none; }
.duration-option .addon-tile img, .duration-option .addon-tile .addon-icon { inline-size: 44px; block-size: 44px; flex: none; border-radius: 12px; object-fit: cover; }
.duration-option .addon-tile .addon-icon { display: grid; place-items: center; background: var(--lilac); color: var(--brand); }
.duration-option .addon-tile .addon-icon .icon { inline-size: 20px; }
.duration-option .addon-tile .addon-text { display: flex; flex-direction: column; flex: 1; min-inline-size: 0; gap: 2px; line-height: 1.3; }
.duration-option .addon-tile .addon-text small { color: var(--muted); font-size: .76rem; }
.duration-option .addon-tile .addon-price { flex: none; font-weight: 700; font-size: .82rem; }

/* ── Signup and guided setup ────────────────────────────────────────────── */
.auth-shell { padding-block-start: clamp(28px, 8vw, 58px); }
.wizard-shell { max-width: 560px; }
.wizard-header { margin-block-end: 22px; }
.auth-brand { display: flex; justify-content: center; margin-block-end: 14px; }
.auth-brand .brand-mark { inline-size: 48px; block-size: 48px; border-radius: 16px; }
.auth-brand .brand-logo { inline-size: clamp(178px, 48vw, 218px); }
.wizard-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-progress-copy strong { color: var(--muted); font-size: .78rem; font-weight: 620; }
.steps { display: flex; justify-content: center; gap: 6px; margin-block-start: 11px; }
.steps .step {
  position: relative;
  flex: 1;
  max-inline-size: 82px;
  block-size: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.steps .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--champagne));
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale var(--dur-slow) var(--ease);
}
.steps .step.on::after,
.steps .step.is-complete::after,
.steps .step.is-current::after { scale: 1; }
.steps .step.is-complete::after { background: linear-gradient(90deg, var(--ok), #4f9b7f); }
.steps .step.is-current { block-size: 7px; margin-block-start: -1px; box-shadow: 0 4px 12px rgba(118,76,146,.18); }
.wizard-panel { animation: swap-in var(--dur-slow) var(--ease) both; }
.wizard-form { border-color: rgba(216,203,221,.9); }
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-start: 20px;
  padding-inline: 5px;
}
.wizard-footer .back-link { margin: 0; text-decoration-color: var(--line-strong); }
.wizard-footer .wizard-later { margin-inline-start: auto; }
.wizard-footer .wizard-later:only-child { margin-inline: auto; }

.slug-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  background: var(--card-solid);
}
.slug-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(118,76,146,.13); }
.slug-prefix { display: flex; align-items: center; padding-inline: 11px; color: var(--muted); background: var(--lilac); font-size: .84rem; white-space: nowrap; }
.slug-row input { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.slug-row input:focus { box-shadow: none; }
.otp-input { direction: ltr; text-align: center; letter-spacing: .35em; font-size: 1.3rem; font-weight: 700; }

.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.type-option { margin: 0; cursor: pointer; }
.type-option span {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  color: var(--ink-soft);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  font-size: .88rem;
  font-weight: 580;
  text-align: center;
  transition: translate var(--dur-fast) var(--ease), border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.type-option input:checked + span { color: var(--brand); background: var(--lilac); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 690; }

.kind-picker { display: grid; gap: 8px; margin-block: 7px 13px; }
.kind-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 68px;
  margin: 0;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--card-solid);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.kind-option input { margin-block-start: 3px; }
.kind-option:has(input:checked) { border-color: var(--accent); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--accent); }
.kind-option strong { display: block; font-size: .9rem; }
.kind-option em { display: block; margin-block-start: 1px; color: var(--muted); font-size: .76rem; font-style: normal; font-weight: 420; }
[data-when][hidden] { display: none !important; }

.starter-row { display: grid; gap: 8px; margin-block-end: 14px; }
.starter {
  position: relative;
  min-height: 60px;
  padding: 10px 14px;
  border: 1.5px dashed #cab7d2;
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255,253,250,.56);
  cursor: pointer;
  font: inherit;
  text-align: start;
  transition: translate var(--dur-fast) var(--ease), border-color var(--dur-fast) ease, background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.starter::after { content: "+"; position: absolute; inset-block-start: 50%; inset-inline-end: 15px; translate: 0 -50%; color: var(--accent); font-size: 1.2rem; }
.starter:hover, .starter:focus-visible { border-style: solid; border-color: var(--accent); background: var(--card-solid); box-shadow: var(--shadow-sm); }
.starter strong { display: block; font-size: .9rem; }
.starter em { display: block; color: var(--muted); font-size: .76rem; font-style: normal; }

.resource-input-list { display: flex; flex-direction: column; gap: 8px; }
.existing-list { padding: 11px 14px; }
.existing-list .row + .row { margin-block-start: 7px; padding-block-start: 7px; border-block-start: 1px solid var(--line); }

.schedule-list { display: flex; flex-direction: column; }
.schedule-day { padding-block: 11px; border-block-end: 1px solid var(--line); }
.schedule-day:last-child { border-block-end: 0; }
.schedule-day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.schedule-day-name { font-size: .9rem; font-weight: 690; }
.shift-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-block-start: 7px; }
.shift { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.shift input { width: 112px; min-height: 44px; padding-inline: 8px; font-size: .84rem; }

.medallion {
  display: grid;
  place-items: center;
  inline-size: 72px;
  block-size: 72px;
  margin-inline: auto;
  margin-block-end: 12px;
  border: 1px solid var(--ok-line);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #3e8d71, var(--ok));
  box-shadow: 0 14px 34px rgba(35,104,81,.22), inset 0 1px rgba(255,255,255,.25);
  animation: success-pop 550ms var(--ease-spring) both;
}
.medallion .icon { inline-size: 32px; }
.setup-success { overflow: hidden; border-color: var(--ok-line); background: linear-gradient(150deg, var(--card-solid), #f3faf6); }
.setup-success .success-kicker { margin-block-end: 8px; }
.link-box { margin-block-start: 15px; padding: 12px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--bg); font-size: .85rem; font-variant-numeric: tabular-nums; word-break: break-all; }

/* ── Disclosure / accordion surfaces ───────────────────────────────────── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.card { padding: 0; overflow: clip; }
details.card > summary {
  position: relative;
  min-height: 68px;
  padding: 16px 46px 16px 18px;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur-fast) ease;
}
[dir="rtl"] details.card > summary { padding: 16px 18px 16px 46px; }
details.card > summary::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 19px;
  inline-size: 8px;
  block-size: 8px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  rotate: 45deg;
  translate: 0 -70%;
  transition: rotate var(--dur-base) var(--ease), translate var(--dur-base) var(--ease);
}
details.card[open] > summary { background: rgba(243,237,246,.62); border-block-end: 1px solid var(--line); }
details.card[open] > summary::after { rotate: 225deg; translate: 0 -15%; }
.details-body, details.card > form { padding: 6px 18px 19px; }
.advanced { margin-block-start: 12px; border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.advanced > summary { min-height: 44px; display: flex; align-items: center; color: var(--accent-strong); cursor: pointer; font-size: .84rem; font-weight: 650; }

/* ── Admin shell and dashboard ──────────────────────────────────────────── */
.admin-nav {
  position: sticky;
  z-index: 40;
  inset-block-start: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 9px 14px;
  background: rgba(255,253,250,.84);
  border-block-end: 1px solid rgba(216,203,221,.72);
  box-shadow: 0 8px 28px rgba(53,27,61,.055);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--brand);
  font-size: .92rem;
  font-weight: 720;
}
.admin-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand .brand-mark { inline-size: 38px; block-size: 38px; border-radius: 13px; font-size: 1.15rem; }
.admin-menu { position: relative; order: 2; }
.admin-menu > summary {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand);
  background: var(--lilac);
  cursor: pointer;
  user-select: none;
  transition: scale var(--dur-fast) var(--ease), background var(--dur-fast) ease;
}
.admin-menu > summary .icon { inline-size: 21px; }
.admin-menu[open] > summary { color: #fff; background: var(--brand); }
.admin-menu:not([open]) > .admin-menu-panel { display: none; }
.admin-menu[open]::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 66px 0 0;
  background: rgba(37,24,43,.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fade-out var(--dur-base) ease reverse both;
}
.admin-menu-panel {
  position: fixed;
  z-index: 45;
  inset-block-start: 74px;
  inset-inline: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,253,250,.97);
  box-shadow: var(--shadow);
  animation: swap-in var(--dur-base) var(--ease) both;
}
.admin-menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease, translate var(--dur-fast) var(--ease);
}
.admin-menu-panel a .icon { inline-size: 19px; flex: 0 0 auto; }
.admin-menu-panel a.on { color: var(--brand); background: var(--lilac); font-weight: 700; }

.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 15px; }
.admin-page-header .page-title { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.admin-page-actions { display: flex; align-items: center; gap: 8px; }

.board { display: grid; gap: 14px; }
.board-side { min-width: 0; }
.board-main { min-width: 0; }
.daynav {
  min-height: 70px;
  margin-block-end: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.daynav .btn-icon { inline-size: 44px; min-width: 44px; min-height: 44px; border-radius: 13px; }
.daynav-title { font-size: .91rem; font-weight: 700; }
.daynav-today { color: var(--accent); font-size: .72rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xs), inset 0 1px #fff;
  text-align: center;
}
.stat strong { color: var(--brand); font-size: 1.35rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.board-actions { margin-block: 12px; }

.booking-list { display: flex; flex-direction: column; gap: 9px; }
.booking-card { min-height: 80px; margin: 0; padding: 14px 15px; }
.booking-card-time { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 710; }
.time-dot { inline-size: 8px; block-size: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--lilac); }
.booking-no_show { opacity: .64; }
.booking-completed { opacity: .76; }
.booking-completed .time-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.booking-no_show .time-dot { background: var(--err); box-shadow: 0 0 0 4px var(--err-bg); }

.booking-detail-card { overflow: hidden; }
.booking-detail-head { padding-block-end: 14px; border-block-end: 1px solid var(--line); }
.booking-detail-meta { display: grid; gap: 11px; margin-block-start: 15px; }
.booking-detail-meta .summary-line { align-items: flex-start; }
.status-line { margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }

.search-form { display: flex; gap: 8px; margin-block-end: 14px; }
.search-form .input-wrap { position: relative; flex: 1; }
.search-form .input-wrap .icon { position: absolute; inset-block-start: 50%; inset-inline-start: 14px; inline-size: 18px; color: var(--muted); translate: 0 -50%; pointer-events: none; }
.search-form .input-wrap input { padding-inline-start: 43px; }

.admin-grid { display: grid; gap: 10px; }
.customer-card { margin: 0; }
.customer-card .call-button { flex: 0 0 auto; }
.inactive { opacity: .58; }

.hours-card { padding-block: 8px; }
.block-list { display: flex; flex-direction: column; gap: 9px; }
.block-list .card { margin: 0; }

.share-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  direction: ltr;
}
.share-link .icon {
  inline-size: 18px; block-size: 18px; flex: 0 0 auto; color: var(--accent);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  text-align: start;
  word-break: break-all;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  margin-block-start: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-solid);
  box-shadow: var(--shadow-xs);
}
.data-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: .84rem; }
.data-table th { padding: 11px 13px; color: var(--muted); background: var(--lilac); font-size: .76rem; font-weight: 680; text-align: start; }
.data-table td { padding: 12px 13px; border-block-start: 1px solid var(--line); text-align: start; }
.data-table tbody tr:hover { background: rgba(243,237,246,.45); }
.sheet-wrap { max-width: 980px; }

.logout-form { margin-block-start: 26px; text-align: center; }
.logout-form .btn { color: var(--muted); font-size: .84rem; }
.logout-form .icon { inline-size: 17px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.numoo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 78px;
  padding: 20px 16px 28px;
  color: var(--muted-light);
  font-size: .75rem;
  text-align: center;
}
footer.numoo a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration-color: var(--line-strong);
}
.footer-brand-link { padding-inline: 5px; }
.footer-logo { inline-size: 96px; block-size: auto; }

/* ── Responsive behavior ────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .interactive-card:hover { translate: 0 -3px; border-color: #cbb8d3; background: var(--card-solid); box-shadow: var(--shadow-sm); }
  .btn:hover::before { translate: 130% 0; }
  [dir="rtl"] .btn:hover::before { translate: -130% 0; }
  .days a:not(.active, .closed):hover, .slots a:hover, .slot-button:hover { translate: 0 -2px; border-color: var(--biz-accent, var(--accent)); box-shadow: var(--shadow-sm); }
  .type-option:hover span { translate: 0 -2px; border-color: #cbb8d3; box-shadow: var(--shadow-sm); }
  .admin-menu-panel a:hover { color: var(--brand); background: var(--lilac); translate: 2px 0; }
  [dir="rtl"] .admin-menu-panel a:hover { translate: -2px 0; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions, .actions.actions-mobile-stack { flex-direction: column; }
  .form-actions > *, .form-actions .btn { width: 100%; }
  .row.mobile-wrap { flex-wrap: wrap; }
  .row.mobile-stack { align-items: stretch; flex-direction: column; }
  .search-form { align-items: stretch; }
  .search-form .btn { inline-size: 50px; min-width: 50px; padding: 0; }
  .search-form .btn-text { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .shift-list { align-items: stretch; flex-direction: column; }
  .shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
  .shift input { width: 100%; }
  .success-celebration { border-radius: var(--radius-lg); }
  .success-medallion { inline-size: 70px; block-size: 70px; border-radius: 23px; }
  .wizard-progress-copy { align-items: flex-end; }
  .wizard-progress-copy strong { font-size: .73rem; }
}

@media (max-width: 350px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 12px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 5px; }
  .stat { padding-inline: 5px; }
}

@media (min-width: 720px) {
  .public-wrap { padding-block-start: 28px; }
  header.biz { min-height: 206px; padding-block: 38px; }
  .service-card { min-height: 92px; padding-inline: 20px; }
  .service-icon { inline-size: 48px; block-size: 48px; }
  .starter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kind-option { flex-direction: column; }
}

@media (min-width: 900px) {
  .wrap-admin { max-width: 980px; padding-inline: 24px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid > .empty-state, .admin-grid > p { grid-column: 1 / -1; }
  .directory-card { min-height: 94px; }
}

@media (min-width: 1100px) {
  .admin-body .page-root { min-height: calc(100vh - 20px); }
  .admin-nav {
    position: fixed;
    inset-block: 16px;
    inset-inline-start: 16px;
    width: 246px;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
  .admin-brand { padding: 5px 5px 13px; border-block-end: 1px solid var(--line); }
  .admin-brand .brand-mark { inline-size: 42px; block-size: 42px; }
  .admin-menu { position: static; order: 2; flex: 1; }
  .admin-menu > summary { display: none; }
  .admin-menu::details-content { content-visibility: visible; display: contents; }
  .admin-menu:not([open]) > .admin-menu-panel { display: flex; }
  .admin-menu-panel {
    position: static;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 3px;
    max-height: none;
    margin-block-start: 11px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
  }
  .admin-menu-panel a { min-height: 46px; }
  .wrap-admin {
    width: auto;
    max-width: none;
    margin-inline-start: 278px;
    margin-inline-end: 16px;
    padding: 28px clamp(18px, 2.5vw, 34px);
  }
  footer.numoo { margin-inline-start: 262px; }
}

@media (min-width: 1260px) {
  .board { grid-template-columns: minmax(0, 1fr) 318px; gap: 22px; align-items: start; }
  .board-main { order: 1; }
  .board-side { order: 2; position: sticky; inset-block-start: 28px; }
  .board-side .stats-row { grid-template-columns: 1fr; gap: 8px; }
  .board-side .stat { min-height: 70px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; padding-inline: 15px; text-align: start; }
  .board-side .stat strong { font-size: 1.5rem; }
  .board-side .actions { flex-direction: column; }
  .booking-card { padding-inline: 18px; }
}

/* ── Print and accessibility preferences ───────────────────────────────── */
@media print {
  .no-print, .admin-nav, footer.numoo, body::before { display: none !important; }
  body { color: #000; background: #fff; font-size: 12px; }
  .page-root { min-height: 0; }
  .wrap, .wrap-admin { max-width: none; margin: 0; padding: 0; }
  .card, .table-shell { border-color: #bbb; background: #fff; box-shadow: none; }
  .data-table { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  @view-transition { navigation: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #b5a9ba; --line-strong: #8e7d95; --muted: #514657; }
  .card, input, textarea, select, .btn-ghost { background: var(--card-solid); }
}

/* ── business media (logos, descriptions, service photos) ─────────────── */
/* Own class, never .brand-mark: that one inverts to white for the NUMOO
   wordmark, which would flatten a real logo. Cream tile so dark and light
   logos both read against the header gradient. */
.biz-logo {
  display: grid; place-items: center; inline-size: 76px; block-size: 76px;
  margin-inline: auto; margin-block-end: 11px;
  background: var(--card); border-radius: 20px;
  box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 65px rgba(255,255,255,.025);
}
.biz-logo img { inline-size: 64px; block-size: 64px; object-fit: contain; border-radius: 14px; }
.biz-desc {
  color: rgba(255,253,251,.82); font-size: .92rem; max-inline-size: 42ch;
  margin: 8px auto 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.service-photo {
  inline-size: 44px; block-size: 44px; border-radius: 14px;
  object-fit: cover; flex: 0 0 auto;
}
.service-desc {
  color: var(--muted); font-size: .82rem; line-height: 1.5; margin-block-start: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 900px) {
  .service-photo { inline-size: 48px; block-size: 48px; }
}

/* A full-width "go to" row (the week editor, a person's hours): the
   share-link's shape, but text runs in the page direction and the arrow
   points forward -- share-link is LTR because it holds a URL. */
.page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
}
.page-link .icon { inline-size: 18px; block-size: 18px; flex: 0 0 auto; color: var(--accent); }
[dir="rtl"] .page-link .icon { rotate: 180deg; }
/* Week editor: the tri-state radios and the 24h box sit on one wrapping row
   above the shifts, so a phone shows a day as one compact block. */
.mode-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-block-start: 2px; }
.mode-list .check-row { min-height: 38px; }
.week-nav { margin-block-end: 12px; }
.week-nav .daynav-today { text-decoration: none; }

/* ── Public-link cards (team links, "my link") ───────────────────────────── */
.team-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-block: 12px 18px; }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-solid, #fff); }
.link-card .link-box { margin-block-start: 0; }
.link-card-title { font-size: 1rem; }
.link-card-hint { margin: 0; font-size: .85rem; }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-actions .btn { flex: 1 1 auto; justify-content: center; }
.link-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 0; }
.link-qr svg { inline-size: 132px; block-size: 132px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.link-qr figcaption { font-size: .8rem; }
.link-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .85rem; }
.services-checklist { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-block: 8px; }
.services-checklist .check-row { margin: 0; }
.services-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 6px; }

/* ── Revenue ─────────────────────────────────────────────────────────────── */
.period-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 10px; }
.period-chips .btn[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.revenue-range { padding: 14px; }
.revenue-range .form-grid { margin-block-end: 8px; }
.revenue-period { margin-block: 10px; }
.revenue-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.revenue-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-solid, #fff); }
.revenue-card strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.revenue-card span { color: var(--muted); font-size: .85rem; }
.revenue-card small { font-size: .78rem; }
.revenue-card.is-earned { border-color: var(--accent); }
.revenue-previous { margin-block: 10px 4px; font-size: .85rem; }
.revenue-breakdowns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.revenue-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.revenue-table th, .revenue-table td { padding: 8px 6px; border-block-end: 1px solid var(--line); text-align: start; }
.revenue-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.revenue-chart .week-chart-day strong { font-size: .72rem; }
.revenue-note { margin-block-start: 12px; font-size: .85rem; }
.revenue-mini .btn { margin-block-start: 8px; }
