/* ═══════════════════════════════════════════════════════════════════════════ */

/* Google Fonts loaded non-blocking via index.html <link> tags */

/* ─── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --brand-blue:     #4DA3FF;
  --brand-green:    #3DB887;
  --brand-dark:     #3A7BD5;
  --brand-check:    #2FA876;
  --btn-bg: #3A7BD5;
  --btn-bg-hover: #2d6abf;

  --ink:        #1a2332;
  --ink-2:      #2d3f56;
  --ink-3:      #6b7a94;
  --ink-4:      #a8b5c8;
  --paper:      #ffffff;
  --paper-2:    #f5f9ff;
  --paper-3:    #e8f0fb;
  --accent:     #3A7BD5;
  --accent-2:   #4DA3FF;
  --accent-bg:  #EBF4FF;

  --green:      #1a7a4a;
  --green-bg:   #e8f8f0;
  --red:        #c0392b;
  --red-bg:     #fdf0ee;
  --amber:      #a05c00;
  --amber-bg:   #fef6e4;
  --grey:       #5c6b7a;
  --grey-bg:    #f0f4f8;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'DM Mono', ui-monospace, monospace;

  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(26,50,80,.07);
  --shadow:     0 4px 16px rgba(26,50,80,.10);
  --shadow-lg:  0 12px 40px rgba(26,50,80,.14);

  --nav-h:      60px;
  --max-w:      1100px;
  --col-pad:    clamp(16px, 4vw, 40px);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper-2);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul { list-style: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--col-pad);
}

/* ─── Navigation ──────────────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--paper-3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--col-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  height: 100%;
}

.lang-selector {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
  min-width: 48px;
  text-align: center;
}
.lang-selector:hover { border-color: var(--ink-3); color: var(--ink); }
.lang-selector:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }

.nav-link--cta {
  background: var(--btn-bg);
  color: #fff;
  margin-left: 4px;
  font-weight: 600;
}
.nav-link--cta:hover { background: var(--btn-bg-hover); color: #fff; }

.nav-link--cta2 {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  margin-left: 2px;
  font-weight: 600;
}
.nav-link--cta2:hover { background: var(--accent-bg); border-color: var(--accent-2); }

.nav-link--secondary { color: var(--ink-3); }

.nav-link--sub,
.nav-sub-header { display: none !important; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.app-footer {
  margin-top: auto;
  padding: 24px var(--col-pad);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--ink-4);
  border-top: 1px solid var(--paper-3);
  background: #fff;
}
.footer-link { color: var(--ink-3); transition: color .15s; }
.footer-link:hover { color: var(--accent); }
.footer-sep { opacity: .5; }

/* ─── Main content area ───────────────────────────────────────────────────── */
.app-root { flex: 1; }
.page { padding-block: 40px; }
.page__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-bottom: 4px; }
.page__sub { font-size: .95rem; color: var(--ink-3); margin-bottom: 28px; }

/* ─── Loading states ──────────────────────────────────────────────────────── */
.splash-loader,
.page-loader,
.table-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--paper-3);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ─── Route error ─────────────────────────────────────────────────────────── */
.route-error {
  max-width: 440px;
  margin: 80px auto;
  padding: var(--col-pad);
  text-align: center;
}
.route-error h2 { font-size: 1.5rem; margin-bottom: 8px; }
.route-error p { color: var(--ink-3); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .15s, color .15s, border-color .15s, opacity .15s, transform .1s;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: var(--btn-bg-hover); border-color: transparent; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-bg); border-color: var(--accent-2); }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: transparent;
}
.btn-danger:hover:not(:disabled) { background: #fbd9d5; }

.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-xs { padding: 4px 10px; font-size: .78rem; }
.btn-block { width: 100%; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent-2); }

.back-btn {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
.form-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(77,163,255,.15);
}
.form-input:disabled {
  background: var(--paper-2);
  color: var(--ink-3);
  cursor: not-allowed;
}
.form-input--color {
  width: 44px;
  height: 36px;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.form-input--time { width: auto; }
.form-input--prefixed { border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }

.form-textarea { resize: vertical; min-height: 80px; }

.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a94' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(77,163,255,.15); }
.form-select--sm { font-size: .85rem; padding: 6px 30px 6px 10px; width: auto; }

.form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-hint { font-size: .8rem; color: var(--ink-3); font-weight: 400; }
.form-save-status { font-size: .85rem; color: var(--green); font-weight: 500; }

.form-error {
  font-size: .85rem;
  color: var(--red);
  padding: 8px 12px;
  background: var(--red-bg);
  border-radius: var(--radius);
  margin-top: 8px;
}

.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

.input-prefix-wrap {
  display: flex;
  align-items: stretch;
}
.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .82rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.color-input-wrap { display: flex; align-items: center; gap: 10px; }
.color-input-hint { font-size: .8rem; color: var(--ink-3); font-weight: 400; }

.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-form--inline { display: flex; align-items: flex-end; flex-direction: row; gap: 10px; flex-wrap: wrap; }
.settings-form--inline .form-input { width: auto; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,22,18,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in .18s ease;
}
.modal-backdrop[hidden] { display: none; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(16px); } }

body.modal-open { overflow: hidden; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  animation: slide-up .2s ease;
  max-height: 90dvh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink-3);
  transition: background .15s;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }

.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.modal__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--paper-3);
  margin-bottom: 24px;
}

.modal__tab {
  flex: 1;
  padding: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.modal__tab:hover { color: var(--ink); }
.modal__tab--active { color: var(--ink); border-bottom-color: var(--ink); }

.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form[hidden] { display: none; }
.modal__forgot { margin: -4px 0; text-align: right; font-size: .82rem; }
.modal__divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; margin: 2px 0; }
.modal__divider::before, .modal__divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Google button ───────────────────────────────────────────────────────── */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--border);
  font-weight: 500; font-size: .9rem; padding: 10px 18px; border-radius: 8px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-google:hover { background: var(--paper-2); border-color: var(--ink-3); }

/* ─── Auth card (reset-password page) ────────────────────────────────────── */
.page--narrow .container { max-width: 460px; }
.auth-card { background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 40px 36px; margin: 60px auto 0; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.auth-card__title { font-size: 1.4rem; font-weight: 700; margin: 0 0 6px; }
.auth-card__sub { color: var(--ink-3); margin: 0 0 24px; font-size: .9rem; line-height: 1.5; }
.auth-card__back { margin-top: 20px; font-size: .85rem; text-align: center; }
.auth-card__success { text-align: center; padding: 12px 0; }
.auth-card__success-icon { font-size: 2.4rem; margin-bottom: 12px; }
.auth-card__success p { color: var(--ink-2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
.toast--info { background: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card--form { border-top: 3px solid var(--brand-blue); }
.card__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.card__subtitle { font-size: .95rem; font-weight: 600; margin-bottom: 10px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-header-row .card__title { margin-bottom: 0; }

.divider { border: none; border-top: 1px solid var(--paper-3); margin: 24px 0; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.status-badge--confirmed { background: var(--green-bg); color: var(--green); }
.status-badge--completed { background: var(--grey-bg); color: var(--grey); }
.status-badge--cancelled { background: var(--red-bg); color: var(--red); }
.status-badge--no_show   { background: var(--amber-bg); color: var(--amber); }
.status-badge--paid      { background: var(--green-bg); color: var(--green); font-weight: 600; }
.status-badge--credits   { background: var(--accent-bg, #ede9fe); color: var(--accent, #7c3aed); font-weight: 600; }
.status-badge--pending   { background: var(--amber-bg); color: var(--amber); }
.status-badge--pending_payment { background: #fffbeb; color: #92400e; }
.attendee-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--paper-3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.page-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.page-subtitle { color: var(--ink-3); font-size: .95rem; margin-top: 2px; }

.empty-state { color: var(--ink-3); font-size: .9rem; padding: 24px 0; }
.empty-state--guide { padding: 20px 0; }
.empty-state--guide .empty-state__title { color: var(--ink-2); font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.empty-state--guide .empty-state__body  { color: var(--ink-3); font-size: .85rem; margin: 0; line-height: 1.5; }
.error-msg { color: var(--red); font-size: .9rem; padding: 12px 0; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--paper-3);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--paper-2);
  vertical-align: middle;
  color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--paper-2); }
.data-table th { color: var(--ink-3); border-bottom-color: var(--paper-3); }

.actions-cell { display: flex; flex-direction: column; gap: 4px; align-items: stretch; min-width: 10rem; }
.actions-cell .btn-xs { text-align: center; justify-content: center; }

.table-scroll-hint {
  display: none;
}
@media (max-width: 900px) {
  .table-scroll-hint {
    display: block;
    text-align: center;
    font-size: .75rem;
    color: var(--ink-3);
    margin: 6px 0 2px;
    letter-spacing: .03em;
    transition: opacity .3s;
  }
  .table-wrap.scrolled-end + .table-scroll-hint {
    opacity: 0;
    pointer-events: none;
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 20px;
}
.pagination__info { font-size: .85rem; color: var(--ink-3); font-family: var(--font-mono); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }

/* ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  padding-block: clamp(60px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #EBF4FF 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-3);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: .82rem; color: var(--ink-4); }

.features { padding-block: 80px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.02em; }
.feature-card p { font-size: .88rem; color: var(--ink-3); line-height: 1.5; }

.customer-cta {
  padding-bottom: 48px;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
.page--booking { padding-top: 0; }

.booking-hero {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(32px, 5vw, 60px);
}
.booking-hero__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.booking-hero__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}
.booking-hero__name {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.booking-hero__headline { opacity: .75; font-size: .95rem; margin-top: 4px; }
.booking-hero__rating { font-size: .88rem; opacity: .8; margin-top: 4px; }
.rating-count { opacity: .7; }

.booking-body { padding-block: 36px; }
.provider-description { color: var(--ink-2); margin-bottom: 32px; max-width: 680px; line-height: 1.65; }

.booking-step { margin-bottom: 32px; }
.booking-step__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }

.service-list { display: flex; flex-direction: column; gap: 10px; max-width: 600px; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.service-card--selected { border-color: var(--brand-blue); box-shadow: 0 0 0 2px var(--brand-blue); }
.service-card__name { font-weight: 600; font-size: .95rem; }
.service-card__meta { font-size: .82rem; color: var(--ink-3); font-family: var(--font-mono); }
.service-card__desc { font-size: .85rem; color: var(--ink-3); margin-top: 2px; }

.date-picker-wrap { max-width: 220px; }
.date-input { font-family: var(--font-mono); font-size: .9rem; }

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 600px;
}
.slot-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  background: #fff;
  font-size: .88rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slot-btn:hover { border-color: var(--ink-3); }
.slot-btn--selected { border-color: var(--btn-bg); background: var(--btn-bg); color: #fff; }

.booking-form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.booking-summary-mini {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: var(--ink-2);
}
.booking-summary-mini p { margin-bottom: 2px; }
.booking-summary-mini strong { color: var(--ink); }

.booking-success {
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
  padding: 48px 24px;
}
.booking-success__icon { font-size: 3rem; margin-bottom: 16px; }
.booking-success h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; }
.confirm-details { color: var(--ink-2); margin-bottom: 12px; font-size: .95rem; }
.confirm-note { color: var(--ink-3); font-size: .85rem; margin-bottom: 24px; }

.booking-error { max-width: 480px; margin: 80px auto; text-align: center; }
.booking-error h2 { margin-bottom: 8px; }
.booking-error p { color: var(--ink-3); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.page--dashboard .container { max-width: 1000px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100px;
  align-items: flex-start;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.stat-card--loading { animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.stat-card__icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-card__value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.stat-card__label { font-size: .78rem; color: var(--ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

.booking-link-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(201,80,26,.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: .88rem;
  flex-wrap: wrap;
}
.booking-link {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-section {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 24px 24px 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
.page--settings .container { max-width: 760px; }

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--paper-3);
  margin-bottom: 28px;
}
.tab-nav__btn {
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.tab-nav__btn:hover { color: var(--ink); }
.tab-nav__btn--active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.avail-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--paper-2);
  flex-wrap: wrap;
}
.avail-row:last-of-type { border-bottom: none; }
.avail-row__check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.avail-row__check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--ink); }
.avail-row__day { font-weight: 500; font-size: .9rem; min-width: 90px; }
.avail-row__times { display: flex; align-items: center; gap: 8px; }
.avail-row__times--hidden { visibility: hidden; pointer-events: none; opacity: 0; }
.avail-sep { color: var(--ink-3); font-size: .9rem; }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--paper-2);
  gap: 12px;
  flex-wrap: wrap;
}
.service-row:last-child { border-bottom: none; }
.service-row--inactive .service-row__info { opacity: .45; }
.service-row__info { display: flex; flex-direction: column; gap: 2px; }
.service-row__meta { font-size: .8rem; color: var(--ink-3); font-family: var(--font-mono); }
.service-row__actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.blocked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  border-bottom: 1px solid var(--paper-2);
  font-size: .88rem;
  color: var(--ink-2);
}
.blocked-row:last-child { border-bottom: none; }

.subscription-info p { font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.subscription-info .btn { margin-right: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
.page--customer-dash .container { max-width: 760px; }

.booking-cards { display: flex; flex-direction: column; gap: 14px; }

.booking-card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: box-shadow .15s;
}
.booking-card:hover { box-shadow: var(--shadow-sm); }
.booking-card--cancelled { opacity: .65; }

.booking-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.booking-card__service { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }

.booking-card__body { font-size: .88rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.booking-card__provider { color: var(--ink-3); }
.booking-card__datetime { font-family: var(--font-mono); font-size: .85rem; }
.booking-card__duration,
.booking-card__price { color: var(--ink-3); font-size: .82rem; }

.booking-card__actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.star-picker { display: flex; gap: 4px; margin-bottom: 4px; }
.star-btn {
  font-size: 1.8rem;
  color: var(--paper-3);
  transition: color .1s, transform .1s;
  line-height: 1;
}
.star-btn:hover,
.star-btn--active { color: #f5a623; }
.star-btn:hover { transform: scale(1.15); }

/* ═══════════════════════════════════════════════════════════════════════════ */
.page--pricing .container { max-width: 960px; }

.pricing-header { text-align: center; padding-block: clamp(40px, 6vw, 80px) 48px; }
.pricing-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; margin-bottom: 12px; }
.pricing-sub { font-size: 1.05rem; color: var(--ink-3); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.plan-card {
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: var(--shadow); }

.plan-card--highlight {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.plan-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  width: fit-content;
}

.plan-card__header { margin-bottom: 20px; }
.plan-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.plan-for {
  font-size: .78rem;
  color: var(--ink-3);
  margin: 0 0 10px;
  line-height: 1.3;
}
.plan-for__label {
  display: inline-block;
  background: var(--paper-3);
  color: var(--ink-3);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.plan-card--highlight .plan-for__label {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 8px; }
.plan-price__amount { font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; font-family: var(--font-mono); }
.plan-price__period { font-size: .88rem; color: var(--ink-3); }
.plan-tagline { font-size: .85rem; color: var(--ink-3); line-height: 1.4; }

.plan-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: var(--ink-2);
}
.plan-feature__check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-card__footer { margin-top: auto; }

.pricing-footer {
  text-align: center;
  padding-block: 40px 20px;
  font-size: .88rem;
  color: var(--ink-3);
}
.pricing-footer p + p { margin-top: 4px; }
.pricing-footer__sub { font-size: .8rem; opacity: .7; }

.pricing-vat-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-block: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin-inline: auto;
}
.vat-toggle-btn {
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.vat-toggle-btn + .vat-toggle-btn { border-left: 1.5px solid var(--border); }
.vat-toggle-btn--active {
  background: var(--accent);
  color: #fff;
}
.vat-toggle-btn:not(.vat-toggle-btn--active):hover { background: var(--bg-2); }
.pricing-vat-note {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-3);
  margin-bottom: 32px;
  max-width: 520px;
  margin-inline: auto;
}

.faq { padding-block: 48px; max-width: 620px; margin-inline: auto; }
.faq__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 20px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--paper-3);
  padding-block: 4px;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  font-weight: 600;
  font-size: .93rem;
  user-select: none;
  gap: 12px;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--ink-3); font-weight: 300; flex-shrink: 0; }
details[open] > .faq-q::after { content: '−'; }
.faq-a { padding-bottom: 14px; font-size: .88rem; color: var(--ink-3); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }

  .modal { padding: 24px 20px; }
  .booking-hero__logo { width: 48px; height: 48px; }
  .avail-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .avail-row__times--hidden { display: none; }
}

@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
.col-span-4 { grid-column: 1 / -1; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Booking availability calendar ───────────────────────────────────────── */
.bkcal { max-width: 320px; margin: 0 auto; user-select: none; }
.bkcal-spinner { display: flex; justify-content: center; padding: 48px; }

.bkcal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bkcal-title  { font-size: 1rem; font-weight: 600; color: var(--ink); }
.bkcal-nav    { background: none; border: 1.5px solid var(--paper-3); border-radius: var(--radius); width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s; display: flex; align-items: center; justify-content: center; }
.bkcal-nav:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); }
.bkcal-nav:disabled { opacity: .35; cursor: not-allowed; }

.bkcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bkcal-day-name { text-align: center; font-size: .7rem; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; }

.bkcal-cell { aspect-ratio: 1; border-radius: 50%; border: none; font-size: .88rem; font-weight: 500; cursor: pointer; transition: transform .1s, box-shadow .1s; display: flex; align-items: center; justify-content: center; }
.bkcal-cell--empty { background: none; pointer-events: none; }
.bkcal-cell--past  { color: var(--ink-4); background: none; cursor: not-allowed; font-weight: 400; }

.bkcal-cell--available   { background: #dcfce7; color: #166534; font-weight: 600; }
.bkcal-cell--available:hover { background: #bbf7d0; transform: scale(1.1); box-shadow: 0 2px 8px rgba(22,101,52,.2); }

.bkcal-cell--unavailable { background: #fee2e2; color: #991b1b; cursor: not-allowed; opacity: .7; }

.bkcal-cell--selected    { background: var(--btn-bg) !important; color: #fff !important; box-shadow: 0 2px 10px rgba(58,123,213,.35); transform: scale(1.1); }

.bkcal-legend { display: flex; align-items: center; gap: 16px; margin-top: 14px; justify-content: center; font-size: .75rem; color: var(--ink-3); }
.bkcal-legend__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bkcal-legend__dot--available   { background: #86efac; }
.bkcal-legend__dot--unavailable { background: #fca5a5; }

/* ─── Hero search ─────────────────────────────────────────────────────────── */
.hero--search {
  padding-block: 72px 56px;
  background: linear-gradient(135deg, #2d6abf 0%, #4DA3FF 70%, #3DB887 100%);
  color: #fff;
}
.hero--search .hero__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero--search .hero__sub   { color: rgba(255,255,255,.85); max-width: 540px; margin-inline: auto; }
.hero--search .hero__note--provider {
  margin-top: 20px; font-size: .88rem; color: rgba(255,255,255,.75);
}
.hero--search .hero__note--provider .link-btn { color: #fff; text-decoration: underline; }

.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-white { background: #fff; color: var(--brand-dark); font-weight: 700; border: none; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-white:hover { background: #f0f6ff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero__trust {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}
.hero__trust-badge { font-size: .85rem; color: rgba(255,255,255,.85); }
.hero__trust-sep   { color: rgba(255,255,255,.4); }

.hero__search-label {
  margin-top: 40px; margin-bottom: 10px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}

.hero-search {
  display: flex; gap: 8px; margin-top: 0; flex-wrap: wrap; justify-content: center;
  max-width: 700px; margin-inline: auto;
}
.hero-search__input {
  box-shadow: var(--shadow-sm);
  flex: 2 1 260px; min-width: 0;
  padding: 12px 16px; border-radius: var(--radius); border: none;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  height: 48px; -webkit-appearance: none; appearance: none;
}
.hero-search__city {
  flex: 1 1 140px; min-width: 0;
  padding: 12px 16px; border-radius: var(--radius); border: none;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  height: 48px; -webkit-appearance: none; appearance: none;
}
.hero-search__btn { padding: 12px 28px; font-size: 1rem; white-space: nowrap; }
.page--search { padding-block: 32px; }

.search-bar-wrap { margin-bottom: 28px; }
.search-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.search-bar__input {
  flex: 2 1 260px; min-width: 0;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--paper-3); font-size: .95rem;
}
.search-bar__input:focus { outline: none; border-color: var(--accent); }
.search-bar__city {
  flex: 1 1 140px; min-width: 0;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--paper-3); font-size: .95rem;
}
.search-bar__city:focus { outline: none; border-color: var(--accent); }
.search-bar__btn { white-space: nowrap; }

.search-count { font-size: .88rem; color: var(--ink-3); margin-bottom: 20px; }
.search-loading { color: var(--ink-3); padding: 40px; text-align: center; }

/* ─── Provider grid & cards ───────────────────────────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.pcard {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--paper-3); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
  background: var(--paper);
}
.pcard:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.pcard__top {
  height: 80px; display: flex; align-items: center; justify-content: center;
  background: var(--accent);
}
.pcard__logo {
  max-height: 56px; max-width: 120px; object-fit: contain; border-radius: 4px;
}
.pcard__initials {
  font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -.03em;
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}

.pcard__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pcard__name { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
.pcard__city { font-size: .8rem; color: var(--ink-3); }
.pcard__headline { font-size: .85rem; color: var(--ink-2); margin: 0; }
.pcard__services { font-size: .8rem; color: var(--ink-3); margin: 0; }
.pcard__reviews { font-size: .8rem; color: var(--ink-3); margin-top: auto; padding-top: 6px; }

.pcard__footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--paper-2);
}

/* ─── Group service badges ────────────────────────────────────────────────── */
.service-card__group-badge {
  display: inline-block; margin-left: 8px;
  background: #e0e7ff; color: #3730a3;
  font-size: .7rem; font-weight: 700; padding: 1px 7px;
  border-radius: 20px; vertical-align: middle; letter-spacing: .02em;
}
.service-card__spots {
  display: inline-block; margin-left: 6px;
  font-size: .78rem; color: #059669; font-weight: 600;
}
.service-card__min-warn {
  display: block; font-size: .78rem; color: #b45309;
  margin-top: 4px;
}

/* ─── Group slot buttons ──────────────────────────────────────────────────── */
.slot-btn--group {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px; gap: 3px; min-width: 100px;
}
.slot-btn__time { font-size: .95rem; font-weight: 600; }
.slot-btn__spots { font-size: .72rem; color: #059669; font-weight: 500; }
.slot-btn__spots--full { color: var(--ink-3); }

/* ─── Settings group fields ───────────────────────────────────────────────── */
.form-label--checkbox {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; cursor: pointer;
}
.form-label--checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
#group-fields { margin-top: 4px; padding: 12px 16px; background: var(--paper-2); border-radius: var(--radius); }

/* ─── Dev plan switcher banner ─────────────────────────────────────────────── */
.dev-plan-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff8e1;
  border: 1.5px dashed #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13px;
}
.dev-plan-banner__label { font-weight: 600; color: #92400e; }
.dev-plan-banner__select {
  padding: 3px 8px;
  border: 1px solid #f59e0b;
  border-radius: 5px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.dev-plan-banner__btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}
.dev-plan-banner__btn:hover { background: #d97706; }
.dev-plan-banner__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.dev-plan-banner__status { font-size: 12px; color: #555; }

.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.radio-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.form-field > .form-label { margin-bottom: 0; }

.mode-badge { display: inline-block; padding: 1px 7px; border-radius: 100px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-right: 4px; }
.mode-badge--fixed { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }

.avail-windows { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
.avail-window  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avail-scope-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.avail-scope-row .form-label { margin: 0; white-space: nowrap; font-size: .85rem; color: var(--ink-3); }
.avail-staff-hint { color: var(--ink-2); font-style: italic; }
.btn-ghost { background: none; border: none; color: var(--ink-4); cursor: pointer; padding: 2px 6px; border-radius: 4px; line-height: 1; }
.btn-ghost:hover { background: var(--paper-2); color: var(--red, #c33); }

/* ─── Staff list ──────────────────────────────────────────────────────────── */
.staff-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.staff-row:last-child { border-bottom: none; }
.staff-row--inactive { opacity: .55; }
.staff-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.staff-row__name { font-weight: 500; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.staff-row__email { font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-row__actions { display: flex; gap: 6px; flex-shrink: 0; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.badge--muted { background: var(--paper-2); color: var(--ink-3); }
.settings-form--card { background: var(--paper-2); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }

/* ─── Staff picker (booking page) ────────────────────────────────────────── */
.staff-picker { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.staff-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid var(--border); border-radius: 10px; background: var(--paper); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; width: 100%; }
.staff-card:hover { border-color: var(--brand, var(--ink)); background: var(--paper-2); }
.staff-card--selected { border-color: var(--brand, var(--brand-blue)); background: var(--accent-bg); }
.staff-card__name { font-weight: 500; font-size: .95rem; }
.booking-staff-name { font-weight: 400; color: var(--ink-3); font-size: .9rem; }

/* ─── Staff checkbox list (settings service form) ────────────────────────── */
.staff-check-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px 14px; background: var(--paper-2); border: 1px solid var(--border); border-radius: 8px; }
.staff-check-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; padding: 3px 0; }
.staff-check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ink); cursor: pointer; flex-shrink: 0; }
.avail-add-window { align-self: flex-start; margin-top: 2px; font-size: .78rem; }

.fixed-event-date { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; text-transform: capitalize; }
.slot-btn--fixed { min-width: 160px; }

.attendee-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.attendee-card { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.attendee-card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.attendee-card__name { font-weight: 600; font-size: .88rem; color: var(--ink); }
.attendee-card__detail { font-size: .8rem; color: var(--ink-3); text-decoration: none; }
a.attendee-card__detail:hover { color: var(--accent); text-decoration: underline; }
.drawer-empty { font-size: .85rem; color: var(--ink-4); padding: 4px 0; font-style: italic; }

#attendees-modal.modal-overlay { position: fixed; inset: 0; background: rgba(26,22,18,.4); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
#attendees-modal.modal-overlay[hidden] { display: none !important; }
#attendees-modal .modal { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,.18); width: 100%; max-width: 600px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
#attendees-modal .modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid var(--paper-3); flex-shrink: 0; }
#attendees-modal .modal__title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
#attendees-modal .modal__close { background: none; border: none; font-size: 1.4rem; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 4px; }
#attendees-modal .modal__close:hover { background: var(--paper-2); color: var(--ink); }
#attendees-modal .modal__body { padding: 16px 24px 20px; overflow-y: auto; }
.attendees-table { width: 100%; }
.table-link { color: var(--accent); text-decoration: none; }
.table-link:hover { text-decoration: underline; }

.occurrence-list { border-top: 1px solid var(--paper-3); background: var(--paper-2); }
.occurrence-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--paper-3); flex-wrap: wrap; }
.occurrence-row--past { opacity: .55; }
.occurrence-row__info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.occurrence-row__date { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.occurrence-row__actions { display: flex; gap: 6px; flex-shrink: 0; }

.scope-dialog-overlay { position: fixed; inset: 0; background: rgba(26,22,18,.4); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.scope-dialog { background: #fff; border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: 0 8px 40px rgba(0,0,0,.18); max-width: 380px; width: 100%; }
.scope-dialog__msg { font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.scope-dialog__date { font-size: .85rem; color: var(--ink-3); margin: 0 0 16px; }
.scope-dialog__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.service-row__repeat { display: block; font-size: .78rem; color: var(--ink-4); margin-top: 2px; }

#shared-confirm-modal.modal-overlay { position: fixed; inset: 0; background: rgba(26,22,18,.4); z-index: 350; display: flex; align-items: center; justify-content: center; padding: 16px; }
#shared-confirm-modal.modal-overlay[hidden] { display: none !important; }
#shared-confirm-modal .confirm-modal { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,.18); width: 100%; max-width: 400px; }
#shared-confirm-modal .modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 14px; border-bottom: 1px solid var(--paper-3); }
#shared-confirm-modal .modal__title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
#shared-confirm-modal .modal__close { background: none; border: none; font-size: 1.4rem; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 4px; }
#shared-confirm-modal .modal__close:hover { background: var(--paper-2); color: var(--ink); }
#shared-confirm-modal .modal__body { padding: 16px 24px 22px; }
.confirm-modal__body { font-size: .9rem; color: var(--ink-2); margin: 0 0 20px; line-height: 1.5; }
.confirm-modal__actions { display: flex; gap: 8px; justify-content: flex-end; }

.modal__type-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 24px;
  border-bottom: 1px solid var(--paper-3);
}
.modal__type-label--provider { background: #eef2ff; color: #3730a3; }
.modal__type-label--customer { background: #f0fdf4; color: #166534; }

.tooltip-popup {
  position: fixed;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  max-width: 240px;
  padding: 5px 9px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 600;
  text-align: center;
  opacity: 0;
  transition: opacity .15s;
}
.tooltip-popup.tooltip-popup--visible { opacity: 1; }

.col-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-4);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  cursor: default;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}

.field-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink-5, #c0c8d8);
  color: var(--ink-1, #fff);
  font-size: .62rem;
  font-weight: 700;
  cursor: default;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s;
}
.field-help:hover {
  background: var(--accent, #4f46e5);
}

.analytics-gate { color: var(--ink-3); font-size: .9rem; padding: 24px 0; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .analytics-grid { grid-template-columns: 1fr; } }

.analytics-card { background: #fff; border: 1px solid var(--paper-3); border-radius: var(--radius-lg); padding: 20px 22px; }
.analytics-card--wide { grid-column: span 2; }
@media (max-width: 720px) { .analytics-card--wide { grid-column: span 1; } }

.analytics-card__header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.analytics-card__title { font-size: .85rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.analytics-summary { display: flex; gap: 20px; }
.analytics-kpi { font-size: .88rem; color: var(--ink-2); }
.analytics-kpi small { font-size: .75rem; color: var(--ink-4); margin-left: 3px; }
.analytics-empty { color: var(--ink-4); font-size: .85rem; padding: 12px 0; }

.analytics-bar-chart,
.analytics-peak-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 22px; position: relative; }
.analytics-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.analytics-bar-col--sm { flex: none; width: 14px; }
.analytics-bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; transition: filter .15s; cursor: default; }
.analytics-bar-col:hover .analytics-bar { filter: brightness(.88); }
.analytics-bar-label { position: absolute; bottom: -20px; font-size: .65rem; color: var(--ink-4); white-space: nowrap; }
.analytics-bar-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  line-height: 1.5;
}
.analytics-bar-col:hover .analytics-bar-tooltip { display: block; }

.analytics-status-list { display: flex; flex-direction: column; gap: 10px; }
.analytics-status-row { display: flex; align-items: center; gap: 8px; font-size: .83rem; }
.analytics-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.analytics-status-label { width: 90px; flex-shrink: 0; color: var(--ink-2); }
.analytics-status-bar-wrap { flex: 1; height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.analytics-status-bar { height: 100%; border-radius: 4px; transition: width .4s ease; }
.analytics-status-bar--accent { background: var(--accent); }
.analytics-status-count { width: 32px; text-align: right; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.analytics-status-pct { width: 36px; text-align: right; color: var(--ink-4); flex-shrink: 0; }

.analytics-service-list { display: flex; flex-direction: column; gap: 10px; }
.analytics-service-row { display: flex; align-items: center; gap: 10px; font-size: .83rem; }
.analytics-service-name { width: 140px; flex-shrink: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analytics-service-count { width: 80px; flex-shrink: 0; color: var(--ink); font-weight: 500; white-space: nowrap; }
.analytics-service-revenue { width: 80px; text-align: right; flex-shrink: 0; color: var(--ink-3); font-size: .8rem; }

.analytics-ratings-list { display: flex; flex-direction: column; gap: 10px; }
.analytics-rating-row { display: flex; align-items: center; gap: 8px; font-size: .83rem; }
.analytics-stars { color: #f59e0b; letter-spacing: 1px; }
.analytics-rating-val { font-weight: 700; color: var(--ink); }
.analytics-rating-count { color: var(--ink-4); font-size: .78rem; }

.page--narrow { padding-block: 48px; }
.container--sm { max-width: 480px; margin-inline: auto; }

.cancel-card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cancel-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cancel-card__icon--warn {
  background: var(--red-bg);
  color: var(--red);
}
.cancel-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.cancel-card__sub {
  font-size: .9rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
  max-width: 340px;
}
.cancel-booking-details {
  width: 100%;
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 8px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cancel-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .88rem;
}
.cancel-detail-label { color: var(--ink-3); flex-shrink: 0; }
.cancel-detail-value { color: var(--ink); font-weight: 500; text-align: right; }
.cancel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.cancel-warning {
  font-size: .78rem;
  color: var(--ink-4);
  margin: 0;
  max-width: 340px;
  line-height: 1.5;
}

.bk-cal-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-cal-title  { margin: 0; font-size: 1rem; font-weight: 600; flex: 1; }
.bk-cal-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-cal-nav { width: 32px; padding-inline: 0; font-size: 1.1rem; }
.bk-cal-view-switch { display: flex; border: 1.5px solid var(--paper-3); border-radius: var(--radius); overflow: hidden; }
.bk-vsw-btn { padding: 5px 12px; font-size: .8rem; font-weight: 500; color: var(--ink-3); background: none; border: none; cursor: pointer; }
.bk-vsw-btn + .bk-vsw-btn { border-left: 1.5px solid var(--paper-3); }
.bk-vsw-btn.active { background: var(--ink); color: var(--paper); }

.bk-cal-body { border: 1px solid var(--paper-3); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }

.bk-cal-week { display: flex; flex-direction: column; }
.bk-cal-week-header { display: flex; border-bottom: 1px solid var(--paper-3); background: var(--paper-2); position: sticky; top: 0; z-index: 4; }
.bk-cal-gutter { width: 52px; flex-shrink: 0; }
.bk-cal-day-head { flex: 1; text-align: center; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid var(--paper-3); }
.bk-cal-day-head.today { background: #eef2ff; }
.bk-cal-day-name { font-size: .7rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.bk-cal-day-num { font-size: 1rem; font-weight: 700; color: var(--ink); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.bk-cal-day-num.today-num { background: var(--accent); color: #fff; }

.bk-cal-scroll { overflow-y: auto; max-height: 520px; }
.bk-cal-grid { display: flex; }
.bk-cal-grid--day .bk-cal-day-col { flex: 1; }
.bk-cal-hour-col { width: 52px; flex-shrink: 0; border-right: 1px solid var(--paper-2); display: flex; flex-direction: column; }
.bk-cal-hour-slot { position: relative; border-bottom: 1px solid var(--paper-2); flex-shrink: 0; }
.bk-cal-hour-label { position: absolute; top: -8px; right: 6px; font-size: .68rem; color: var(--ink-4); pointer-events: none; white-space: nowrap; }
.bk-cal-day-col { flex: 1; position: relative; border-left: 1px solid var(--paper-2); }
.bk-cal-day-col--wide { flex: 1; }
.bk-cal-day-col.today-col { background: #fafbff; }
.bk-cal-slot-layer { position: absolute; inset: 0; pointer-events: none; }
.bk-cal-slot-layer > * { pointer-events: auto; }
.bk-cal-loading-dots { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--ink-4); }

.bk-slot-block {
  position: absolute;
  left: 2px; right: 2px;
  border-radius: 4px;
  padding: 3px 6px;
  border: none;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: filter .12s, box-shadow .12s;
  z-index: 2;
}
.bk-slot-block:hover:not(:disabled) { filter: brightness(.88); box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 3; }
.bk-slot-block--full { cursor: not-allowed; }
.bk-slot-time { display: block; font-size: .72rem; font-weight: 700; line-height: 1.3; }
.bk-slot-name { display: block; font-size: .68rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.bk-slot-spots { display: block; font-size: .65rem; opacity: .85; margin-top: 1px; }
.bk-slot-block--short { padding: 2px 5px; }
.bk-slot-block--short .bk-slot-time { display: none; }
.bk-slot-block--short .bk-slot-name { margin-top: 0; font-size: .67rem; line-height: 1.2; }

/* ─── Booking tabs ────────────────────────────────────────────────────────── */
.booking-tabs {
  display: flex;
  gap: 4px;
  padding-top: 12px;
}
.booking-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background .15s, color .15s;
  letter-spacing: .01em;
}
.booking-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.booking-tab--active { background: var(--bg, #f9fafb); color: var(--brand, #4f46e5); }

/* ─── Homepage sections ───────────────────────────────────────────────────── */
.booking-tab-panel { padding-top: 8px; }

.hp-section {
  margin-bottom: 36px;
}
.hp-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-intro {
  padding: 20px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hp-description {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}
.hp-book-cta {
  font-size: 1rem;
}

.hp-gallery {
  display: grid;
  gap: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.hp-gallery--1 { grid-template-columns: 1fr; }
.hp-gallery--2 { grid-template-columns: 1fr 1fr; }
.hp-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hp-gallery--3 .hp-gallery__item:first-child { grid-row: span 2; }
.hp-gallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hp-gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hp-gallery--5 .hp-gallery__item:first-child { grid-row: span 2; }
.hp-gallery__item { overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); }
.hp-gallery--1 .hp-gallery__item { aspect-ratio: 16/7; max-height: 360px; }
.hp-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hp-gallery__item:hover img { transform: scale(1.03); }

.hp-services { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--paper-2); border-radius: 8px; overflow: hidden; }
.hp-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-2);
  gap: 12px;
}
.hp-service-row:last-child { border-bottom: none; }
.hp-service-name { font-weight: 600; color: var(--ink-1); font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-service-meta { font-size: .88rem; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }

.hp-hours-table { border-collapse: collapse; width: 100%; max-width: 380px; }
.hp-hours-row td { padding: 7px 0; font-size: .93rem; }
.hp-hours-day { width: 120px; font-weight: 600; color: var(--ink-2); }
.hp-hours-time { color: var(--ink-1); }
.hp-hours-row--closed .hp-hours-day { color: var(--ink-4); font-weight: 400; }
.hp-hours-row--closed .hp-hours-time { color: var(--ink-4); }
.hp-hours-row:not(:last-child) td { border-bottom: 1px solid var(--paper-2); }

.hp-map { margin-bottom: 16px; }
.hp-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-contact-item { font-size: .95rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hp-contact-item a { color: var(--brand, #4f46e5); text-decoration: none; }
.hp-contact-item a:hover { text-decoration: underline; }

.hp-rating-badge {
  font-size: .88rem;
  font-weight: 600;
  background: #fef9c3;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 20px;
}
.hp-rating-count { font-weight: 400; opacity: .8; }
.hp-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hp-review {
  background: var(--paper-1, #fff);
  border: 1px solid var(--paper-2);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-review__stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.hp-review__service { font-size: .8rem; font-weight: 500; color: var(--accent); margin: 4px 0 0; text-transform: uppercase; letter-spacing: .04em; }
.hp-review__comment { font-size: .93rem; color: var(--ink-2); line-height: 1.6; margin: 0; }
.hp-review__author { font-size: .83rem; color: var(--ink-4); margin: 0; }
.hp-reviews-extra { display: contents; }
.hp-reviews-toggle { margin-top: 4px; font-size: .88rem; color: var(--accent); grid-column: 1 / -1; }

.reviews-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.reviews-avg { display: flex; align-items: center; gap: 6px; }
.reviews-avg__stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.reviews-avg__num { font-size: 1.2rem; font-weight: 500; color: var(--ink-1); }
.reviews-avg__total { font-size: .85rem; color: var(--ink-4); }
.reviews-breakdown { margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; max-width: 320px; }
.reviews-breakdown__row { display: flex; align-items: center; gap: 8px; }
.reviews-breakdown__label { font-size: .8rem; color: #f59e0b; letter-spacing: 1px; white-space: nowrap; width: 68px; }
.reviews-breakdown__bar { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.reviews-breakdown__fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .3s; }
.reviews-breakdown__count { font-size: .8rem; color: var(--ink-4); min-width: 20px; text-align: right; }
.reviews-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 12px; background: var(--bg-2); border-radius: 8px; }
.reviews-filters .form-select--sm,
.reviews-filters .form-input--sm { font-size: .85rem; padding: 6px 10px; height: 34px; }
.reviews-list { display: flex; flex-direction: column; gap: 1px; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.review-item:last-child { border-bottom: none; }
.review-item__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-item__stars { color: #f59e0b; letter-spacing: 1px; font-size: .95rem; }
.review-item__service { font-size: .8rem; font-weight: 500; color: var(--accent); background: var(--accent-soft, var(--bg-2)); padding: 2px 8px; border-radius: 10px; }
.review-item__date { font-size: .8rem; color: var(--ink-4); margin-left: auto; }
.review-item__comment { margin: 0 0 4px; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.review-item__comment--empty { color: var(--ink-4); }
.review-item__author { margin: 0; font-size: .82rem; color: var(--ink-4); }
.reviews-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.reviews-pagination__info { font-size: .88rem; color: var(--ink-4); }

.input-prefix-wrap { display: flex; align-items: center; }
.input-prefix {
  background: var(--paper-2);
  border: 1px solid var(--paper-3, #d1d5db);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0 10px;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: .9rem;
  color: var(--ink-3);
  flex-shrink: 0;
}
.form-input--prefixed { border-radius: 0 6px 6px 0; }
.photo-url-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.photo-url-input { font-size: .88rem; }

@media (max-width: 600px) {
  .hp-gallery--3,
  .hp-gallery--4,
  .hp-gallery--5 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hp-gallery--3 .hp-gallery__item:first-child,
  .hp-gallery--5 .hp-gallery__item:first-child { grid-row: auto; }
  .hp-reviews { grid-template-columns: 1fr; }
  .booking-tabs { gap: 2px; }
  .booking-tab { padding: 8px 14px; font-size: .88rem; }
}

/* ─── Image upload widgets ────────────────────────────────────────────────── */
.img-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.img-upload-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1.5px solid var(--paper-3, #d1d5db);
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.img-upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-upload-placeholder { font-size: 1.6rem; opacity: .35; }
.img-upload-controls { display: flex; flex-direction: column; gap: 6px; }
.img-upload-btn { cursor: pointer; display: inline-block; }
.img-upload-status { font-size: .8rem; color: var(--ink-3); }

.gallery-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.gallery-upload-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-slot-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1.5px solid var(--paper-3, #d1d5db);
  overflow: hidden;
  background: var(--paper-2);
}
.gallery-slot-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-slot-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}
.gallery-slot-placeholder { font-size: 1.4rem; color: var(--ink-4); }
.gallery-slot-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gallery-slot-remove:hover { background: rgba(0,0,0,.8); }
.gallery-slot-btn {
  font-size: .72rem !important;
  padding: 4px 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  cursor: pointer;
  display: block;
}
.gallery-upload-hint { margin-top: 4px; min-height: 1.2em; }

@media (max-width: 600px) {
  .gallery-upload-grid { grid-template-columns: repeat(3, 1fr); }
  .img-upload-wrap { flex-wrap: wrap; }
}

/* ─── Google Calendar sync card ──────────────────────────────────────────── */
.gcal-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.gcal-status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gcal-status-dot--on  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.gcal-status-dot--off { background: var(--ink-4); }
.btn-danger-outline {
  color: #dc2626;
  border-color: #dc2626;
}
.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ─── Alert banners ───────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.5;
}
.alert--warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.alert--warning a { color: #b45309; font-weight: 600; }

/* ─── Trial expiry banner ─────────────────────────────────────────────────── */
.trial-banner {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trial-banner--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.trial-banner--urgent {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.trial-banner--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.badge--warn {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.trial-banner__link {
  font-weight: 600;
  color: inherit;
  margin-left: 6px;
}

/* ── Billing status widget ──────────────────────────────────────────────── */
.billing-status-card {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.billing-status-card--ok {
  background: #f0fdf4;
  border-color: #86efac;
}
.billing-status-card--over {
  background: #fef2f2;
  border-color: #fca5a5;
}
.billing-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.billing-status-title {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.billing-status-badge {
  font-size: .85rem;
  font-weight: 600;
}
.billing-status-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.billing-row {
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-row--ok   { color: #166534; }
.billing-row--over { color: #991b1b; font-weight: 600; }
.billing-remaining { color: var(--ink-3); font-size: .82rem; }
.billing-status-footer {
  font-size: .8rem;
  color: var(--ink-3);
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
  margin-top: 4px;
}

/* ─── Free month feature card (landing) ──────────────────────────────────── */
.feature-card--highlight {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
}
.feature-card--highlight h3 { color: #15803d; }

/* ─── Free month banner (pricing) ────────────────────────────────────────── */
.pricing-free-month-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 auto 36px;
  max-width: 780px;
}
.pricing-free-month-banner__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-free-month-banner__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 8px;
}
.pricing-free-month-banner__body {
  font-size: .95rem;
  color: #166534;
  line-height: 1.6;
  margin: 0;
}
.pricing-free-month-banner__body strong { color: #14532d; }

@media (max-width: 600px) {
  .pricing-free-month-banner { flex-direction: column; gap: 10px; padding: 18px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════ */

.credit-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.credit-pkg-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.credit-pkg-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,.1);
}
.credit-pkg-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.credit-pkg-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.credit-pkg-type {
  font-size: .82rem;
  color: var(--ink-2);
  font-weight: 500;
}
.credit-pkg-expiry {
  font-size: .75rem;
  color: var(--ink-4);
}
.credit-pkg-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}
.credit-pkg-btn {
  margin-top: 6px;
}

.credit-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.credit-balance-badge--pass {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.credit-pay-box {
  background: #f8faff;
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.credit-pay-box--pass {
  background: #f0fdf4;
  border-color: #86efac;
}
.credit-pay-box--insufficient {
  background: #fffbeb;
  border-color: #fcd34d;
}
.credit-pay-box--empty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-2);
  border-color: var(--paper-3);
  color: var(--ink-3);
  font-size: .85rem;
}
.credit-pay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.credit-pay-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.credit-pay-header > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.credit-pay-header strong {
  font-size: .88rem;
  color: var(--ink);
}
.credit-pay-sub {
  font-size: .78rem;
  color: var(--ink-3);
}
.credit-use-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.credit-use-toggle input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.credit-insufficient {
  font-size: .82rem;
  color: #92400e;
  font-weight: 600;
}
.credit-buy-link {
  white-space: nowrap;
}

.credit-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-2);
}
.credit-account-row:last-of-type { border-bottom: none; }
.credit-account-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.credit-account-row__provider {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
}
.credit-account-row__provider:hover { text-decoration: underline; }
.credit-account-row__detail {
  font-size: .82rem;
  color: var(--ink-3);
}
.credit-recurring-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 12px;
  padding: 2px 8px;
  width: fit-content;
}

.credits-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-top: 8px;
}
.credits-history-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1.5px solid var(--paper-3);
}
.credits-history-table td {
  padding: 8px;
  border-bottom: 1px solid var(--paper-2);
  color: var(--ink-2);
}
.credits-history-table a {
  color: var(--accent);
  text-decoration: none;
}
.credits-history-table a:hover { text-decoration: underline; }
.credits-history-date { color: var(--ink-4); font-size: .78rem; white-space: nowrap; }

@media (max-width: 600px) {
  .credit-pkg-grid { grid-template-columns: 1fr 1fr; }
  .credit-pay-header { gap: 8px; }
  .credits-history-table th:nth-child(3),
  .credits-history-table td:nth-child(3) { display: none; }
}

/* ── v1.36.0: Drag-to-reorder services ──────────────────────────────────── */
.drag-handle {
  cursor: grab;
  color: var(--ink-4);
  padding: 0 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
  user-select: none;
}
.drag-handle:active { cursor: grabbing; }
.service-row.dragging { opacity: 0.4; }
.service-row[draggable="true"] { cursor: default; }

/* ── v1.36.0: Discount codes ─────────────────────────────────────────────── */
.discount-code-badge {
  font-family: monospace;
  background: var(--paper-2, #f3f4f6);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .9rem;
  letter-spacing: .05em;
}
.discount-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.discount-code-input {
  flex: 1;
  max-width: 200px;
}
.discount-section {
  margin-bottom: 12px;
}
.discount-result {
  margin-top: 6px;
  font-size: .875rem;
}
.discount-success { color: var(--green, #16a34a); }
.discount-error   { color: var(--red,   #dc2626); }
.discount-checking { color: var(--ink-3); }

/* ═══════════════════════════════════════════════════════════════════════════ */

.contact-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(77,163,255,.14) 0%, transparent 70%);
  pointer-events: none;
}
.contact-hero .container { position: relative; }
.contact-hero__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.contact-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  color: var(--paper);
}
.contact-hero__sub {
  font-size: 1.05rem;
  color: var(--ink-4);
  margin: 0;
  max-width: 480px;
}

.page--contact .container {
  max-width: 1040px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 0 80px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }
}

.contact-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--paper-3);
}

.contact-about {
  margin-bottom: 48px;
}
.contact-about__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-about__body p {
  margin: 0;
  font-size: .965rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  padding: 18px 20px;
}
.contact-info-card__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-info-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-info-card__body strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-info-card__body span {
  font-size: .88rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.contact-email-link {
  font-size: .88rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-email-link:hover {
  text-decoration: underline;
}
.contact-info-card__note {
  margin-top: 4px;
  font-size: .8rem !important;
  color: var(--ink-4) !important;
}

.contact-form-card {
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 2px 20px rgba(26,22,18,.06);
  position: sticky;
  top: 80px;
}
@media (max-width: 768px) {
  .contact-form-card {
    padding: 24px 20px;
    position: static;
  }
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}
.contact-textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-required {
  color: var(--accent);
  margin-left: 2px;
}
.contact-optional {
  font-size: .78rem;
  font-weight: 400;
  color: var(--ink-4);
  margin-left: 4px;
}
.contact-form-footer {
  margin-top: 8px;
}
.contact-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
}
.contact-form-error {
  margin-top: 12px;
  font-size: .875rem;
}

.contact-success {
  text-align: center;
  padding: 24px 0 8px;
}
.contact-success__icon {
  width: 52px;
  height: 52px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-weight: 700;
}
.contact-success__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.contact-success__sub {
  font-size: .9rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════ */

.legal-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 52px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(77,163,255,.10) 0%, transparent 65%);
  pointer-events: none;
}
.legal-hero .container { position: relative; }
.legal-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--paper);
}
.legal-meta {
  font-size: .82rem;
  color: var(--ink-4);
  margin: 0;
  font-family: var(--font-mono);
}

.page--legal .container { max-width: 1040px; }
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}
@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0 60px;
  }
}

.legal-toc {
  position: sticky;
  top: 80px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  padding: 18px 16px;
}
@media (max-width: 768px) {
  .legal-toc {
    position: static;
    margin-bottom: 32px;
  }
}
.legal-toc__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 10px;
}
.legal-toc__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc__list a {
  font-size: .8rem;
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s;
}
.legal-toc__list a:hover { color: var(--accent); }

.legal-body { min-width: 0; }
.legal-section {
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--paper-3);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: var(--ink);
  scroll-margin-top: 80px;
}
.legal-section h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 20px 0 8px;
}
.legal-section p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-section li {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal-section a {
  color: var(--accent);
  text-decoration: none;
}
.legal-section a:hover { text-decoration: underline; }

.legal-callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 16px 0 0;
}
.legal-callout--green {
  background: var(--green-bg);
  border-color: var(--green);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid var(--paper-3);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.legal-table th {
  background: var(--paper-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--paper-3);
  white-space: nowrap;
}
.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--paper-2);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code {
  font-family: var(--font-mono);
  font-size: .82rem;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
}

.cookie-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cookie-badge--necessary {
  background: var(--green-bg);
  color: var(--green);
}
.cookie-badge--analytics {
  background: var(--amber-bg);
  color: var(--amber);
}

.legal-contact-box {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.legal-contact-box a { color: var(--accent); text-decoration: none; }
.legal-contact-box a:hover { text-decoration: underline; }

.legal-note {
  font-size: .82rem !important;
  color: var(--ink-4) !important;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .875rem;
  line-height: 1.5;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cookie-banner__inner {
    margin: 0 12px 12px;
    border-radius: 10px;
  }
}
.cookie-banner__icon {
  margin-right: 8px;
}
.cookie-banner__text {
  flex: 1;
  color: var(--ink-4);
}
.cookie-banner__link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__link:hover { color: var(--paper); }
.cookie-banner__btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s;
  white-space: nowrap;
}
.cookie-banner__btn:hover { background: var(--accent-2); }

.footer-copy {
  color: var(--ink-4);
  font-size: .8rem;
}

/* ═══════════════════════════════════════════════════════════════════════════ */

.card--gdpr {
  border-top: 3px solid var(--ink-3);
}

.gdpr-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdpr-section { margin-bottom: 24px; }
.gdpr-section-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.gdpr-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gdpr-data-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 8px;
  padding: 10px 14px;
}
.gdpr-data-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.gdpr-data-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gdpr-data-item strong {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.gdpr-data-item span {
  font-size: .82rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.gdpr-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .gdpr-actions-row { grid-template-columns: 1fr; }
}
.gdpr-action {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gdpr-action--danger {
  background: var(--red-bg);
  border-color: rgba(192,57,43,.2);
}
.gdpr-action-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.gdpr-action-desc {
  font-size: .8rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 8px;
  flex: 1;
}
.gdpr-btn {
  align-self: flex-start;
  font-size: .82rem;
  padding: 7px 14px;
}

.gdpr-footer-links {
  font-size: .78rem;
  color: var(--ink-4);
  padding-top: 16px;
  border-top: 1px solid var(--paper-3);
}
.gdpr-policy-link {
  color: var(--ink-3);
  text-decoration: none;
}
.gdpr-policy-link:hover { color: var(--accent); text-decoration: underline; }

/* ── Delete confirmation modal ───────────────────────────────────────────── */
.gdpr-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,.55);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.gdpr-confirm-overlay--visible { opacity: 1; }
.gdpr-confirm-dialog {
  background: var(--paper);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 48px rgba(0,0,0,.22);
  border: 1.5px solid var(--paper-3);
  transform: translateY(8px);
  transition: transform .25s;
}
.gdpr-confirm-overlay--visible .gdpr-confirm-dialog {
  transform: translateY(0);
}
.gdpr-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.gdpr-confirm-body {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.gdpr-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.gdpr-email-sent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px 16px;
}
.gdpr-email-sent__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.gdpr-email-sent__msg  { margin: 0; font-size: 14px; color: #166534; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── Safe area insets (notched iPhones, Android cutouts) ─────────────────── */
:root {
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);
}

.app-header {
  padding-top: var(--safe-top);
  height: calc(var(--nav-h) + var(--safe-top));
}

.app-footer {
  padding-bottom: calc(16px + var(--safe-bottom));
}

#cookie-banner {
  padding-bottom: var(--safe-bottom);
}

/* ── Minimum touch target enforcement (44×44px WCAG 2.5.5) ──────────────── */
.btn,
.bkcal-cell, .bkcal-nav,
.cal-vsw-btn, .cal-msw-btn, .cal-nav,
.tab-nav__btn,
.service-card,
.btn-xs { min-height: 44px; }

.nav-link, .nav-btn { display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .nav-link, .nav-btn { min-height: 44px; }
}

/* ── Hamburger nav — mobile ──────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--paper-2); }
.nav-hamburger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 calc(20px + var(--safe-bottom));
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--paper-3);
    box-shadow: 0 8px 32px rgba(26,22,18,.12);
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-link, .nav-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    text-align: left;
    border-bottom: 1px solid var(--paper-2);
    justify-content: flex-start;
  }
  .nav-link--cta {
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    border-radius: 0;
    justify-content: center;
    text-align: center;
  }
  .nav-link--cta:hover { background: var(--ink-2); color: var(--paper); }
  .nav-link--cta2 {
    border: none;
    border-bottom: 1px solid var(--paper-2);
    font-weight: 600;
    justify-content: center;
    text-align: center;
  }
  .nav-link--secondary {
    color: var(--ink-3);
    font-size: .9rem;
  }

  .nav-sub-header {
    display: block !important;
    padding: 14px 24px 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 8px;
    border-top: 1px solid var(--paper-3);
  }
  .nav-link--sub {
    display: flex !important;
    padding: 11px 24px 11px 36px;
    font-size: .92rem;
    color: var(--ink-2);
    border-bottom: 1px solid var(--paper-2);
  }
  .nav-link--sub:last-child { border-bottom: none; }
}

/* ── Settings tabs — horizontal scroll on small screens ─────────────────── */
.tab-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  display: flex;
  gap: 2px;
  -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav__btn { flex-shrink: 0; }

/* ── Dashboard table — horizontally scrollable on mobile ────────────────── */
@media (max-width: 900px) {
  .actions-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .actions-cell .btn-xs { width: 100%; justify-content: center; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .table-wrap {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--paper-3);
  }
  .table-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--paper) 90%);
    pointer-events: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: opacity .2s;
  }
  .table-wrap.scrolled-end::after { opacity: 0; }

  .data-table th,
  .data-table td { white-space: nowrap; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Footer — wrap nicely on mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
  .app-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding-inline: 16px;
    font-size: .75rem;
  }
  .app-footer .footer-sep { display: none; }
  .app-footer .footer-link::after { content: '·'; margin-left: 12px; color: var(--ink-4); }
  .app-footer .footer-link:last-of-type::after { display: none; }
}

/* ── Form improvements on mobile ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }

  .form-row .btn, .form-actions .btn { width: 100%; justify-content: center; }
}

/* ── Booking page calendar — day view only on mobile ────────────────────── */
@media (max-width: 600px) {
  .bk-vsw-btn[data-view="week"] { display: none; }

  .bk-slot-btn {
    padding: 10px 16px;
    font-size: .9rem;
    min-height: 44px;
  }

  .service-card { width: 100%; }

  .bk-step-lbl { display: none; }
  .bk-step.active .bk-step-lbl { display: block; }
}

/* ── Booking page — make details form more comfortable ───────────────────── */
@media (max-width: 500px) {
  .discount-input-row { flex-direction: column; align-items: stretch; }
  .discount-code-input { max-width: 100%; }
  #apply-discount-btn { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .cal-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }
  .cal-heading { font-size: .9rem; }
}

/* ── Booking confirmation — readable on small screens ───────────────────── */
@media (max-width: 480px) {
  .booking-hero__info { padding-inline: 16px; }
  .booking-tabs { flex-direction: column; gap: 0; border-bottom: none; }
  .booking-tab {
    border-bottom: 1px solid var(--paper-3);
    border-radius: 0;
    text-align: center;
  }
  .booking-tab--active { border-bottom-color: var(--brand); }
}

/* ── Hero search — stack on mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-search {
    flex-direction: column;
    gap: 8px;
  }
  .hero-search__input,
  .hero-search__city {
    width: 100%;
  }
  .hero-search__btn { width: 100%; }
}

/* ── Search results — card layout on mobile ─────────────────────────────── */
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    gap: 8px;
  }
  .search-bar__btn { width: 100%; justify-content: center; }
}

/* ── Pricing cards — single column on mobile ─────────────────────────────── */
@media (max-width: 500px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* ── Legal pages TOC — collapse on mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .legal-toc { margin-bottom: 24px; }
  .legal-toc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}
@media (max-width: 400px) {
  .legal-toc__list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-form-card { position: static; }
  .discount-section { margin-bottom: 8px; }
}

/* ── GDPR card actions — stack on mobile ────────────────────────────────── */
@media (max-width: 500px) {
  .gdpr-actions-row { grid-template-columns: 1fr; }
  .gdpr-confirm-dialog { padding: 24px 20px; }
}

/* ── Settings service rows — handle drag handle on mobile ───────────────── */
@media (max-width: 500px) {
  .drag-handle { padding: 0 6px; }
  .service-row__actions { flex-wrap: wrap; gap: 4px; }
  .service-row__actions .btn-xs { flex: 1 0 auto; text-align: center; justify-content: center; }
}

/* ── My account credits table — scroll on mobile ────────────────────────── */
@media (max-width: 600px) {
  .credits-history-table { font-size: .78rem; }
  .credits-history-table th:nth-child(3),
  .credits-history-table td:nth-child(3) { display: none; }
}

/* ── Calendar drawer — bottom sheet on mobile ───────────────────────────── */
@media (max-width: 900px) {
  #cal-drawer-overlay {
    align-items: flex-end !important;
    justify-content: stretch !important;
  }
  #cal-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    box-shadow: 0 -4px 32px rgba(26,22,18,.18) !important;
    padding-bottom: var(--safe-bottom) !important;
  }
}

/* ── Image gallery grid — 2 cols on mobile ──────────────────────────────── */
@media (max-width: 480px) {
  .gallery-upload-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Availability rows — better on small screens ────────────────────────── */
@media (max-width: 500px) {
  .avail-row { flex-wrap: wrap; gap: 6px; }
  .avail-row__day { min-width: 0; }
}

/* ── Smooth scrolling and momentum on iOS ───────────────────────────────── */
.table-wrap,
.bk-cal-scroll,
.cal-grid-scroll,
.legal-body,
.tab-nav {
  -webkit-overflow-scrolling: touch;
}

/* ── Prevent text scaling on orientation change ─────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── Remove 300ms tap delay ─────────────────────────────────────────────── */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── iOS zoom prevention: inputs must be ≥16px font ─────────────────────── */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  select,
  textarea {
  }
}

/* ── Booking page: customer-facing calendar ─────────────────────────────── */
@media (max-width: 600px) {
  .bk-cal-week-header { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .bk-slots-grid { gap: 6px; }
  .bk-slot-btn { min-height: 44px; padding: 10px 12px; }

  .bk-date-strip { gap: 3px; }
  .bk-day-btn { padding: 8px 2px; min-height: 52px; }

  .bk-cal-scroll { max-height: calc(100dvh - 260px); }
}

/* ── Booking public page — tab bar ──────────────────────────────────────── */
@media (max-width: 480px) {
  .booking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-bottom: none;
    padding: 0;
    margin-bottom: 16px;
  }
  .booking-tab {
    padding: 10px 8px;
    font-size: .82rem;
    text-align: center;
    border: 1.5px solid var(--paper-3);
    border-radius: var(--radius);
    border-bottom: 1.5px solid var(--paper-3) !important;
  }
  .booking-tab--active {
    border-color: var(--brand) !important;
    background: var(--accent-bg);
    color: var(--brand);
  }
}

/* ── Search results grid ────────────────────────────────────────────────── */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
}

/* ── Modals — full screen on very small phones ──────────────────────────── */
@media (max-width: 420px) {
  .modal {
    padding: 20px 16px;
    border-radius: var(--radius);
    max-height: 95dvh;
  }
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  @keyframes slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
  }
  #attendees-modal .modal,
  #shared-confirm-modal .confirm-modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    max-height: 90dvh;
  }
}

/* ── Hero (landing page) — tighter on mobile ────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding-block: 48px 40px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.4rem); margin-bottom: 14px; }
  .hero__sub { font-size: .95rem; margin-bottom: 24px; }
  .hero__trust { flex-wrap: wrap; gap: 6px; justify-content: center; font-size: .78rem; }
  .hero__search-label { font-size: .85rem; }
  .features { padding-block: 48px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px 18px; }
}

/* ── Dashboard stat cards ────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .stat-card { padding: 14px 16px; }
  .stat-card__value { font-size: 1.4rem; }
}

/* ── Settings cards on mobile ────────────────────────────────────────────── */
@media (max-width: 500px) {
  .card { padding: 16px; }
  .page--settings .container { padding-inline: 12px; }
  .service-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .service-row__info { width: 100%; }
  .service-row__actions { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .service-row__actions .btn { flex: 1 0 auto; text-align: center; }
}

/* ── Customer booking cards ─────────────────────────────────────────────── */
.booking-card {
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .15s;
}
.booking-card--cancelled { opacity: .6; }
.booking-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-3);
  gap: 8px;
}
.booking-card__service {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-card__body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.booking-card__provider  { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin: 0; }
.booking-card__staff     { font-size: .85rem; color: var(--ink-3); margin: 0; }
.booking-card__datetime  { font-size: .88rem; color: var(--ink-2); font-weight: 500; margin: 0; }
.booking-card__duration  { font-size: .82rem; color: var(--ink-4); margin: 0; }
.booking-card__price     { font-size: .88rem; color: var(--ink-2); font-weight: 600; margin: 0; }
.booking-card__actions {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-card__actions .btn { flex: 1 0 auto; min-width: 80px; text-align: center; justify-content: center; }

/* ── Pricing page — card padding on mobile ──────────────────────────────── */
@media (max-width: 480px) {
  .plan-card { padding: 20px 18px; }
  .plan-card__price { font-size: 2rem; }
}

/* ── Legal pages — body font size on mobile ─────────────────────────────── */
@media (max-width: 480px) {
  .legal-section p,
  .legal-section li { font-size: .88rem; }
  .legal-section h2 { font-size: 1rem; }
  .legal-table { font-size: .78rem; }
  .legal-table th, .legal-table td { padding: 7px 10px; }
  .legal-hero { padding: 40px 0 36px; }
  .legal-title { font-size: 1.6rem; }
}

/* ── Contact page — hero on mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .contact-hero { padding: 44px 0 36px; }
  .contact-hero__title { font-size: 1.9rem; }
}

/* ── My account credits section ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .credit-account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .credit-account-row .btn { width: 100%; text-align: center; }
}

/* ── Availability schedule rows on mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .avail-row {
    flex-direction: column;
    gap: 6px;
    padding-block: 12px;
  }
  .avail-row__day { min-width: 0; width: 100%; }
  .avail-row__toggle { align-self: flex-end; }
}

/* ── Google Calendar card on mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .gcal-connected { flex-wrap: wrap; }
}

/* ── Discount form on mobile ─────────────────────────────────────────────── */
@media (max-width: 500px) {
  .contact-form-card { border-radius: var(--radius); padding: 20px 16px; }
}

/* ── Cancel page card on mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .cancel-card { padding: 24px 20px; }
  .cancel-actions { flex-direction: column; gap: 8px; }
  .cancel-actions .btn { width: 100%; text-align: center; }
  .cancel-booking-details { font-size: .85rem; }
}

/* ── GDPR confirm dialog on mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .gdpr-confirm-overlay { align-items: flex-end; padding: 0; }
  .gdpr-confirm-dialog {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Touch ripple feedback (gives tappable feel on mobile) ──────────────── */
@media (hover: none) {
  .btn:active   { filter: brightness(.9); }
  .nav-link:active { background: var(--paper-3); }
  .booking-card:active { box-shadow: var(--shadow); }
  .service-card:active { transform: scale(.98); }
  .plan-card:active { box-shadow: var(--shadow); }
}

/* ── Overflow protection — nothing should cause horizontal scroll ────────── */
.page, .container, .card,
.booking-cards, .search-grid,
.tab-panel, .legal-layout,
.contact-layout, .gdpr-actions-row {
  min-width: 0;
}

/* ── Booking step labels — only show active on small ────────────────────── */
@media (max-width: 400px) {
  .bk-step-lbl { display: none; }
  .bk-step.active .bk-step-lbl { display: block; font-size: .7rem; }
  .bk-step-sep { margin: 0 3px; }
}

/* ── Image gallery on very small ────────────────────────────────────────── */
@media (max-width: 360px) {
  .gallery-upload-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* ── Cookie banner — tighter on very small ──────────────────────────────── */
@media (max-width: 380px) {
  .cookie-banner__inner { margin: 0 8px 8px; font-size: .8rem; padding: 12px 14px; }
}

/* ── Fix: language selector — readable on small nav ─────────────────────── */
@media (max-width: 360px) {
  .lang-selector { font-size: .75rem; padding: 4px 6px; min-width: 40px; }
}

/* ── Mobile nav overlay (body-level, never clipped by sticky header) ────── */
.nav-overlay {
  display: none;
}
@media (max-width: 900px) {
  .nav-overlay {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 calc(20px + var(--safe-bottom));
    overflow-y: auto;
    z-index: 9999;
    border-top: 1px solid var(--paper-3);
    box-shadow: 0 8px 32px rgba(26,22,18,.15);
  }
  .nav-overlay.nav-overlay--open {
    display: flex;
  }
  .nav-overlay .nav-link,
  .nav-overlay .nav-btn {
    display: flex;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    text-align: left;
    border-bottom: 1px solid var(--paper-2);
    justify-content: flex-start;
    align-items: center;
    min-height: 44px;
    color: var(--ink-2);
    background: none;
  }
  .nav-overlay .nav-link:hover,
  .nav-overlay .nav-btn:hover { background: var(--paper-2); color: var(--ink); }
  .nav-overlay .nav-link--cta {
    background: var(--btn-bg);
    color: #fff;
    font-weight: 600;
    justify-content: center;
    text-align: center;
  }
  .nav-overlay .nav-link--cta:hover { background: var(--btn-bg-hover); color: #fff; }
  .nav-overlay .nav-link--cta2 {
    border: none;
    border-bottom: 1px solid var(--paper-2);
    font-weight: 600;
    justify-content: center;
    text-align: center;
    color: var(--accent);
  }
  .nav-overlay .nav-link--secondary {
    color: var(--ink-3);
    font-size: .9rem;
  }
  .nav-overlay .nav-sub-header {
    display: block;
    padding: 14px 24px 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 8px;
    border-top: 1px solid var(--paper-3);
  }
  .nav-overlay .nav-link--sub {
    padding: 11px 24px 11px 36px;
    font-size: .88rem;
    color: var(--ink-3);
    min-height: 40px;
    border-bottom: 1px solid var(--paper-2);
  }
  .nav-overlay .nav-link--sub:last-child { border-bottom: none; }
}

/* ── Booking calendar — service summary panel ───────────────────────────── */
.bk-service-summary {
  margin-bottom: 16px;
}
.bk-svc-info {
  background: var(--accent-bg);
  border: 1px solid var(--paper-3);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.bk-svc-info__main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.bk-svc-info__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.bk-svc-info__meta {
  font-size: .82rem;
  color: var(--ink-3);
}
.bk-svc-info__desc {
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--ink-3);
  line-height: 1.5;
}
