@font-face {
  font-family: 'Moralana';
  src: url('../fonts/moralana.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0c0b;
  --panel: #17130f;
  --panel-2: #211b16;
  --border: #3a2f27;
  --text: #f3ece3;
  --text-dim: #b5a798;
  --pink: #c9986a;
  --pink-soft: #d9b48a;
  --sage: #7a9a86;
  --sage-soft: #96b5a1;
  --gold: #e0bd85;
  --blue: #7ea8c9;
  --green: #7fb26a;
  --red: #c96a63;
  --lavender: #a894cf;
  --lavender-soft: #c6b8e0;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Cormorant Garamond', 'Segoe UI', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* ---------- Top nav ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: linear-gradient(135deg, #14110e 0%, #1c1611 100%);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-block { display: flex; flex-direction: column; gap: 2px; }
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pink-soft);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.brand-logo {
  height: 92px;
  width: 92px;
  object-fit: contain;
  display: block;
  mix-blend-mode: lighten;
}
.navbar .brand span { color: var(--gold); text-transform: uppercase; max-width: 260px; }
.brand-name {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.85;
}
.brand-name-main {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(180deg, #f2dcae 0%, var(--gold) 55%, #b3854f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name-sub {
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-top: 0.1em;
  white-space: nowrap;
}
.brand-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.brand-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}
.brand-call-btn:hover { background: var(--sage-soft); text-decoration: none; color: #fff; transform: translateY(-1px); }
.brand-chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.brand-chat-icon svg { width: 18px; height: 18px; fill: currentColor; }
.brand-chat-icon:hover { text-decoration: none; transform: translateY(-2px) scale(1.06); box-shadow: 0 3px 8px rgba(0,0,0,0.45); filter: brightness(1.08); }
span.brand-chat-icon { cursor: default; }
span.brand-chat-icon:hover { transform: none; filter: none; }
.brand-qr-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-qr-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px 4px 4px;
}
.brand-qr-item img { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; background: #fff; }
.brand-qr-item span { font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }
.navbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.navbar nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.navbar nav a:hover { color: var(--pink-soft); border-bottom-color: var(--pink-soft); text-decoration: none; }

/* ---------- Hero / page header ---------- */
.page-hero {
  text-align: center;
  padding: 40px 20px 10px;
}
.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--text);
}
.page-hero p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Layout grid for booking page ---------- */
.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .grid-2col { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.card + .card { margin-top: 18px; }
.card h3 {
  margin-top: 0;
  color: var(--gold);
}

/* ---------- Form elements ---------- */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 6px;
  margin-top: 16px;
}
label:first-of-type { margin-top: 0; }

input[type=text], input[type=number], input[type=tel], input[type=date],
input[type=time], input[type=email], input[type=password], select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: var(--font);
  color-scheme: dark;
}
textarea { resize: vertical; min-height: 90px; }

/* Native date/time picker icons render using the OS's own light/dark
   theme, which can make them invisible on our dark inputs. We hide the
   native glyph (it stays fully clickable, just transparent) and draw
   our own themed icon on top instead, so it's visible everywhere. */
.date-input-wrap { position: relative; }
.date-input-wrap input[type=date],
.date-input-wrap input[type=time] { padding-right: 40px; }
.date-input-wrap input[type=date]::-webkit-calendar-picker-indicator,
.date-input-wrap input[type=time]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.date-input-wrap .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gold);
  pointer-events: none;
}

/* Native <select> dropdown arrows have the same OS-theme visibility
   problem, so we draw our own gold chevron instead of relying on it. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0bd85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(201, 152, 106, 0.22);
}

/* Chrome/Edge paint autofilled fields (very common on login forms) with
   their own white/yellow background, ignoring our CSS. This trick swaps
   it back to our dark input color via a huge inset shadow. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel-2) inset;
  box-shadow: 0 0 0 1000px var(--panel-2) inset;
  transition: background-color 9999s ease-in-out 0s;
}

input[type=text][readonly], input[type=number][readonly] {
  background: #1a1512;
  color: var(--text-dim);
  cursor: default;
}

input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--pink);
  cursor: pointer;
}

input[type=file] {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: var(--font);
}
input[type=file]::file-selector-button {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 12px;
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
input[type=file]::file-selector-button:hover {
  background: var(--panel-2);
  border-color: var(--pink-soft);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--blue);
  margin-top: 5px;
}

.terms-box { margin-top: 18px; }
.terms-scroll {
  max-height: 160px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  white-space: pre-line;
}
.terms-scroll::-webkit-scrollbar { width: 8px; }
.terms-scroll::-webkit-scrollbar-track { background: transparent; }
.terms-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}
.terms-agree input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }

.share-link-row { display: flex; gap: 8px; margin-top: 4px; }
.share-link-row input {
  flex: 1;
  font-size: 0.82rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text-dim);
}
.btn-copy-link {
  flex-shrink: 0;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-copy-link:hover { background: var(--pink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
}

.readonly-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff8ef;
  border: none;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 22px;
  transition: transform .15s ease, opacity .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-sm { width: auto; padding: 8px 14px; font-size: 0.85rem; margin-top: 0; }
.btn-danger { background: linear-gradient(135deg, var(--red), #d97b73); color: #fff; }
.btn-whatsapp-confirm { background: #25D366; color: #fff; text-decoration: none; }
.btn-whatsapp-confirm:hover { opacity: 0.92; text-decoration: none; }
.btn i.ti { font-size: 16px; }
.btn-sm i.ti { font-size: 14px; }

/* ---------- Info sidebar card ---------- */
.info-card h2 { font-size: 1.4rem; margin-top: 0; color: var(--text); }
.info-card p { color: var(--text-dim); font-size: 0.92rem; }

.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
}
.rating-badge .stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 1px; }
.rating-badge .score { font-weight: 700; color: var(--text); }
.rating-badge .count { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Photo gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.therapist-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.therapist-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--panel-2);
}
.therapist-card .info { padding: 12px; }
.therapist-card .info h4 { margin: 0 0 4px; color: var(--text); }
.therapist-name-large { font-size: 1.25rem !important; font-weight: 800 !important; }
.therapist-card .info .specialty { color: var(--pink); font-size: 0.82rem; }
.therapist-card .info .bio { color: var(--text-dim); font-size: 0.8rem; margin-top: 6px; }
.gallery-rate { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin-top: 4px; }

.gallery-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  margin-top: 20px;
  color: var(--text-dim);
}
.gallery-search-bar i.ti { font-size: 1.05rem; }
.gallery-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  margin: 0;
  padding: 0;
}
.gallery-search-bar input::placeholder { color: var(--text-dim); }

.gallery-avail-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}
.gallery-avail-badge.avail-available { background: rgba(127,178,106,.85); color: #fff; }
.gallery-avail-badge.avail-busy { background: rgba(224,189,133,.9); color: #3a2f27; }
.gallery-avail-badge.avail-off { background: rgba(201,106,99,.85); color: #fff; }

.therapist-card-media { position: relative; overflow: hidden; }
.select-book-overlay-btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 70%, transparent 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transform: translateY(2px);
  transition: background .15s ease;
}
.select-book-overlay-btn:hover,
.select-book-overlay-btn:focus-visible {
  background: linear-gradient(0deg, var(--pink) 0%, rgba(214,51,108,0.65) 70%, transparent 100%);
  text-decoration: none;
  color: #fff;
}
.select-book-overlay-btn i.ti { font-size: 1rem; }

.gender-tabs { display: flex; gap: 10px; margin-top: 20px; }
.gender-tabs a {
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.9rem;
}
.gender-tabs a.active { background: var(--pink); color: #fff8ef; border-color: var(--pink); }

/* ---------- Booking form: therapist picker ---------- */
.therapist-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.therapist-pick-card {
  position: relative;
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.therapist-pick-card:hover { transform: translateY(-2px); border-color: var(--pink-soft); }
.therapist-pick-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.therapist-pick-card.selected { border-color: var(--pink); background: var(--panel); }
.therapist-pick-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--panel-2);
  display: block;
}
.therapist-pick-info { padding: 6px 6px 8px; }
.therapist-pick-name { color: var(--text); font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.therapist-pick-specialty { color: var(--text-dim); font-size: 0.7rem; margin-top: 2px; }
.therapist-pick-rate { color: var(--gold); font-size: 0.72rem; font-weight: 700; margin-top: 3px; }
.therapist-pick-avail-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  z-index: 2;
}
.therapist-pick-avail-badge.avail-available { background: var(--green); }
.therapist-pick-avail-badge.avail-busy { background: var(--gold); }
.therapist-pick-avail-badge.avail-off { background: var(--red); }
.therapist-pick-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.therapist-pick-card.selected .therapist-pick-check {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff8ef;
}
.therapist-pick-card.pick-hidden { display: none; }

/* ---------- Contact / QR page ---------- */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.qr-item {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.qr-item img { width: 100%; max-width: 130px; border-radius: 6px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.qr-item .label { margin-top: 8px; font-weight: 700; color: var(--gold); font-size: 0.85rem; }
.qr-item .value { color: var(--text-dim); font-size: 0.8rem; margin-top: 2px; word-break: break-all; }
.channel-note { color: var(--text-dim); font-size: 0.7rem; margin-top: 4px; font-style: italic; }

/* ---------- Tables (admin) ---------- */
.therapist-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 4px;
}
.therapist-filter-bar input[type="text"] {
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
}
.therapist-filter-bar select { width: auto; margin: 0; }
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
}
.pagination-link:hover { text-decoration: none; border-color: var(--pink-soft); color: var(--pink-soft); }
.pagination-link.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; margin-top: 14px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
th { color: var(--pink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-pending { background: rgba(224,189,133,.16); color: var(--gold); }
.badge-confirmed { background: rgba(126,168,201,.16); color: var(--blue); }
.badge-completed { background: rgba(127,178,106,.16); color: var(--green); }
.badge-cancelled { background: rgba(201,106,99,.16); color: var(--red); }

/* ---------- Admin layout ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 20px 14px; color: var(--pink); font-weight: 700; }
.admin-sidebar .brand .brand-logo { height: 48px; width: 48px; margin-bottom: 8px; }
.admin-sidebar .brand-qr-row { margin-bottom: 6px; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.admin-sidebar a i.ti { font-size: 17px; flex-shrink: 0; }
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid var(--pink);
  padding-left: 17px;
}
.admin-main { flex: 1; padding: 28px; max-width: 1200px; }
.admin-main h1 { margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin: 20px 0; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--pink); }
.stat-card .lbl { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(127,178,106,.12); border: 1px solid var(--green); color: var(--green); }
.alert-error { background: rgba(201,106,99,.12); border: 1px solid var(--red); color: var(--red); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box { width: 100%; max-width: 380px; }

/* ---------- Ad banner carousel (homepage) ---------- */
.ad-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.ad-banner-track {
  display: flex;
  transition: transform .5s ease;
}
.ad-slide {
  flex: 0 0 100%;
  display: block;
  line-height: 0;
}
.ad-slide img {
  width: 100%;
  height: clamp(90px, 20vw, 260px);
  object-fit: cover;
  display: block;
}
.ad-banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ad-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ad-banner-dot.active { background: var(--pink); width: 22px; border-radius: 5px; box-shadow: none; }

/* ---------- Advanced hero ---------- */
.hero-advanced {
  background: radial-gradient(ellipse at top left, rgba(201,152,106,0.15), transparent 55%), var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.hero-copy h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text);
}
.hero-copy p {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 540px;
}
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta-row .btn { margin-top: 0; }

.hero-gallery-peek {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.hero-gallery-peek:hover { text-decoration: none; }
.hero-gallery-peek-stack {
  display: flex;
}
.hero-gallery-peek-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1.5px var(--lavender-soft);
  object-fit: cover;
  margin-left: -12px;
  transition: transform .15s ease;
}
.hero-gallery-peek-thumb:first-child { margin-left: 0; }
.hero-gallery-peek:hover .hero-gallery-peek-thumb { transform: translateY(-3px); }
.hero-gallery-peek-more {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--lavender);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  flex-shrink: 0;
}
.hero-gallery-peek-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lavender);
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-gallery-peek-label i.ti { font-size: 15px; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.hero-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--pink); }
.hero-stat .lbl { color: var(--text-dim); font-size: 0.8rem; margin-top: 4px; }

.services-list {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row-name { color: var(--text); font-weight: 600; }
.service-row-price { color: var(--gold); font-weight: 700; white-space: nowrap; margin-left: 12px; }

/* ---------- Location map ---------- */
.map-embed-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0 36px;
  background: var(--panel-2);
}
.map-embed-wrap iframe { display: block; }

/* ---------- Features / why choose us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}
.feature-card h4 { margin: 0 0 8px; color: var(--text); }
.feature-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

.section-heading { text-align: center; margin: 40px 0 20px; }
.section-heading h2 { font-size: 1.7rem; color: var(--text); margin-bottom: 6px; }
.section-heading p { color: var(--text-dim); }

/* ---------- Featured therapist photo grid (homepage) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.featured-photo {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.featured-photo:hover img { transform: scale(1.06); }
.featured-photo-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Clickable therapist card (public gallery) ---------- */
.therapist-card { position: relative; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.therapist-card:hover { transform: translateY(-3px); border-color: var(--pink); }
.therapist-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.photo-count-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.view-grid-link { color: var(--pink); font-size: 0.78rem; font-weight: 700; margin-top: 8px; }

/* ---------- Lightbox: therapist photo grid modal ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 30px 16px;
  overflow-y: auto;
}
.lightbox-overlay.open { display: block; }
.lightbox-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-box h3 { margin: 0 0 4px; color: var(--text); padding-right: 40px; }
.lightbox-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.lightbox-photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel-2);
}

/* ---------- Admin: therapist gallery photo grid ---------- */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.admin-photo-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.admin-photo-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.admin-photo-remove {
  position: absolute;
  top: 5px; right: 5px;
  background: rgba(176,65,58,0.9);
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.admin-photo-remove:hover { background: var(--red); text-decoration: none; }

footer.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
