/* Dr. Ankur Gupta — light medical theme (blue + Astha red), mobile-first, large type. */

:root {
  --navy: #0b2545;
  --navy-2: #12325e;
  --blue: #1557c0;
  --blue-2: #1d6fe0;
  --sky: #3b9cff;
  --ice: #e9f2ff;
  --ice-2: #f5f9ff;
  --red: #e0313a;
  --red-soft: #ffe9eb;
  --ink: #0f1f38;
  --muted: #56677f;
  --line: #e1e8f2;
  --bg: #ffffff;

  /* names used across pages */
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --brand: var(--blue);
  --brand-strong: #0f4499;
  --brand-soft: #e6efff;
  --on-brand: #ffffff;
  --star: #f5a524;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #ea580c;
  --warn-soft: #ffedd5;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --off: #64748b;
  --off-soft: #eef2f7;

  --grad: linear-gradient(135deg, var(--sky) 0%, var(--blue) 55%, var(--navy-2) 100%);
  --shadow-sm: 0 1px 2px rgba(15, 31, 56, 0.06);
  --shadow: 0 1px 2px rgba(15, 31, 56, 0.05), 0 10px 30px rgba(15, 31, 56, 0.07);
  --shadow-lg: 0 24px 60px rgba(var(--shade-rgb), 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --head: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  color-scheme: light;
  /* theme-able helpers (overridden by html[data-theme]) */
  --accent: var(--red);
  --accent-soft: var(--red-soft);
  --accent-rgb: 224, 49, 58;
  --shade-rgb: 21, 87, 192;
  --glow-rgb: 59, 156, 255;
  --navy-rgb: 11, 37, 69;
  --deep: #0f3a7a;
  --line-strong: #c9dbf8;
  --on-dark: #c6d8f5;
  --on-dark-2: #dbe7fb;
  --bubble-1: #f2f7ff;
  --bubble-2: #e8f1ff;
  --bubble-line: #d3e3fb;
  --tile-bg: #dfe7f2;
}

/* Language switching: static content carries both languages */
html:not(.lang-hi) .hi { display: none !important; }
html.lang-hi .en { display: none !important; }
html.lang-hi body { font-family: var(--font-hi); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.18; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: 2.3rem; font-weight: 800; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
@media (min-width: 900px) { h2 { font-size: 2.35rem; } }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 660px; }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section.soft { background: var(--ice-2); }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--blue); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-head.center .eyebrow { justify-content: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; } .js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Icons ---------- */
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow 0.2s, border-color 0.2s; }
.topbar.scrolled, .topbar.solid { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15, 31, 56, 0.06); }
.topbar .container { display: flex; align-items: center; gap: 10px; min-height: 70px; }
a.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(var(--shade-rgb), 0.35); font-weight: 800; }
.logo svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text b { font-family: var(--head); font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { background: var(--ice); color: var(--blue); }
@media (min-width: 1060px) { .nav { display: flex; } }
.lang-btn { border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 11px 22px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* background-origin: border-box stops the gradient from tiling under the transparent border (seams at the edges) */
.btn-primary { background: var(--grad); background-origin: border-box; color: #fff; box-shadow: 0 10px 24px rgba(var(--shade-rgb), 0.32); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(var(--shade-rgb), 0.42); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(224, 49, 58, 0.3); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); background: var(--ice-2); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface-2); color: var(--navy); }
.btn-ghost:hover { background: var(--ice); color: var(--blue); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 15px; border-radius: 11px; font-size: 0.92rem; }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 1.08rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
@media (max-width: 1059px) { .hide-mobile { display: none !important; } }

/* ---------- Generic cards & chips ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.brand { background: var(--brand-soft); color: var(--brand-strong); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; background: var(--off); }
.dot.ok { background: var(--ok); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); }
.dot.amber { background: var(--amber); }
.dot.danger { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.announce { background: var(--navy); color: #fff; }
.announce .container { padding-top: 10px; padding-bottom: 10px; font-weight: 600; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 0 90px; background:
  radial-gradient(900px 520px at 88% 8%, rgba(var(--glow-rgb), 0.18), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(var(--accent-rgb), 0.06), transparent 60%),
  linear-gradient(180deg, var(--ice-2) 0%, #ffffff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(var(--shade-rgb), 0.16) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 56px 0 120px; } .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.86rem; color: var(--navy); }
.pill .pill-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.pill .pill-ico svg { width: 16px; height: 16px; }
.hero h1 { font-size: 2.7rem; margin: 18px 0 6px; line-height: 1.05; letter-spacing: -0.03em; }
@media (min-width: 600px) { .hero h1 { font-size: 3.4rem; } }
@media (min-width: 980px) { .hero h1 { font-size: 4.1rem; } }
.hero-tag { font-family: var(--head); font-weight: 700; font-size: 1.55rem; margin: 0 0 6px; }
@media (min-width: 980px) { .hero-tag { font-size: 1.95rem; } }
.hero-deg { font-weight: 600; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-deg > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-deg > span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: grid; gap: 12px; margin: 24px 0 26px; }
@media (min-width: 560px) { .hero-ctas { grid-template-columns: auto auto; justify-content: start; } }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.hero-trust div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.hero-trust b { display: block; font-family: var(--head); font-size: 1.25rem; color: var(--blue); line-height: 1.2; }
.hero-trust > div > span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* Portrait with glowing X-ray */
.portrait { position: relative; width: min(100%, 480px); margin: 0 auto; aspect-ratio: 5 / 6; }
.portrait-card { position: absolute; inset: 14% 3% 0 3%; border-radius: 240px 240px 32px 32px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--blue-2) 0%, var(--blue) 45%, var(--navy) 100%); box-shadow: var(--shadow-lg); }
.portrait-card .xray { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  mix-blend-mode: screen; opacity: 0.42; filter: grayscale(1) contrast(1.25) brightness(1.05); }
.portrait-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--navy-rgb), 0.55) 100%); }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.35); left: 50%; top: 38%; transform: translate(-50%, -50%); }
.ring-1 { width: 74%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.ring-2 { width: 108%; aspect-ratio: 1; border-color: rgba(255, 255, 255, 0.18); animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.portrait .doctor { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 88%; max-width: none;
  filter: drop-shadow(0 22px 30px rgba(var(--navy-rgb), 0.35)); border-radius: 0 0 32px 32px; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 31, 56, 0.16); animation: bob 5s ease-in-out infinite; }
.float b { display: block; font-family: var(--head); font-size: 0.88rem; color: var(--navy); line-height: 1.2; }
.float small { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.float .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex: none; }
.float .fi svg { width: 20px; height: 20px; }
.float.f1 { left: -2%; top: 24%; }
.float.f2 { right: -3%; top: 48%; animation-delay: -1.6s; }
.float.f2 .fi { background: var(--accent-soft); color: var(--accent); }
.float.f3 { left: 2%; bottom: 7%; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* Narrow portrait: the cards keep their width, so move them below the face */
@media (max-width: 520px) { .float.f1 { top: 42%; } .float.f2 { top: 61%; } }
@media (max-width: 420px) { .float { padding: 8px 10px 8px 8px; } .float .fi { width: 30px; height: 30px; } .float b { font-size: 0.8rem; } .float.f1 { left: -4px; } .float.f2 { right: -4px; } }

/* ---------- Live status card (home + status page) ---------- */
.live-wrap { margin-top: -64px; position: relative; z-index: 3; }
.live-card { --tone: var(--off); --tone-soft: var(--off-soft); position: relative; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15, 31, 56, 0.12); overflow: hidden; }
.live-card[data-tone="ok"] { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.live-card[data-tone="warn"] { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.live-card[data-tone="amber"] { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.live-card[data-tone="danger"] { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.live-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone); }
.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 20px 12px 26px; background: linear-gradient(90deg, var(--tone-soft), #fff 75%); border-bottom: 1px solid var(--line); color: var(--navy); }
.live-head b { font-family: var(--head); font-size: 1rem; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; letter-spacing: 0.14em; color: #fff; background: var(--red); padding: 4px 9px; border-radius: 7px; font-weight: 800; }
.live-blip { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blip 1.2s ease-in-out infinite; }
@keyframes blip { 50% { opacity: 0.2; } }
.live-updated { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.live-body { padding: 18px 20px 20px 26px; display: grid; gap: 18px; }
@media (min-width: 900px) { .live-strip .live-body { grid-template-columns: 1.4fr 1fr 0.95fr; align-items: center; gap: 26px; } }
.live-status { display: flex; align-items: center; gap: 14px; }
.ls-ico { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); flex: none; }
.ls-ico svg { width: 30px; height: 30px; }
.live-card[data-tone="ok"] .ls-ico::after { content: ""; position: absolute; inset: -4px; border-radius: 22px; border: 2px solid var(--ok); opacity: 0; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.25); opacity: 0; } }
.live-state { font-size: 1.3rem; font-weight: 800; font-family: var(--head); color: var(--navy); line-height: 1.25; }
.live-sub { color: var(--muted); font-weight: 600; margin-top: 2px; font-size: 0.95rem; }
.doc-msg { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.doc-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(15, 31, 56, 0.2); flex: none; }
.doc-bubble { flex: 1; min-width: 0; background: linear-gradient(180deg, var(--bubble-1), var(--bubble-2)); border: 1px solid var(--bubble-line); border-radius: 4px 18px 18px 18px; padding: 10px 14px 12px; }
.doc-from { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 0.8rem; color: var(--blue); }
.doc-from .icon { width: 15px; height: 15px; }
.doc-from b { font-weight: 700; }
.doc-from span { margin-left: auto; color: var(--muted); font-weight: 600; white-space: nowrap; }
.doc-bubble p { margin: 4px 0 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.45; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 16px; padding: 12px 6px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 1.55rem; line-height: 1.15; color: var(--blue); }
.stat span { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.live-actions { display: grid; gap: 10px; }
.check-token { display: flex; gap: 8px; }
.check-token input { flex: 1; min-width: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Specialities ---------- */
.spec { position: relative; padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s; overflow: hidden; }
.spec::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--ice); opacity: 0.7; transition: transform 0.4s; }
.spec:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(var(--shade-rgb), 0.14); border-color: var(--line-strong); }
.spec:hover::after { transform: scale(1.4); }
.spec-ico { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(var(--shade-rgb), 0.3); }
.spec-ico svg { width: 30px; height: 30px; }
.spec h3 { position: relative; z-index: 1; font-size: 1.18rem; }
.spec p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Why band ---------- */
.why { background: radial-gradient(800px 400px at 90% 0%, rgba(var(--glow-rgb), 0.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%); color: #fff; }
.why h2, .why h3 { color: #fff; }
.why .section-head p { color: var(--on-dark); }
.why .eyebrow { color: var(--sky); }
.why-item { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.why-item .wi { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: #fff; margin-bottom: 14px; }
.why-item .wi svg { width: 26px; height: 26px; }
.why-item p { color: var(--on-dark); margin: 0; font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .about-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } }
.collage { position: relative; padding: 0 0 70px 0; }
.collage .c1 { width: 82%; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.collage .c2 { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: 20px; border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.collage .badge { position: absolute; left: 18px; bottom: 96px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 230px; }
.collage .badge b { display: block; font-family: var(--head); color: var(--navy); font-size: 0.95rem; }
.collage .badge small { color: var(--muted); font-weight: 600; }
.facts { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex: none; }
.facts .fi svg { width: 20px; height: 20px; }
.edu { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .edu { grid-template-columns: repeat(3, 1fr); } }
.edu div { border-radius: 16px; padding: 16px; background: var(--ice-2); border: 1px solid var(--line); }
.edu b { display: block; font-family: var(--head); color: var(--navy); }
.edu span { display: block; font-size: 0.86rem; color: var(--muted); }
.edu .yr { display: inline-block; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--blue); border-radius: 6px; padding: 1px 8px; margin-bottom: 6px; }
.interests { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.interests span { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.pubs-wrap { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .pubs { grid-template-columns: repeat(2, 1fr); } }
.pubs li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border-radius: 14px; border: 1px solid var(--line); font-size: 0.95rem; }
.pubs li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); }
.pubs i { color: var(--muted); font-style: normal; font-size: 0.86rem; display: block; margin-top: 4px; }

/* ---------- Hospital showcase ---------- */
/* Bento photo showcase */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
.b-tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--tile-bg); cursor: zoom-in; isolation: isolate; box-shadow: var(--shadow-sm); }
.b-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.b-tile:hover img { transform: scale(1.07); }
.b-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(var(--navy-rgb), 0.72) 100%); pointer-events: none; }
.b-hero { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 2; }
.b-hero img { animation: kenburns 22s ease-in-out infinite alternate; }
.b-hero:hover img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-2%, -1%); } }
.b-hero::after { background: linear-gradient(180deg, rgba(var(--navy-rgb), 0) 28%, rgba(var(--navy-rgb), 0.9) 100%); }
.b-hero-info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.b-hero-info h3 { color: #fff; font-size: 1.45rem; margin: 10px 0 4px; }
.b-hero-info p { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--on-dark-2); font-weight: 600; font-size: 0.92rem; }
.b-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; font-size: 0.8rem; }
.b-view { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--navy); background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.b-view:hover { background: var(--ice); }
.b-tile figcaption { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); }
.b-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); flex: none; }
.b-ico svg { width: 19px; height: 19px; }
.b-tile figcaption b { display: block; font-family: var(--head); font-size: 0.9rem; line-height: 1.2; }
.b-tile figcaption small { display: block; font-size: 0.74rem; color: var(--on-dark-2); line-height: 1.3; }
@media (max-width: 520px) { .b-tile figcaption small { display: none; } .b-ico { width: 30px; height: 30px; } .b-tile figcaption { gap: 8px; padding: 6px 8px; } }
.b-stat { cursor: default; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; color: #fff; background: var(--grad); }
.b-stat::after { display: none; }
.b-stat-bg { position: absolute; right: -16px; bottom: -16px; width: 120px; height: 120px; color: rgba(255, 255, 255, 0.13); transform: rotate(-12deg); }
.b-stat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); margin-bottom: 10px; }
.b-stat-ico svg { width: 22px; height: 22px; }
.b-stat small { font-weight: 700; color: var(--on-dark-2); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.b-stat b { font-family: var(--head); font-size: 1.2rem; line-height: 1.25; margin: 2px 0; }
.b-stat-sub { font-size: 0.82rem; color: var(--on-dark-2); font-weight: 600; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
  .b-hero { grid-column: 1 / span 2; grid-row: 1 / span 3; }
  .b-hero-info { left: 28px; right: 28px; bottom: 28px; }
  .b-hero-info h3 { font-size: 2.05rem; }
}

/* Moving strip of departments & facilities */
.marquee { margin: 22px 0 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { flex: none; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow-sm); }
.marquee-track span:nth-child(3n+1) { background: var(--ice); color: var(--blue); border-color: transparent; }
.marquee-track span:nth-child(7n+3) { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hosp-grid { display: grid; gap: 18px; margin-top: 22px; }
.hosp-side { display: grid; gap: 18px; }
.hosp-actions { margin-top: 16px; }
@media (max-width: 979px) {
  /* phone/tablet: directions full width, call + WhatsApp side by side */
  .hosp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hosp-actions .btn { padding-left: 10px; padding-right: 10px; }
  .hosp-actions .btn-primary { grid-column: 1 / -1; }
}
.btn-wa { background: #fff; color: #128c4b; border-color: #bfe9cf; }
.btn-wa:hover { background: #effbf3; border-color: #25d366; }
@media (min-width: 980px) {
  /* both columns end on the same line: map grows to fill, buttons sit at the card bottom */
  .hosp-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .hosp-grid > .card { display: flex; flex-direction: column; }
  .hosp-actions { margin-top: auto; padding-top: 18px; }
  .hosp-side { display: flex; flex-direction: column; }
  .hosp-side .map-frame { flex: 1 1 auto; height: auto; min-height: 240px; }
}
.depts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.depts > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--ice); color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.depts > span.r { background: var(--accent-soft); color: var(--accent); }
.facilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.facilities li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.93rem; }
.facilities li svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex: none; }
.info-row .fi svg { width: 21px; height: 21px; }
.info-row b { display: block; color: var(--navy); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--blue); font-weight: 800; }
.map-frame { width: 100%; height: 300px; border: 0; border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); }

/* ---------- Cases (X-ray viewer) ---------- */
.case { padding: 0; overflow: hidden; border-radius: 22px; }
.case-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #02060d; }
.case-imgs figure { margin: 0; position: relative; cursor: zoom-in; background: radial-gradient(circle at 50% 40%, #0d2346, #02060d 75%); }
.case-imgs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.case-imgs figcaption { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 7px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: var(--red); }
.case-imgs figure + figure figcaption { background: var(--ok); }
.case-body { padding: 18px 20px 20px; }
.case-body p { margin: 0 0 6px; font-size: 0.95rem; color: var(--muted); }
.case-body b { color: var(--navy); }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Gallery ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--grad); background-origin: border-box; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(var(--shade-rgb), 0.28); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--tile-bg); cursor: zoom-in; border-radius: 16px; overflow: hidden; position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; text-align: left; background: linear-gradient(transparent, rgba(var(--navy-rgb), 0.85)); color: #fff; font-size: 0.8rem; font-weight: 700; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 12, 26, 0.94); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: var(--on-dark-2); font-weight: 700; font-size: 0.9rem; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- Review CTA ---------- */
.review-cta { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 48px 22px; color: #fff;
  background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.18), transparent 60%), var(--grad); box-shadow: var(--shadow-lg); }
.review-cta h2 { color: #fff; }
.review-cta p { color: #dbe9ff; max-width: 560px; margin: 0 auto 22px; }
.stars { color: #ffcf4d; font-size: 2rem; letter-spacing: 6px; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 10px; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--blue); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c6d4ea; padding: 56px 0 120px; font-size: 0.94rem; }
@media (min-width: 1060px) { .footer { padding-bottom: 36px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer a { color: #e6eefb; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-text small { color: #9fb3d3; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #8ea4c8; font-size: 0.85rem; }
.emergency { background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.footer .emergency { background: rgba(224, 49, 58, 0.16); color: #ffd6d9; border: 1px solid rgba(224, 49, 58, 0.4); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 31, 56, 0.08); }
.mobile-bar .btn { min-height: 52px; padding: 6px 8px; font-size: 0.95rem; }
@media (min-width: 1060px) { .mobile-bar { display: none; } }

/* ---------- Floating WhatsApp button (all public pages) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.wa-float.has-bar { bottom: calc(88px + env(safe-area-inset-bottom)); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; position: relative; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
.wa-label {
  position: absolute; right: 72px; top: 50%; transform: translate(8px, -50%); white-space: nowrap;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 0.88rem; padding: 8px 12px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 31, 56, 0.16); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.wa-float:hover .wa-label, .wa-float.show-label .wa-label { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1060px) { .wa-float, .wa-float.has-bar { right: 28px; bottom: 28px; width: 64px; height: 64px; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="date"], input[type="time"], input[type="url"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.error input, .field.error select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 0.88rem; font-weight: 600; }
.row-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; text-align: center; padding: 6px; }
.seg input:checked + label { border-color: var(--blue); background: var(--brand-soft); color: var(--brand-strong); }
.seg input:focus-visible + label { box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- Inner pages (booking, status) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 34px 0 70px; color: #fff;
  background: radial-gradient(700px 360px at 90% 0%, rgba(var(--glow-rgb), 0.45), transparent 60%), linear-gradient(135deg, var(--navy), var(--deep)); }
.page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.page-hero p { color: var(--on-dark); margin: 0; }
.page-hero .xray-deco { position: absolute; right: -60px; top: -30px; width: 360px; opacity: 0.18; mix-blend-mode: screen; filter: grayscale(1); pointer-events: none; }
.page-body { margin-top: -44px; position: relative; z-index: 2; padding-bottom: 56px; }
.page-head { padding: 24px 0 8px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.day { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 6px; font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center; transition: border-color 0.15s, background 0.15s; }
.day b { font-family: var(--head); font-size: 1.35rem; color: var(--navy); }
.day small { color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.day[aria-pressed="true"] { border-color: var(--blue); background: var(--brand-soft); box-shadow: 0 8px 18px rgba(var(--shade-rgb), 0.16); }
.day:disabled { opacity: 0.5; cursor: not-allowed; background: var(--surface-2); }
.notice { border-radius: 14px; padding: 12px 14px; font-size: 0.95rem; }
.notice.info { background: var(--brand-soft); }
.notice.warn { background: var(--amber-soft); }
.notice.danger { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.token-hero { text-align: center; padding: 26px 18px; }
.token-hero .label { color: var(--muted); font-size: 0.95rem; }
.token-num { font-family: var(--head); font-size: 4.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 8px 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eta { font-family: var(--head); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.big-msg { font-size: 1.25rem; font-weight: 800; text-align: center; padding: 14px; border-radius: 16px; font-family: var(--head); }
.big-msg.ok { background: var(--ok-soft); color: var(--ok); }
.big-msg.warn { background: var(--amber-soft); color: var(--amber); }
.big-msg.off { background: var(--off-soft); color: var(--off); }
.list { display: grid; gap: 8px; }
.list a, .list .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }

/* ---------- Doctor panel ---------- */
.panel-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; }
.panel-tabs .tab { flex: none; }
@media (max-width: 639px) {
  /* phone: Now serving → patients → status → walk-in → booking */
  .today-cols > .col { display: contents; }
  #servingCard { order: 1; } #patientsCard { order: 2; } #statusCard { order: 3; } #walkinForm { order: 4; } #bookingCard { order: 5; }
}
.serving { text-align: center; }
.serving .token-num { font-size: 5rem; }
.serving .who { font-weight: 700; min-height: 1.5em; }
.state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }
.state-btn { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; min-height: 58px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.state-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--brand-soft); }
.queue { display: grid; gap: 8px; }
.q-item { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.q-item .q-actions { grid-column: 1 / -1; }
@media (min-width: 560px) { .q-item { grid-template-columns: auto 1fr auto; } .q-item .q-actions { grid-column: auto; } }
.q-item.serving { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.q-item.muted-row { opacity: 0.55; }
.q-tok { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; font-family: var(--head); }
.q-main { min-width: 0; }
.q-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-main small { color: var(--muted); }
.q-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.q-actions .btn { min-height: 38px; padding: 4px 12px; font-size: 0.84rem; box-shadow: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--brand-strong); text-decoration: none; }
.sched { width: 100%; border-collapse: collapse; }
.sched td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sched input[type="time"] { min-height: 44px; padding: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.seg-mini { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg-mini button { border: 0; background: none; font: inherit; font-size: 0.82rem; font-weight: 700; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg-mini button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.preset-group { margin-top: 10px; }
.preset-group > small { display: block; color: var(--muted); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.pill-list .chip { cursor: pointer; border: 0; font: inherit; font-size: 0.82rem; font-weight: 700; }
.pill-list .chip button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 900; padding: 0 0 0 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }

@media print { .no-print { display: none !important; } body { background: #fff; } }

/* ================= Doctor panel theme (app look) ================= */
.panel-page { background: radial-gradient(900px 480px at 100% -5%, rgba(var(--glow-rgb), 0.2), transparent 60%), linear-gradient(180deg, var(--ice-2) 0%, var(--ice) 100%); min-height: 100vh; }
.panel-page .topbar { background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%); border-bottom: 0; box-shadow: 0 8px 24px rgba(var(--navy-rgb), 0.25); }
.panel-page .topbar a.brand, .panel-page .topbar .brand-text b { color: #fff; }
.panel-page .topbar .brand-text small { color: var(--on-dark); }
.panel-page .topbar .logo { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.panel-page .topbar .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.panel-page .topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.panel-page .card { border-radius: 22px; border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 31, 56, 0.04), 0 14px 34px rgba(15, 31, 56, 0.07); }
.panel-page .card h3 { font-size: 1.05rem; }

/* greeting */
.panel-hero { display: flex; align-items: center; gap: 14px; padding: 22px 0 8px; }
.panel-hero img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(var(--shade-rgb), 0.25); flex: none; }
.panel-hello h1 { font-size: 1.35rem; margin: 0 0 2px; }
.panel-hello p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
@media (min-width: 900px) { .panel-hello h1 { font-size: 1.6rem; } }

/* tabs: segmented on desktop, app bottom bar on phones */
.panel-page .panel-tabs { display: inline-flex; gap: 4px; padding: 6px; margin: 10px 0 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: visible; }
.panel-page .panel-tabs .tab { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 9px 16px; border-radius: 12px; background: none; color: var(--muted); box-shadow: none; }
.panel-page .panel-tabs .tab svg { width: 18px; height: 18px; }
.panel-page .panel-tabs .tab[aria-selected="true"] { background: var(--grad); background-origin: border-box; color: #fff; box-shadow: 0 8px 18px rgba(var(--shade-rgb), 0.3); }
@media (max-width: 759px) {
  .panel-page main { padding-bottom: 110px !important; }
  .panel-page .panel-tabs { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; box-shadow: 0 12px 34px rgba(var(--navy-rgb), 0.22); }
  .panel-page .panel-tabs .tab { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 0.78rem; justify-content: center; }
  .panel-page .panel-tabs .tab svg { width: 22px; height: 22px; }
  .panel-page #settingsForm > div[style*="sticky"] { bottom: 84px !important; }
}

/* now serving hero card */
.panel-page .serving { position: relative; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%), var(--grad); box-shadow: 0 22px 50px rgba(var(--shade-rgb), 0.35); }
.serving-deco { position: absolute; right: -26px; top: -22px; width: 150px; height: 150px; color: rgba(255, 255, 255, 0.1); transform: rotate(18deg); pointer-events: none; }
.serving-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--on-dark-2); background: rgba(255, 255, 255, 0.14); padding: 5px 12px; border-radius: 999px; }
.panel-page .serving .token-num { font-size: 5.6rem; background: none; -webkit-text-fill-color: #fff; color: #fff; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); margin: 10px 0 4px; }
.panel-page .serving .who { color: #fff; font-size: 1.05rem; }
.panel-page .serving #nextHint { color: var(--on-dark-2) !important; }
.panel-page #btnNext { background: #fff; color: var(--blue); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }
.panel-page #btnNext:disabled { opacity: 0.6; }
.panel-page #btnBack { background: rgba(255, 255, 255, 0.16); color: #fff; }
.panel-page #btnBack:hover { background: rgba(255, 255, 255, 0.26); }

/* status buttons fill with their colour when active */
.panel-page .state-btn { border-radius: 16px; background: #fff; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.panel-page .state-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.panel-page .state-btn[aria-pressed="true"] { color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(15, 31, 56, 0.18); }
.panel-page .state-btn[aria-pressed="true"] .dot { background: #fff; box-shadow: none; animation: none; }
.panel-page .state-btn[aria-pressed="true"][data-state="available"] { background: var(--ok); }
.panel-page .state-btn[aria-pressed="true"][data-state="ot"] { background: var(--warn); }
.panel-page .state-btn[aria-pressed="true"][data-state="break"], .panel-page .state-btn[aria-pressed="true"][data-state="notyet"] { background: #d97706; }
.panel-page .state-btn[aria-pressed="true"][data-state="emergency"] { background: var(--danger); }
.panel-page .state-btn[aria-pressed="true"][data-state="done"], .panel-page .state-btn[aria-pressed="true"][data-state="closed"], .panel-page .state-btn[aria-pressed="true"][data-state="leave"] { background: #64748b; }

/* stats & queue */
.panel-page #bookingCard .stat { background: var(--ice-2); }
.panel-page #stWaiting { color: #d97706; }
.panel-page #stDone { color: var(--ok); }
.panel-page .q-item { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-sm); }
.panel-page .q-tok { background: var(--grad); color: #fff; }
.panel-page .q-item.serving { background: linear-gradient(90deg, var(--ok-soft), #fff 60%); }
.panel-page .q-item.serving .q-tok { background: var(--ok); }

/* sign-in card */
.login-card { margin: 40px auto; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 31, 56, 0.14); }
.login-top { position: relative; overflow: hidden; text-align: center; padding: 34px 20px 26px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 60%), var(--grad); }
.login-top img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid rgba(255, 255, 255, 0.85); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.login-top h1 { color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.login-top p { margin: 0; color: var(--on-dark-2); font-weight: 600; font-size: 0.92rem; }
.login-deco { position: absolute; left: -24px; bottom: -30px; width: 140px; height: 140px; color: rgba(255, 255, 255, 0.1); transform: rotate(-20deg); }
.login-body { padding: 22px; }
.login-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.login-points li { position: relative; padding-left: 30px; font-weight: 600; color: var(--navy); }
.login-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 0.8rem; font-weight: 800; }
@media (max-width: 480px) { .panel-hello h1 { font-size: 1.15rem; } .panel-hello p { font-size: 0.85rem; } .panel-hero img { width: 50px; height: 50px; } }


/* ================= Theme options: <html data-theme="teal|maroon|indigo"> ================= */
html[data-theme="teal"] {
  --navy: #042f2e; --navy-2: #0b4d47; --deep: #0b4d47;
  --blue: #0f766e; --blue-2: #0d9488; --sky: #2dd4bf;
  --ice: #e3f6f2; --ice-2: #f2fbf9; --brand-soft: #dcf3ee; --brand-strong: #0b5c55;
  --accent: #c99a12; --accent-soft: #fbf1d5; --accent-rgb: 201, 154, 18;
  --shade-rgb: 15, 118, 110; --glow-rgb: 45, 212, 191; --navy-rgb: 4, 47, 46;
  --line: #d9ebe7; --line-strong: #b5e1d8; --on-dark: #b9e4dc; --on-dark-2: #d9f3ee;
  --bubble-1: #effaf7; --bubble-2: #e1f5f0; --bubble-line: #c4e9e0; --tile-bg: #d9ebe7;
  --ink: #0d2421; --muted: #4d6662;
}
html[data-theme="maroon"] {
  --navy: #3f0d16; --navy-2: #6b1424; --deep: #5c1220;
  --blue: #9f1d35; --blue-2: #be2443; --sky: #f0627e;
  --ice: #fdecee; --ice-2: #fff7f6; --brand-soft: #fbe3e7; --brand-strong: #7c1529;
  --accent: #c58a14; --accent-soft: #fbf0d9; --accent-rgb: 197, 138, 20;
  --shade-rgb: 159, 29, 53; --glow-rgb: 240, 98, 126; --navy-rgb: 63, 13, 22;
  --line: #f0e1e0; --line-strong: #eac2c9; --on-dark: #f3c9d1; --on-dark-2: #fbe3e7;
  --bubble-1: #fff5f6; --bubble-2: #fdeaed; --bubble-line: #f4cfd6; --tile-bg: #f1e3e2;
  --ink: #2b1216; --muted: #6e5458; --bg: #fffdfb;
}
html[data-theme="indigo"] {
  --navy: #1e1b4b; --navy-2: #312e81; --deep: #312e81;
  --blue: #4f46e5; --blue-2: #6366f1; --sky: #a78bfa;
  --ice: #eef0ff; --ice-2: #f7f7ff; --brand-soft: #e8e9ff; --brand-strong: #3730a3;
  --accent: #f43f5e; --accent-soft: #ffe4e8; --accent-rgb: 244, 63, 94;
  --shade-rgb: 79, 70, 229; --glow-rgb: 167, 139, 250; --navy-rgb: 30, 27, 75;
  --line: #e4e6f5; --line-strong: #cfd2fb; --on-dark: #c7c9f6; --on-dark-2: #e0e1fd;
  --bubble-1: #f5f5ff; --bubble-2: #ebecff; --bubble-line: #d7d9fb; --tile-bg: #e4e6f5;
  --ink: #17153a; --muted: #5b5d7a;
}

/* Theme picker shown only for review links (?themes) */
.theme-picker { position: fixed; z-index: 90; left: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 31, 56, 0.22); font-size: 0.82rem; }
.theme-picker b { font-family: var(--head); color: var(--navy); padding: 0 4px; }
.theme-picker button { display: flex; align-items: center; gap: 8px; border: 2px solid transparent; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.theme-picker button span { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.theme-picker button[aria-pressed="true"] { border-color: var(--blue); background: var(--brand-soft); }
@media (min-width: 1060px) { .theme-picker { bottom: 24px; } }
