:root {
  --bg: #fff5f7;
  --bg-soft: #ffe4e9;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #341d22;
  --muted: #7e5e65;
  --accent: #ef7f96;
  --accent-strong: #b50f2a;
  --line: rgba(181, 15, 42, 0.12);
  --shadow: 0 16px 34px rgba(181, 15, 42, 0.1);
  --radius-panel: 24px;
  --space-section: 2.2rem;
  --font-display: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 201, 211, 0.62), transparent 24%),
    radial-gradient(circle at 100% 8%, rgba(181, 15, 42, 0.12), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(255, 220, 227, 0.68), transparent 24%),
    linear-gradient(180deg, #fffefe 0%, #fff4f6 52%, #ffeef2 100%);
}

h1,
h2,
h3,
.section-heading h2,
.page-hero h1,
.admin-login-card h2,
.therapist-body h3,
.therapist-profile-grid .therapist-body h3,
body[data-selected-branch] .therapist-profile-grid .therapist-body h3,
.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

h1,
.page-hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

h2,
.section-heading h2,
.admin-login-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

h3,
.therapist-body h3,
.therapist-profile-grid .therapist-body h3,
body[data-selected-branch] .therapist-profile-grid .therapist-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.lead,
.lead.compact,
.service-note p,
.therapist-bio,
.therapist-meta,
.site-nav a,
.button {
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.therapist-avatar-placeholder {
  font-size: 1.25rem;
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 247, 0.92)),
    radial-gradient(circle at left center, rgba(181, 15, 42, 0.08), transparent 34%);
  border-bottom: 1px solid rgba(181, 15, 42, 0.08);
  box-shadow: 0 12px 28px rgba(181, 15, 42, 0.08);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.header-branch-strip {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0 0 0.7rem;
}

.header-branch-strip.is-empty {
  display: none;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.15rem;
}

.header-contact-label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-contact-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.header-contact-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(181, 15, 42, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-contact-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.header-contact-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  border-radius: 0.35rem;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.brand strong,
.brand small {
  display: inline;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.brand strong {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.brand small {
  display: none;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-logo-frame {
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(181, 15, 42, 0.14));
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.translate-slot {
  display: none;
  min-width: 10.5rem;
  justify-content: flex-end;
}

.translate-slot .goog-te-gadget {
  color: var(--muted) !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 0.92rem !important;
}

.translate-slot .goog-te-gadget-simple {
  display: inline-flex !important;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(181, 15, 42, 0.12) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--shadow);
}

.translate-slot .goog-te-gadget-simple span {
  color: var(--text) !important;
  border-left: 0 !important;
}

.translate-slot .goog-te-gadget-simple img {
  display: none !important;
}

.translate-slot .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed {
  margin-right: 0.35rem;
}

.hero,
.page-hero {
  padding: 4rem 0 1.9rem;
  position: relative;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.2rem;
  height: 4.6rem;
  background:
    radial-gradient(125% 125% at 50% 0%, transparent 58%, rgba(181, 15, 42, 0.06) 59%, rgba(181, 15, 42, 0.025) 66%, transparent 67%);
  pointer-events: none;
}

.hero-grid,
.booking-grid,
.contact-grid {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38rem;
  margin: 0.9rem 0 0;
}

.lead.compact {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.35rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #b50f2a, #e24e69 62%, #f2a4b4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(181, 15, 42, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.quick-highlights {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick-highlights li {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--muted);
}

.slider-card,
.promo-card,
.booking-card,
.service-card,
.therapist-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}

.slider-card,
.promo-card,
.booking-card,
.service-card,
.therapist-card,
.contact-card,
.branch-card,
.admin-panel,
.admin-record {
  position: relative;
}

.slider-card::before,
.promo-card::before,
.booking-card::before,
.service-card::before,
.therapist-card::before,
.contact-card::before,
.branch-card::before,
.admin-panel::before,
.admin-record::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.42rem;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: linear-gradient(90deg, rgba(181, 15, 42, 0.96), rgba(242, 164, 180, 0.8));
}

.slider-card {
  padding: 1rem;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  min-height: 38rem;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease;
}

.slide.active {
  opacity: 1;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 0 0.25rem;
}

.slider-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--accent-strong);
}

.section {
  padding: var(--space-section) 0 2.9rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.promo-grid,
.service-grid,
.therapist-grid,
.rate-grid {
  display: grid;
  gap: 1rem;
}

.promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-card,
.service-card,
.therapist-card,
.contact-card,
.rate-card {
  padding: 1.15rem;
}

.promo-card.featured {
  background: linear-gradient(180deg, rgba(181, 15, 42, 0.12), rgba(255, 255, 255, 0.96));
}

.promo-tag,
.contact-label,
.therapist-type {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
}

.booking-section {
  padding-top: 0;
}

.booking-grid,
.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.branch-list {
  display: flex;
  flex-wrap: wrap; /* allow cards to wrap instead of overlapping */
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch; /* ensure cards in a row share the same height */
}

.branch-list-featured {
  margin-top: 0;
}

.branch-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
  flex: 1 1 420px; /* allow cards to grow/shrink, prefer ~420px */
  min-width: 300px; /* avoid becoming too narrow */
  display: flex;
  flex-direction: column; /* stack header/content/footer consistently */
  justify-content: space-between;
  min-height: 360px; /* ensure consistent visual card height on desktop */
  overflow: hidden;
}

.branch-card p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  line-height: 1.55;
}

.branch-card a {
  color: var(--accent-strong);
}

.branch-card-rich {
  display: grid;
  gap: 1rem;
  /* main content column and a narrow fixed QR column that can shrink/grow within bounds */
  grid-template-columns: 1fr minmax(160px, 280px);
   align-items: end;
  margin-top: 0.75rem;
}

.branch-link,
.mini-contact-link,
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-weight: 600;
  line-height: 1.1;
}

.branch-link-static {
  cursor: default;
}

.branch-link:hover,
.mini-contact-link:hover,
.social-link:hover {
  border-color: rgba(164, 15, 24, 0.25);
}

.branch-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  margin-top: 1rem;
  width: 100%;
  grid-column: 1 / -1;
}

.qr-card-mini,
.qr-stack {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  min-width: 0;
  width: 100%;
  max-width: 240px;
  justify-items: center;
}

.qr-card-mini img,
.qr-stack img {
  width: 100%;
  max-width: 90px; /* smaller QR to better fit grid */
  justify-self: center;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.25rem;
  box-shadow: var(--shadow);
  height: auto;
  display: block;
}

.qr-code-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.qr-code-shell img {
  margin: 0;
}

.qr-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #ffffff;
  z-index: 10;
  overflow: hidden;
}

.qr-center-badge .inline-icon {
  width: 0.6rem;
  height: 0.6rem;
}

.qr-center-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.qr-center-badge-whatsapp {
  color: #1fa855;
}

.qr-center-badge-viber {
  color: #7c4dff;
}

.qr-center-badge-wechat {
  color: #1aad19;
}

.qr-center-badge-telegram {
  color: #249bd7;
}

/* ensure all QR images across the site use consistent smaller sizing */
.code-box img,
.qr img,
img.qr,
.branch-qr-grid img,
.contact-card img,
.contact-codes img {
  max-width: 110px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Small screens: stack branch card content and ensure QR boxes don't overflow */
@media (max-width: 900px) {
  .branch-card {
    flex: 1 1 100%;
    min-width: 0;
  }
  .branch-card-rich {
    grid-template-columns: 1fr;
  }
  .branch-qr-grid {
    justify-content: flex-start;
  }
}

/* ensure QR boxes remain visually centered within their container */
.qr-card-mini,
.qr-stack {
  display: grid;
  place-items: center;
}

.qr-card-title,
.contact-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.qr-card-title {
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.contact-card-title h2 {
  margin-bottom: 0;
}

.branch-contact-card {
  display: grid;
  gap: 1rem;
}

.inline-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.inline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.inline-icon svg {
  width: 100%;
  height: 100%;
}

.social-links {
  margin-top: 0.55rem;
}

.social-link {
  padding-inline: 0.85rem;
}

.branch-card-body p,
.branch-link span,
.mini-contact-link span,
.social-link span,
.qr-card-title span {
  overflow-wrap: anywhere;
}

.booking-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.booking-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.booking-preview {
  gap: 0.95rem;
}

.booking-field {
  min-width: 0;
}

.booking-field-full {
  grid-column: 1 / -1;
}

.booking-card label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.booking-card input,
.booking-card select,
.booking-card textarea {
  width: 100%;
  min-height: 3rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
}

.booking-card textarea {
  min-height: 7rem;
  resize: vertical;
}

.page-shell {
  padding-bottom: 2rem;
}

.booking-layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.booking-info-card p {
  color: var(--muted);
  line-height: 1.8;
}

.booking-info-card {
  position: sticky;
  top: 6.5rem;
}

.booking-estimate-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 233, 0.88));
}

.booking-estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.booking-estimate-row strong {
  color: var(--text);
}

.booking-estimate-row.total {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.booking-estimate-row.total strong {
  color: var(--accent-strong);
}

.booking-estimate-row.usd {
  padding-top: 0.2rem;
}

.booking-estimate-row.usd strong {
  color: #13633b;
}

.booking-estimate-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking-therapist-group {
  gap: 0.75rem;
}

.booking-therapist-list {
  display: grid;
  gap: 0.85rem;
}

.booking-therapist-pick {
  display: grid;
  gap: 0.45rem;
}

.booking-therapist-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.72);
}

.agreement-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.agreement-copy {
  display: grid;
  gap: 0.85rem;
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.agreement-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.agreement-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text) !important;
  font-weight: 600;
}

.agreement-check input {
  width: 1.1rem !important;
  min-height: 1.1rem !important;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent-strong);
}

.form-status.is-success {
  color: #13633b;
}

.form-status.is-error {
  color: #a40f18;
}

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

.rate-board {
  display: grid;
  gap: 1rem;
}

.rate-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.rate-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 243, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rate-card h3 {
  margin: 0 0 0.7rem;
}

.rate-card strong {
  color: var(--accent-strong);
  font-size: 1.35rem;
}

.rate-card-empty p {
  margin: 0;
}

.service-card strong,
.promo-card strong {
  color: var(--accent-strong);
}

.service-meta {
  display: grid;
  gap: 0.3rem;
}

.service-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.therapist-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.therapist-section-page [data-therapist-grid] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1.2rem;
  justify-items: center;
}

.branch-therapist-section {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  align-items: start;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 246, 0.9));
  box-shadow: var(--shadow);
}

.branch-therapist-section > .therapist-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.branch-therapist-section .therapist-card {
  align-self: start;
}

.branch-therapist-heading {
  display: grid;
  gap: 0.2rem;
}

.branch-therapist-heading h3 {
  margin: 0;
}

.therapist-list {
  display: grid;
  gap: 0.8rem;
}

.therapist-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.2rem;
  justify-items: center;
}

.therapist-profile {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.therapist-profile-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0.3rem 0;
  border-top: 0;
  text-align: center;
  justify-items: center;
  align-content: start;
  align-items: start;
}

.therapist-list .therapist-profile:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.therapist-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-width: 2.6in;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(164, 15, 24, 0.14), rgba(197, 141, 71, 0.2));
  box-shadow: var(--shadow);
}

.therapist-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.therapist-body {
  min-width: 0;
}

.therapist-profile-grid .therapist-body {
  width: 100%;
  max-width: 2.6in;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.25rem;
}

.therapist-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
}

.therapist-profile-grid .therapist-body h3 {
  font-size: 1.08rem;
  line-height: 1.15;
  margin-bottom: 0;
}

.therapist-meta,
.therapist-bio,
.therapist-stats {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.therapist-profile-grid .therapist-meta,
.therapist-profile-grid .therapist-bio,
.therapist-profile-grid .therapist-stats {
  display: none;
}

.therapist-meta {
  color: var(--accent-strong);
  font-weight: 600;
}

.therapist-bio {
  margin-top: 0.3rem;
}

.therapist-stats {
  margin-top: 0.45rem;
  font-weight: 600;
}

.therapist-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-selected-branch] .therapist-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.25rem;
}

body[data-selected-branch] .therapist-profile-grid {
  gap: 0.55rem;
}

body[data-selected-branch] .therapist-avatar {
  max-width: 2.6in;
}

body[data-selected-branch] .therapist-profile-grid .therapist-body {
  max-width: 2.6in;
}

body[data-selected-branch] .therapist-profile-grid .therapist-body h3 {
  font-size: 1.12rem;
}

.therapist-more svg {
  width: 1rem;
  height: 1rem;
}

.admin-field-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.profile-modal.hidden {
  display: none;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 13, 18, 0.58);
  backdrop-filter: blur(8px);
}

.profile-modal-dialog {
  position: relative;
  width: min(960px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 243, 0.96));
  box-shadow: 0 30px 80px rgba(34, 9, 14, 0.35);
}

.profile-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(181, 15, 42, 0.1);
  color: var(--accent-strong);
  font-size: 1.6rem;
  cursor: pointer;
}

.profile-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-modal-gallery img,
.profile-modal-gallery .therapist-avatar-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: 22px;
  object-fit: cover;
}

.profile-modal-copy {
  margin-top: 1.25rem;
}

.profile-modal-copy h2 {
  margin: 0 0 0.4rem;
}

.profile-stat-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.profile-stat {
  min-width: 8.5rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.profile-stat span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-page-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.profile-page-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-page-gallery img,
.profile-page-gallery .therapist-avatar-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-page-copy {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.therapists-page-hero {
  padding-bottom: 0.75rem;
}

.therapists-page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.therapist-section-page {
  padding-top: 0.2rem;
}

.therapist-profile-empty .therapist-body h3 {
  margin-bottom: 0.4rem;
}

.service-note {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.service-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.qr-card img {
  width: min(260px, 100%);
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: #fff;
  padding: 0.75rem;
}

.qr-note {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 239, 243, 0.96)),
    radial-gradient(circle at right top, rgba(181, 15, 42, 0.08), transparent 28%);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.admin-hero {
  padding-bottom: 1rem;
}

.admin-login-card {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,244,0.98));
  padding: 2.25rem 2.5rem;
  border-radius: 22px;
  border: 1px solid rgba(113,89,78,0.06);
  box-shadow: 0 22px 44px rgba(99,86,79,0.06);
}

.admin-login-card .contact-label {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  margin: 0 0 0.5rem 0;
}

.admin-login-card h2 {
  margin: 0 0 0.75rem 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
}

.admin-login-card label {
  display: block;
  margin: 0.4rem 0 0.6rem 0;
  color: var(--muted);
  font-weight: 600;
}

.admin-login-card input[type="text"],
.admin-login-card input[type="email"],
.admin-login-card input[type="password"] {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
  color: var(--text);
  font: inherit;
}

.admin-login-card .button.primary.full {
  width: 100%;
  height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(164,15,24,0.12);
}

.admin-login-card .form-status {
  margin-top: 0.4rem;
  min-height: 2.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(164, 15, 24, 0.12);
  background: rgba(164, 15, 24, 0.05);
  color: var(--accent-strong);
  font-weight: 700;
}

.admin-login-card .form-status.is-success {
  border-color: rgba(19, 99, 59, 0.18);
  background: rgba(19, 99, 59, 0.08);
  color: #13633b;
}

.admin-login-card .form-status.is-error {
  border-color: rgba(164, 15, 24, 0.18);
  background: rgba(164, 15, 24, 0.08);
  color: #a40f18;
}

@media (max-width: 640px) {
  .admin-login-card h2 {
    font-size: 2rem;
  }
  .admin-login-card {
    padding: 1.25rem 1rem;
  }
}

.admin-toolbar,
.admin-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-toolbar {
  margin-bottom: 1.5rem;
}

.admin-toolbar-actions,
.admin-panel-actions,
.admin-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-tab {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  border-color: transparent;
}

.admin-panel {
  display: none;
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.admin-panel.active {
  display: block;
}

.admin-record-list {
  display: grid;
  gap: 1rem;
}

.admin-record {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.admin-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-record-head strong {
  font-size: 1rem;
}

.admin-staff-preview {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-staff-preview-image,
.admin-staff-preview-placeholder {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.admin-staff-preview-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(164, 15, 24, 0.14), rgba(197, 141, 71, 0.2));
  color: var(--accent-strong);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.admin-staff-preview-copy {
  min-width: 0;
}

.admin-staff-preview-copy strong {
  display: block;
  font-size: 1.1rem;
}

.admin-staff-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.admin-staff-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(113, 89, 78, 0.12);
  background: #ffffff;
}

/* Branch preview inside admin records */
.admin-branch-preview {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-branch-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 0.35rem;
  box-shadow: var(--shadow);
}

.admin-branch-logo-placeholder {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(164, 15, 24, 0.14), rgba(197, 141, 71, 0.2));
  color: var(--accent-strong);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: var(--muted);
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.admin-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-upload-control {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.admin-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 89, 78, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,241,236,0.98));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-upload-button:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 15, 24, 0.24);
  box-shadow: 0 10px 24px rgba(76, 43, 24, 0.08);
}

.admin-upload-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
}

.admin-delete-button {
  min-width: 7rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .booking-grid,
  .booking-layout,
  .contact-grid,
  .branch-list,
  .promo-grid,
  .service-grid,
  .therapist-grid,
  .profile-page-layout,
  .rate-grid {
    grid-template-columns: 1fr;
  }

  .therapist-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .therapist-section-page [data-therapist-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-selected-branch] .therapist-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-record-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-field-full {
    grid-column: auto;
  }

  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .branch-card-rich,
  .branch-qr-grid {
    grid-template-columns: 1fr;
  }

  .booking-field,
  .booking-field-full {
    grid-column: auto;
  }

  .booking-info-card {
    position: static;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .translate-slot {
    display: none;
  }

  h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero {
    padding-top: 4.75rem;
  }

  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .therapist-list-grid {
    grid-template-columns: 1fr;
  }

  .therapist-section-page [data-therapist-grid] {
    grid-template-columns: 1fr;
  }

  body[data-selected-branch] .therapist-list-grid {
    grid-template-columns: 1fr;
  }

  .profile-page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo-frame {
    width: 5.4rem;
    height: 5.4rem;
  }

  .branch-logo-image {
    max-width: 3rem;
    height: 3rem;
  }
}
