/* ── Fonts (vendored, variable) ─────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --color-bg:          #F8FAFC;
  --color-surface:     #FFFFFF;
  --color-surface-alt: #F1F5F9;
  --color-border:      #E2E8F0;
  --color-border-focus:#6366F1;

  --color-primary:     #6366F1;
  --color-primary-h:   #4F46E5;
  --color-primary-lt:  #EEF2FF;
  --color-primary-text:#FFFFFF;

  --color-success:     #10B981;
  --color-success-lt:  #ECFDF5;
  --color-danger:      #EF4444;
  --color-danger-lt:   #FEF2F2;
  --color-warn:        #F59E0B;

  --color-text:        #0F172A;
  --color-text-muted:  #64748B;
  --color-text-subtle: #94A3B8;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.10);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --transition: 150ms ease;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overscroll-behavior: no rubber-banding past the page edges — the sticky
   header/footer edges are the ends of the page, nothing lives beyond them. */
html { font-size: 16px; scroll-behavior: smooth; overscroll-behavior-y: none; }

body {
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-h); }

img, svg { display: block; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

.text-muted  { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--wide {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (max-width: 640px) {
  .container, .container--wide { padding-inline: 1rem; }   /* phones: a 16px gutter, more room for content */
}

/* ── Business logo (public pages + settings preview) ─────────────────────── */
.business-logo {
  display: block;
  max-height: 72px;
  max-width: 240px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.card--hover {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.card--hover:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card--selected {
  border-color: var(--color-primary) !important;
  background: var(--color-primary-lt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

/* The contact card's buttons carry a phone number or an e-mail address: a long address
   wraps inside its button instead of pushing a phone screen sideways. */
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.contact-actions .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.3; max-width: 100%; }

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-h);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.btn--sm { padding: .4rem .9rem; font-size: .875rem; }
.btn--lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Form controls ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .6rem .875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.form-input::placeholder { color: var(--color-text-subtle); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.form-error {
  font-size: .8125rem;
  color: var(--color-danger);
}

/* Two-column form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 500;
}
.badge--primary { background: var(--color-primary-lt); color: var(--color-primary); }
.badge--success { background: var(--color-success-lt); color: var(--color-success); }
.badge--danger  { background: var(--color-danger-lt);  color: var(--color-danger); }
.badge--warn    { background: #FEF3C7; color: #92400E; }

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  border: 1px solid;
}
.alert--error   { background: var(--color-danger-lt);  border-color: #FECACA; color: #991B1B; }
.alert--success { background: var(--color-success-lt); border-color: #A7F3D0; color: #065F46; }
.alert--warn    { background: #FFFBEB;                 border-color: #FDE68A; color: #92400E; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header__logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.header__logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
/* Signed in: [logo] … [bell] [links … Odjava]; on a phone [logo] … [bell] [Izbornik] with the links in a panel. */
.header__end { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.header--menu .header__nav { margin-left: .25rem; }
.header__logout { display: inline; margin: 0; }
.header__menu-toggle { display: none; min-width: 6.5rem; justify-content: center; }  /* "Izbornik" and "Zatvori" take the same room */
.header__who { display: none; }
@media (max-width: 900px) {
  .header--menu .header__menu-toggle { display: inline-flex; }
  .header--menu .header__nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .125rem;
    margin: 0; padding: .5rem 1rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  }
  .header--menu .header__nav.is-open { display: flex; }
  .header--menu .header__nav .btn { width: 100%; justify-content: flex-start; padding: .7rem .75rem; font-size: .9375rem; }
  .header--menu .header__logout { display: block; margin-top: .5rem; }
  .header--menu .header__logout .btn { justify-content: center; }
  .header--menu .header__who {
    display: flex; flex-direction: column; gap: .1rem;
    padding: .5rem .75rem .75rem; margin-bottom: .25rem; border-bottom: 1px solid var(--color-border);
    overflow-wrap: anywhere;
  }
}
@media (max-width: 720px) {
  /* the signed-in address lives in the menu on a phone */
  .dashboard-hero .dashboard-chip { display: none; }
}

/* Notification bell (fragments/header.html, js/notifications.js) */
.notif { position: relative; }
.notif__button { position: relative; }
.notif__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--color-danger, #DC2626); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.notif__panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(360px, calc(100vw - 2rem)); max-height: 70vh; overflow-y: auto;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  z-index: 200;
}
.notif__head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--color-border);
}
.notif__empty { padding: 1rem; }
.notif__item {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--color-border);
  color: inherit; text-decoration: none;
}
.notif__item:last-child { border-bottom: 0; }
.notif__item:hover { background: rgba(99, 102, 241, .06); }
.notif__item--unread { background: rgba(99, 102, 241, .08); }
.notif__item--unread .notif__title { font-weight: 700; }
.notif__title { font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.footer__links {
  display: flex;
  gap: 1.25rem;
}
.footer__links a {
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.footer__links a:hover { color: var(--color-primary); }

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page__main { flex: 1; padding: 2.5rem 0; }

/* ── Step indicator ──────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-subtle);
}
.step__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all var(--transition);
}
.step--active .step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.step--active { color: var(--color-text); }
.step--done .step__num {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.step--done { color: var(--color-text-muted); }
.step__divider {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 .5rem;
  min-width: 1.5rem;
}

/* ── Service cards grid ──────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.service-card {
  padding: 1.25rem;
}
.service-card__name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.service-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
}

/* ── Service search and category groups (public booking) ────────────────── */
.service-search {
  position: relative;
  margin-bottom: 1.25rem;
}
.service-search__icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.service-search__input {
  padding-left: 2.4rem;
}
.service-groups {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-group__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.service-group__head:hover { border-color: var(--color-primary); }
.service-group__head--static {
  padding: .25rem 0;
  background: none;
  border: 0;
  cursor: default;
}
.service-group__name { flex: 1; }
.service-group__count {
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.service-group__chevron { transition: transform .15s ease; }
.service-group__chevron--open { transform: rotate(180deg); }
.service-group .service-grid { margin-top: .75rem; }

/* ── Staff cards grid ────────────────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.staff-card {
  padding: 1.25rem;
  text-align: center;
}
.staff-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary-lt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto .75rem;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 100%;
  max-width: 360px;
}
.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.calendar__month {
  font-weight: 600;
  font-size: 1rem;
}
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: .5rem;
}
.calendar__weekday {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: .25rem 0;
}
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  font-family: var(--font-sans);
  color: var(--color-text);
}
.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--selected) {
  background: var(--color-surface-alt);
}
.calendar__day--today { font-weight: 700; color: var(--color-primary); }
.calendar__day--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 600;
}
.calendar__day--disabled {
  color: var(--color-text-subtle);
  cursor: not-allowed;
}
/* Closed (a public holiday, a closure): struck through, the reason in its title. */
.calendar__day--closed { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--color-danger) 60%, transparent); }
.calendar__day--empty { cursor: default; }

/* ── Time slots ──────────────────────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}
.slot-btn {
  padding: .55rem .5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--color-surface);
  transition: all var(--transition);
  font-family: var(--font-sans);
  color: var(--color-text);
}
.slot-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-lt); }
.slot-btn--selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Booking layout ──────────────────────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .booking-layout { grid-template-columns: 1fr; }
}
.booking-summary {
  position: sticky;
  top: 80px;
}

/* ── Summary card ────────────────────────────────────────────────────────── */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--color-border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row__label { font-size: .875rem; color: var(--color-text-muted); }
.summary-row__value { font-size: .875rem; font-weight: 500; text-align: right; }

/* ── Confirmation ────────────────────────────────────────────────────────── */
.confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-success-lt);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner--dark {
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-top-color: var(--color-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-heading h3 { font-size: 1rem; font-weight: 600; }

/* ── Auth context ───────────────────────────────────────────────────────── */
.auth-context-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
}
.auth-context-card__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.auth-context-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: .375rem;
}

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 35%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: var(--shadow-sm);
}
.dashboard-hero__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
}
.dashboard-hero__meta {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 220px;
}
.dashboard-chip {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--color-border);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.dashboard-grid--aside {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}
.dashboard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dashboard-card--wide {
  min-width: 0;
}
.dashboard-card__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
}
.dashboard-card__actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.dashboard-note {
  padding: .875rem 1rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--color-text-muted);
}
.dashboard-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dashboard-entry {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.dashboard-entry__side {
  text-align: right;
  min-width: 140px;
}
.dashboard-chip--inline {
  min-width: 0;
  padding: .75rem .875rem;
}
.dashboard-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.subnav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;            /* on a phone the tabs scroll, the page does not */
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav__link {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subnav__link:hover {
  color: var(--color-text);
}
.subnav__link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.operations-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}
.operations-toolbar__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}
.reservation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
}
.reservation-card__main {
  min-width: 0;
}
.reservation-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.reservation-card__meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.reservation-card__notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.reservation-card__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: stretch;
  min-width: 132px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--color-text);
}
.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}
@media (max-width: 820px) {
  .dashboard-hero,
  .dashboard-two-col,
  .dashboard-entry {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .dashboard-grid--aside,
  .operations-toolbar,
  .reservation-card,
  .reservation-card__top {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .operations-toolbar__actions {
    justify-content: flex-start;
  }
  .reservation-card__actions {
    min-width: 0;
  }
  .dashboard-entry__side { text-align: left; min-width: 0; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* Staff calendar */
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin: 0 .5rem;
  flex: 0 0 auto;
}
.tab-toggle { display: flex; gap: .5rem; }
.dashboard-entry--active {
  border-color: var(--color-primary) !important;
  background: var(--color-primary-lt);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  z-index: 200; /* above the sticky header (100) */
  overflow-y: auto;
}
.modal-card {
  width: 100%;
  max-width: 560px;
}

/* ══ Public pages — the business's storefront ════════════════════════════ */
/* The tenant is the page: a masthead washed with THEIR accent (the design
   tokens on <main> repaint everything below), the wizard on a white sheet
   laid over the masthead's edge, Reserve reduced to a footer credit.
   Scoped under .public-shell so admin screens keep the cool slate look. */

.public-shell { background: #FAF9F7; }
.public-shell .page__main--public { padding: 0 0 3rem; }

.masthead {
  position: relative;
  overflow: hidden; /* clips the monogram ornament */
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--color-primary) 12%, #FCFBFA) 0%,
      color-mix(in srgb, var(--color-primary) 5%, #FAF9F7) 100%);
  padding: 2.75rem 0 3.5rem;
}
.masthead__inner {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.masthead__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-primary) 72%, var(--color-text));
  margin-bottom: .875rem;
}
/* The logo is the hero's opening statement — give it real presence. */
.masthead .business-logo {
  max-height: 84px;
  max-width: 280px;
  margin-bottom: 1.25rem;
}
.masthead__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}
/* The accent's strongest moment: a short brand bar under the name, instead of
   a full-width rule that would visibly cut behind the sheet. */
.masthead__name::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-full);
  /* --color-accent-2: optional per-business secondary — decorative details
     only (this bar, facts icons, dark-shell monogram), never behind text. */
  background: var(--color-accent-2, var(--color-primary));
  margin-top: 1.125rem;
}
.masthead__about {
  margin-top: .875rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 56ch;
}
.masthead__inner { position: relative; z-index: 1; } /* text above the monogram */
.masthead__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.25rem;
}
.masthead__facts li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.masthead__facts a { color: color-mix(in srgb, var(--color-primary) 70%, var(--color-text)); font-weight: 500; }
.masthead__facts a:hover { color: var(--color-primary); }
.masthead__facts svg { color: var(--color-accent-2, var(--color-primary)); flex-shrink: 0; }
/* The signature ornament: the tenant's initials as a watermark, set in the
   display face and washed with their accent — derived from content, so it
   works for any business on the platform. */
.masthead__monogram {
  position: absolute;
  right: -.06em;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .8;
  font-size: clamp(11rem, 26vw, 18rem);
  color: color-mix(in srgb, var(--color-primary) 7%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .masthead__monogram { display: none; }
}

.sheet {
  position: relative; /* paints above the (positioned) masthead it overlaps */
  width: min(960px, calc(100% - 2rem));
  margin: -1.75rem auto 0;
  padding: 2rem 2.25rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .sheet { padding: 1.5rem 1.25rem 1.75rem; }
  .masthead { padding: 2rem 0 2.5rem; }
  /* Steps: number circles only, one label — the row must never force the page
     wider than the phone. Label spans are direct children of .step; the
     numbers live inside the .step__num div, so they keep showing. Alpine's
     x-show drops its inline display when a label is on, so these rules win. */
  .public-shell .step > span { display: none; }
  .public-shell .step--active > span { display: inline; white-space: nowrap; }
  .public-shell .step { gap: .375rem; }
  .public-shell .step__divider { min-width: .5rem; margin: 0 .375rem; }
}

/* Progress rail on the sheet: accent-driven, green reserved for success. */
.public-shell .step__num { background: var(--color-surface); }
.public-shell .step--active .step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
.public-shell .step--done .step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.public-shell .step__divider { height: 2px; }

/* The secondary reaches the wizard's passive details too: duration badges and
   the selected-card highlight — never anything that carries light text. */
.public-shell .badge--primary {
  background: color-mix(in srgb, var(--color-accent-2, var(--color-primary)) 14%, #FFFFFF);
  color: color-mix(in srgb, var(--color-accent-2, var(--color-primary)) 52%, var(--color-text));
}
.public-shell .card--selected {
  border-color: var(--color-accent-2, var(--color-primary)) !important;
  background: color-mix(in srgb, var(--color-accent-2, var(--color-primary)) 10%, #FFFFFF);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-2, var(--color-primary)) 22%, transparent) !important;
}

/* Page-load moment: masthead lines rise, then the sheet. */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.masthead__inner > * { animation: rise .45s ease backwards; }
.masthead__inner > *:nth-child(2) { animation-delay: .05s; }
.masthead__inner > *:nth-child(3) { animation-delay: .1s; }
.masthead__inner > *:nth-child(4) { animation-delay: .15s; }
.masthead__inner > *:nth-child(5) { animation-delay: .2s; }
.sheet { animation: rise .5s ease .12s backwards; }
@media (prefers-reduced-motion: reduce) {
  .masthead__inner > *, .sheet { animation: none; }
}

/* Keyboard focus on the dense interactive grids. */
.slot-btn:focus-visible,
.calendar__day:focus-visible,
.card--hover:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* The business card the page ends on: deep tenant-dark, so every business
   closes its page in its own colour. Normal flow on purpose — pinning it
   behind the page (sticky/fixed + lower z-index) makes hardware-accelerated
   Firefox paint the text of the boundary-straddling line above the page. */
.public-footer {
  margin-top: auto; /* keeps it at the viewport bottom on short pages */
  background: color-mix(in srgb, var(--color-primary) 22%, #0F172A);
  color: rgba(255, 255, 255, .82);
  padding: 3rem 0 2.5rem;
}
.public-footer__inner {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.public-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
}
.public-footer__note {
  margin-top: .5rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
}
.public-footer__heading {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .625rem;
}
.public-footer__list {
  list-style: none;
  display: grid;
  gap: .375rem;
  font-size: .875rem;
}
.public-footer__brand {
  display: block;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .6);
}
.public-footer__brand + .public-footer__brand { margin-top: .625rem; }
.public-footer a { color: rgba(255, 255, 255, .85); font-weight: 500; }
.public-footer a:hover { color: #FFFFFF; }
@media (max-width: 720px) {
  .public-footer { padding: 2.25rem 0 2rem; }
  .public-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Dark shell — per-business storefrontTheme=DARK ─────────────────────── */
/* For tenants whose brand assets live on dark surfaces (a light logo, a deep
   palette): the shell around the wizard goes tenant-dark, the sheet stays a
   light card so every wizard style keeps working unchanged. Backgrounds mix
   the accent toward slate so any accent stays legible under white type. */
.public-shell.shell--dark { background: #0F172A; }
.shell--dark .page__main--public { background: color-mix(in srgb, var(--color-primary) 12%, #0F172A); }
.shell--dark .masthead {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-primary) 30%, #0F172A) 0%,
    color-mix(in srgb, var(--color-primary) 16%, #0F172A) 100%);
}
.shell--dark .masthead__eyebrow { color: rgba(255, 255, 255, .62); }
.shell--dark .masthead__name { color: #FFFFFF; }
.shell--dark .masthead__name::after { background: var(--color-accent-2, color-mix(in srgb, var(--color-primary) 45%, #FFFFFF)); }
.shell--dark .masthead__about { color: rgba(255, 255, 255, .72); }
.shell--dark .masthead__facts li { color: rgba(255, 255, 255, .62); }
.shell--dark .masthead__facts a { color: rgba(255, 255, 255, .88); }
.shell--dark .masthead__facts a:hover { color: #FFFFFF; }
.shell--dark .masthead__facts svg { color: var(--color-accent-2, color-mix(in srgb, var(--color-primary) 45%, #FFFFFF)); }
.shell--dark .masthead__monogram { color: color-mix(in srgb, var(--color-accent-2, #FFFFFF) 9%, transparent); }
.shell--dark .sheet { border-color: transparent; box-shadow: var(--shadow-lg); }
.shell--dark .public-footer { border-top: 1px solid rgba(255, 255, 255, .1); }
.shell--dark .masthead__facts a:focus-visible { outline-color: #FFFFFF; }

/* ══ Landing (Reserve's own page) ════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.hero h1 {
  margin-top: .75rem;
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero__lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}
.hero__cta { margin-top: 1.75rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero__secondary-cta {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-text);
}
.hero__secondary-cta:hover { color: var(--color-primary); }

.proof-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.proof-strip li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.proof-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Page-load moment: the pitch rises in, then the demo. */
.hero__pitch > * { animation: rise .5s ease backwards; }
.hero__pitch > *:nth-child(2) { animation-delay: .05s; }
.hero__pitch > *:nth-child(3) { animation-delay: .1s; }
.hero__pitch > *:nth-child(4) { animation-delay: .15s; }
.hero__demo { animation: rise .55s ease .12s backwards; }
@media (prefers-reduced-motion: reduce) {
  .hero__pitch > *, .hero__demo { animation: none; }
}

/* Live, re-skinnable booking page mock — the product itself as hero art,
   and the pitch's proof: click a tab, the whole page becomes someone else's. */
.hero__demo { justify-self: center; width: 100%; max-width: 380px; }
.demo-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: .875rem;
  flex-wrap: wrap;
}
.demo-tab {
  padding: .4rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.demo-tab:hover { border-color: var(--color-text-subtle); color: var(--color-text); }
.demo-tab--active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.hero__mock {
  --mock-accent: #0E7490;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
  width: 100%;
  transition: box-shadow var(--transition);
}
.hero__mock-mast {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--mock-accent) 14%, #fff),
    color-mix(in srgb, var(--mock-accent) 5%, #fff));
  border-bottom: 3px solid var(--mock-accent);
  padding: 1.1rem 1.25rem .9rem;
  transition: background var(--transition), border-color var(--transition);
}
.hero__mock-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.hero__mock-sub { font-size: .72rem; color: var(--color-text-muted); margin-top: .1rem; }
.hero__mock-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
.hero__mock-label { font-size: .72rem; font-weight: 600; color: var(--color-text-muted); }
.hero__mock-row { display: flex; gap: .45rem; }
.hero__mock-chip {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  padding: .4rem 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: all var(--transition);
}
.hero__mock-chip--on {
  background: var(--mock-accent);
  border-color: var(--mock-accent);
  color: #fff;
  font-weight: 600;
}
.hero__mock-btn {
  margin-top: .4rem;
  background: var(--mock-accent);
  color: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  padding: .55rem;
  border-radius: 8px;
  transition: background var(--transition);
}
.hero__mock-note { text-align: center; font-size: .7rem; color: var(--color-text-subtle); }

.demo-live-link, .demo-note {
  display: block;
  text-align: center;
  margin-top: .875rem;
  font-size: .8125rem;
}
.demo-live-link { font-weight: 600; color: var(--color-primary); }
.demo-note { color: var(--color-text-subtle); padding: 0 1rem; }

.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 4rem;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
  .hero__demo { max-width: 380px; }
  .how-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mock, .hero__mock-mast, .hero__mock-chip, .hero__mock-btn { transition: none; }
}

/* ── Feature grid ────────────────────────────────────────────────────────── */
.section-intro { max-width: 60ch; margin-bottom: 1.75rem; }
.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
}
.section-intro p { margin-top: .5rem; }

.feature-section { padding-bottom: 4rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card { padding: 1.5rem; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-lt);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.0625rem; }

/* ── Audience row ────────────────────────────────────────────────────────── */
.audience-section {
  padding-bottom: 4.5rem;
  text-align: center;
}
.audience-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
}
.audience-section > p { margin-top: .5rem; }
.audience-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem;
  margin-top: 1.75rem;
}
.audience-row li {
  padding: .5rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
}

/* ── Closing CTA band ───────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(160deg, #1E1B4B 0%, #312E81 55%, #3730A3 100%);
  padding: 4.5rem 0;
}
.cta-band__inner { max-width: 640px; text-align: center; }
.cta-band__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.cta-band__inner p {
  margin-top: .875rem;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
}
.cta-band__btn {
  margin-top: 2rem;
  background: #fff;
  color: var(--color-primary-h);
}
.cta-band__btn:hover { background: #fff; color: var(--color-primary-h); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cta-band__email {
  display: block;
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
}

/* ══ Staff calendar (admin) ══════════════════════════════════════════════ */
/* FullCalendar reskinned onto the design tokens: hairline grid, quiet chrome,
   the reservation chip is the loudest thing on the page. */

.cal-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cal-toolbar .form-group { min-width: 220px; }
.cal-toolbar__spacer { flex: 1; }
@media (max-width: 640px) {
  .cal-back { display: none; }                       /* the dashboard is in the menu */
  .cal-toolbar { gap: .75rem; }
  .cal-toolbar .form-group { min-width: 0; flex: 1 1 100%; }
  .cal-toolbar__spacer { display: none; }
  .cal-toolbar__new { flex: 1 1 100%; justify-content: center; }   /* the page's main action, full width */
  .dashboard-card:has(.fc) { padding: 1rem; }
  .fc .fc-timeGridDay-view .fc-col-header { display: none; }         /* the title already names the day */
  /* the calendar's own bar: the day on its own row, then steps and views */
  .fc .fc-header-toolbar { flex-wrap: wrap; gap: .5rem; }
  .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) { order: -1; flex-basis: 100%; }
  .fc .fc-toolbar-title { font-size: 1.125rem; }
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cal-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition), background var(--transition);
}
.cal-pill:hover { border-color: var(--color-text-subtle); }
.cal-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cal-pill--off { opacity: .4; }
.cal-pill--off .cal-pill__dot { background: transparent !important; box-shadow: inset 0 0 0 2px var(--color-text-subtle); }

.fc {
  --fc-border-color: var(--color-border);
  --fc-page-bg-color: var(--color-surface);
  --fc-today-bg-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
  --fc-now-indicator-color: var(--color-danger);
  --fc-event-border-color: transparent;
  --fc-highlight-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  --fc-non-business-color: color-mix(in srgb, var(--color-text-subtle) 9%, transparent);
  --fc-bg-event-opacity: 1;
  font-family: var(--font-sans);
  font-size: .8125rem;
}
.fc .fc-toolbar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.fc .fc-button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  padding: .35rem .8rem;
  border-radius: var(--radius-md);
  box-shadow: none;
  text-transform: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.fc .fc-button:hover { background: var(--color-surface-alt); border-color: var(--color-border); color: var(--color-text); }
.fc .fc-button:focus, .fc .fc-button:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.fc .fc-button:disabled { background: var(--color-surface-alt); color: var(--color-text-subtle); border-color: var(--color-border); }
.fc .fc-col-header-cell-cushion {
  display: block;
  padding: .5rem 0;
  color: var(--color-text-muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.fc .fc-day-today .fc-col-header-cell-cushion { color: var(--color-primary); }
/* Weekends: a light tint and a muted header; whether anyone works then shows through business hours. */
.fc .fc-timegrid-col.fc-day-sat, .fc .fc-timegrid-col.fc-day-sun { background: color-mix(in srgb, var(--color-surface-alt) 60%, transparent); }
.fc .fc-col-header-cell.fc-day-sat, .fc .fc-col-header-cell.fc-day-sun { background: var(--color-surface-alt); }
/* Holidays and closed days: a hatched background with the day's name at the top. */
.fc .fc-bg-event.cal-day { background: transparent; }
.fc .fc-bg-event.cal-day--closed {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--color-danger) 9%, transparent) 0 6px, transparent 6px 12px);
}
.fc .fc-bg-event.cal-day--open { background: color-mix(in srgb, var(--color-warn) 8%, transparent); }
.cal-day__label {
  position: sticky; top: 0;
  margin: 2px; padding: 1px 6px; border-radius: 6px;
  font-size: .6875rem; font-weight: 600; line-height: 1.4;
  color: var(--color-danger); background: var(--color-surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-day--open .cal-day__label { color: #92400E; }
.fc .fc-timegrid-slot-label-cushion {
  font-size: .6875rem;
  color: var(--color-text-subtle);
}
.fc .fc-timegrid-slot { height: 2.4rem; }
.fc .fc-timegrid-event-harness { margin-right: 2px; }
.fc .fc-timegrid-event {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 6px;
}
.fc .fc-timegrid-event .fc-event-main { padding: 0; }
.fc .fc-event:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }

/* Reservation chip — staff color as a spine, status as the chip's mood. */
.cal-chip {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 6px 2px 7px;
  border-left: 3px solid var(--chip-color, var(--color-primary));
  border-radius: 5px;
  background: color-mix(in srgb, var(--chip-color, var(--color-primary)) 12%, #FFFFFF);
  color: var(--color-text);
  font-size: .71875rem;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
}
.cal-chip__time { font-weight: 700; font-size: .65625rem; letter-spacing: .01em; }
.cal-chip__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip__svc {
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-chip--pending { border: 1px dashed color-mix(in srgb, var(--chip-color) 55%, transparent); border-left: 3px solid var(--chip-color); }
.cal-chip--completed { opacity: .55; }
.cal-chip--cancelled { opacity: .45; }
.cal-chip--cancelled .cal-chip__name { text-decoration: line-through; }
.cal-chip--no-show {
  background: color-mix(in srgb, var(--color-warn) 16%, #FFFFFF);
  border-left-color: var(--color-warn);
}

/* Dashboard — the operator's day. One sentence under the business name, a day bar
   (which day, where, whose), then the agenda as a timeline: rows divided by hairlines
   inside one card, a "now" line between what is over and what is to come, and the
   next appointment marked. The left spine carries a status only when it is unusual
   (waiting, done, did not come, cancelled); a confirmed appointment is the norm. */
.day-summary { font-size: 1.0625rem; color: var(--color-text); max-width: 60ch; }

.day-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem;
}
.day-bar__day { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-width: 0; }
.day-bar__step { display: inline-flex; gap: .25rem; }
.day-bar__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.day-bar__filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.form-input--sm, .form-select--sm { width: auto; padding: .4rem .6rem; font-size: .875rem; }

.staff-chips {
  display: flex; flex-wrap: wrap; gap: .2rem; padding: .2rem;
  background: var(--color-surface-alt); border-radius: var(--radius-full);
}
.staff-chip {
  border: 0; background: transparent; cursor: pointer;
  padding: .35rem .85rem; border-radius: var(--radius-full);
  font: inherit; font-size: .875rem; color: var(--color-text-muted);
}
.staff-chip:hover { color: var(--color-text); }
.staff-chip.is-on { background: var(--color-surface); color: var(--color-text); font-weight: 600; box-shadow: var(--shadow-sm); }
.staff-chip:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.agenda { padding: .25rem 0; overflow: hidden; }
.agenda__loading { padding: 3rem 0; }
.agenda .dashboard-empty { margin: 1rem; }
.agenda__list { list-style: none; margin: 0; padding: 0; }
.agenda__item + .agenda__item .agenda-row { border-top: 1px solid var(--color-border); }

.agenda-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: .25rem 1rem;
  align-items: start;
  padding: 1rem 1.25rem 1rem 1.125rem;
  border-left: 3px solid var(--row-status, transparent);
}
.agenda-row--pending   { --row-status: var(--color-warn); }
.agenda-row--completed { --row-status: var(--color-primary); }
.agenda-row--cancelled,
.agenda-row--no-show   { --row-status: var(--color-danger); }
.agenda-row--cancelled { opacity: .6; }
.agenda-row--past .agenda-row__when,
.agenda-row--past .agenda-row__who { color: var(--color-text-muted); }
.agenda-row--next { background: var(--color-primary-lt); }
.agenda-row__time { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.agenda-row__end { font-size: .75rem; color: var(--color-text-subtle); font-weight: 500; font-variant-numeric: tabular-nums; }
.agenda-row__who { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.agenda-row__next { font-size: .75rem; font-weight: 600; color: var(--color-primary); }
.agenda-row__what { font-size: .875rem; color: var(--color-text-muted); margin-top: .1rem; }
.agenda-row__note { font-size: .8125rem; color: var(--color-text-muted); margin-top: .35rem; }
.agenda-row__note strong { color: var(--color-text); font-weight: 600; }
.agenda-row__actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.agenda-row__more { min-width: 2.25rem; font-size: 1.125rem; line-height: 1; }
.agenda-row__expander {
  grid-column: 2 / -1;
  border-top: 1px dashed var(--color-border);
  padding-top: .875rem;
  margin-top: .5rem;
}
.agenda-row__choices { display: flex; gap: .5rem; flex-wrap: wrap; }
.agenda-row__danger { color: var(--color-danger); }

.agenda-now {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem 1.25rem; color: var(--color-primary);
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.agenda-now::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--color-primary); }
.agenda__item + .agenda__item .agenda-now { border-top: 1px solid var(--color-border); }
.agenda-now + .agenda-row { border-top: 0 !important; }

.agenda__cancelled-toggle {
  display: block; margin: .5rem auto .5rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .8125rem; color: var(--color-text-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.agenda__cancelled-toggle:hover { color: var(--color-text); }

.day-numbers__list { display: grid; gap: .5rem; margin: 0; }
.day-numbers__list > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: .5rem; border-bottom: 1px solid var(--color-border);
}
.day-numbers__list dt { color: var(--color-text-muted); font-size: .875rem; }
.day-numbers__list dd { margin: 0; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .day-bar__title { order: -1; flex-basis: 100%; font-size: 1.125rem; }
  .agenda-row { grid-template-columns: 3.5rem minmax(0, 1fr); padding: .875rem 1rem .875rem .875rem; }
  .agenda-row__actions { grid-column: 2; justify-content: flex-start; }
  .agenda-row__expander { grid-column: 1 / -1; }
  .agenda-now { padding-inline: 1rem; }
}

/* Reports — KPI stat tiles and single-hue magnitude bars. Values and labels
   wear text ink; only the bar mark carries the data color. */
.report-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.stat-tile__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.stat-tile__value {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-top: .4rem;
}
.stat-tile--lead .stat-tile__value { font-size: 2.125rem; }
.stat-tile__sub {
  font-size: .8125rem;
  color: var(--color-text-muted);
  margin-top: .4rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
  gap: .25rem 1rem;
  align-items: center;
  padding: .625rem 0;
  border-bottom: 1px solid var(--color-border);
}
.bar-row:last-child { border-bottom: none; }
.bar-row__name { font-weight: 600; font-size: .875rem; }
.bar-row__meta { font-size: .75rem; color: var(--color-text-muted); margin-top: .1rem; }
.bar-row__track { min-width: 0; }
.bar-row__bar {
  height: 10px;
  max-width: 100%;
  background: var(--color-primary);
  border-radius: 0 4px 4px 0; /* rounded data-end, square at the baseline */
  min-width: 2px;
}
.bar-row__value {
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.report-currency-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 1rem 0 .25rem;
}
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row__track { grid-column: 1 / -1; }
}

/* Reservation panel details */
.cal-panel__status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-panel__staff-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: .35rem;
}
.cal-panel__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.cal-panel__note {
  padding: .75rem .875rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  font-size: .875rem;
}
/* Client history in the reservation panel: one line always shown, the rest folds away. */
.client-history__line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 600; margin: 0; }
.client-history__flag {
  font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: var(--radius-full);
  background: var(--color-danger-lt); color: var(--color-danger);
}
.client-history__more { margin-top: .5rem; }
.client-history__more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8125rem; font-weight: 500; color: var(--color-primary);
}
.client-history__more > summary::-webkit-details-marker { display: none; }
.client-history__more > summary::before {
  content: ""; width: .45rem; height: .45rem; margin-right: .1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--transition);
}
.client-history__more[open] > summary::before { transform: rotate(45deg); }
.client-history__more[open] > summary { margin-bottom: .5rem; }
.client-history__more > summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.client-history__details {
  padding: .75rem .875rem; border-radius: var(--radius-md); background: var(--color-surface-alt);
}
.client-history__details p { margin: 0 0 .25rem; }
@media (prefers-reduced-motion: reduce) { .client-history__more > summary::before { transition: none; } }

.history-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8125rem;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.history-row:last-child { border-bottom: none; }
.history-row .text-muted {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Reservation page (/r/{token}) ───────────────────────────────────────── */
/* One slip instead of three cards: a status band, the appointment (the date as a
   calendar leaf, because the date is what people come here for), then calendar
   and cancel as hairline-separated sections. Everything lives under .res-* so
   no shared class (cards, buttons, chips) changes for the booking wizard or the
   admin screens. Status colours are fixed and semantic; only the leaf and the
   one primary button take the business's accent. */
.res { display: grid; gap: 1.25rem; }
.res--confirmed { --res-fg: #14532D; --res-bg: #ECFDF3; --res-dot: #16A34A; }
.res--pending   { --res-fg: #7C2D12; --res-bg: #FFF4D6; --res-dot: #D97706; }
.res--cancelled { --res-fg: #991B1B; --res-bg: #FEF2F2; --res-dot: #DC2626; }
.res--completed { --res-fg: #1E293B; --res-bg: #EEF2F6; --res-dot: #64748B; }
.res--no-show   { --res-fg: #44403C; --res-bg: #F5F5F4; --res-dot: #A8A29E; }

.res-slip {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
}

.res-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .625rem;
  padding: .75rem 1.5rem;
  background: var(--res-bg, var(--color-surface-alt));
  color: var(--res-fg, var(--color-text));
  font-size: .9375rem;
}
.res-status__dot {
  width: .625rem; height: .625rem; border-radius: 50%;
  background: var(--res-dot, var(--color-text-muted));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--res-dot, var(--color-text-muted)) 25%, transparent);
}
.res-status__label { font-weight: 650; }
.res-status__ref {
  margin-left: auto;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .85;
}

.res-body { display: grid; gap: 1.5rem; padding: 1.5rem; }

.res-when { display: flex; align-items: center; gap: 1.25rem; }
.res-leaf {
  flex: none;
  display: grid;
  width: 5rem;
  overflow: hidden;
  text-align: center;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}
.res-leaf__month {
  padding: .25rem 0;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: .8125rem;
  font-weight: 600;
}
.res-leaf__day {
  padding-top: .25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
}
.res-leaf__weekday { padding-bottom: .375rem; font-size: .75rem; color: var(--color-text-muted); }

.res-service {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.res-time {
  margin: .5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.res-time__len { margin-left: .5rem; font-size: .9375rem; font-weight: 400; color: var(--color-text-muted); }
.res-date-long { margin: .125rem 0 0; font-size: .9375rem; color: var(--color-text-muted); }

.res-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.res-facts dt { margin-bottom: .125rem; font-size: .8125rem; color: var(--color-text-muted); }
.res-facts dd { margin: 0; font-weight: 550; }
.res-facts small { display: block; margin-top: .125rem; font-size: .8125rem; font-weight: 400; color: var(--color-text-muted); }

.res-note { padding-left: 1rem; border-left: 3px solid var(--color-border); }
.res-note__label { font-size: .8125rem; color: var(--color-text-muted); }
.res-note p { margin: .125rem 0 0; }

.res-section { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--color-border); }
.res-section__title { margin: 0 0 .75rem; font-size: .9375rem; font-weight: 600; }

.res-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.res-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: .9375rem;
  font-weight: 500;
  transition: border-color .15s, background-color .15s;
}
.res-chip:hover { border-color: var(--color-primary); background: var(--color-primary-lt); color: var(--color-text); }

.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.res-btn:disabled { opacity: .6; cursor: default; }
.res-btn:focus-visible, .res-chip:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.res-btn--primary { background: var(--color-primary); color: var(--color-primary-text); }
.res-btn--primary:hover { background: var(--color-primary-h); color: var(--color-primary-text); }
.res-btn--quiet { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.res-btn--quiet:hover { background: #FEF3F2; border-color: #F3B4AE; color: #B42318; }
.res-btn--danger { background: #B42318; color: #FFFFFF; }
.res-btn--danger:hover:not(:disabled) { background: #912018; }
.res-btn--danger:focus-visible { outline-color: #B42318; }
.res-btn--text { padding: 0 .25rem; background: transparent; color: var(--color-text-muted); font-weight: 500; }
.res-btn--text:hover { color: var(--color-text); text-decoration: underline; }

.res-confirm {
  display: grid;
  gap: .75rem;
  padding: 1rem 1.125rem 1.125rem;
  border: 1px solid #F6D3CF;
  border-radius: 12px;
  background: #FEF7F6;
  animation: res-open .18s ease;
}
.res-confirm__ask { margin: 0; font-weight: 600; }
.res-confirm__label { margin-bottom: -.375rem; font-size: .875rem; color: var(--color-text-muted); }
@keyframes res-open { from { opacity: 0; transform: translateY(-4px); } }

.res-notice {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--color-surface-alt);
  font-size: .9375rem;
}
.res-notice a { font-weight: 600; }

/* Cancelled: the appointment stays readable but visibly void. */
.res--cancelled .res-leaf { filter: grayscale(1); opacity: .6; }
.res--cancelled .res-time > span:first-child { text-decoration: line-through; color: var(--color-text-muted); }

@media (max-width: 480px) {
  .res-status { padding-inline: 1.125rem; }
  .res-body { padding: 1.25rem 1.125rem; }
  .res-section { padding-inline: 1.125rem; }
  .res-leaf { width: 4.25rem; }
  .res-when { gap: 1rem; }
  /* Location (with its address) takes the full row; therapist and price share the next. */
  .res-facts { grid-template-columns: 1fr 1fr; }
  .res-facts > :first-child { grid-column: 1 / -1; }
  .res-actions > .res-btn--primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .res-confirm { animation: none; }
}

/* ── Services page: a price edits in place ───────────────────────────────── */
/* The card itself changes state — same place, same border, no loose block under it —
   so the owner never loses their spot in a long list. The preview line shows what a
   customer will see before it is saved. */
.price-entry {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.price-entry--editing {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 3%, var(--color-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.price-entry__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.price-entry__price { text-align: right; }
.price-entry__amount {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-entry__saved { font-size: .8125rem; font-weight: 500; color: #047857; }
.price-edit { display: grid; gap: 1rem; padding: 1rem 1.125rem 1.125rem; }
.price-edit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.price-edit__grid .form-group { margin: 0; }
.price-edit__preview {
  margin: 0;
  padding: .625rem .875rem;
  border-radius: 10px;
  background: var(--color-primary-lt);
  font-size: .9375rem;
}
.price-edit p.alert { margin: 0; }
.price-edit__actions { display: flex; gap: .5rem; }
@media (max-width: 640px) {
  .price-entry__row { grid-template-columns: 1fr; }
  .price-entry__price { text-align: left; }
  .price-entry__amount { justify-content: flex-start; }
}

/* ── Services page: adding is its own panel ──────────────────────────────── */
/* Opened from the heading's button and closed when done, so the list stays a list. */
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.svc-add {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-primary) 3%, var(--color-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
  animation: res-open .18s ease;
}
.svc-add__title { display: flex; align-items: center; justify-content: space-between; }
.svc-add__title h4 { margin: 0; font-size: 1.0625rem; }
.svc-add .form-group { margin: 0; }
.svc-add__new { display: grid; gap: 1rem; }
.svc-add__numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.svc-add p.alert { margin: 0; }
.svc-add__actions { display: flex; gap: .5rem; }
@media (prefers-reduced-motion: reduce) { .svc-add { animation: none; } }

/* ── Services page: catalog card + per-location card ─────────────────────── */
.svc-stack { display: grid; gap: 1.5rem; }
.svc-add__body { display: grid; gap: 1rem; }
.price-entry__row--template { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }

/* Location picker: only shown when there is a choice. */
.svc-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.svc-tab {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.svc-tab:hover { border-color: var(--color-primary); }
.svc-tab--active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.svc-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin: .125rem .25rem .125rem 0;
  padding: .125rem .625rem;
  border-radius: 999px;
  background: var(--color-surface-alt);
  font-size: .8125rem;
  color: var(--color-text);
}
.svc-unused { color: #92400E; }

/* Who does a service. A service nobody does cannot be booked, so that case is loud. */
.svc-staff { padding: 0 1rem 1rem; }
.svc-staff__row { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.svc-chip--staff { padding: .25rem .375rem .25rem .75rem; font-size: .875rem; margin: 0; }
.svc-chip__x, .svc-chip__yes, .svc-chip__no {
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--color-text-muted);
}
.svc-chip__x { width: 1.25rem; height: 1.25rem; line-height: 1; }
.svc-chip__x:hover { background: #FEE2E2; color: #B42318; }
.svc-chip__confirm { display: inline-flex; align-items: center; gap: .25rem; color: #B42318; font-weight: 500; }
.svc-chip__yes { padding: .125rem .5rem; background: #B42318; color: #FFFFFF; }
.svc-chip__no { padding: .125rem .5rem; }
.svc-chip__x:focus-visible, .svc-chip__yes:focus-visible, .svc-chip__no:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.svc-assign { width: auto; min-width: 9rem; padding: .25rem 2rem .25rem .75rem; font-size: .875rem; min-height: 2rem; border-radius: 999px; }
.svc-warn {
  margin: 0 0 .5rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  background: #FFF4D6;
  color: #7C2D12;
  font-size: .875rem;
}

/* ── Legal pages (/pravno/*, /{slug}/privatnost, /platform/pravno/*) ───── */
.legal { padding: 2rem 0 4rem; line-height: 1.65; }
.legal h1 { margin-bottom: .25rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { margin-top: .5rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .5rem; border-bottom: 1px solid var(--color-border); }
.legal .legal__meta { color: var(--color-text-muted); font-size: .9rem; }
.legal .legal__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.legal .legal__sign div { border-top: 1px solid var(--color-text-muted); padding-top: .5rem; font-size: .9rem; }
@media print { .header, .footer { display: none; } }

/* ── Go-live banner (a business still being set up) ─────────────────── */
.golive-banner { background: var(--color-primary-lt); border-top: 1px solid var(--color-border); }
.golive-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding-top: .625rem; padding-bottom: .625rem; font-size: .9rem; }

/* ── Setup checklist (a business not live yet) ──────────────────────── */
.setup-checklist__steps { list-style: none; padding: 0; margin-top: .75rem; }
.setup-checklist__steps li { position: relative; padding-left: 1.75rem; margin-top: .5rem; }
.setup-checklist__steps li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; border: 2px solid var(--color-border); }
.setup-checklist__steps li.is-done { color: var(--color-text-muted); }
.setup-checklist__steps li.is-done::before { background: var(--color-primary); border-color: var(--color-primary); }
.setup-checklist__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.preview-banner { background: #FEF3C7; color: #92400E; text-align: center; padding: .5rem 1rem; font-size: .9rem; }

/* ── Locations page: list first, rules grouped by what they decide ────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.loc-address { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; }
.loc-address .form-group { margin: 0; }
.loc-advanced summary { cursor: pointer; font-size: .9375rem; font-weight: 500; }
.loc-advanced summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.loc-meta { display: grid; justify-items: end; gap: .125rem; }
.loc-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  text-align: center;
}
.loc-defaults { margin-bottom: 0; padding: .5rem .75rem; border-radius: 10px; background: #FFF4D6; color: #7C2D12; }

.loc-rules { display: grid; gap: 0; }
.loc-group { margin: 0; padding: 1.25rem 0; border: 0; border-top: 1px solid var(--color-border); min-width: 0; }
.loc-group:first-child { border-top: 0; padding-top: .25rem; }
.loc-group legend { float: left; width: 100%; margin-bottom: .75rem; padding: 0; font-weight: 600; font-size: 1rem; }
.loc-group legend + * { clear: left; }
.loc-group .checkbox-row { margin-bottom: .5rem; }
.loc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.loc-fields .form-group, .loc-narrow { margin: 0; }
.loc-narrow { max-width: 16rem; margin: .25rem 0 .75rem; }

/* A number with its unit inside the field: "60 | min". */
.input-unit { position: relative; }
.input-unit .form-input { padding-right: 3.5rem; font-variant-numeric: tabular-nums; }
.input-unit span {
  position: absolute; right: .875rem; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); font-size: .875rem; pointer-events: none;
}

.loc-closures { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.loc-closures__form { display: grid; gap: 1rem; }
.loc-closures__form .form-grid { margin: 0; }
.loc-closures__form > .btn { justify-self: start; }
.loc-holidays {
  display: grid; gap: .75rem;
  margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border);
}
.loc-holidays p { margin: .25rem 0 0; }
.loc-holidays__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.loc-holidays__settings { display: grid; gap: .75rem; }
.loc-holidays__row .form-select { max-width: 16rem; }
.loc-holidays .loc-closure-list { max-height: 22rem; overflow-y: auto; }
.loc-holiday__state { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.loc-closures__list { padding-left: 2rem; border-left: 1px solid var(--color-border); }
.loc-closure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.loc-closure {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .5rem .25rem .5rem .75rem; border-radius: 10px;
}
.loc-closure:hover { background: var(--color-surface-alt); }

@media (max-width: 900px) {
  .loc-closures { grid-template-columns: 1fr; }
  .loc-closures__list { padding-left: 0; border-left: 0; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
}
@media (max-width: 640px) {
  .loc-address { grid-template-columns: 1fr; }
  .loc-meta { justify-items: start; }
}
@media (max-width: 640px) {
  /* The heading's button goes under the text instead of squeezing it. */
  .svc-head { flex-wrap: wrap; }
  .price-entry__row--template { grid-template-columns: 1fr; }
  /* Admin tabs scroll sideways inside their bar instead of widening the page. */
  .subnav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav__link { padding: .625rem .75rem; white-space: nowrap; margin-bottom: 0; }
}
.loc-closures__submit { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── Staff page: people first, then one person's services, week and absences ── */
.staff-access {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: 0 1rem 1rem;
}
.staff-access__login { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.staff-access .checkbox-row { margin: 0; }
.staff-dot {
  display: inline-block; width: .5rem; height: .5rem; margin-right: .375rem; border-radius: 50%;
  background: var(--color-border); vertical-align: middle;
}
.staff-dot--on { background: #10B981; }
.staff-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0 1rem 1rem; }
.staff-inline .form-input { max-width: 14rem; }
.staff-inline--stack { display: grid; gap: .75rem; }
.staff-entry__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.staff-inline--stack .form-input { max-width: none; }
.staff-inline .form-group { margin: 0; }

.staff-section-title { margin: 0 0 .75rem; font-size: 1rem; }
.staff-schedule .loc-group:first-child { border-top: 0; padding-top: 0; }
.staff-schedule .svc-head .staff-section-title { margin: 0; }

.staff-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 10px; background: var(--color-primary-lt);
}
.staff-quick .form-input { width: 7.5rem; }

.staff-week { display: grid; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.staff-day {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: .5rem .75rem .5rem 1rem; border-top: 1px solid var(--color-border);
}
.staff-day:first-child { border-top: 0; }
.staff-day[data-day="SATURDAY"], .staff-day[data-day="SUNDAY"] { background: var(--color-surface-alt); }
.staff-day__name { font-weight: 600; font-size: .9375rem; }
.staff-day__slots { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.staff-slot { font-variant-numeric: tabular-nums; }
.staff-day__add { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.staff-day__add .form-input { width: 7.5rem; min-height: 2.25rem; padding-top: .25rem; padding-bottom: .25rem; }

@media (max-width: 640px) {
  .staff-day { grid-template-columns: 1fr auto; }
  .staff-day__name { grid-column: 1 / -1; }
}
.staff-self {
  padding: .75rem 1rem; border-radius: 10px; background: var(--color-primary-lt); margin: 0;
}

/* ── Platform admin (/platform/dashboard): one person's work list ─────────
   Tabs, a search-and-filter bar, and compact rows that put each business's
   state and its next action on one line. Forms open only when asked for. */
.btn--danger { background: #B42318; border-color: #B42318; color: #FFFFFF; }
.btn--danger:hover:not(:disabled) { background: #912018; border-color: #912018; }
.badge--outline { background: transparent; color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); }

.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.pf-head h1 { margin: 0; }
.pf-count {
  display: inline-block; min-width: 1.4rem; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--color-surface-alt); color: var(--color-text-muted); font-size: .75rem; font-weight: 600;
  text-align: center; font-variant-numeric: tabular-nums;
}
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pf-search { flex: 1 1 16rem; min-width: 0; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-chips .svc-tab { min-height: 2.25rem; font-size: .875rem; }
.pf-new { margin-left: auto; }
.pf-panel { margin-bottom: 1rem; }
.pf-panel h3 { margin: 0; }
.pf-panel__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pf-loading { padding: 2rem 0; }
.pf-loading .spinner { width: 28px; height: 28px; margin: 0 auto; }

.pf-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.pf-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center;
  padding: .875rem 1.125rem;
}
.pf-row + .pf-row { border-top: 1px solid var(--color-border); }
.pf-row--off .pf-row__title strong { color: var(--color-text-muted); }
.pf-row__main { min-width: 0; display: grid; gap: .3rem; }
.pf-row__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.pf-email { overflow-wrap: anywhere; }
.pf-row__meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.pf-row__meta span { overflow-wrap: anywhere; }
.pf-row__badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-row__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.pf-confirm {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .75rem; border-radius: var(--radius-md); background: var(--color-surface-alt);
}
.pf-confirm .form-input { flex: 0 1 14rem; min-width: 0; }

.pf-more { position: relative; }
.pf-more__menu {
  position: absolute; right: 0; top: calc(100% + .25rem); z-index: 20; min-width: 15rem;
  display: grid; padding: .35rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.pf-more__menu button {
  padding: .55rem .75rem; border: 0; border-radius: var(--radius-sm); background: none;
  font: inherit; font-size: .875rem; text-align: left; color: var(--color-text); cursor: pointer;
}
.pf-more__menu button:hover, .pf-more__menu button:focus-visible { background: var(--color-surface-alt); }
.pf-more__menu .pf-danger { color: #B42318; }

.pf-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.pf-docs h3 { margin: 0; }
.pf-links { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; }

@media (max-width: 640px) {
  .pf-row { grid-template-columns: 1fr; }
  .pf-row__actions { justify-content: flex-start; }
  .pf-new { margin-left: 0; }
}
.pf-more > .btn { min-width: 2.25rem; font-size: 1.25rem; line-height: 1; padding: .2rem .5rem; color: var(--color-text); }
