.pub-wrap { max-width: 640px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.pub-head { text-align: center; margin-bottom: 1.2rem; }
.pub-head h1 { margin-bottom: 0.2rem; }
.slot-day { margin-bottom: 1rem; }
.slot-day h3 { margin-bottom: 0.5rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.5rem; }
.slots button { min-height: 44px; font-variant-numeric: tabular-nums; }
.slots button.selected { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.status-icon { font-size: 2.6rem; text-align: center; line-height: 1; margin-bottom: 0.4rem; }
.countdown { font-size: 2rem; font-weight: 700; text-align: center; direction: ltr; font-variant-numeric: tabular-nums; color: var(--warn); }
.pay-info { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 0.8rem 1rem; font-size: 1.05rem; user-select: all; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0.8rem 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.big { width: 100%; min-height: 50px; font-size: 1.05rem; }

/* invoice */
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--primary); padding-bottom: 0.8rem; margin-bottom: 1rem; }
.inv-head h1 { margin: 0; }
.inv-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.inv-table th, .inv-table td { text-align: start; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--border); }
.inv-table td.num, .inv-table th.num { text-align: end; white-space: nowrap; }
.inv-total td { font-weight: 700; border-bottom: none; }
.stamp { display: inline-block; border: 2px solid currentColor; border-radius: 8px; padding: 0.2rem 0.8rem; font-weight: 700; transform: rotate(-4deg); }
.stamp.paid { color: var(--ok); }
.stamp.unpaid, .stamp.partial { color: var(--danger); }
.stamp.void { color: var(--muted); }

@media print {
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .card { box-shadow: none; border: none; }
}
.slots button { flex-direction: column; gap: 0; line-height: 1.3; padding-block: 0.35rem; }
.local-time { display: block; font-size: 0.72rem; color: var(--muted); }
.slots button.selected .local-time { color: inherit; opacity: 0.85; }
.day-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 0.5rem; }
.day-btn { flex-direction: column; gap: 0; min-height: 92px; padding: 0.4rem; line-height: 1.35; }
.day-wd { font-size: 0.85rem; color: var(--muted); }
.day-num { font-size: 1.5rem; font-weight: 700; }
.day-month { font-size: 0.85rem; }
.day-count { font-size: 0.72rem; color: var(--primary); margin-top: 0.15rem; }
.day-btn.selected { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.day-btn.selected .day-wd, .day-btn.selected .day-count { color: inherit; opacity: 0.9; }

/* Compact layout for client pages */
.pub-wrap { padding: 1rem 12px 3rem; max-width: 560px; }
.pub-head { margin-bottom: 0.8rem; }
.pub-head h1 { font-size: 1.1rem; }
.day-picker { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 0.4rem; }
.day-btn { min-height: 0; padding: 0.35rem 0.2rem; border-radius: 10px; line-height: 1.25; }
.day-wd, .day-month { font-size: 0.72rem; }
.day-num { font-size: 1.15rem; }
.day-count { font-size: 0.66rem; }
.slots { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 0.4rem; }
.slots button { min-height: 36px; padding-block: 0.25rem; font-size: 0.92rem; }
.local-time { font-size: 0.64rem; }
.big { min-height: 42px; font-size: 0.95rem; }
.status-icon { font-size: 2rem; }
.countdown { font-size: 1.6rem; }
.pay-info { padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.summary { margin: 0.5rem 0; gap: 0.2rem 0.8rem; }
.inv-table th, .inv-table td { padding: 0.45rem 0.3rem; }
.slots button.held { opacity: 1; background: var(--surface-2); border-style: dashed; color: var(--muted); cursor: not-allowed; }
.held-note, .held-left { display: block; font-size: 0.62rem; line-height: 1.3; }
.held-left { color: var(--warn); font-weight: 600; }
.field-help { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 0.15rem; }
.field-error { display: block; color: var(--danger); font-size: 0.8rem; margin-top: 0.15rem; }
.field-error:empty { display: none; }
.field.invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field.invalid .field-help { display: none; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.86rem; }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.6rem; }
.plan { text-align: center; background: var(--primary-soft); border-radius: 10px; padding: 0.5rem 0.3rem; }
.plan strong { display: block; color: var(--primary); font-size: 1.05rem; }
.plan span { font-size: 0.78rem; color: var(--muted); }
.terms ul { padding-inline-start: 1.2rem; margin: 0.3rem 0; }
.terms li { margin-bottom: 0.35rem; }
.terms p { margin: 0.3rem 0; }
.urgent { border-color: var(--danger); background: var(--danger-soft); }
.urgent h2 { color: var(--danger); }
.center-links { text-align: center; font-size: 0.85rem; color: var(--muted); }
.pub-footer { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.pub-footer a { color: var(--muted); }
/* directory */
.dir-filters { display: grid; gap: 0.5rem; }
.dir-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip-btn { min-height: 28px; padding: 0 0.7rem; border-radius: 99px; font-size: 0.8rem; box-shadow: none; }
.chip-btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.dir-card { display: grid; gap: 0.5rem; }
.dir-top { display: flex; gap: 0.7rem; align-items: center; }
.dir-main h2 { margin: 0; font-size: 1.02rem; }
.dir-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 1.05rem; }
.dir-avatar.c0 { background: var(--primary); } .dir-avatar.c1 { background: var(--mint); } .dir-avatar.c2 { background: #e8461f; }
.dir-avatar.c3 { background: #2a1640; } .dir-avatar.c4 { background: #c2185b; }
.dir-bio { margin: 0; font-size: 0.9rem; line-height: 1.8; white-space: pre-wrap; }
.dir-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.accept { color: var(--text); font-size: 0.9rem; align-items: flex-start; }
.accept input { margin-top: 0.3rem; }
.back-link { margin: 0 0 0.4rem; font-size: 0.85rem; }
.back-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.6rem; padding: 0.3rem 0.8rem; min-height: 34px;
  border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.88rem;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.plans label.plan { cursor: pointer; border: 2px solid transparent; position: relative; display: block; }
.plans label.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plans label.plan.on { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.plans label.plan em { display: block; font-style: normal; font-size: 0.7rem; color: #b86e00; font-weight: 700; margin-top: 0.1rem; }
.field.invalid select { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

/* Personal offer from the therapist */
.offer-box { background: var(--ok-soft); color: var(--text); border: 1px dashed var(--ok); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; line-height: 1.9; }
.offer-box strong { color: var(--ok); }

/* The final price on the booking form */
.price-line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: var(--primary-soft); border-radius: 12px; padding: 0.6rem 0.9rem; margin: 0.4rem 0 0.8rem; }
.price-line:empty { display: none; }
.price-line span { color: var(--muted); font-size: 0.85rem; }
.price-line strong { color: var(--primary); font-size: 1.1rem; }
.price-line s { color: var(--muted); font-size: 0.85rem; }

/* Signup: review before sending, and the private edit link afterwards */
.review-card h3 { font-size: 0.95rem; margin: 1rem 0 0.3rem; }
.review-head { display: flex; align-items: center; gap: 0.8rem; margin: 0.6rem 0 0.8rem; }
.review-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.review-photo.empty { display: grid; place-items: center; font-size: 0.7rem; color: var(--muted); }
.review-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; padding: 0.7rem 0.9rem; background: var(--surface-2); border-radius: 12px; }
.review-list dt { color: var(--muted); font-size: 0.85rem; }
.review-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review-list dd.ltr { direction: ltr; text-align: right; }
.review-bio { white-space: pre-wrap; line-height: 2; margin: 0; }
.review-points { margin: 0; padding-inline-start: 1.2rem; line-height: 1.9; }
.review-actions { display: flex; gap: 0.6rem; justify-content: space-between; margin-top: 1.1rem; flex-wrap: wrap; }
.edit-link-box { background: var(--primary-soft); border-radius: 12px; padding: 0.8rem 1rem; margin: 0.8rem 0; text-align: start; }
.edit-link-box p { margin: 0 0 0.6rem; }
/* Review: photo and name centred, like a profile card */
.review-head { flex-direction: column; justify-content: center; text-align: center; gap: 0.45rem; }
.review-photo { width: 84px; height: 84px; }
.review-photo.empty { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.5; padding: 0.4rem; font-size: 0.72rem; border: 2px dashed var(--border); }

/* Contact form. */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-page .field.has-error input, .contact-page .field.has-error textarea { border-color: var(--danger); }
.contact-page #c-count { display: block; text-align: end; }
.contact-done { text-align: center; }

/* Invoice: total and actions. */
.inv-sum { margin: 0.8rem 0 0; }
.inv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.5rem; margin-top: 1rem; }

/* Signup form: hidden until its fields are built. */
#form[data-loading] { display: none; }
.form-loading { text-align: center; padding: 2rem 0; }


/* ---------- Signup page ---------- */
.join-page { max-width: 720px; }
.join-hero { position: relative; overflow: hidden; display: grid; gap: 0.5rem; margin: 0.4rem 0 1rem; padding: 1.5rem 1.4rem; border-radius: 22px; color: #fff;
  background: var(--pal-violet); box-shadow: 0 22px 46px -30px rgba(42, 22, 64, 0.7); }
.jh-blob { position: absolute; width: 300px; height: 300px; inset-block-start: -120px; inset-inline-end: -90px; border-radius: 50%; background: var(--pal-sun); opacity: 0.9; pointer-events: none; }
.join-hero > :not(.jh-blob) { position: relative; }
.jh-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.jh-brand img { border-radius: 13px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.join-hero h1 { margin: 0.2rem 0 0; color: #fff; font-size: 1.45rem; line-height: 1.6; }
.join-hero p { margin: 0; opacity: 0.92; }
.jh-points { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.jh-points li { padding: 0.25rem 0.7rem; border-radius: 99px; background: rgba(255, 255, 255, 0.16); font-size: 0.82rem; font-weight: 600; }

/* The steps across the top, and a numbered title for each section of the form. */
.join-steps { list-style: none; counter-reset: js; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin: 0 0 1rem; padding: 0; }
.join-steps li { counter-increment: js; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--muted); text-align: center; position: relative; }
.join-steps li::before { content: counter(js, persian); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); font-weight: 800; color: var(--primary); position: relative; z-index: 1; }
.join-steps li:not(:last-child)::after { content: ""; position: absolute; top: 0.95rem; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--border); }
.join-page #form { counter-reset: sec; padding: 1.3rem 1.2rem; border-radius: 20px; box-shadow: 0 18px 40px -30px rgba(30, 50, 80, 0.5); }
.join-page #form > h2 { counter-increment: sec; display: flex; align-items: center; gap: 0.55rem; margin: 1.8rem 0 0.6rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); font-size: 1.08rem; }
.join-page #form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.join-page #form > h2::before { content: counter(sec, persian); display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: #fff; font-size: 0.9rem;
  background: var(--pal-violet); }

/* Plans: clearer choice. */
.join-page .plans { padding: 0.3rem 0 0; gap: 0.6rem; }
.join-page .plans label.plan { padding: 0.9rem 0.4rem 0.8rem; border: 2px solid var(--border); background: var(--surface); border-radius: 14px; transition: border-color 0.15s, transform 0.15s; }
.join-page .plans label.plan:hover { transform: translateY(-2px); border-color: var(--primary); }
.join-page .plans label.plan.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.join-page .plans label.plan.on::after { content: "✓"; position: absolute; top: 0.4rem; inset-inline-start: 0.5rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 800; }
.join-page .plans label.plan strong { font-size: 1.2rem; }
.plan-tag { position: absolute; top: -0.65rem; inset-inline-end: 50%; transform: translateX(50%); padding: 0.05rem 0.6rem; border-radius: 99px; background: var(--pal-coral); color: #fff; font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.join-page .plans label.plan.popular { overflow: visible; }

.join-submit { width: 100%; margin-top: 0.4rem; background: var(--pal-coral); color: #fff; border: 0; box-shadow: 0 12px 24px -14px rgba(232, 70, 31, 0.8); }
.join-submit:hover { filter: brightness(1.06); }

@media (max-width: 560px) {
  .join-hero { padding: 1.1rem 1rem; border-radius: 18px; }
  .join-hero h1 { font-size: 1.15rem; }
  .join-hero p { font-size: 0.88rem; }
  .jh-points li { font-size: 0.74rem; }
  .join-page #form { padding: 1rem 0.85rem; }
}

/* Signup, one step at a time. */
.wz-progress { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; }
.wz-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--pal-violet); transition: width 0.35s ease; }
.wz-label { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.wz-label b { color: var(--primary); }
.join-page .wz-step { padding: 1.4rem 1.25rem 1.1rem; border-radius: 20px; box-shadow: 0 18px 40px -30px rgba(30, 50, 80, 0.5); animation: wz-in 0.25s ease; }
.join-page .wz-step > h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.join-page .wz-step > p.muted { margin: 0 0 1rem; }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.wz-nav .primary { min-width: 9rem; margin-inline-start: auto; }
.wz-nav .join-submit { width: auto; margin-top: 0; }
@keyframes wz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .join-page .wz-step { animation: none; } .wz-bar span { transition: none; } }
.join-page #form { padding: 0; border-radius: 0; box-shadow: none; background: none; border: 0; }
/* Below the sticky top menu when scrolled to (one row on desktop, two on phones). */
.wz-progress { scroll-margin-top: 4.2rem; }
@media (max-width: 820px) { .wz-progress { scroll-margin-top: 6.8rem; } }

/* Four plans: two rows of two on phones; a locked plan is greyed out. */
.join-page .plans { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .join-page .plans { grid-template-columns: repeat(2, 1fr); row-gap: 0.9rem; } }
.join-page .plans label.plan.is-locked { opacity: 0.55; cursor: not-allowed; background: var(--surface-2); }
.join-page .plans label.plan.is-locked:hover { transform: none; border-color: var(--border); }
.plan-tag.soon { background: var(--muted); }

/* Signup: a note for clients who landed here looking for a session */
.join-who { margin: 0.6rem 0 0.8rem; }
.join-who p { margin: 0; }
.join-who a { text-decoration: underline; text-underline-offset: 3px; }
.taken-login { font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Plans page: prices and what each plan has */
.plans-page { max-width: 1040px; }
.plans-hero { text-align: center; margin: 1.4rem auto 1.2rem; max-width: 640px; }
.plans-hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.plans-hero p { margin: 0; color: var(--muted); }
.plan-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.4rem; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.2rem 1rem 1rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 28px -20px rgba(42, 22, 64, 0.45); }
.plan-card.popular { border: 2px solid var(--pal-violet); }
.plan-card.is-locked { opacity: 0.7; }
.plan-card h2 { margin: 0; font-size: 1.5rem; color: var(--primary); }
.pc-sub { color: var(--muted); font-size: 0.85rem; }
.pc-price { font-size: 1.15rem; font-weight: 800; margin-top: 0.3rem; }
.pc-days { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pc-days em { font-style: normal; color: #fff; background: var(--pal-coral); border-radius: 999px; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 700; }
.plan-card ul { list-style: none; margin: 0.5rem 0 0.8rem; padding: 0; display: grid; gap: 0.3rem; font-size: 0.85rem; flex: 1; }
.plan-card li.off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.pc-btn { justify-content: center; width: 100%; }
.pc-tag { position: absolute; top: -0.7rem; inset-inline-end: 50%; transform: translateX(50%); padding: 0.05rem 0.7rem; border-radius: 999px;
  background: var(--pal-coral); color: #fff; font-size: 0.75rem; white-space: nowrap; }
.pc-tag.soon { background: var(--muted); }
.compare h2 { margin-top: 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: start; }
.compare-table td:first-child span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.compare-table thead th { color: var(--primary); font-size: 0.95rem; }
.cmp-yes { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mint-soft); color: var(--ok); font-weight: 800; }
.cmp-no { color: var(--muted); }
.cmp-group td { background: var(--surface-2); font-weight: 700; color: var(--primary); text-align: start !important; }
.plans-cta { text-align: center; margin: 1.4rem 0 0.4rem; }
@media (max-width: 860px) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plan-cards { grid-template-columns: 1fr; } .compare-table { font-size: 0.82rem; } .compare-table td:first-child span { display: none; } }
.pc-limits { display: grid; gap: 0.25rem; margin-top: 0.4rem; padding: 0.55rem 0.65rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.cmp-num { font-weight: 800; color: var(--primary); }
.pc-plus { font-weight: 800; color: var(--text); }
.pc-devices { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.preview-flag { display: inline-block; margin: 0 0 0.8rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--pal-sun); color: #2a1640; font-weight: 800; font-size: 0.85rem; }

/* Booking page: who the client is booking with */
.th-card { display: flex; gap: 1rem; align-items: flex-start; border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.th-photo { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; flex: none; }
.th-initial { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 2rem; font-weight: 800; }
.th-main { display: grid; gap: 0.15rem; min-width: 0; }
.th-label { font-size: 0.75rem; color: var(--muted); }
.th-name { font-size: 1.2rem; }
.th-field { color: var(--primary); font-size: 0.88rem; font-weight: 700; }
.th-points { margin: 0.3rem 0 0; padding-inline-start: 1.1rem; font-size: 0.85rem; }
.th-more { font-size: 0.85rem; font-weight: 700; margin-top: 0.3rem; }
.book-head h1 { font-size: 1.05rem; }
.booked-with { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0.4rem 0 0.6rem; }
.booked-with img, .bw-initial { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.bw-initial { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.4rem; }
.booked-with div { display: grid; text-align: start; }
.booked-line { text-align: center; font-size: 1rem; line-height: 1.9; }
@media (max-width: 480px) { .th-card { flex-direction: column; align-items: center; text-align: center; } .th-points { text-align: start; } }
/* Booking form: every field is needed */
.book-form [data-field] > label::after { content: " *"; color: var(--danger); font-weight: 800; }
.req-star { color: var(--danger); font-weight: 800; }
.req-note { margin-top: -0.3rem; }
.pc-off { display: inline-flex; align-items: baseline; gap: 0.3rem; width: fit-content; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--danger); font-weight: 800; font-size: 0.8rem; }
.pc-off span { font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.lock-ico { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-inline-end: 0.2rem; }
.plan-card h2 .lock-ico { color: var(--muted); }
.pc-tag .lock-ico { width: 0.85em; height: 0.85em; }
.pc-login { font-size: 0.9rem; font-weight: 700; }
.prices-note { text-align: center; margin: -0.6rem 0 1.2rem; }
.pc-spacer { flex: 1; min-height: 0.6rem; }
.plans-cta .btn { width: auto; display: inline-flex; padding-inline: 2.2rem; }

.email-hint { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--danger, #c0392b); }
/* FAQ */
.faq-group h2 { margin-bottom: 0.4rem; }
.faq-item { border-top: 1px solid var(--border); padding: 0.2rem 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-item p { margin: 0 0 0.7rem; line-height: 2; }
/* Server-rendered fallbacks (replaced by the page script) */
.dir-ssr { display: grid; gap: 0.4rem; }
.dir-ssr-item { display: block; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.dir-ssr-item span { color: var(--muted); font-size: 0.9rem; }
.profile-ssr { line-height: 2; }
/* FAQ: the two groups stand out, each in its own colour (violet and pomegranate, from the site palette) */
.faq-group { --faq: #6c2bd9; --faq-soft: #f1ebfd; }
.faq-group#therapists { --faq: #b0245e; --faq-soft: #fbe9f0; }
.faq-group { border-top: 5px solid var(--faq); }
.faq-group > h2 { display: inline-flex; align-items: center; padding: 0.3rem 1rem; border-radius: 99px; color: #fff; font-size: 1.05rem; background: var(--faq); }
.faq-group .faq-item summary::after { color: var(--faq); }
.faq-group .faq-item[open] { background: var(--faq-soft); border-radius: 10px; padding-inline: 0.6rem; }
.faq-jump { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.faq-jump a { padding: 0.35rem 1rem; border-radius: 99px; color: #fff; font-weight: 700; text-decoration: none; }
.faq-jump a[href="#clients"] { background: #6c2bd9; }
.faq-jump a[href="#therapists"] { background: #b0245e; }
@media (prefers-color-scheme: dark) {
  .faq-group { --faq-soft: #2e2448; }
  .faq-group#therapists { --faq: #e0558f; --faq-soft: #3a1f2c; }
}
/* Back to top */
.to-top { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 44px; padding: 0 1rem; border-radius: 99px; border: none; background: var(--pal-violet, #6c2bd9); color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(108, 43, 217, 0.35); cursor: pointer; }
.to-top svg { width: 1.1rem; height: 1.1rem; }
.to-top:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.to-top.inline { position: static; box-shadow: none; }
.to-top-row { display: flex; justify-content: center; margin: -0.4rem 0 1rem; }
/* Back to top: always at the right end of the last question / section */
.to-top-row { display: flex; justify-content: flex-start; margin: 0.6rem 0 1rem; }
/* Back to top rides along the right edge of the content, at the bottom of the screen */
.to-top-row { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15; justify-content: flex-start; pointer-events: none; margin: 0.6rem 0 1rem; }
.to-top-row .to-top { pointer-events: auto; box-shadow: 0 6px 18px rgba(108, 43, 217, 0.35); }
/* Beside the content, not over it: just outside its right edge (in the page margin) */
.to-top-row .to-top { width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; flex-direction: column; gap: 0; border-radius: 50%; font-size: 0.66rem;
  transform: translateX(calc(100% + 14px)); }
.to-top-row .to-top svg { width: 1.1rem; height: 1.1rem; }
/* Phones: no margin beside the content, so a small round button on its right edge */
@media (max-width: 760px) {
  .to-top-row .to-top { width: 42px; height: 42px; transform: translateX(10px); opacity: 0.92; }
  .to-top-row .to-top span { display: none; }
}
