/* =========================================================
   TrustDento — shared design system
   ========================================================= */

:root {
  --teal-900: #0b3d38;
  --teal-700: #0e6b60;
  --teal-600: #0f8b7f;
  --teal-500: #14a394;
  --teal-100: #e3f5f2;
  --teal-50:  #f2faf9;

  --orange-600: #d98a1f;
  --orange-400: #eab24a;

  --ink-900: #16202b;
  --ink-700: #3a4650;
  --ink-500: #6b7684;
  --ink-300: #9aa4ae;

  --line: #e7ebee;
  --line-soft: #eef1f3;
  --bg: #fbfcfc;
  --white: #ffffff;

  --red-500: #e14b4b;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16,32,28,0.04), 0 6px 20px rgba(16,32,28,0.05);
  --shadow-pop: 0 10px 30px rgba(16,32,28,0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}
.page.narrow { max-width: 480px; }

/* ---------- Top bar / brand ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand .logo-mark {
  width: 46px; height: 50px;
  flex-shrink: 0;
}
.brand-text { text-align: left; }
.brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--ink-900);
}
.brand-name span { color: var(--teal-600); }
.brand-tag {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-500);
  letter-spacing: 0.2px;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 20px 24px 8px;
  position: relative;
}
.topbar .brand { flex: 1; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-700);
}
.icon-btn:hover { background: var(--teal-50); }

/* ---------- Desktop header (search results / detail pages) ---------- */
.header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.header-desktop .brand { justify-content: flex-start; }
.header-desktop .brand .logo-mark { width: 38px; height: 42px; }
.header-desktop .brand-name { font-size: 22px; }
.header-desktop .brand-tag { font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.location-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
}
.avatar-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-700);
  border: 1px solid var(--line);
}

/* ---------- Hero (home) ---------- */
.hero { padding: 18px 24px 8px; }
.hero h1 {
  font-size: 27px;
  font-weight: 800;
  margin: 6px 0 6px;
  letter-spacing: -0.4px;
}
.hero p {
  color: var(--ink-500);
  margin: 0 0 20px;
  font-size: 15px;
}

/* ---------- Search / filter card ---------- */
.search-card {
  margin: 0 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.search-row {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  gap: 12px;
}
.search-row + .search-row { border-top: 1px solid var(--line-soft); }
.search-field { flex: 1; min-width: 0; }
.search-field .field-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-700);
  margin-bottom: 4px;
}
.search-field .field-value {
  font-size: 15px;
  color: var(--ink-900);
  font-weight: 500;
}
.search-field .field-value.placeholder { color: var(--ink-300); font-weight: 400; }
.search-divider { width: 1px; align-self: stretch; background: var(--line); }
.chev { color: var(--ink-300); flex-shrink: 0; }

.btn-search {
  margin: 0 24px 30px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, var(--teal-600), var(--teal-700));
  color: #fff;
  border: none;
  padding: 17px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(14,107,96,0.28);
}
.btn-search:hover { filter: brightness(1.03); }

/* ---------- Explore grid ---------- */
.section-title {
  padding: 0 24px;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 0 24px;
  margin-bottom: 30px;
}
.explore-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.explore-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.explore-icon svg { width: 30px; height: 30px; }
.explore-label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); line-height: 1.25; }

.explore-icon.c1 { background: #e6f6f2; color: #1a9c8f; }
.explore-icon.c2 { background: #f0edf9; color: #7a5fc4; }
.explore-icon.c3 { background: #fdefe1; color: #d9822b; }
.explore-icon.c4 { background: #e8f0fb; color: #3d7fc9; }
.explore-icon.c5 { background: #fbe9ee; color: #d94b74; }
.explore-icon.c6 { background: #e9f7ec; color: #3faa5c; }

@media (max-width: 640px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Clinic list card (home "last viewed" + search results) ---------- */
.clinic-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin: 0 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
  box-shadow: var(--shadow-card);
}
.clinic-thumb {
  width: 92px; height: 92px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.clinic-info { flex: 1; min-width: 0; }
.clinic-name { font-weight: 800; font-size: 15.5px; margin-bottom: 3px; }
.clinic-loc {
  display: flex; align-items: center; gap: 5px;
  color: var(--ink-500); font-size: 13px; margin-bottom: 6px;
}
.clinic-loc svg { flex-shrink: 0; width: 13px; height: 13px; }
.clinic-rating { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; }
.clinic-rating .muted { color: var(--ink-500); font-weight: 500; }
.star { color: #f2a83c; }

.btn-call {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-weight: 700;
  color: var(--teal-700);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  background: #fff;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 10px 6px 18px;
  background: #fff;
  position: sticky;
  bottom: 0;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-300);
  padding: 6px 0;
}
.nav-item.active { color: var(--teal-600); }
.nav-item svg { width: 22px; height: 22px; }

/* ---------- Search results page ---------- */
.results-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.results-toolbar .search-field-inline {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--ink-700);
  font-weight: 600;
}
.btn-primary-sm {
  background: linear-gradient(180deg, var(--teal-600), var(--teal-700));
  color: #fff; border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
}

.results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px;
  flex-wrap: wrap; gap: 10px;
}
.results-header h2 { font-size: 20px; margin: 0; }
.results-header .count { color: var(--ink-500); font-weight: 500; font-size: 14px; margin-left: 6px;}
.sort-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  background: #fff;
}

.chip-row {
  display: flex; gap: 10px; padding: 0 24px 18px;
  overflow-x: auto;
}
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* result card (bigger, with trust ring) */
.result-card {
  display: flex; gap: 18px;
  padding: 20px;
  margin: 0 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  align-items: stretch;
}
.result-thumb {
  width: 150px; height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.result-body { flex: 1; min-width: 0; }
.result-name { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.result-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 13.5px; margin-bottom: 8px; }
.result-doc { color: var(--teal-700); font-weight: 700; font-size: 15px; }
.result-doc-sub { color: var(--ink-500); font-size: 13.5px; margin-bottom: 10px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  padding: 6px 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
}
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-700); font-weight: 600; }
.meta-item svg { width: 15px; height: 15px; color: var(--ink-500); }
.verified { color: var(--teal-600); }

.result-side {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 14px;
  min-width: 128px;
}

.trust-ring {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.trust-ring .value { font-size: 21px; font-weight: 800; color: var(--ink-900); }
.trust-label { text-align: center; font-size: 11.5px; color: var(--ink-500); font-weight: 600; line-height: 1.3; margin-top: -2px;}

.btn-view {
  background: var(--teal-600);
  color: #fff; border: none;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 13.5px;
  width: 100%;
  text-align: center;
}
.btn-view:hover { background: var(--teal-700); }

/* pagination */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 10px 24px 34px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-700);
  padding: 0 10px;
}
.page-btn.active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.page-btn.disabled { color: var(--ink-300); }

/* ---------- Booking flow ---------- */
.flow-header {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 24px 6px;
}
.back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-900);
}
.back-btn:hover { background: var(--teal-50); }
.flow-header .brand { flex: 1; }

.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: 10px;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13.5px;
  background: var(--line-soft);
  color: var(--ink-300);
  flex-shrink: 0;
}
.step.done .step-num { background: var(--teal-600); color: #fff; }
.step.active .step-num { background: var(--teal-600); color: #fff; }
.step-text .t1 { font-weight: 700; font-size: 13.5px; color: var(--ink-300); }
.step.done .step-text .t1, .step.active .step-text .t1 { color: var(--teal-700); }
.step-text .t2 { font-size: 11.5px; color: var(--ink-300); }
.step-arrow { color: var(--ink-300); }

.clinic-summary {
  display: flex; gap: 16px;
  padding: 18px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.clinic-summary img { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; }
.clinic-summary .info { flex: 1; }
.clinic-summary .name { font-weight: 800; font-size: 17px; margin-bottom: 3px; }
.clinic-summary .loc { color: var(--ink-500); font-size: 13.5px; display: flex; gap: 5px; align-items: center; margin-bottom: 6px;}
.clinic-summary .doc { color: var(--teal-700); font-weight: 700; font-size: 14.5px; }
.clinic-summary .doc-sub { color: var(--ink-500); font-size: 13px; }
.trust-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust-mini .ring-sm {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.trust-mini .lbl { font-size: 10px; color: var(--ink-500); text-align: center; line-height: 1.2; }

.block { padding: 22px 24px; }
.block-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.block-title h3 { font-size: 16px; margin: 0; }
.month-nav { display: flex; align-items: center; gap: 14px; color: var(--ink-700); font-weight: 600; font-size: 14px; }
.month-nav .arrow { color: var(--ink-300); cursor: pointer; }

.date-scroll {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.date-chip {
  min-width: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  flex-shrink: 0;
}
.date-chip .dow { font-size: 12px; color: var(--ink-500); font-weight: 600; margin-bottom: 4px;}
.date-chip .dom { font-size: 19px; font-weight: 800; }
.date-chip .mon { font-size: 11px; color: var(--ink-500); margin-top: 2px;}
.date-chip.selected { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.date-chip.selected .dow, .date-chip.selected .mon { color: rgba(255,255,255,0.85); }

.avail-note { display: flex; align-items: center; gap: 8px; color: var(--teal-700); font-size: 13px; font-weight: 600; margin-top: 12px; }

.time-note { display:flex; align-items:center; gap:8px; color: var(--ink-500); font-size: 13px; font-weight: 600;}

.time-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.time-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
}
.time-slot.selected { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
@media (max-width: 560px) { .time-grid { grid-template-columns: repeat(3, 1fr); } }

.selected-box {
  margin: 22px 24px 0;
  background: var(--teal-50);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.selected-box .ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--teal-600); flex-shrink: 0;
}
.selected-box .t1 { color: var(--teal-700); font-weight: 800; font-size: 14.5px; }
.selected-box .t2 { font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.selected-box .t3 { color: var(--ink-500); font-size: 12px; margin-top: 2px; }

.btn-cta {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin: 22px 24px 6px;
  background: linear-gradient(180deg, var(--teal-600), var(--teal-700));
  color: #fff; border: none;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-weight: 800; font-size: 15.5px;
  box-shadow: 0 8px 20px rgba(14,107,96,0.28);
}
.btn-cta small { font-weight: 600; font-size: 12px; opacity: 0.85; margin-top: 3px; }

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-500); font-size: 12.5px; font-weight: 500;
  padding: 14px 24px 26px;
}

/* summary strip on patient-details page */
.summary-strip {
  display: flex; gap: 22px; flex-wrap: wrap;
  background: var(--teal-50);
  margin: 0 24px; padding: 16px 18px; border-radius: var(--radius-lg);
}
.summary-strip .item { display: flex; align-items: center; gap: 10px; }
.summary-strip .item .ic { color: var(--teal-600); flex-shrink: 0; }
.summary-strip .item .lbl { font-size: 11.5px; color: var(--ink-500); font-weight: 600; }
.summary-strip .item .val { font-size: 14px; font-weight: 700; }

/* form */
.form-block { padding: 24px; }
.form-block h3 { font-size: 18px; margin: 0 0 4px; }
.form-block .sub { color: var(--ink-500); font-size: 13.5px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .form-grid, .form-grid.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.field label .req { color: var(--red-500); }
.field .input, .field select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  color: var(--ink-900);
  font-family: inherit;
  background: #fff;
  width: 100%;
}
.field .input::placeholder { color: var(--ink-300); }
.field.with-icon { position: relative; }
.field.with-icon .input { padding-left: 38px; }
.field.with-icon svg { position: absolute; left: 12px; top: 41px; color: var(--ink-300); }
.phone-field { display: flex; gap: 8px; }
.phone-field select { max-width: 84px; }

.checkline {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0;
}
.checkline input { margin-top: 3px; accent-color: var(--teal-600); width: 16px; height: 16px; }
.checkline .t1 { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.checkline .t2 { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

.info-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.info-note .ic { color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }
.info-note .t1 { font-weight: 700; font-size: 13.5px; }
.info-note .t2 { color: var(--ink-500); font-size: 12.5px; margin-top: 2px; }

.form-actions { display: flex; gap: 14px; }
.btn-back {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 15px 20px;
  font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-900);
}
.form-actions .btn-cta { flex: 1; margin: 0; }

/* ---------- Clinic detail page ---------- */
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 340px; object-fit: cover; }
.hero-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.hero-topbar .circle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
}
.verified-pill {
  position: absolute; top: 18px; left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-900);
}
.verified-pill svg { color: var(--teal-600); }
.hero-trust {
  position: absolute; right: 20px; bottom: -34px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 14px 20px;
  display: flex; flex-direction: column; align-items: center;
}

.thumb-strip {
  display: flex; gap: 10px;
  padding: 50px 24px 18px;
  overflow-x: auto;
}
.thumb-strip .th {
  position: relative;
  width: 108px; height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.thumb-strip .th.selected { border-color: var(--teal-600); }
.thumb-strip .th img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip .th .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 5px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: #fff; font-size: 11px; font-weight: 700;
}
.thumb-strip .th.more {
  background: rgba(20,25,30,0.7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; flex-direction: column;
}

.detail-head { padding: 4px 24px 0; }
.detail-head .name-row { display: flex; align-items: center; gap: 8px; }
.detail-head h1 { font-size: 23px; margin: 0; }
.detail-head .check { color: var(--teal-600); }
.detail-head .addr { color: var(--ink-500); font-size: 14px; display: flex; align-items: center; gap: 6px; margin: 6px 0 14px; }

.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 0 24px 18px; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.doc-row .doc-name { color: var(--teal-700); font-weight: 800; font-size: 16.5px; }
.doc-row .doc-sub { color: var(--ink-500); font-size: 13.5px; margin-top: 2px; }
.doc-row .exp { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-700); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.stat-item { text-align: center; }
.stat-item .ic { color: var(--teal-600); margin-bottom: 6px; }
.stat-item .num { font-weight: 800; font-size: 15px; }
.stat-item .lbl { color: var(--ink-500); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.spec-tags { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.spec-tags .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.spec-tags .row h3 { font-size: 16px; margin: 0; }
.spec-tags .row a { color: var(--teal-600); font-weight: 700; font-size: 13.5px; }
.spec-tags .tags { display: flex; gap: 10px; flex-wrap: wrap; }

.about-box { margin: 22px 24px; background: var(--teal-50); border-radius: var(--radius-lg); padding: 18px 20px; }
.about-box h4 { color: var(--teal-700); margin: 0 0 8px; font-size: 15px; }
.about-box p { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.6; }
.about-box .more { color: var(--teal-600); font-weight: 700; font-size: 13px; }

.info-card { margin: 0 24px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.info-card .row2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.info-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14.5px; }
.info-card p { margin: 0; color: var(--ink-500); font-size: 13.5px; line-height: 1.5; }
.map-btn { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--teal-700); display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.hours-call { display: flex; gap: 24px; margin: 0 24px 18px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px;}
.hours-call .col h4 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 14.5px; }
.hours-call .col p { margin: 2px 0; color: var(--ink-700); font-size: 13.5px; }
.hours-call .col .call-num { color: var(--teal-600); font-weight: 800; }

.reviews-card { margin: 0 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.reviews-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.reviews-top h3 { font-size: 16px; margin: 0; }
.reviews-top a { color: var(--teal-600); font-weight: 700; font-size: 13.5px; }
.reviews-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.rating-summary { text-align: center; min-width: 110px; }
.rating-summary .big { font-size: 40px; font-weight: 800; }
.rating-summary .stars { color: #f2a83c; margin: 4px 0; }
.rating-summary .count { color: var(--ink-500); font-size: 12.5px; }
.rating-bars { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.rbar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-700); }
.rbar .track { flex: 1; height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.rbar .fill { height: 100%; background: var(--teal-600); }
.review-tile { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; }
.review-tile .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-tile .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.review-tile .name { font-weight: 700; font-size: 13.5px; }
.review-tile .verif { color: var(--teal-600); font-size: 11px; display: flex; align-items: center; gap: 3px; font-weight: 600;}
.review-tile .stars { color: #f2a83c; font-size: 12px; margin: 2px 0; }
.review-tile .txt { color: var(--ink-700); font-size: 13px; line-height: 1.5; }
.review-tile .when { color: var(--ink-300); font-size: 11px; margin-top: 6px; }

.book-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  gap: 16px; flex-wrap: wrap;
  position: sticky; bottom: 0; background: #fff;
}
.book-bar .price { display: flex; align-items: baseline; gap: 8px; }
.book-bar .price .now { font-size: 22px; font-weight: 800; }
.book-bar .price .was { color: var(--ink-300); text-decoration: line-through; font-size: 15px; }
.book-bar .price-sub { color: var(--ink-500); font-size: 11.5px; margin-top: 2px; }
.btn-book { background: var(--teal-600); color: #fff; border: none; padding: 16px 30px; border-radius: var(--radius-lg); font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 20px rgba(14,107,96,0.28); }
.btn-book small { font-weight: 600; font-size: 11.5px; opacity: 0.85; }

/* confirmation page */
.confirm-card { margin: 40px 24px; text-align: center; padding: 40px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.confirm-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.confirm-card h2 { margin: 0 0 8px; font-size: 22px; }
.confirm-card p { color: var(--ink-500); margin: 0 0 26px; font-size: 14.5px; }
.confirm-details { text-align: left; background: var(--teal-50); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 26px; }
.confirm-details .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.confirm-details .row + .row { border-top: 1px solid rgba(15,139,127,0.12); }
.confirm-details .lbl { color: var(--ink-500); }
.confirm-details .val { font-weight: 700; }

.link-plain { color: var(--teal-600); font-weight: 700; }

/* ---------- Bookings page ---------- */
.tab-row {
  display: flex; gap: 8px;
  padding: 14px 24px 4px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-500);
}
.tab-btn.active { background: var(--teal-600); color: #fff; }

.booking-card {
  margin: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.booking-card .top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--teal-50);
}
.booking-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.booking-status.past { color: var(--ink-500); }
.booking-status.cancelled { color: var(--red-500); }
.booking-id { font-size: 12px; color: var(--ink-500); font-weight: 600; }
.booking-card .body { display: flex; gap: 16px; padding: 16px 18px; }
.booking-card img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.booking-card .name { font-weight: 800; font-size: 15.5px; margin-bottom: 3px; }
.booking-card .doc { color: var(--teal-700); font-weight: 700; font-size: 13.5px; }
.booking-card .when { display: flex; align-items: center; gap: 6px; color: var(--ink-700); font-size: 13px; font-weight: 600; margin-top: 6px; }
.booking-card .when svg { color: var(--ink-500); }
.booking-card .actions { display: flex; gap: 10px; padding: 0 18px 16px; }
.booking-card .actions a, .booking-card .actions button {
  flex: 1; text-align: center;
  padding: 11px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink-900);
}
.booking-card .actions .primary { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.booking-card .actions .danger { color: var(--red-500); }

/* ---------- Offers page ---------- */
.offer-card {
  margin: 0 24px 18px;
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.offer-card.o1 { background: linear-gradient(120deg, #0f8b7f, #0b3d38); }
.offer-card.o2 { background: linear-gradient(120deg, #3d7fc9, #1e3a63); }
.offer-card.o3 { background: linear-gradient(120deg, #d9556f, #7a2438); }
.offer-card.o4 { background: linear-gradient(120deg, #c9832b, #7a4e12); }
.offer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.offer-card h4 { margin: 0 0 6px; font-size: 18px; }
.offer-card p { margin: 0 0 16px; font-size: 13px; opacity: 0.9; max-width: 78%; }
.offer-code-row { display: flex; align-items: center; justify-content: space-between; }
.offer-code {
  background: rgba(255,255,255,0.16);
  border: 1px dashed rgba(255,255,255,0.5);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 13px; letter-spacing: 1px;
}
.offer-valid { font-size: 11px; opacity: 0.8; }
.offer-tooth {
  position: absolute; right: -20px; bottom: -26px; opacity: 0.14;
}

/* ---------- Account page ---------- */
.account-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 24px 22px;
  background: var(--teal-50);
}
.account-hero .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; flex-shrink: 0;
}
.account-hero .name { font-weight: 800; font-size: 18px; }
.account-hero .sub { color: var(--ink-500); font-size: 13px; margin-top: 2px; }
.account-hero .edit { margin-left: auto; }
.account-hero .edit a {
  border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 12.5px; font-weight: 700; color: var(--teal-700);
}

.stat-strip {
  display: flex; padding: 18px 24px; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.stat-pill { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 6px; }
.stat-pill .n { font-weight: 800; font-size: 18px; color: var(--teal-700); }
.stat-pill .l { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

.menu-group { padding: 8px 24px; }
.menu-group .group-label { font-size: 12px; font-weight: 800; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.4px; margin: 18px 0 8px; }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.menu-item .ic {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--teal-50); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-item .txt { flex: 1; font-weight: 700; font-size: 14.5px; }
.menu-item .sub-txt { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-top: 2px; }
.menu-item .chev { color: var(--ink-300); }
.menu-item.danger .ic { background: #fbe9e9; color: var(--red-500); }
.menu-item.danger .txt { color: var(--red-500); }
