/* ==========================================================================
   Drayvenn Lab - v50 flagship design system
   Research basis: Apple HIG Liquid Glass (glass = functional layer only),
   Linear (subtraction, near-invisible borders), Zocdoc (task-first, tokens),
   NN/g skeleton screens. Tokens in DESIGN.md.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* color */
  --bg: #F5F9FB;
  --surface: #ffffff;
  --surface-soft: rgba(255,255,255,.72);
  --ink: #0F172A;
  --body: #64748B;
  --muted: #94A3B8;
  --line: rgba(15,23,42,.05);
  --line-strong: rgba(15,23,42,.09);
  --primary: #2F66D0;
  --primary-2: #2556B8;
  --primary-deep: #1C418F;
  --primary-soft: #E2EBFA;
  --amber: #F59E0B;
  --danger: #dc2626;
  --grad: linear-gradient(135deg, #4D82DA, #2A5BC0);
  --hero-grad: linear-gradient(155deg, #4D82DA 0%, #2F66D0 52%, #1C418F 100%);

  /* glass - functional layer ONLY (topbar, tabbar, FAB, popups, sheets) */
  --glass-bg: rgba(255,255,255,.55);
  --glass-brd: rgba(255,255,255,.65);
  --glass-blur: blur(24px) saturate(190%);
  --spec: inset 0 1px 0 rgba(255,255,255,.8);

  /* radius scale (Zocdoc-ish) */
  --r-field: 14px;
  --r-card: 22px;
  --r-panel: 24px;
  --r-pill: 999px;

  /* shadow - Linear-style restraint, layered, teal-tinted on accents */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow: 0 2px 6px rgba(15,23,42,.04), 0 22px 56px rgba(15,23,42,.10);
  --shadow-lg: 0 4px 8px rgba(15,23,42,.06), 0 28px 64px rgba(15,23,42,.14);
  --shadow-teal: 0 8px 22px rgba(47,102,208,.32), inset 0 1px 0 rgba(255,255,255,.4);

  /* motion */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.28, .4, 1);
  --t-fast: 140ms;
  --t-std: 220ms;
  --t-slow: 360ms;

  /* layout */
  --maxw: 1240px;
  --topbar-h: 60px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; scroll-behavior: smooth; overflow-x: clip; }
body { -webkit-text-size-adjust: none; text-size-adjust: none; } body, #app { overflow-x: clip; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 15.5px; line-height: 1.55;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
/* vivid aurora - gives the glass layer something real to refract */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58vw 52vw at 88% -12%, rgba(0,194,174,.20), transparent 62%),
    radial-gradient(46vw 46vw at -14% 30%, rgba(56,150,210,.14), transparent 60%),
    radial-gradient(70vw 52vw at 50% 114%, rgba(47,102,208,.16), transparent 62%),
    radial-gradient(30vw 30vw at 18% 78%, rgba(140,120,255,.07), transparent 60%),
    var(--bg);
}
h1, h2, h3, h4 { color: var(--ink); font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
b, strong { color: var(--ink); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
::selection { background: rgba(13,148,136,.22); }

/* scroll reveal - transform/opacity only (Nord 2T budget) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 110ms); will-change: opacity, transform; }
.reveal-slow { transition-duration: 1.15s; }
.reveal.revealed { will-change: auto; }
.reveal.revealed { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.view-enter { animation: viewIn .5s cubic-bezier(.16,1,.3,1); }
@keyframes hvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- app shell ---------- */
.wrap { flex: 0 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 14px 14px 28px; min-height: 100dvh; }
main.wrap section { animation: panelIn var(--t-std) var(--ease) backwards; }

/* ---------- top bar (glass - functional layer) ---------- */
.topbar { position: sticky; top: 0; z-index: 100; padding: 10px 12px 0; }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; border-radius: var(--r-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--spec), var(--shadow-sm);
}
.topbar-inner.scrolled { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.95); box-shadow: var(--spec), 0 10px 28px rgba(6,16,38,.12); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark-img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-xs); }
.logo-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15.5px; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
.logo-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.topbar-links { display: flex; align-items: center; gap: 4px; }
.topbar-links a {
  font-size: 13.5px; font-weight: 700; color: var(--body); padding: 8px 13px; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.topbar-links a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.topbar-links a:active { transform: scale(.96); }
#acct-menu-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--body);
  background: rgba(255,255,255,.55); border: 1px solid var(--glass-brd); box-shadow: var(--spec);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease);
}
#acct-menu-btn:hover { color: var(--ink); }
#acct-menu-btn:active { transform: scale(.92); }
#acct-menu-btn svg { width: 19px; height: 19px; }
#acct-menu {
  position: absolute; top: calc(100% + 8px); right: 12px; z-index: 110; min-width: 190px; padding: 6px;
  background: rgba(255,255,255,.82); border: 1px solid var(--glass-brd); border-radius: 16px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--spec), var(--shadow); display: grid; animation: panelIn var(--t-std) var(--ease) backwards;
}
#acct-menu a, #acct-menu button { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--body); }
#acct-menu a:hover, #acct-menu button:hover { background: rgba(255,255,255,.9); color: var(--ink); }

/* ---------- v93 footer - WeCare shape: blue rounded panel, get-in-touch, quick links ---------- */
.footer { flex-shrink: 0; padding: 34px 0 0; }
.footer-panel { background: var(--primary); border-radius: 30px 30px 0 0; color: #DCEAFF; padding: 40px 22px 18px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 26px; text-align: center; }
.footer-cell-head { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #B9D4FF; margin-bottom: 10px; }
.footer-cell a { color: #fff; text-decoration: none; display: block; margin: 6px 0; font-size: 14.5px; }
.footer-phone { font-weight: 700; font-size: 16px !important; }
.footer-cta-title { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.footer-cta-sub { font-size: 13.5px; color: #C9DCFF; margin: 8px auto 14px; max-width: 320px; }
.footer-wa { display: inline-block !important; background: #fff; color: var(--primary-deep) !important; font-weight: 800; border-radius: var(--r-pill); padding: 12px 24px; font-size: 14.5px !important; box-shadow: 0 10px 24px rgba(4,20,60,.25); }
.footer-mid { max-width: var(--maxw); margin: 30px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo img { width: 30px; height: 30px; border-radius: 9px; }
.footer-logo b { color: #fff; font-family: 'Plus Jakarta Sans'; font-size: 15.5px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { color: #DCEAFF; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-base { max-width: var(--maxw); margin: 22px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); text-align: center; font-size: 12.5px; color: #B9D4FF; }
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 12px 20px; border-radius: var(--r-field); border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow-teal);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast);
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { filter: brightness(1.05); }
.btn:not(.btn-outline):hover { transform: translateY(-1.5px); box-shadow: 0 10px 26px rgba(47,102,208,.4), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-outline:hover { background: var(--primary-soft); border-color: rgba(13,148,136,.35); }
.clinic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: scale(.965); }
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); opacity: .8; pointer-events: none; animation: dhRipple .6s ease-out forwards; }
@keyframes dhRipple { to { transform: scale(1); opacity: 0; } }
.btn-block { width: 100%; border-radius: var(--r-pill); padding: 13px 20px; font-size: 15px; }
.btn-small { padding: 9px 15px; font-size: 13px; border-radius: 12px; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); filter: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,.6); filter: none; }
.btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn-glass {
  background: var(--glass-bg); border: 1px solid var(--glass-brd); box-shadow: var(--spec), var(--shadow-xs);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: var(--ink);
}
.btn-glass:hover { background: rgba(255,255,255,.85); filter: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.back-link { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 4px 0 14px; }
.back-link:hover { color: var(--primary); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 13px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: .01em; }
.form-row input, .form-row select, .form-row textarea, .rs-grid input, .rs-grid select {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus, .rs-grid input:focus, .rs-grid select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(13,148,136,.16);
}
.form-error { display: none; color: var(--danger); font-size: 13px; font-weight: 700; }
.form-note { font-size: 12.5px; color: var(--muted); }
.phone-wrap { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-field); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.phone-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(13,148,136,.16); }
.phone-prefix { padding: 0 4px 0 14px; font-weight: 800; color: var(--ink); font-size: 15px; }
.phone-wrap input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 12px 12px 6px; font-size: 15px; outline: none; color: var(--ink); }
.wz-select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-input, 12px); padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: var(--surface); }
.consent-row { display: block; font-size: 13px; line-height: 1.55; color: var(--body); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; margin-top: 12px; }
.consent-row input { width: 17px; height: 17px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--primary); }
.privacy-line { font-size: 12px; color: var(--muted); margin-top: 14px; }
.rs-panel { padding: 14px 4px 4px; }
.rs-grid { display: grid; gap: 10px; margin-top: 8px; }
.dev-code { background: rgba(255,193,7,.16); border: 1px dashed rgba(180,130,0,.45); color: #6b5300; font-size: 12.5px; border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; line-height: 1.45; }

/* ---------- segmented controls ---------- */
.seg {
  position: relative; display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-xs);
}
.seg-btn {
  position: relative; z-index: 1; padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 800; color: var(--muted);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.seg-btn:active { transform: scale(.95); }
.seg-btn.active { color: #fff; }
.seg::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: var(--pl, 3px); width: var(--pw, 0px); border-radius: var(--r-pill); background: var(--grad); box-shadow: var(--shadow-teal); transition: left var(--t-std) var(--spring), width var(--t-std) var(--spring); z-index: 0; }
.seg-sm .seg-btn { padding: 6px 13px; font-size: 12px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--body);
  background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-xs);
  transition: all var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(.95); }
.chip.active, .chip.on { background: var(--primary-soft); color: var(--primary-deep); border-color: rgba(47,102,208,.5); box-shadow: none; }
.spec-chip { font-size: 11.5px; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); border-radius: var(--r-pill); padding: 4px 10px; }
.spec-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sample-badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--amber); background: rgba(217,119,6,.10); border: 1px solid rgba(217,119,6,.25); border-radius: var(--r-pill); padding: 3px 8px; white-space: nowrap; }

/* ---------- home: location row ---------- */
.loc-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.loc-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); flex-shrink: 0; }
.loc-pin .pin-ico { width: 16px; height: 16px; }
.loc-sel-wrap { position: relative; flex: 1; max-width: 340px; }
.loc-sel-wrap::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.loc-sel-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 11px 36px 11px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-xs); outline: none; cursor: pointer;
}

/* ---------- home trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.trust-item { font-size: 12.5px; font-weight: 700; color: var(--primary-deep); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 13px; text-align: center; box-shadow: var(--shadow-xs); }

/* ---------- home how-it-works + cta ---------- */
.how-strip { display: grid; gap: 10px; margin-top: 12px; }
.how-item { display: flex; gap: 13px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.how-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: var(--shadow-teal); }
.how-item b { font-family: 'Plus Jakarta Sans'; font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.how-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.home-cta { margin-top: 16px; }

/* ---------- featured clinics (v89 - WeCare S5 specialists shape) ---------- */
.feat-head { text-align: center; margin-top: 36px; }
.feat-head .section-tag { margin-top: 0; }
.feat-all { margin: 14px 0 0; }
.feat-all .title-link { font-weight: 700; color: var(--primary-deep); }
.featured-grid { display: grid; gap: 14px; margin-top: 14px; }
.feat-card { position: relative; min-height: 340px; border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--t-std) var(--ease), box-shadow var(--t-std); }
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-visual { position: absolute; inset: 0; background: linear-gradient(150deg, #0A1F44, #0E3A8A 55%, #2F66D0); display: grid; place-items: center; overflow: hidden; }
.feat-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(340px 200px at 82% -18%, rgba(255,255,255,.2), transparent 70%); pointer-events: none; }
.feat-visual .clinic-mark { width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.feat-visual .clinic-mark svg { width: 40px; height: 40px; color: #fff; }
.feat-pill { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.97); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(4,20,60,.25); }
.feat-arrow { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 14px rgba(4,20,60,.2); }
.feat-arrow svg { width: 18px; height: 18px; }
.feat-sample { position: absolute; top: 14px; left: 14px; margin-left: 0; background: rgba(255,251,235,.96); }
.feat-body { padding: 15px 17px 17px; }
.feat-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; }
.feat-area { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.feat-area svg { width: 13px; height: 13px; }
.feat-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.feat-spec { font-size: 11.5px; font-weight: 600; color: var(--primary-deep); background: var(--primary-soft); border-radius: var(--r-pill); padding: 4px 10px; }
.feat-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; }
.feat-fee { font-family: 'Plus Jakarta Sans'; font-weight: 800; color: var(--ink); }
.feat-next { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-deep); font-weight: 600; font-size: 12.5px; }
.feat-next svg { width: 13px; height: 13px; }
.feat-book { margin-top: 13px; }
.sample-tag { font-size: 10px; font-weight: 700; color: var(--amber); background: #fdf6e8; border-radius: var(--r-pill); padding: 2px 8px; margin-left: 4px; }

/* ---------- hero ---------- */
.hero { position: relative; margin: 0 -14px; padding: 24px 20px 30px; overflow: hidden; border-radius: 0 0 34px 34px;
  background: radial-gradient(900px 520px at 88% -12%, rgba(47,102,208,.12), transparent 62%), linear-gradient(180deg, #F4F9FF 0%, #E6F1FF 100%); }
.hero-copy { position: relative; z-index: 1; text-align: center; }
.hero-visual { position: relative; margin-top: 26px; }
.hv-panel { position: relative; margin: 0 auto; max-width: 400px; aspect-ratio: 4 / 4.3; border-radius: 30px;
  background: linear-gradient(158deg, #E4EFFF 0%, #CFE3FF 52%, #BCD9FF 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 24px 54px rgba(4,20,60,.14); }
.hv-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px 210px at 50% 90%, rgba(255,255,255,.55), transparent 72%); }
.hv-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hv-doc { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 104%; width: auto; max-width: none;
  filter: drop-shadow(0 16px 26px rgba(4,20,60,.20)); }
.hv-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,.74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 14px 30px rgba(6,16,38,.13); }
.hv-card { animation: hvFloat 5.6s ease-in-out 1.9s infinite; }
.hv-card-a { top: 20px; left: -8px; }
.hv-card-b { bottom: 24px; right: -8px; animation-duration: 6.8s; animation-delay: 2.6s; }
.hv-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; flex: 0 0 auto; }
.hv-ico svg { width: 18px; height: 18px; }
.hv-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.hv-txt strong { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.hv-txt small { font-size: 11px; color: var(--muted); font-weight: 600; }
.video-band { margin-top: 16px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9.5; box-shadow: 0 18px 42px rgba(4,20,60,.16); }
.video-band .hero-vid { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }


/* ECG pulse line across the lower hero */
.hero-ecg { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 40px; z-index: 1; opacity: .9; pointer-events: none; }
@media (min-width: 900px) {
  .footer { padding-top: 46px; }
  .footer-panel { border-radius: 36px 36px 0 0; padding: 52px 40px 22px; }
  .footer-top { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr); text-align: left; align-items: start; }
  .footer-cta-cell { text-align: center; }
  .footer-mid { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) { .hero-ecg { bottom: 8px; height: 44px; } }
.ecg-base { opacity: .8; }
.ecg-pulse { stroke-dasharray: 90 1200; animation: ecgRun 4.2s linear infinite; filter: drop-shadow(0 0 5px rgba(47,102,208,.55)); }
@keyframes ecgRun { from { stroke-dashoffset: 1290; } to { stroke-dashoffset: 0; } }
.ecg-dot { animation: ecgDot 4.2s linear infinite; }
@keyframes ecgDot { 0%, 100% { opacity: 0; } 8%, 90% { opacity: 1; } }
.hero h1 { font-size: clamp(32px, 9vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.07; margin-top: 10px; color: var(--ink); }
.hero h1 span { color: var(--primary-2); }
@keyframes gradPan { to { background-position: 220% 0; } }
.hero p { font-size: 15px; color: var(--muted); margin: 12px auto 0; max-width: 460px; }
.hero-ctas { display: flex; gap: 10px; margin-top: 20px; flex-direction: column; }
.btn-hero { padding: 14px 24px; font-size: 15px; border-radius: var(--r-pill); }
.hero .btn-hero { width: 100%; white-space: nowrap; }
.hero #cta-find { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(37,86,184,.34); }
.hero .btn-hero.btn-outline { background: rgba(255,255,255,.6); border: 1.5px solid rgba(37,86,184,.45); color: var(--primary-deep); }
.hero .loc-row { justify-content: center; }
.hero .loc-pin { background: rgba(47,102,208,.12); color: var(--primary-deep); }
.hero .loc-sel-wrap::after { border-color: var(--primary-deep); }
.hero .loc-sel-wrap select { background: #fff; color: var(--ink); border-color: rgba(6,16,38,.12); box-shadow: 0 2px 10px rgba(6,16,38,.05); }
.hero .loc-sel-wrap select option { color: var(--ink); }

/* searchbar - task first (Zocdoc: lead with the task) */
.searchbar { display: flex; gap: 9px; margin-top: 16px; }
.hero-search { position: static; margin: 14px 0 0; }
.hero-search input { background: #fff; }
.searchbar input {
  flex: 1; padding: 14px 18px; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.searchbar input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13,148,136,.15), var(--shadow-sm); }
.searchbar select {
  appearance: none; -webkit-appearance: none; padding: 12px 34px 12px 15px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-xs); outline: none; cursor: pointer;
}

/* service tiles */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.svc-tile {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast);
}
.svc-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.svc-tile:active { transform: scale(.97); }
.svc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; }
.svc-ico-img { width: 26px; height: 26px; object-fit: contain; background: transparent; }
.svc-label { font-size: 13.5px; font-weight: 700; color: var(--ink); }

/* section titles */
.section-title { font-size: 19px; font-weight: 800; letter-spacing: -.015em; margin: 26px 0 12px; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.title-row .section-title { margin: 0; }
.title-link { font-size: 13px; font-weight: 700; }
.title-link:hover { text-decoration: underline; }
.recent-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* specialty circles */
.spec-circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.spec-circ { display: grid; justify-items: center; gap: 7px; }
.spec-circle-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: none; box-shadow: none; padding: 4px 2px; border-radius: 14px; color: var(--primary-deep);
  transition: transform var(--t-fast) var(--spring);
}
.spec-circ { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast), border-color var(--t-fast); }
.spec-circle-btn:hover .spec-circ { border-color: var(--primary); box-shadow: var(--shadow-teal); }
.spec-circle-btn:active { transform: scale(.92); }
.spec-circ img, .spec-circ svg { width: 28px; height: 28px; object-fit: contain; }
.spec-ic { font-size: 22px; }
.spec-circ-name { font-size: 11px; font-weight: 700; color: var(--body); text-align: center; line-height: 1.25; }


/* v74 - Lassie adopt: live activity pill in hero */
.live-pill { display:inline-flex; align-items:center; gap:8px; margin-top:16px; padding:8px 16px; border-radius:999px; background:#fff; border:1px solid rgba(47,102,208,.28); box-shadow:0 6px 18px rgba(6,16,38,.07); font-size:12.5px; font-weight:700; color:var(--primary-deep); }
.live-pill.hidden { display:none; }
.live-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); animation:livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow:0 0 0 0 rgba(47,102,208,.45); } 55% { box-shadow:0 0 0 7px rgba(47,102,208,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation:none; } }

/* v88 - WeCare about section (ice panel, visual + check rows) */
.about-sec { margin-top: 36px; }
.about-inner { background: linear-gradient(180deg, #EFF6FF 0%, #E3EFFF 100%); border-radius: 34px; padding: 44px 20px 28px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.about-inner .section-tag { margin-top: 0; }
.about-title { font-size: clamp(28px, 7.5vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 14px 0 0; color: var(--ink); }
.about-sub { color: var(--muted); font-size: 14.5px; margin: 12px auto 0; max-width: 540px; line-height: 1.55; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; text-align: left; }
.av-panel { position: relative; border-radius: 24px; background: linear-gradient(165deg, #DFEBFF 0%, #C9DEFF 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 14px 32px rgba(4,20,60,.12); aspect-ratio: 4 / 3.6; overflow: hidden; }
.av-panel img { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 104%; width: auto; filter: drop-shadow(0 14px 24px rgba(4,20,60,.18)); }
.about-rows { display: grid; gap: 14px; }
.about-row { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 6px 16px rgba(6,16,38,.04); }
.ar-check { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px; }
.ar-check svg { width: 16px; height: 16px; }
.about-row strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); display: block; }
.about-row p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }

/* v87 - WeCare why-choose section (centered head, staggered cards, tall visual) */
.why-sec { text-align: center; margin-top: 36px; }
.why-sec .section-tag { margin-top: 0; }
.why-title { font-size: clamp(28px, 7.5vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 14px 0 0; color: var(--ink); }
.why-sub { color: var(--muted); font-size: 14.5px; margin: 12px auto 0; max-width: 520px; line-height: 1.55; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; text-align: left; }
.why-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; box-shadow: 0 8px 22px rgba(6,16,38,.05); }
.why-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(47,102,208,.12); color: var(--primary-deep); display: grid; place-items: center; margin-bottom: 14px; }
.why-ico svg { width: 22px; height: 22px; }
.why-card strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); display: block; }
.why-desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; display: block; }
.wv-panel { position: relative; border-radius: 26px; background: linear-gradient(168deg, #EAF6F4 0%, #D2EDE8 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 16px 38px rgba(4,20,60,.12); aspect-ratio: 4 / 4.4; overflow: hidden; }
.wv-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px 190px at 50% 88%, rgba(255,255,255,.5), transparent 72%); }
.wv-panel img { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 100%; width: auto; filter: drop-shadow(0 14px 24px rgba(4,20,60,.18)); }

/* v86 - WeCare services panel (saturated teal, glass outline cards) */
.services-panel { background: var(--grad); border-radius: 30px; padding: 28px 20px; margin: 26px 0 6px; box-shadow: 0 18px 44px rgba(1,107,100,.30); }
.svc-copy .section-tag { color: #E2EBFA; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); margin-top: 0; }
.svc-title { color: #fff; font-size: clamp(28px, 7.5vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 14px 0 0; }
.svc-sub { color: rgba(255,255,255,.84); font-size: 14.5px; margin-top: 12px; max-width: 420px; line-height: 1.55; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
.svc-card { position: relative; text-align: left; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.30); border-radius: 22px; padding: 22px 20px 22px; color: #fff; cursor: pointer; min-height: 172px; display: flex; flex-direction: column; font-family: inherit; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.svc-card:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.5); transform: translateY(-3px); }
.svc-ico { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.15); display: grid; place-items: center; color: #E9FFFA; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 16px; }
.svc-desc { font-size: 13.5px; color: rgba(255,255,255,.80); margin-top: 8px; line-height: 1.5; max-width: 300px; padding-bottom: 40px; }
.svc-arrow { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--primary-deep); display: grid; place-items: center; }
.svc-arrow svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .svc-card { transition: none; } }

/* v72 - WeCare adopts: section pill tags, teal feature band, why panel */
.section-tag { display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--primary-deep); border:1px solid rgba(10,61,153,.4); border-radius:999px; padding:4px 12px; margin:26px 0 0; background:rgba(209,226,255,.35); }
.feature-band { background:linear-gradient(135deg,#0F766E 0%,#2F66D0 62%,#14B8A6 100%); border-radius:28px; padding:24px 18px 26px; margin:26px 0 6px; box-shadow:0 14px 34px rgba(47,102,208,.28); }
.feature-band .section-tag { color:#E2EBFA; border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.12); margin-top:0; }
.feature-band .section-title { color:#fff; margin:8px 0 16px; }
.feature-band .spec-circ { border-color:transparent; box-shadow:0 4px 14px rgba(4,47,44,.18); }
.feature-band .spec-circle-btn:hover .spec-circ { box-shadow:0 8px 22px rgba(4,47,44,.28); }
.feature-band .spec-circ-name { color:#E6FFFA; text-shadow:0 1px 3px rgba(4,47,44,.35); }
.why-panel { background:#F5F9FB; border:1px solid rgba(47,102,208,.14); border-radius:28px; padding:22px 18px 26px; margin:26px 0 6px; }
.why-panel .section-tag { margin-top:0; }
.why-panel .why-strip { margin:14px 0 0; }

/* earliest availability scroller */
.soon-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.soon-scroll::-webkit-scrollbar { display: none; }
.soon-card {
  min-width: 205px; scroll-snap-align: start; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast); cursor: pointer;
}
.soon-card:hover { box-shadow: var(--shadow-sm); }
.soon-card:active { transform: scale(.97); }
.soon-name { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.3; display: flex; gap: 8px; align-items: center; }
.soon-name .clinic-mark { width: 28px; height: 28px; border-radius: 9px; }
.soon-name .clinic-mark svg { width: 15px; height: 15px; }
.soon-slot { font-size: 12.5px; font-weight: 700; color: var(--primary-deep); margin-top: 7px; }

/* why strip */
.why-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0 6px; }
.why-item { font-size: 12.5px; font-weight: 700; color: var(--primary-deep); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 13px; text-align: center; box-shadow: var(--shadow-xs); }

/* ---------- clinic cards (content layer - opaque, quiet borders) ---------- */
.clinic-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* listing page head + filter bar + active filter chips */
.listing-head { margin: 2px 0 4px; }
.listing-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.listing-sub { color: var(--body); margin: 4px 0 0; font-size: 15px; }
.filters-open { display: none; margin-top: 12px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); }
.fb-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--body); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.fchip:hover { border-color: var(--primary); color: var(--primary-deep); }
.fchip.active { background: var(--primary-soft); border-color: rgba(47,102,208,.5); color: var(--primary-deep); }
.fb-select { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--body); background: var(--surface); font-family: inherit; }
.filters-done { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 600; }
.af-x { border: 0; background: rgba(13,148,136,.16); color: var(--primary-deep); width: 18px; height: 18px; border-radius: 50%; font-size: 12px; line-height: 1; cursor: pointer; }
.af-clear { border: 0; background: none; color: var(--danger); font-size: 13px; font-weight: 700; cursor: pointer; padding: 5px 8px; }
.cc-book { margin-top: 12px; }
.confirm-ref { margin-top: 12px; display: inline-block; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 8px 18px; font-size: 15px; letter-spacing: .02em; }
.confirm-ref b { font-weight: 800; }
.btn-whatsapp { border: 1.5px solid #25D366; color: #1da851; background: var(--surface); }
.btn-whatsapp:hover { background: #f0fdf4; }
.track-note { margin: 10px 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--amber); }
.track-note-ok { color: #10B981; }
@media (max-width: 760px) {
  .filters-open { display: inline-flex; }
  .filters-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform var(--t-std) var(--ease); box-shadow: 0 -12px 40px rgba(15,23,42,.18); max-height: 72vh; overflow-y: auto; }
  .filters-bar.open { transform: translateY(0); }
  .filters-done { display: inline-flex; margin-left: auto; }
  .fb-group { align-items: flex-start; flex-direction: column; gap: 6px; width: 100%; }
}
.clinic-card { transition: transform var(--t-std) var(--ease), box-shadow var(--t-std);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px; box-shadow: var(--shadow-xs); cursor: pointer;
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-std) var(--ease), border-color var(--t-fast);
}
.clinic-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.clinic-card:active { transform: scale(.985); }
.clinic-head { display: flex; gap: 12px; align-items: center; }
.clinic-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(13,148,136,.30); }
.clinic-mark svg { width: 24px; height: 24px; }
.clinic-mark.lg { width: 62px; height: 62px; border-radius: 18px; }
.clinic-mark.lg svg { width: 32px; height: 32px; }
.clinic-mark.sm { width: 38px; height: 38px; border-radius: 12px; }
.clinic-mark.sm svg { width: 20px; height: 20px; }
.clinic-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.clinic-area { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.clinic-area svg { width: 12px; height: 12px; }
.clinic-tagline { font-size: 13.5px; color: var(--body); margin: 10px 0 10px; line-height: 1.5; }
.clinic-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.clinic-foot .fee { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.next-slot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--body); }
.next-slot b { color: var(--primary-deep); }
.skel-card { height: 148px; cursor: default; }
.skel { position: relative; overflow: hidden; background: rgba(15,23,42,.05); border-radius: 10px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel-card { background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.skel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(13,148,136,.05) 50%, transparent 70%); animation: shimmer 1.4s infinite; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.loading { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 0; }

/* ---------- map chrome (functional layer = glass OK) ---------- */
#clinic-map { position: relative; height: 430px; margin-top: 14px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; z-index: 0; }
.leaflet-tile-pane { filter: saturate(.62) contrast(1.05) brightness(1.03); }
.dh-pin { background: transparent; border: 0; box-shadow: none; }
.dh-pin .dh-pin-mark { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50% 50% 50% 5px; transform: translate(-50%, -58%) rotate(-45deg);
  background: var(--grad); color: #fff; border: 2.5px solid #fff;
  box-shadow: 0 8px 18px rgba(0,110,100,.45), inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -6px 10px rgba(0,80,74,.25); }
.dh-pin .dh-pin-mark svg { width: 16px; height: 16px; transform: rotate(45deg); }
.dh-pin .dh-pin-halo { position: absolute; left: 50%; bottom: 1px; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.45) 0%, rgba(13,148,136,0) 68%);
  animation: pinPulse 2.6s ease-out infinite; }
.dh-pin-hero .dh-pin-mark { width: 46px; height: 46px; border-width: 3px; }
.dh-pin-hero .dh-pin-mark svg { width: 22px; height: 22px; }
.dh-pin-hero .dh-pin-halo { width: 30px; height: 30px; margin-left: -15px; }
@keyframes pinPulse { 0% { transform: scale(.55); opacity: .9; } 70% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
.leaflet-bar { border: 1px solid rgba(255,255,255,.75) !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 8px 22px rgba(13,36,64,.18), inset 0 1px 0 rgba(255,255,255,.6) !important; }
.leaflet-bar a { background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); color: var(--ink); border-bottom: 1px solid rgba(13,32,58,.07) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; font-weight: 600; }
.leaflet-bar a:last-child { border-bottom: 0 !important; }
.leaflet-control-attribution { background: rgba(255,255,255,.62) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 10px 0 0 0; padding: 2px 8px !important; font-size: 10px !important; color: #5b6b68 !important; }
.leaflet-popup-content-wrapper { background: rgba(255,255,255,.88) !important; backdrop-filter: blur(20px) saturate(190%); -webkit-backdrop-filter: blur(20px) saturate(190%); border-radius: 18px !important; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 14px 34px rgba(13,36,64,.22), inset 0 1px 0 rgba(255,255,255,.7) !important; }
.leaflet-popup-content { margin: 12px 14px !important; }
.leaflet-popup-tip { background: rgba(255,255,255,.88) !important; box-shadow: none !important; }
.leaflet-popup-close-button { color: var(--muted) !important; font-size: 16px !important; padding: 6px 8px 0 0 !important; }
#clinic-map::after, #detail-map::after { content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 -56px 70px -56px rgba(0,110,100,.28), inset 0 24px 40px -30px rgba(13,36,64,.20); }
.map-card { min-width: 172px; }
.map-card .mc-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14px; color: var(--ink); }
.map-card .mc-area { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.map-card .mc-area svg { width: 11px; height: 11px; }
.map-card .mc-meta { font-size: 12px; color: var(--ink); margin-bottom: 9px; }
.map-card .mc-open { display: block; width: 100%; border: 0; background: var(--grad); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; padding: 8px 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

/* ---------- clinic detail ---------- */
.detail-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; box-shadow: var(--shadow-sm); }
.detail-hero-top { display: flex; gap: 14px; align-items: center; }
.detail-hero-info { flex: 1; min-width: 0; }
.detail-name { font-family: 'Plus Jakarta Sans'; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.detail-area { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.detail-area svg { width: 13px; height: 13px; }
.detail-tagline { font-size: 14px; color: var(--body); margin: 14px 0; line-height: 1.55; }
.detail-actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-xs); margin-top: 14px; display: grid; gap: 13px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; font-size: 14px; }
.info-row b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.info-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-ico svg { width: 16px; height: 16px; }
.detail-map-card { position: relative; margin-top: 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
#detail-map { position: relative; height: 220px; z-index: 0; }
.detail-map-card .map-chip { position: absolute; top: 12px; left: 12px; z-index: 800; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); box-shadow: 0 8px 20px rgba(13,36,64,.18), inset 0 1px 0 rgba(255,255,255,.8); }
.detail-map-card .map-chip svg { width: 13px; height: 13px; color: var(--primary); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 15px; font-size: 13px; background: rgba(255,255,255,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); flex-wrap: wrap; }
.map-foot b { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.map-foot b svg { width: 13px; height: 13px; color: var(--primary); }
.map-foot a { font-weight: 700; }

/* ---------- doctor cards ---------- */
.doctor-card {
  display: flex; gap: 13px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-std) var(--ease), border-color var(--t-fast), transform var(--t-fast) var(--spring);
}
.doctor-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.doc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px rgba(13,148,136,.28); }
.doc-avatar svg { width: 27px; height: 27px; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15.5px; color: var(--ink); }
.doc-spec { font-size: 12.5px; font-weight: 700; color: var(--primary-deep); margin-top: 1px; }
.doc-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.doc-meta svg { width: 13px; height: 13px; }
.doc-next { color: var(--primary-deep); font-weight: 700; }
.doc-right { text-align: right; display: grid; justify-items: end; gap: 7px; }
.doc-fee { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16px; color: var(--ink); }
.doc-fee small { font-size: 11px; font-weight: 600; color: var(--muted); }
.doc-more { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.doc-more:hover { color: var(--primary); }
.doc-browse-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 15px 16px; box-shadow: var(--shadow-xs); }
.doc-browse-card .doc-browse-top { display: flex; gap: 13px; align-items: center; }
.doc-browse-card .doc-browse-top .doc-avatar { width: 46px; height: 46px; }
.doc-browse-card .doc-browse-top .doc-avatar svg { width: 24px; height: 24px; }
.doc-browse-top > div:not(.doc-avatar) { flex: 1; min-width: 0; }
.doc-browse-clinic { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.doc-browse-clinic svg { width: 13px; height: 13px; flex-shrink: 0; }
.pin-ico { width: 14px; height: 14px; flex-shrink: 0; }
.db-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15px; color: var(--ink); }
.db-qual { font-size: 12px; color: var(--muted); }

/* ---------- doctor modal ---------- */
.doc-modal-overlay { position: fixed; inset: 0; z-index: 740; background: rgba(15,23,42,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: end center; animation: fadeUp var(--t-std) var(--ease) both; }
.doc-modal { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px; animation: sheetUp var(--t-slow) var(--spring) both; box-shadow: var(--shadow-lg); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.doc-modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.doc-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.doc-modal-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.doc-modal-cell b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 3px; }
.doc-modal-about { font-size: 14px; line-height: 1.6; color: var(--body); margin: 10px 0 16px; }
.modal-close, .book-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 15px; display: grid; place-items: center; z-index: 2; }
.modal-close:hover, .book-close:hover { color: var(--ink); }
#dm-book { width: 100%; }

/* ---------- booking wizard (sheet = functional glass layer) ---------- */
#wizard-overlay { position: fixed; inset: 0; z-index: 760; background: rgba(15,23,42,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: end center; animation: fadeUp var(--t-std) var(--ease) both; }
.wizard { position: relative; width: 100%; max-width: 600px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.78); border: 1px solid var(--glass-brd); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--spec), var(--shadow-lg); animation: sheetUp var(--t-slow) var(--spring) both; }
.wiz-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.wiz-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px rgba(13,148,136,.3); }
.wiz-avatar svg { width: 24px; height: 24px; }
.wiz-head-info { flex: 1; min-width: 0; }
.wiz-doc { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16px; color: var(--ink); }
.wiz-doc-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.wiz-fee { font-size: 13px; font-weight: 800; color: var(--primary-deep); background: var(--primary-soft); border-radius: var(--r-pill); padding: 6px 11px; flex-shrink: 0; }
.wiz-progress { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-bottom: 6px; }
.wiz-node { display: grid; justify-items: center; gap: 5px; }
.wiz-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--muted); transition: all var(--t-std) var(--ease); }
.wiz-dot svg { width: 13px; height: 13px; }
.wiz-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wiz-node.set .wiz-dot, .wiz-node.done .wiz-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-teal); }
.wiz-node.set .wiz-lbl { color: var(--primary-deep); }
.wiz-line { width: 34px; height: 2px; background: var(--line-strong); border-radius: 2px; margin-top: 13px; flex-shrink: 0; }
.wiz-line.fill { background: var(--grad); }
.wiz-step { animation: stepFade .34s var(--ease) both; }
@keyframes stepFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stepShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wiz-step-title { font-family: 'Plus Jakarta Sans'; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.wiz-step-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.wiz-date-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.date-pill { min-width: 62px; padding: 9px 6px; text-align: center; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); cursor: pointer; flex-shrink: 0; transition: all var(--t-fast) var(--ease); }
.date-pill .dow { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.date-pill .dnum { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 2px; font-family: 'Plus Jakarta Sans'; }
.date-pill.active { background: var(--primary-soft); border-color: rgba(47,102,208,.5); box-shadow: none; }
.date-pill.active .dow { color: var(--primary); }
.date-pill.active .dnum { color: var(--primary-deep); }
.date-pill:active { transform: scale(.94); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn { padding: 11px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; transition: all var(--t-fast) var(--ease); }
.slot-btn:hover { border-color: var(--primary); }
.slot-btn:active { transform: scale(.94); }
.slot-btn.active { background: var(--primary-soft); color: var(--primary-deep); border-color: rgba(47,102,208,.5); box-shadow: none; }
.slot-btn[disabled] { opacity: .45; pointer-events: none; }
.slot-next-tag, .slot-taken-tag { display: block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; opacity: .85; }
.slot-btn.slot-next { border-color: var(--primary); }
.slot-group-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 7px; }
.slot-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.slot-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.slot-legend .lg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.slot-legend .lg-next::before { border-color: var(--primary); }
.slot-legend .lg-taken::before { background: var(--line-strong); }
.skel-slot { height: 40px; border-radius: 12px; }
.wiz-review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 15px 16px; display: grid; gap: 8px; }
.wiz-review-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.wiz-review-row .k { color: var(--muted); }
.wiz-review-row .v { font-weight: 700; color: var(--ink); text-align: right; }
.wiz-review-total { border-top: 1px dashed var(--line-strong); padding-top: 9px; margin-top: 3px; }
.wiz-review-total .v { color: var(--primary-deep); font-size: 15px; }
.wiz-pay-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.wiz-foot { display: flex; gap: 10px; margin-top: 18px; }
.wiz-back { flex: 0 0 auto; }
.wiz-next, .wiz-confirm { flex: 1; }
.wiz-live { font-size: 12px; color: var(--primary-deep); font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.wiz-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: livePulse 1.6s ease infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,.4); } 50% { box-shadow: 0 0 0 5px rgba(13,148,136,0); } }
.wiz-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); border-radius: var(--r-pill); padding: 5px 11px; }
.wiz-chip-ph { color: var(--muted); background: var(--bg); }

/* border beam on conversion buttons */
@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.wiz-confirm, #dm-book { position: relative; }
.wiz-confirm::before, #dm-book::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 68%, rgba(94,234,212,.95) 80%, rgba(255,255,255,.95) 87%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beamSpin 3.4s linear infinite;
}
@keyframes beamSpin { to { --beam: 360deg; } }

/* ---------- confirmation ---------- */
.confirm-hero { max-width: 500px; margin: 34px auto 0; text-align: center; border-radius: var(--r-panel); padding: 36px 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.confirm-check { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 30px; display: grid; place-items: center; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 26px rgba(13,148,136,.4); animation: checkPop .55s var(--spring) both; }
.confirm-check::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--primary-deep); opacity: 0; animation: checkRing .8s .15s ease-out both; }
@keyframes checkPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes checkRing { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.wa-bubble { background: #e7fbe8; border: 1px solid #c8f0cd; border-radius: 14px 14px 14px 4px; padding: 13px 15px; text-align: left; font-size: 13.5px; color: #14532d; margin: 20px 0 6px; white-space: pre-line; animation: fadeUp .45s .18s ease both; }
.wa-caption { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.confirm-actions { display: grid; gap: 9px; animation: fadeUp .45s .3s ease both; }
.wa-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.wa-row .k { color: #4b7a68; }
.wa-row .v { font-weight: 600; text-align: right; }
.wa-bubble .wa-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #075e54; margin-bottom: 8px; }
.wa-bubble .wa-ref { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 17px; letter-spacing: .04em; color: #075e54; }
.wa-bubble .wa-time { text-align: right; font-size: 11px; color: #8aa39d; margin-top: 6px; }

/* ---------- track / bookings / generic cards (content layer) ---------- */
.track-card, .mb-card, .admin-login { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; animation: panelIn var(--t-std) var(--ease) backwards; }
.booking-row { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-radius: var(--r-card); padding: 15px 16px; margin-bottom: 10px; position: relative; animation: fadeUp var(--t-std) var(--ease) both; transition: box-shadow var(--t-std), border-color var(--t-fast); }
.booking-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.status-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--r-pill); padding: 3px 9px; }
.status-badge.status-pending { color: var(--amber); background: rgba(217,119,6,.1); }
.status-badge.status-confirmed { color: var(--primary-deep); background: var(--primary-soft); }
.status-badge.status-cancelled { color: var(--danger); background: rgba(220,38,38,.08); }
.status-badge.status-completed { color: var(--primary); background: var(--primary-soft); }
.status-pending { color: var(--amber); font-weight: 700; }
.status-confirmed { color: var(--primary-deep); font-weight: 700; }
.status-cancelled { color: var(--danger); font-weight: 700; }
.status-completed { color: var(--primary); font-weight: 700; }
.menu-host { position: relative; }
.menu-dot { width: 32px; height: 32px; border-radius: 50%; font-size: 17px; color: var(--muted); line-height: 1; }
.menu-dot:hover { background: var(--bg); color: var(--ink); }
.menu-pop { position: absolute; top: 36px; right: 0; min-width: 170px; z-index: 50; padding: 6px; display: grid; background: rgba(255,255,255,.9); border: 1px solid var(--glass-brd); border-radius: 14px; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--spec), var(--shadow); }
.menu-pop-right { right: 0; }
.menu-item { text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--body); }
.menu-item:hover { background: rgba(255,255,255,.95); color: var(--ink); }
.menu-danger { color: var(--danger); }
.menu-danger:hover { background: #fef2f2 !important; color: var(--danger); }
.bk-actions { display: flex; gap: 8px; margin-top: 10px; }
.bk-actions .btn { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* track result */
.track-result { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; animation: fadeUp var(--t-std) var(--ease) both; }
.track-result .wa-row .k { color: var(--muted); }
.track-result .wa-row .v { font-weight: 600; color: var(--ink); text-align: right; }
.track-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tstep { display: flex; align-items: center; gap: 6px; }
.tstep .tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.tstep.done { color: var(--primary-deep); }
.tstep.done .tdot { background: var(--grad); box-shadow: 0 0 0 3px rgba(13,148,136,.18); animation: checkPop .4s ease both; }
.tline { width: 48px; height: 2px; background: var(--line-strong); }
.tline.done { background: var(--grad); }
.rs-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.rs-slot { cursor: pointer; }
.rs-date { font-weight: 700; }
.rs-save { margin-top: 10px; }

/* ---------- account page (redesigned) ---------- */
.acctp-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; box-shadow: var(--shadow-sm); animation: panelIn var(--t-std) var(--ease) backwards; }
.acctp-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 22px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px rgba(13,148,136,.32); }
.acctp-avatar.guest { background: var(--bg); color: var(--muted); box-shadow: none; border: 1.5px dashed var(--line-strong); }
.acctp-info { flex: 1; min-width: 0; }
.acctp-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 17px; color: var(--ink); }
.acctp-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acctp-edit { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--primary); background: var(--primary-soft); border-radius: var(--r-pill); padding: 8px 14px; flex-shrink: 0; transition: transform var(--t-fast) var(--spring); }
.acctp-edit:active { transform: scale(.93); }
.acctp-editbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin-top: 10px; display: grid; gap: 12px; box-shadow: var(--shadow-xs); }
.acctp-group { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.acctp-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); overflow: hidden; }
.acctp-expand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); padding: 14px 16px; margin: 8px 0 2px; }
.acctp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.acctp-row:last-child { border-bottom: 0; }
.acctp-row:hover { background: rgba(13,148,136,.04); }
.acctp-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; flex-shrink: 0; }
.acctp-ico svg { width: 16px; height: 16px; }
.acctp-chev { margin-left: auto; color: var(--muted); font-size: 15px; }
.acctp-row.danger, .acctp-row .danger { color: var(--danger); }
.acctp-row.danger .acctp-ico { background: rgba(220,38,38,.08); color: var(--danger); }
.acctp-about { font-size: 12.5px; color: var(--muted); line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; margin-top: 8px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; }
.acct-item { display: block; }
.acct-name { font-weight: 700; color: var(--ink); }
.acct-sub { font-size: 12.5px; color: var(--muted); }
.acct-danger { color: var(--danger); }

/* ---------- sign-in ---------- */
.signin-brand { border-radius: var(--r-card); overflow: hidden; margin-bottom: 18px; background: linear-gradient(140deg, #0A1F44, #0E3A8A 60%, #2F66D0); padding: 26px 20px; text-align: center; position: relative; }
.signin-brand::after { content: ''; position: absolute; inset: 0; background: radial-gradient(220px 140px at 80% -20%, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
/* sign-in ambient scene: self-generated brand loop, static fallback */
.auth-scene { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 0 auto 14px; border-radius: var(--r-panel); overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #eafaf7, #dcf5f0 55%, #d2efe9); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.auth-static { width: 150px; height: auto; position: relative; z-index: 1; transition: opacity .5s ease; }
.auth-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .7s ease; pointer-events: none; z-index: 0; }
.auth-video.ready { opacity: 1; }
.auth-scene.video-on .auth-static { opacity: 0; }

.signin-brand-ico { width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; margin: 0 auto 10px; backdrop-filter: blur(6px); }
.signin-brand-ico svg { width: 30px; height: 30px; color: #fff; }
.signin-brand-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.01em; }
.signin-ecg { width: 150px; height: 26px; margin-top: 8px; }
.signin-ecg path { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: ecgDraw 1.1s ease .3s forwards; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }
.signin-head { text-align: center; margin-bottom: 12px; }
.signin-title { font-family: 'Plus Jakarta Sans'; font-size: 20px; font-weight: 800; color: var(--ink); }
.signin-otp:not(.hidden) { animation: panelIn var(--t-std) var(--ease) backwards; }
.btn-apple { background: #111418 !important; color: #fff !important; border: 1px solid rgba(255,255,255,.14) !important; }
.btn-apple::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.google-start { background: var(--surface) !important; color: var(--ink) !important; border: 1.5px solid var(--line-strong) !important; box-shadow: var(--shadow-xs) !important; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; pointer-events: none; animation: splashHide .4s ease 1.55s forwards;
  background:
    radial-gradient(620px 420px at 50% 42%, rgba(27,91,215,.09), transparent 65%),
    linear-gradient(rgba(27,91,215,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,91,215,.055) 1px, transparent 1px),
    #fff;
  background-size: auto, 44px 44px, 44px 44px, auto; }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 10px; animation: splashIn .45s cubic-bezier(.2,.9,.3,1.15) both; }
.splash-halo { position: absolute; top: 48px; left: 50%; width: 220px; height: 220px; transform: translate(-50%,-50%) scale(.55); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(27,91,215,.20) 0%, rgba(27,91,215,.08) 42%, transparent 68%); opacity: 0; animation: ilHalo .7s .05s ease-out forwards; }
.splash-logo { width: 96px; height: auto; filter: drop-shadow(0 0 6px rgba(27,91,215,.35)); }
.splash-logo path { fill: none; stroke: #1B5BD7; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.sp-d { stroke-dasharray: 640; stroke-dashoffset: 640; animation: ilDraw .55s .05s cubic-bezier(.6,0,.3,1) forwards; }
.sp-ecg { stroke-dasharray: 460; stroke-dashoffset: 460; animation: ilDraw .45s .5s cubic-bezier(.5,0,.3,1) forwards, ilGlow 1.6s 1s ease-in-out infinite; }
.sp-dot { animation: ilDotOut .2s 1.35s ease forwards; }
.splash-word { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; font-weight: 800; color: #0F2B5B; letter-spacing: .1em; opacity: 0; transform: translateY(8px); animation: ilWord .5s .75s cubic-bezier(.2,.7,.3,1) forwards; }
.splash-word b { color: #1B5BD7; }
@keyframes splashIn { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashHide { to { opacity: 0; visibility: hidden; } }

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 34px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); animation: panelIn var(--t-std) var(--ease) backwards; margin: 10px 0 16px; }
.empty-ico-disc { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; }
.empty-ico-disc svg { width: 28px; height: 28px; }
.empty-title { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16.5px; color: var(--ink); }
.empty-sub { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 7px 0 16px; }
.empty-note { font-size: 12.5px; color: var(--muted); }

/* ---------- chat (functional layer) ---------- */
#chat-fab { position: fixed; bottom: 88px; right: 18px; z-index: 200; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, rgba(47,102,208,.88), rgba(37,86,184,.88)); backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 20px rgba(47,102,208,.4); display: grid; place-items: center; color: #fff; transition: transform var(--t-fast) var(--spring); }
#chat-fab:active { transform: scale(.9); }
.chat-fab-ring { display: none; }
#chat-panel { position: fixed; bottom: 88px; right: 18px; z-index: 200; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 120px)); background: rgba(255,255,255,.86); border: 1px solid var(--glass-brd); border-radius: 24px; box-shadow: var(--spec), var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); animation: panelIn var(--t-std) var(--ease) backwards; }
#chat-head { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.55); }
.chat-head-avatar { width: 34px; height: 34px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-head-text { flex: 1; }
.chat-head-name { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.chat-head-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-deep); display: inline-block; }
#chat-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 13px; }
.chat-disclaimer { font-size: 11px; color: var(--amber); background: #fdf6e8; padding: 6px 14px; border-bottom: 1px solid #f5e7c8; }
#chat-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 9px; }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; white-space: pre-line; animation: fadeUp var(--t-std) var(--ease) both; }
.chat-msg.bot { background: rgba(255,255,255,.94); border: 1px solid var(--glass-brd); box-shadow: var(--spec); border-radius: 15px 15px 15px 4px; color: var(--body); align-self: flex-start; }
.chat-msg.user { background: var(--grad); color: #fff; border-radius: 15px 15px 4px 15px; align-self: flex-end; }
.chat-action { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 7px 12px; border-radius: var(--r-pill); }
#chat-chips { display: flex; gap: 7px; padding: 8px 14px; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.chat-chip { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 7px 12px; border-radius: var(--r-pill); }
#chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.55); }
#chat-input { flex: 1; border: 1.5px solid var(--glass-brd); background: rgba(255,255,255,.8); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; outline: none; color: var(--ink); }
#chat-input:focus { border-color: var(--primary); }
#chat-send { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-typing { display: flex; gap: 4px; padding: 12px 16px; }
.chat-typing i, .chat-typing::before, .chat-typing::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b9c9db; animation: typing 1.1s infinite; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- toast (functional layer, dark readable, queued) ---------- */
#toast-host { position: fixed; bottom: calc(112px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { background: rgba(13,32,58,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: var(--r-pill); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity var(--t-std), transform var(--t-std); text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.success { background: rgba(47,102,208,.94); }
.toast.error { background: rgba(190,30,30,.94); }

/* ---------- bottom tab bar (mobile functional glass) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  main.wrap { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-top: 26px; }
  .footer-panel { padding: 26px 18px calc(164px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; }
  .footer-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px 12px; }
  .footer-cta-cell { grid-column: 1 / -1; grid-row: 1; }
  .footer-cell-head { margin-bottom: 6px; }
  .footer-cell a { margin: 4px 0; }
  .footer-cta-title { font-size: 19px; }
  .footer-cta-sub { margin: 6px auto 10px; }
  .footer-wa { padding: 10px 20px; }
  .footer-mid { margin-top: 20px; padding-top: 14px; gap: 10px; }
  .footer-base { margin-top: 14px; padding: 10px 10px 0; }
  #acct-menu-btn { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 150; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 14px; right: 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.5); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-brd); box-shadow: 0 10px 30px rgba(13,36,64,.16), var(--spec); padding: 8px 12px 6px; }
  .tabbar .tab { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 0; font-size: 10px; font-weight: 600; color: var(--muted); }
  .tabbar .tab.active { color: var(--primary); }
  .tabbar .tab svg { width: 21px; height: 21px; box-sizing: content-box; transition: transform var(--t-fast) var(--spring); }
  .tabbar .tab.active svg { width: 22px; height: 22px; padding: 11px; border-radius: 50%; background: var(--grad); color: #fff; transform: translateY(-18px); margin-bottom: -18px; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 8px 18px rgba(13,148,136,.42), inset 0 1px 0 rgba(255,255,255,.5); }
  #chat-fab { bottom: 104px; }
  .nav-full { display: none; }
  .topbar-inner { padding: 0 12px; height: 54px; }
  .logo-mark-img { width: 30px; height: 30px; }
  .logo-name { font-size: 14.5px; }
  .logo-sub { font-size: 10px; }
  #chat-panel { bottom: 0; right: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---------- admin + legal (shared pages) ---------- */
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; animation: fadeUp var(--t-std) var(--ease) both; }
.week-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.week-day { min-width: 68px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 8px 4px; text-align: center; flex-shrink: 0; }
.week-day .wd-dow { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.week-day .wd-num { font-size: 17px; font-weight: 800; margin-top: 1px; color: var(--ink); }
.tab { padding: 8px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.tab.active { background: var(--primary-soft); color: var(--primary); }
.dots { color: var(--muted); letter-spacing: 3px; }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 20px; }
.site-foot a { color: var(--muted); margin: 0 6px; }
.site-foot a:hover { color: var(--primary); }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 26px; box-shadow: var(--shadow-sm); margin-top: 20px; }
.legal-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.legal-card h2 { font-size: 18px; margin: 20px 0 8px; }
.legal-card p, .legal-card li { font-size: 14.5px; margin-bottom: 8px; }

/* ---------- mobile fit (≤760px) ---------- */
@media (max-width: 760px) {
  .hero { padding: 18px 16px 24px; }
  .hv-panel { max-width: 340px; }
  .hv-doc { height: 95%; }
  .hv-card-a { top: -12px; left: 2px; }
  .hv-card-b { bottom: 14px; right: 2px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 36px); }
  .hero p { font-size: 13.5px; }
  .hero-lockup { width: 64px; height: 64px; border-radius: 18px; }
  .hero-wordmark { font-size: 10.5px; }
  .hero-ecg { height: 36px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar select { max-width: 100%; }
  .doctor-card { flex-wrap: wrap; }
  .doctor-card .doc-avatar { width: 46px; height: 46px; }
  .doctor-card .doc-avatar svg { width: 24px; height: 24px; }
  .doc-info { flex: 1 1 calc(100% - 62px); }
  .doc-right { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; margin-top: 4px; }
  .doc-right .btn { flex: 1; margin-left: 14px; }
  .doc-more { margin-left: 12px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-brand { grid-column: 1 / -1; }
  /* real-device fixes: footer clears the floating tabbar; inputs >=16px stop focus zoom/jump */
  .footer { padding-bottom: 0; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .section-title { font-size: 18px; }
  .wiz-doc { font-size: 15px; }
  .confirm-hero { margin: 18px auto 0; padding: 28px 18px; }
}

/* ---------- desktop (≥900px): real wide layout, not a stretched phone ---------- */
@media (min-width: 900px) {
  .wrap { padding: 22px 24px 48px; }
  .topbar { padding: 14px 20px 0; }

  /* two-column hero via display:contents grid: task left, scene right */
  #view-home { display: grid; grid-template-columns: 1.06fr .94fr; column-gap: 36px; }
  /* v77: hero is a real contained box again - the v71 video bg era left .hero/.hero-main
     dissolved (display:contents), so .hero-scene + the mint wash resolved against the
     initial containing block and covered the first ~900px of the DOCUMENT, clipping
     whatever section followed the hero (the new feature band's top). */
  .hero { grid-column: 1 / -1; grid-row: 1; margin: 0; border-radius: 36px; padding: 54px 58px;
    display: grid; grid-template-columns: 1.06fr .94fr; column-gap: 52px; align-items: center; }
  .hero-copy { text-align: left; }
  .hero .loc-row { justify-content: flex-start; margin: 0 0 6px; }
  .hero h1 { font-size: clamp(42px, 4.1vw, 60px); line-height: 1.05; margin-top: 10px; max-width: 600px; }
  .hero p { font-size: 16px; margin: 14px 0 0; max-width: 500px; }
  .hero-ctas { flex-direction: row; margin-top: 24px; }
  .hero .btn-hero { width: auto; }
  .hero-visual { margin-top: 0; }
  .hv-panel { max-width: 520px; aspect-ratio: 4 / 4.15; }
  .hv-card-a { left: -18px; }
  .hv-card-b { right: -18px; }
  .hero-lockup { display: block; width: 96px; height: 96px; }
  .hero-wordmark, .hero-ecg, .hero-halo { display: block; }
  .hero-halo { position: absolute !important; }
  .hero-search { grid-column: 1 / -1; grid-row: 2; position: static; margin-top: 0; max-width: 520px; justify-self: start; width: 100%; }
  .video-band { grid-column: 1 / -1; max-width: 880px; width: 100%; justify-self: center; margin-top: 22px; }
  .trust-strip { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
  #recent-wrap, #view-home .section-title, #view-home .spec-circles, #view-home .title-row,
  #featured-grid, #view-home .how-strip, #view-home .why-strip,
  #view-home .feature-band, #view-home .why-panel { grid-column: 1 / -1; }
  #view-home .services-panel { grid-column: 1 / -1; display: grid; grid-template-columns: .82fr 1.18fr; column-gap: 60px; align-items: start; padding: 62px 66px; border-radius: 38px; margin-top: 34px; }
  .services-panel .svc-grid { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 0; }
  .services-panel .svc-title { font-size: clamp(38px, 3.2vw, 50px); }
  .services-panel .svc-sub { font-size: 15.5px; }
  #view-home .why-sec { grid-column: 1 / -1; }
  .why-title { font-size: clamp(36px, 3vw, 46px); }
  .why-sub { font-size: 15.5px; }
  .why-grid { grid-template-columns: 1.18fr .82fr; gap: 26px; align-items: stretch; margin-top: 34px; }
  .why-cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .why-cards .why-card:nth-child(2) { transform: translateY(22px); }
  .why-cards .why-card:nth-child(4) { transform: translateY(22px); }
  .wv-panel { aspect-ratio: auto; height: 100%; min-height: 420px; }
  #view-home .about-sec { grid-column: 1 / -1; }
  .about-inner { padding: 68px 72px 60px; border-radius: 40px; }
  .about-title { font-size: clamp(36px, 3vw, 46px); }
  .about-sub { font-size: 15.5px; }
  .about-grid { grid-template-columns: .88fr 1.12fr; gap: 40px; align-items: center; margin-top: 34px; }
  .about-rows { gap: 16px; }
  .about-row { padding: 22px 24px; border-radius: 20px; }
  #view-home .section-tag { grid-column: 1 / -1; justify-self: start; }
  #view-home .live-pill { grid-column: 1; justify-self: start; }
  .how-strip { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feat-card { min-height: 430px; }
  .searchbar input { padding: 16px 22px; font-size: 16px; }
  .btn-hero { padding: 15px 28px; font-size: 15.5px; }

  .loc-row { margin: 4px 0 6px; }
  .loc-sel-wrap { max-width: 300px; }

  .section-title, .title-row { margin-top: 40px; }
  .section-title { font-size: 22px; }
  .spec-circles { grid-template-columns: repeat(8, 1fr); gap: 16px 10px; }
  .spec-circle-btn { width: 64px; height: 64px; }
  .clinic-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .browse-grid { grid-template-columns: repeat(6, 1fr); }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .soon-card { min-width: 240px; }
  .why-strip { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }

  #clinic-map { height: 520px; }
  .detail-hero { padding: 26px; }
  .detail-name { font-size: 26px; }
  #clinic-detail { display: block; }
  #dt-doctors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  #detail-map { height: 300px; }
  #doctor-list { grid-template-columns: 1fr 1fr; gap: 14px !important; }
  #doctor-list .section-title { grid-column: 1 / -1; margin: 14px 0 0; }
  #doctor-browse-list { grid-template-columns: repeat(2, 1fr); }

  .doc-modal-overlay, #wizard-overlay { place-items: center; padding: 24px; }
  .doc-modal, .wizard { border-radius: 26px; max-height: 88dvh; }
  .wizard { max-width: 620px; padding: 26px; }

  .track-card, .mb-card, .admin-login { max-width: 640px; margin-left: auto; margin-right: auto; padding: 28px; }
  #view-track .track-card, #view-signin .track-card { margin-top: 10px; }
  .confirm-hero { margin-top: 44px; padding: 44px 36px; }
  #account-page { max-width: 640px; margin: 0 auto; }

  .footer { padding: 44px 24px 26px; }
  #toast-host { bottom: 34px; }
}

#bk-ref::placeholder { text-transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .splash { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-scene::before, .hero h1 span, .wiz-confirm::before, #dm-book::before { animation: none !important; }
  .dh-pin .dh-pin-halo { animation: none; opacity: .45; transform: none; }
  .ecg-pulse { animation: none; stroke-dasharray: none; }
}


/* ---------- site-wide motion polish (transform/opacity only; reduced-motion gate above neutralizes) ---------- */
/* tactile press feedback - buttons never feel dead on touch */
.btn:active, .chip:active, .tab:active, .seg button:active, .slot-btn:active, .week-day:active, .gcard:active { transform: scale(.96); }
/* smooth state changes on every interactive control */
.chip, .tab, .seg button, .slot-btn, .week-day { transition: transform var(--t-fast) var(--spring), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
/* hover lift on interactive cards (mouse pointers only) */
@media (hover: hover) {
  .doctor-card, .bk-card { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
  .doctor-card:hover, .bk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
/* staggered card entrances on every view, hero-video feel carried through the app */
.view.active .clinic-card, .view.active .doctor-card, .view.active .bk-card, .view.active .stat-card { animation: fadeUp .35s var(--ease) both; }
.view.active .clinic-card:nth-child(2), .view.active .doctor-card:nth-child(2), .view.active .bk-card:nth-child(2) { animation-delay: .04s; }
.view.active .clinic-card:nth-child(3), .view.active .doctor-card:nth-child(3), .view.active .bk-card:nth-child(3) { animation-delay: .08s; }
.view.active .clinic-card:nth-child(4), .view.active .doctor-card:nth-child(4), .view.active .bk-card:nth-child(4) { animation-delay: .12s; }
.view.active .clinic-card:nth-child(5), .view.active .doctor-card:nth-child(5), .view.active .bk-card:nth-child(5) { animation-delay: .16s; }
.view.active .clinic-card:nth-child(n+6), .view.active .doctor-card:nth-child(n+6), .view.active .bk-card:nth-child(n+6) { animation-delay: .2s; }
/* slot picker + day strip spring in the booking flow */
.wizard .slot-btn, .wizard .week-day { animation: fadeUp .3s var(--ease) both; }

/* ---------- reduced transparency: glass becomes solid ---------- */
@media (prefers-reduced-transparency: reduce) {
  .topbar, #tabbar, #chat-panel, .toast, .map-chip, .detail-map-card .map-chip,
  .leaflet-popup-content-wrapper, .leaflet-bar a, #chat-fab, .doc-modal, .wizard {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  #chat-panel, .doc-modal, .wizard { background: #fbfffe !important; }
  .toast { background: #0d203a !important; }
  .map-chip, .detail-map-card .map-chip, .leaflet-popup-content-wrapper, .leaflet-bar a { background: #fff !important; }
  .topbar { background: rgba(246,251,250,.98) !important; }
  #tabbar { background: rgba(255,255,255,.98) !important; }
}

/* clinic detail v2 - cover, head, quick strip, tabs, slots, sticky book */
.detail-cover { position: relative; height: 180px; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(135deg, #0F766E, #2F66D0 55%, #14B8A6); box-shadow: var(--shadow-xs); }
.detail-cover-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 15% 90%, rgba(255,255,255,.14), transparent 40%); }
.detail-cover-mark { position: absolute; right: -20px; bottom: -30px; width: 190px; height: 190px; color: rgba(255,255,255,.16); }
.detail-cover-mark svg { width: 100%; height: 100%; }
.detail-cover-emoji { position: absolute; left: 22px; bottom: 16px; font-size: 46px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.detail-head-main { min-width: 0; }
.detail-name { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.detail-addr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--body); margin-top: 6px; font-size: 14px; }
.detail-badges { margin-top: 8px; display: flex; gap: 8px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.verified-badge svg { width: 14px; height: 14px; }
.detail-head-cta { flex-shrink: 0; }
.quick-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.qs-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; box-shadow: var(--shadow-xs); }
.qs-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qs-item b { font-size: 14.5px; color: var(--ink); }
.detail-tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.dtab { border: 0; background: none; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dtab.active { color: var(--primary-deep); border-bottom-color: var(--primary); }
.dt-panel { margin-top: 16px; }
.dt-desc { color: var(--body); margin: 0 0 4px; font-size: 15px; line-height: 1.55; }
.dt-h { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.fac-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fac-item { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.fac-item svg { width: 14px; height: 14px; }
.slot-doc-filter { margin-bottom: 12px; }
.slot-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-book-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); }
.sbb-label { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.sticky-book { display: none; }
@media (max-width: 760px) {
  .detail-head-cta { display: none; }
  .quick-strip { grid-template-columns: 1fr; }
  .sticky-book { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 700; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 12px 32px rgba(15,23,42,.18); }
  .sb-fee { font-size: 13.5px; color: var(--body); }
  .sb-fee b { color: var(--ink); font-size: 16px; }
}

/* ---------- PATIENT DASHBOARD ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.dash-side { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; position: sticky; top: 84px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); margin-bottom: 12px; }
.dash-user-info { min-width: 0; }
.dash-name { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-contact { font-size: 12.5px; color: var(--body); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-btn { text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--body); cursor: pointer; font-family: inherit; }
.dash-nav-btn:hover { background: var(--primary-soft); color: var(--primary-2); }
.dash-nav-btn.active { background: var(--primary-soft); color: var(--primary-2); }
.dash-logout { color: var(--danger); margin-top: 6px; }
.dash-logout:hover { background: #fef2f2; color: var(--danger); }
.dash-body { min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; }
.dash-h { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.dash-sub { font-size: 13.5px; color: var(--body); margin: 0 0 16px; }
.dash-note { font-size: 12.5px; color: var(--body); margin: 10px 0; }
.mb-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 999px; padding: 4px; width: max-content; margin-bottom: 16px; }
.mb-tab { border: 0; background: none; border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 700; color: var(--body); cursor: pointer; font-family: inherit; }
.mb-tab.active { background: #fff; color: var(--primary-2); box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.bk-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.bk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.bk-ref { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--body); }
.bk-badge { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.bdg-pending { background: #fffbeb; color: #b45309; }
.bdg-confirmed { background: #ecfdf5; color: #047857; }
.bdg-cancelled { background: #f1f5f9; color: #64748b; }
.bdg-completed { background: var(--primary-soft); color: var(--primary-2); }
.bk-clinic { font-weight: 800; font-size: 15.5px; color: var(--ink); }
.bk-doc { font-size: 13.5px; color: var(--body); margin-top: 2px; }
.bk-meta { font-size: 13.5px; font-weight: 600; margin-top: 6px; color: var(--ink); }
.bk-addr { font-size: 12.5px; color: var(--body); margin-top: 3px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-danger { color: var(--danger); }
.bmodal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 16px; }
.bmodal { background: #fff; border-radius: 18px; max-width: 480px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 20px; }
.bmodal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.bmodal-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.bmodal-x { background: var(--bg); border: 0; border-radius: 999px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--body); flex-shrink: 0; }
.brow { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-strong); font-size: 13.5px; }
.brow span { color: var(--body); flex-shrink: 0; }
.brow b { font-weight: 600; text-align: right; color: var(--ink); }
.brow a { color: var(--primary-2); }
.bmodal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fam-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; margin-top: 16px; align-items: center; }
.fam-form input, .fam-form select { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13.5px; font-family: inherit; }
.fam-row, .saved-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.prof-grid input:disabled { background: var(--bg); color: var(--body); }
.for-member { background: var(--primary-soft); border: 1px solid #99f6e4; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--primary-2); margin-bottom: 4px; }
.linklike { background: none; border: 0; color: var(--primary-2); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: inherit; font-family: inherit; padding: 0; }
.btn-save { margin-left: 8px; }
.btn-save-on { border-color: var(--primary); color: var(--primary-2); background: var(--primary-soft); }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dash-side, .dash-body { min-width: 0; }
  .dash-side { position: static; padding: 14px; }
  .dash-user { padding-bottom: 10px; margin-bottom: 10px; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .dash-nav-btn { white-space: nowrap; padding: 8px 14px; }
  .dash-logout { margin-top: 0; }
  .dash-body { padding: 14px; }
  .fam-form { grid-template-columns: 1fr 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
  .mb-tabs { width: 100%; }
  .mb-tab { flex: 1; }
}

/* ---------- v65 PREMIUM POLISH (Magic UI-style, transform/opacity only) ---------- */
/* Shimmer sweep on primary buttons */
.btn:not(.btn-outline):not(.btn-ghost), .bk-actions .btn:not(.btn-outline):not(.btn-ghost) { position: relative; overflow: hidden; }
.btn:not(.btn-outline):not(.btn-ghost)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.38) 50%, transparent 68%);
  transform: translateX(-130%);
}
.btn:not(.btn-outline):not(.btn-ghost):hover::after { transform: translateX(130%); transition: transform .65s var(--ease); }

/* Animated border beam on the hero CTA */
@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-hero:not(.btn-outline) { position: relative; isolation: isolate; }
.btn-hero:not(.btn-outline)::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--r-pill) + 2px); padding: 2px;
  background: conic-gradient(from var(--beam), transparent 0 62%, rgba(94,234,212,.0) 62%, #5eead4 76%, #ffffff 84%, #5eead4 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beamSpin 3.4s linear infinite;
  z-index: -1; pointer-events: none;
}
@keyframes beamSpin { to { --beam: 360deg; } }

/* Dot pattern over the hero (fades out downward) */
.hero::after {
  background-image:
    radial-gradient(rgba(13,148,136,.14) 1.2px, transparent 1.3px),
    linear-gradient(180deg, rgba(243,248,247,.86), rgba(243,248,247,.74) 55%, rgba(243,248,247,.88));
  background-size: 22px 22px, auto;
}

/* Card hover lift + soft teal shadow (preserves .reveal stagger: delay only until revealed) */
.clinic-card { transition: opacity var(--t-slow) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.clinic-card.reveal:not(.revealed) { transition-delay: calc(var(--i, 0) * 110ms); }
.clinic-card.reveal.revealed { transition-delay: 0ms; }
.clinic-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -12px rgba(13,148,136,.28); }

@media (prefers-reduced-motion: reduce) {
  .btn-hero:not(.btn-outline)::before { animation: none; }
  .btn:not(.btn-outline):not(.btn-ghost)::after { display: none; }
  .clinic-card, .clinic-card:hover { transform: none; transition: none; }
}

/* ---- Animated illustrations (Lottie assets, recolored to brand) ---- */
.anim-recolor{filter:hue-rotate(66deg) saturate(1.15) brightness(.92)}
.anim-load{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:26px 16px;color:var(--muted);font-size:13px;font-weight:600;text-align:center;min-height:220px}
.anim-load img{width:118px;height:118px}
.skel{width:100%;animation:skelPulse 1.25s ease-in-out infinite}
.skel i{display:block;background:rgba(15,23,42,.07);border-radius:12px}
.skel-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px;max-width:420px}
.skel-slots i{height:44px;border-radius:999px}
.skel-cards{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.skel-cards i{height:118px;border-radius:20px}
.skel-rows{display:flex;flex-direction:column;gap:10px;margin-top:16px;max-width:420px}
.skel-rows i{height:16px}
.skel-rows i:nth-child(2){width:72%}
.skel-rows i:nth-child(3){width:48%}
@keyframes skelPulse{0%,100%{opacity:.4}50%{opacity:1}}
@media (prefers-reduced-motion: reduce){.skel{animation:none;opacity:.6}}
#slot-grid .anim-load, #my-bookings .anim-load, #family-list .anim-load, #clinic-detail .anim-load{grid-column:1/-1;min-height:120px}
.anim-load img{width:84px;height:84px;object-fit:contain;display:block}
.anim-empty{display:block;width:104px;height:104px;object-fit:contain;margin:0 auto 2px}
/* Success check: CSS/SVG stroke draw (Lottie success-check port, zero-weight) */
.confirm-check{animation:ccPop .45s .05s cubic-bezier(.34,1.56,.64,1) backwards}
.cc-svg{width:38px;height:38px;display:block}
.cc-path{fill:none;stroke:#fff;stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:48;stroke-dashoffset:48;animation:ccDraw .45s .3s cubic-bezier(.65,0,.35,1) forwards}
@keyframes ccPop{from{transform:scale(.55);opacity:0}}
@keyframes ccDraw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion: reduce){
  .confirm-check{animation:none}
  .cc-path{animation:none;stroke-dashoffset:0}
}

/* v92 - WeCare FAQ accordion */
.faq-sec { text-align: center; margin-top: 36px; }
.faq-sec .section-tag { margin-top: 0; }
.faq-list { max-width: 640px; margin: 22px auto 0; display: grid; gap: 10px; text-align: left; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(6,16,38,.04); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; letter-spacing: -.01em; }
.faq-q .faq-plus { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s cubic-bezier(.16,1,.3,1), background .3s, color .3s; }
.faq-q .faq-plus svg { width: 14px; height: 14px; }
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.16,1,.3,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-q .faq-plus { transition: none; } }

/* v94 - WeCare header anatomy: phone + Book CTA (desktop) */
.hdr-book { display: none; background: var(--primary); color: #fff; border: 0; border-radius: var(--r-pill); padding: 10px 20px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(47,102,208,.3); }
@media (min-width: 900px) {
  .hdr-book { display: inline-flex; align-items: center; }
}
@media (min-width: 1180px) {
}

/* v95 - WeCare page views */
.page-view { text-align: center; padding-top: 18px; }
.page-view .section-tag { margin-top: 0; }
.page-cards { max-width: 880px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.page-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: 0 8px 22px rgba(6,16,38,.05); }
.page-card strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); display: block; }
.page-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.page-card a { color: var(--primary); font-weight: 700; text-decoration: none; }
@media (min-width: 700px) { .page-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .page-cards { grid-template-columns: repeat(4, minmax(0,1fr)); } .contact-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* v97: search tab lands with the input clear of the floating header */
#search-input { scroll-margin-top: 110px; }

/* keep sign-in buttons clear of the sticky topbar on scroll-into-view */
.google-start, #login-apple, #signin-panel { scroll-margin-top: 120px; }

/* hero video (drops into #hero-video-slot when the file arrives) */
.hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* support extras on the contact page */
.support-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 18px auto 6px; max-width: 420px; }
.support-sub-title { text-align: center; font-size: 17px; font-weight: 800; margin: 26px 0 12px; }

/* intro splash (once per session) */
#intro-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease;
  background:
    radial-gradient(620px 420px at 50% 42%, rgba(27,91,215,.09), transparent 65%),
    linear-gradient(rgba(27,91,215,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,91,215,.055) 1px, transparent 1px),
    #fff;
  background-size: auto, 44px 44px, 44px 44px, auto; }
#intro-overlay[hidden] { display: none; }
#intro-overlay.intro-hide { opacity: 0; pointer-events: none; }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; animation: ilPop .7s cubic-bezier(.2,.7,.3,1); }
@keyframes ilPop { from { transform: scale(.92); opacity: .35; } }
#intro-logo { width: 150px; height: auto; filter: drop-shadow(0 0 7px rgba(27,91,215,.35)); transform-box: fill-box; transform-origin: center; animation: ilThump .7s 1.5s ease-in-out; }
@keyframes ilThump { 0% { transform: scale(1); } 18% { transform: scale(1.07); } 36% { transform: scale(1); } 55% { transform: scale(1.045); } 100% { transform: scale(1); } }
.intro-halo { position: absolute; top: 38px; left: 50%; width: 300px; height: 300px; transform: translate(-50%,-50%) scale(.55); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(27,91,215,.20) 0%, rgba(27,91,215,.08) 42%, transparent 68%); opacity: 0; animation: ilHalo 1s .05s ease-out forwards, ilHaloPulse 2.2s 1.1s ease-in-out infinite; }
@keyframes ilHalo { to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes ilHaloPulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }
.il-dot { animation: ilDotOut .25s 2.45s ease forwards; }
@keyframes ilDotOut { to { opacity: 0; } }
#intro-logo path { fill: none; stroke: #1B5BD7; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.il-d { stroke-dasharray: 640; stroke-dashoffset: 640; animation: ilDraw 1.05s .1s cubic-bezier(.6,0,.3,1) forwards; }
.il-ecg { stroke-dasharray: 460; stroke-dashoffset: 460; animation: ilDraw .8s 1s cubic-bezier(.5,0,.3,1) forwards, ilGlow 1.6s 2s ease-in-out infinite; }
@keyframes ilDraw { to { stroke-dashoffset: 0; } }
@keyframes ilGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(27,91,215,0)); } 50% { filter: drop-shadow(0 0 12px rgba(27,91,215,.75)); } }
.intro-word { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; color: #0F2B5B; letter-spacing: .14em; opacity: 0; transform: translateY(10px); text-shadow: 0 0 0 rgba(27,91,215,0); animation: ilWord .65s 1.7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes ilWord { to { opacity: 1; transform: none; letter-spacing: .02em; } }
body.intro-open { overflow: hidden; }

/* coded mockups: booking ref card (why panel) + live slots (about panel) */
.mock-ref-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(86%, 300px); background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 22px 48px rgba(4,20,60,.18); padding: 22px 18px 16px; text-align: center; }
.mrc-check { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(13,148,136,.35); }
.mrc-check svg { width: 26px; height: 26px; }
.mrc-check path { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.mrc-title { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15.5px; color: var(--ink); }
.mrc-ref { margin-top: 8px; display: inline-block; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; letter-spacing: .03em; }
.mrc-divider { height: 1px; background: var(--line-strong); margin: 13px 0 9px; }
.mrc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; margin: 5px 0; text-align: left; }
.mrc-k { color: var(--muted); font-weight: 600; }
.mrc-v { color: var(--ink); font-weight: 700; }
.mrc-pill { background: #DCFCE7; color: #15803D; font-weight: 800; font-size: 10.5px; border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.mrc-foot { margin-top: 11px; font-size: 10.5px; color: var(--muted); }
.mock-slots-card { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: min(88%, 320px); background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 22px 48px rgba(4,20,60,.18); padding: 15px 15px 12px; }
.msc-head { display: flex; align-items: center; gap: 9px; }
.msc-pin { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; }
.msc-pin svg { width: 17px; height: 17px; }
.msc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.msc-id strong { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msc-id small { font-size: 10.5px; color: var(--muted); }
.msc-live { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--primary-deep); }
.msc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.msc-grid .slot-btn { font-size: 12px; padding: 9px 4px; }
.msc-grid .slot-btn.taken { opacity: .38; text-decoration: line-through; }
.msc-foot { margin-top: 10px; text-align: center; font-size: 10.5px; color: var(--muted); }
.av-badge { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 9%; display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 8px 15px; font-size: 11.5px; font-weight: 800; color: #15803D; box-shadow: 0 12px 26px rgba(6,16,38,.14); white-space: nowrap; animation: hvFloat 5.6s ease-in-out 1.2s infinite; }
.av-badge svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .av-badge { animation: none; } }

/* about video (drops into #about-video-slot when the file arrives) */
.av-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.confirm-prep { margin: 16px auto 0; max-width: 420px; text-align: left; background: #fff; border: 1px solid var(--primary-soft); border-radius: 16px; padding: 14px 18px; }
.confirm-prep .cp-title { font-weight: 800; font-size: 14px; color: var(--primary-deep); margin-bottom: 6px; }
.confirm-prep ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.cc-actions { display: flex; gap: 8px; margin-top: 4px; }
.cc-actions .cc-book { flex: 1; margin: 0; }
.cc-cmp { border: 1.5px solid var(--primary-soft); background: #fff; color: var(--primary-deep); border-radius: 12px; padding: 0 14px; font: 700 13px inherit; font-family: inherit; cursor: pointer; min-height: 40px; }
.cc-cmp.on { background: var(--primary-soft); }
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 900; display: flex; align-items: center; gap: 10px; background: #0f2a5c; color: #fff; padding: 8px 10px 8px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(15,42,92,.35); font-size: 14px; font-weight: 600; }
.cmp-bar button { border: 0; border-radius: 999px; padding: 8px 16px; font: 700 13px inherit; font-family: inherit; cursor: pointer; background: #fff; color: #0f2a5c; }
.cmp-bar button:disabled { opacity: .45; }
.cmp-bar .cmp-x { background: transparent; color: #fff; font-size: 20px; padding: 2px 10px; }
.cmp-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10,20,40,.5); display: flex; align-items: flex-end; justify-content: center; }
.cmp-sheet { background: #fff; width: 100%; max-width: 720px; max-height: 85vh; border-radius: 22px 22px 0 0; padding: 16px; display: flex; flex-direction: column; }
.cmp-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 10px; }
.cmp-head button { border: 0; background: none; font-size: 26px; cursor: pointer; }
.cmp-scroll { overflow: auto; }
.cmp-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.cmp-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 8px 9px 0; vertical-align: top; white-space: nowrap; }
.cmp-table td { padding: 9px 8px; vertical-align: top; border-top: 1px solid #eef2f8; min-width: 110px; }
.cmp-table th { border-top: 1px solid #eef2f8; }
.cmp-name { font-weight: 800; color: var(--primary-deep); }
.cmp-bar span { white-space: nowrap; }

/* ---------- clinic portal extras ---------- */
.adm-links { display: flex; justify-content: center; gap: 10px; font-size: 14px; margin-top: 4px; }
.adm-links a { color: var(--primary-deep); font-weight: 600; }
.adm-links span { color: var(--muted); }
.adm-note { background: var(--primary-soft); color: var(--primary-deep); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.adm-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 4px 0 16px; }
.adm-tab { flex: 1; border: 0; background: none; border-radius: 999px; padding: 10px 8px; font: 700 14px inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.adm-tab.active { background: var(--primary); color: #fff; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; margin-bottom: 16px; }
.adm-card h3 { margin: 0 0 12px; font-size: 17px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.adm-card-head h3 { margin: 0; }
.doc-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.doc-name { font-weight: 800; }
.doc-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-del { color: #b42318; }
.doc-form { margin-top: 14px; padding: 16px; border: 1.5px solid var(--primary-soft); border-radius: 16px; background: #f7faff; }
.doc-form h4 { margin: 0 0 8px; }
.doc-form-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.day-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.sess-row { display: flex; align-items: center; gap: 8px; }
.sess-row input { flex: 1; min-width: 0; }
.doc-form input, .doc-form textarea, .adm-card input { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.doc-form .day-chip input { width: auto; }
.sess-row input { width: auto; }
.form-row.two > div { min-width: 0; }
.doc-form .form-grid > *, .adm-card .form-grid > * { min-width: 0; }
.doc-form .form-grid, .adm-card .form-grid { grid-template-columns: minmax(0, 1fr); }
.sess-row input { flex: 1 1 0; width: 0; min-width: 0; }
.form-row.two input { width: 100%; }
.sess-row input { padding-left: 10px; padding-right: 6px; font-size: 14.5px; }

.adm-join-box, .adm-signin-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.adm-signin-box { margin: 0 0 16px; padding: 12px 14px; border: 1.5px solid var(--primary-soft); border-radius: 14px; background: #f7faff; }

.pf-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); }
.pf-approved { background: #dcfce7; color: #166534; } .pf-rejected { background: #fee2e2; color: #991b1b; } .pf-test { background: #f1f5f9; color: #475569; }
.pf-approve { margin-top: 12px; padding: 14px; border: 1.5px solid var(--primary-soft); border-radius: 14px; background: #f7faff; }
.pf-approve input[type=email] { width: 100%; box-sizing: border-box; }
.pf-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0; }
.pf-card .doc-actions { margin-top: 10px; }
.pf-check input { width: auto !important; flex: none; }

/* legal pages */
.legal{max-width:760px;margin:0 auto;padding-bottom:30px;line-height:1.65}
.legal .legal-h1{font-size:28px;font-weight:800;letter-spacing:-.02em;margin-top:8px}
.legal .legal-meta{color:var(--muted);font-size:13px;margin:4px 0 14px}
.legal h2{scroll-margin-top:84px}
.legal ul{padding-left:20px}.legal li{margin:5px 0}
.legal-toc{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 6px}
.legal-toc a{font-size:12.5px;padding:5px 11px;border-radius:99px;border:1px solid var(--line,rgba(120,140,180,.3));color:var(--muted);text-decoration:none}
.legal-toc a:hover{color:var(--ink)}
@media(max-width:480px){.legal .legal-h1{font-size:24px}.legal-toc{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding-right:16px}.legal-toc a{white-space:nowrap}}
.topbar-links .nav-short{display:none}
@media(max-width:560px){.topbar-links .nav-full{display:none}.topbar-links .nav-short{display:inline}}
.footer-inner a{color:var(--ink)}
