:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #12302E;
  --ink-2: #4A5F5D;
  --muted: #7F8F8D;
  --line: #E4E0D7;
  --brand: #0B6B66;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3F0EE;
  --brand-deep: #08504C;
  --accent: #E07A5F;
  --accent-soft: #FBEAE4;
  --wa: #1FA855;
  --wa-deep: #168A45;
  --warn-soft: #FFF4DB;
  --warn-ink: #7A5200;
  --ok-soft: #E2F4E8;
  --ok-ink: #1B6B3A;
  --bad-soft: #FBE5E5;
  --bad-ink: #9B2C2C;
  --info-soft: #E5EEFB;
  --info-ink: #1F4E8C;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 48, 46, .06), 0 8px 24px rgba(18, 48, 46, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[lang="ur"] body { font-family: var(--font-ur), var(--font); line-height: 2.1; font-size: 15.5px; }
html[lang="ur"] .num, html[lang="ur"] input, html[lang="ur"] .ltr { font-family: var(--font); line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(245, 243, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand-mark .ic { width: 22px; height: 22px; }
.brand-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="ur"] .brand-name { font-size: 15px; }
.icon-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.icon-btn .ic { width: 18px; height: 18px; }
.back-btn { width: 38px; padding: 0; justify-content: center; }
html[dir="rtl"] .back-btn .ic { transform: scaleX(-1); }

main { padding: 4px 16px 24px; }
.view-enter { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- bottom nav ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px;
}
html[lang="ur"] .tab { font-size: 12px; line-height: 1.9; }
.tab.active { color: var(--brand); }
.tab.active .ic { background: var(--brand-soft); border-radius: 999px; padding: 3px 14px; width: 52px; height: 28px; }
.tab .ic { width: 52px; height: 28px; padding: 3px 14px; }

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; z-index: 25; bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(31, 168, 85, .4); text-decoration: none;
}
html[dir="rtl"] .wa-fab { right: auto; left: 16px; }
.wa-fab svg { width: 30px; height: 30px; }
@media (min-width: 600px) { .wa-fab { right: calc(50% - 280px + 16px); } html[dir="rtl"] .wa-fab { left: calc(50% - 280px + 16px); } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; letter-spacing: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.lead { color: var(--ink-2); margin: 6px 0 0; }
.small { font-size: 13.5px; color: var(--muted); }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px 20px 20px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; margin-top: 8px;
}
.hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07); top: -80px; right: -60px;
}
html[dir="rtl"] .hero::after { right: auto; left: -60px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; }
.hero .eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { color: #fff; margin-top: 14px; font-size: 25px; }
.hero p { color: rgba(255,255,255,.85); margin: 8px 0 18px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.hero-actions .btn-primary-light { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .08s ease, background .15s ease;
}
html[lang="ur"] .btn { font-size: 15px; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn svg:not(.ic) { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary-light { background: #fff; color: var(--brand-deep); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-danger-text { background: none; color: var(--bad-ink); min-height: 40px; padding: 0 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 150px;
  border: 1.5px solid transparent; transition: border-color .15s ease;
}
.svc:hover { border-color: var(--brand-soft); }
.svc-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.svc-icon .ic { width: 24px; height: 24px; }
.svc-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
html[lang="ur"] .svc-name { line-height: 1.9; font-size: 14.5px; }
.svc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; color: var(--brand-deep); font-size: 15px; }
.price.ask { font-weight: 600; color: var(--muted); font-size: 13px; }
.chev { color: var(--muted); }
html[dir="rtl"] .chev { transform: scaleX(-1); }

.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.step-num { counter-increment: s; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-family: var(--font); }
.step-num::before { content: counter(s); }
.step p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.feature .ic { color: var(--brand); }
.feature b { font-size: 14.5px; }
.feature span { font-size: 13px; color: var(--ink-2); }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.notice .ic { width: 20px; height: 20px; margin-top: 2px; }
.notice-emergency { background: var(--accent-soft); color: #7A2E1B; }
.notice-rx { background: var(--warn-soft); color: var(--warn-ink); }
.notice-info { background: var(--brand-soft); color: var(--brand-deep); }

.contact-card { display: grid; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row .ic { color: var(--brand); }

/* ---------- service detail ---------- */
.detail-head { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.detail-head .svc-icon { width: 60px; height: 60px; border-radius: 18px; }
.detail-head .svc-icon .ic { width: 32px; height: 32px; }
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); margin-top: 16px; }
.price-box .price { font-size: 20px; }
.sticky-cta { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin-top: 20px; display: grid; gap: 10px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 12px 14px; min-height: 50px; font-size: 16px; outline: none; transition: border-color .15s ease;
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[readonly] { background: var(--bg); color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.error { background: var(--bad-soft); color: var(--bad-ink); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.auth-head { text-align: center; margin: 20px 0 22px; }
.auth-head .brand-mark { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; }
.auth-head .brand-mark .ic { width: 30px; height: 30px; }
.switch-auth { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- bookings ---------- */
.booking { display: grid; gap: 10px; }
.booking-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.booking-meta { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.booking-meta div { display: flex; gap: 8px; align-items: center; }
.booking-meta .ic { width: 17px; height: 17px; color: var(--muted); }
.booking-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending { background: var(--warn-soft); color: var(--warn-ink); }
.st-confirmed { background: var(--info-soft); color: var(--info-ink); }
.st-completed { background: var(--ok-soft); color: var(--ok-ink); }
.st-cancelled { background: #EEECE8; color: var(--muted); }
.ref { font-family: var(--font); font-weight: 700; color: var(--muted); font-size: 13px; }
.list { display: grid; gap: 12px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty .ic { width: 44px; height: 44px; color: var(--muted); margin-bottom: 8px; }

/* ---------- success ---------- */
.success { text-align: center; padding: 24px 8px 8px; }
.success-mark { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; background: var(--ok-soft); color: var(--ok-ink); display: grid; place-items: center; animation: pop .35s ease; }
.success-mark .ic { width: 40px; height: 40px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.summary { text-align: start; margin-top: 18px; display: grid; gap: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.summary b { text-align: end; }

/* ---------- account ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; font-family: var(--font); flex: none; }
.menu { display: grid; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border: 0; background: none; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer; text-align: start; font-weight: 600; width: 100%; }
.menu > :last-child { border-bottom: 0; }
.menu .ic { color: var(--brand); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50;
  box-shadow: var(--shadow); animation: fade .2s ease; max-width: 90vw; text-align: center;
}
.skeleton { background: linear-gradient(90deg, #ECE9E2 0%, #F5F3EE 50%, #ECE9E2 100%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); }
@keyframes sh { to { background-position: -200% 0; } }
footer.site { text-align: center; color: var(--muted); font-size: 12.5px; padding: 24px 0 8px; }

/* ---------- offers, announcements, nurse ---------- */
.announce { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: #6B2A17; border-radius: var(--radius-sm); padding: 11px 14px; margin: 8px 0 4px; font-size: 14px; }
.announce .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.announce b { display: block; }
.announce span { display: block; opacity: .9; }
.hero-247 { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.88); }
.hero-247 .num { background: #fff; color: var(--brand-deep); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; line-height: 1.6; }
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.offers::-webkit-scrollbar { display: none; }
.offers.single { grid-auto-columns: 100%; }
.offer {
  scroll-snap-align: start; position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px;
  background: linear-gradient(140deg, #E07A5F 0%, #C55A40 100%); color: #fff; display: flex; flex-direction: column; gap: 6px;
}
.offer::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); right: -40px; bottom: -50px; }
html[dir="rtl"] .offer::after { right: auto; left: -40px; }
.offer-badge { align-self: flex-start; background: #fff; color: #A8452C; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.offer h3 { color: #fff; font-size: 17px; }
.offer p { margin: 0; font-size: 14px; color: rgba(255,255,255,.9); }
.offer-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.9); }
.offer-meta .ic { width: 16px; height: 16px; }
.offer-cta { margin-top: 6px; position: relative; z-index: 1; }
.offer-cta .btn { color: #A8452C; }
.offer-inline { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: #7A2E1B; font-size: 14px; }
.offer-inline .ic { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.offer-inline b { display: block; }
.offer-inline span { display: block; }
.svc { position: relative; }
.svc-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
html[dir="rtl"] .svc-badge { right: auto; left: 10px; }
.book-cta { color: var(--brand); font-weight: 700; font-size: 13.5px; }
.provider { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 14px; }
.provider-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--brand-soft); }
.provider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.provider-body { display: grid; gap: 6px; }
.provider-body h3 { font-size: 18px; }
.provider-title { display: flex; align-items: center; gap: 6px; color: var(--brand-deep); font-size: 13.5px; font-weight: 600; }
.provider-title .ic { width: 16px; height: 16px; }
.provider-body p { margin: 2px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.provider-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; }
.provider .btn { min-height: 46px; }
@media (max-width: 380px) { .provider { grid-template-columns: 1fr; } .provider-photo { aspect-ratio: 1; max-height: 260px; } }
.phone-link { text-decoration: none; }
.phone-link .num { font-weight: 700; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
