/* v16 design: same palette, more depth + motion. Light: CSS transforms/opacity only. */
:root { --cyan: #13b5b1; --mint: #e9f8f8; --shadow: 0 10px 30px rgba(22,50,74,.10); --shadow2: 0 18px 40px rgba(14,124,134,.18); }
body { background: linear-gradient(180deg, #f3fbfb 0, #fff 340px); }
header.top { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(22,50,74,.06), 0 8px 24px rgba(22,50,74,.06); }
main { padding-top: 10px; }
/* hero */
.heroMain { position: relative; overflow: hidden; border: 0; border-radius: 26px; padding: 26px 20px 30px; color: #fff; background: linear-gradient(140deg, var(--navy) 0%, #0e6b80 48%, var(--cyan) 100%); box-shadow: var(--shadow2); }
.heroMain h1 { color: #fff; font-size: 26px; line-height: 1.35; position: relative; }
.heroMain .sub { color: rgba(255,255,255,.88); position: relative; }
.heroMain label { color: rgba(255,255,255,.85); position: relative; }
.heroMain input, .heroMain select { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.12); position: relative; }
.heroMain .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(4px); }
.heroMain .chip.on { background: #fff; color: var(--teal); border-color: #fff; }
.heroMain .btn { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.18); position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.blob.b1 { width: 160px; height: 160px; top: -50px; inset-inline-start: -40px; background: radial-gradient(circle at 30% 30%, #7ff0e8, transparent 70%); }
.blob.b2 { width: 220px; height: 220px; bottom: -90px; inset-inline-end: -70px; background: radial-gradient(circle at 40% 40%, #5fd0ff, transparent 70%); animation-delay: -4s; }
.ecg { position: absolute; inset-inline: 0; top: 16px; width: 100%; height: 60px; opacity: .35; pointer-events: none; }
.ecg path { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: ecg 3.6s ease-in-out infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 520; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -520; } }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14px,-18px) scale(1.08); } }
/* secondary hero cards */
.hero.hc { position: relative; overflow: hidden; background: #fff; border: 1px solid #e3f1f2; border-radius: 22px; box-shadow: var(--shadow); padding-inline-start: 22px; }
.hero.hc::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: linear-gradient(180deg, var(--teal), var(--cyan)); }
h2 { position: relative; padding-inline-start: 14px; }
h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 5px; height: 20px; margin-top: -10px; border-radius: 3px; background: linear-gradient(180deg, var(--teal), var(--cyan)); }
.hero h2::before { display: none; } .hero h2 { padding-inline-start: 0; }
/* chips and buttons */
.chip { transition: transform .18s ease, box-shadow .18s ease, background .2s; }
.chip:active, .btn:active, .dbtn:active { transform: scale(.95); }
.btn { background: linear-gradient(135deg, var(--teal), #0a98a3); box-shadow: 0 8px 18px rgba(14,124,134,.28); transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden; }
.btn.sec { background: #fff; box-shadow: none; }
#quickSpecs .chip { box-shadow: 0 4px 12px rgba(22,50,74,.07); border-color: #e3f1f2; }
/* doctor cards */
.card.doc { position: relative; border: 1px solid #e6f1f2; border-radius: 20px; box-shadow: var(--shadow); background: #fff; transition: transform .22s ease, box-shadow .22s ease; padding: 16px; }
.card.doc::after { content: ''; position: absolute; inset-block: 16px; inset-inline-end: 0; width: 4px; border-radius: 4px 0 0 4px; background: linear-gradient(180deg, var(--teal), var(--cyan)); }
.card.doc:active { transform: scale(.985); }
@media (hover:hover) { .card.doc:hover, .acard:hover { transform: translateY(-4px); box-shadow: var(--shadow2); } }
.avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(19,181,177,.45); }
.dbtn { background: linear-gradient(135deg, var(--teal), var(--cyan)); border-radius: 999px; padding: 10px 24px; }
/* articles as a swipe carousel */
.articles { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.articles::-webkit-scrollbar { display: none; }
.acard { flex: 0 0 82%; scroll-snap-align: center; border: 0; border-radius: 22px; box-shadow: var(--shadow); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
@media (min-width: 700px) { .articles { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; } .acard { flex: none; } }
.acard .cover { height: 44px; display: flex; font-weight: 700; letter-spacing: .2px; }
/* reveal on scroll and page entrance */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
#app.enter > * { animation: pageIn .45s cubic-bezier(.2,.7,.2,1) both; }
#app.enter > *:nth-child(2) { animation-delay: .06s; } #app.enter > *:nth-child(3) { animation-delay: .12s; } #app.enter > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#chatFab { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 8px 22px rgba(14,124,134,.4), 0 0 0 0 rgba(19,181,177,.45); } 60% { box-shadow: 0 8px 22px rgba(14,124,134,.4), 0 0 0 14px rgba(19,181,177,0); } }
.menu { backdrop-filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
.hero + .hero.hc, .hero.hc + .hero.hc { margin-top: 14px; } .heroMain { margin-bottom: 14px; }
/* v16 round 2: every screen */
.card { border: 1px solid #e6f1f2; border-radius: 20px; box-shadow: var(--shadow); background: #fff; padding: 16px; }
.card.doc .card, .card .card { box-shadow: none; }
a.meta:first-child, #app > a.meta:first-child { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--teal); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 600; margin-bottom: 4px; transition: transform .18s; }
a.meta:first-child:active { transform: scale(.94); }
/* doctor page header */
.card:has(> .doc) { position: relative; overflow: hidden; padding-top: 90px; background: #fff; }
.card:has(> .doc)::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 84px; background: linear-gradient(120deg, var(--navy), var(--cyan)); }
.card:has(> .doc) .doc { margin-top: 0; align-items: flex-start; position: static; }
.card:has(> .doc) .doc .avatar { margin-top: -14px; position: relative; z-index: 2; flex-shrink: 0; }
.card:has(> .doc) .doc .grow { min-width: 0; position: static; }
.card:has(> .doc) .avatar.big, .card:has(> .doc) .avatar { box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(14,124,134,.3); }
.card:has(> .doc) .name { color: var(--navy); }
.card:has(> .doc) .doc .grow { padding-bottom: 2px; }
.verified { background: var(--mint); color: var(--teal); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
/* slots */
.slots .slot, .slot { border-radius: 14px; border: 1.5px solid #bfe5e7; background: #fff; padding: 11px 4px; font-weight: 600; transition: transform .16s ease, background .2s, color .2s, box-shadow .2s; animation: pop .4s cubic-bezier(.2,.8,.2,1) both; }
.slot:nth-child(1) { animation-delay: 0ms } .slot:nth-child(2) { animation-delay: 30ms } .slot:nth-child(3) { animation-delay: 60ms } .slot:nth-child(4) { animation-delay: 90ms } .slot:nth-child(5) { animation-delay: 120ms } .slot:nth-child(6) { animation-delay: 150ms } .slot:nth-child(7) { animation-delay: 180ms } .slot:nth-child(8) { animation-delay: 210ms } .slot:nth-child(n+9) { animation-delay: 240ms }
.slot:active { transform: scale(.92); } .slot.on, .slot.sel, .slot.picked { background: linear-gradient(135deg, var(--teal), var(--cyan)); color: #fff; border-color: transparent; box-shadow: 0 8px 16px rgba(14,124,134,.3); }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(8px); } to { opacity: 1; transform: none; } }
.chip.on { animation: chipOn .28s cubic-bezier(.2,.9,.3,1.4); }
@keyframes chipOn { from { transform: scale(.88); } to { transform: none; } }
/* forms */
input[type=text], input[type=tel], input[type=password], input[type=email], textarea, select { border-radius: 14px; border: 1.5px solid #dcecee; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(19,181,177,.18); }
.heroMain input:focus, .heroMain select:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.note { background: linear-gradient(135deg, #fff8e6, #fdf1d0); border-radius: 14px; }
.chipSt.ok { background: var(--mint); color: var(--teal); }
.chips a.chip { text-decoration: none; }
#chatPanel { border-radius: 22px; box-shadow: var(--shadow2); animation: panelIn .3s cubic-bezier(.2,.8,.2,1); transform-origin: bottom right; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.menu { animation: menuIn .22s ease; } .menu a { transition: background .2s, transform .15s; } .menu a:active { transform: scale(.97); }
.btn:disabled { opacity: .55; box-shadow: none; }
.card:has(> .doc) .doc { align-items: flex-start; }
.card:has(> .doc) .doc .grow { padding-top: 0; }
.card:has(> .doc) .doc .name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
#revs .stars { color: #f2b01e; letter-spacing: 1px; }

/* centered text in pills/chips/buttons */
.verified, .chip, .btn, .dbtn, .slot, .chipSt, .badge, .tag { display: inline-flex; align-items: center; justify-content: center; line-height: 1.25; text-align: center; }
.verified { padding: 4px 11px; white-space: nowrap; }
.chip { padding-top: 8px; padding-bottom: 8px; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* name + title inside the banner, stacked, centered, white, never under the avatar */
.card:has(> .doc) .doc .grow { position: absolute; top: 0; height: 84px; inset-inline-start: 16px; inset-inline-end: 88px; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; z-index: 1; }
.card:has(> .doc) .doc .name { position: static; height: auto; display: block; margin: 0; color: #fff !important; font-size: 18px; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.card:has(> .doc) .doc .grow .meta { color: rgba(255,255,255,.92) !important; font-size: 13px; line-height: 1.3; margin: 0; }
.v17ba { border-inline-start: 3px solid #13b5b1; padding-inline-start: 10px; margin: 4px 0 10px; }
.v17ba > div:last-child { font-weight: 700; }
details.card > summary { cursor: pointer; }
input[type=time], input[type=file] { width: 100%; box-sizing: border-box; border-radius: 14px; border: 1.5px solid #dcecee; padding: 10px 12px; background: #fff; }

.dayhrs{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.dayrow{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #d6e4ea;border-radius:12px;background:#f7fafb;opacity:.6}
.dayrow.on{opacity:1;background:#fff;border-color:#0f9aa8}
.dayrow .dcb{flex:0 0 78px;margin:0;font-weight:700;display:flex;align-items:center;gap:6px}
.dayrow .dcb input{width:auto;margin:0}
.dayrow select{flex:1;min-width:0;margin:0;padding:6px 4px;font-size:14px}
.dayrow span{font-size:13px;color:#667}

.stfActs{display:flex;gap:10px;margin:14px 0 4px;flex-wrap:wrap}
.stfBtn{flex:1 1 140px;display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;border-radius:14px;border:1.5px solid var(--teal);background:#fff;color:var(--teal);font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;text-align:center}
.stfBtn.alt{background:var(--teal);color:#fff}

/* v19.0.2 polish: one font everywhere, steadier buttons, calmer motion */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea, a { font-family: inherit; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.35; }
.btn, .stfBtn { min-height: 46px; font-size: 15px; font-weight: 700; }
.btn:focus-visible, .chip:focus-visible, .stfBtn:focus-visible, a:focus-visible, .slot:focus-visible { outline: 3px solid rgba(19,181,177,.45); outline-offset: 2px; }
@media (hover: hover) { .btn:hover, .stfBtn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(14,124,134,.32); } .chip:hover { box-shadow: 0 4px 12px rgba(14,124,134,.16); } .card.doc:hover { transform: translateY(-2px); } }
.stfBtn { transition: transform .18s ease, box-shadow .2s, background .2s; }
.stfBtn:active { transform: scale(.97); }
.error { font-size: 14px; margin: 6px 0; }
.note { line-height: 1.7; }
select { font-size: 15px; }
input[type=text], input[type=tel], input[type=password], input[type=email], textarea, select { font-size: 16px; } /* 16px stops iOS zoom on focus */
