/* ============================================================================
   پوستهٔ «آرام و روشن» — اصل‌های رابط بومی اپل + حال‌وهوای آرام و محیطی:
   فضای خالی فراوان، گرادیان نرم ارگانیک، شفافیت ظریف، تایپوگرافی آرام،
   نور طبیعی و حرکت تقریباً نامحسوس. این فایل باید آخر از همه بارگذاری شود.
   ============================================================================ */
:root {
  --bg: #ece5d9; --cream: #f1eadf; --cream2: #e6ddcf; --ivory: rgba(250, 246, 239, .72);
  --card: rgba(250, 246, 239, .72); --surface-2: rgba(255, 255, 255, .5);
  --forest: #232b26; --forest2: #1a201c; --forest3: #2f3832;
  --ink: #2a2620; --foreground: #2a2620; --mut: #7d7467; --muted-foreground: #7d7467;
  --line: rgba(86, 70, 46, .14); --border: rgba(86, 70, 46, .14);
  --gold: #a8844a; --gold-l: #c9ae7a; --gold-d: #8a6c38; --accent: #a8844a;
  --err: #b4534b; --ok: #3f8a6c; --warn: #b9812d; --orange: #f0813a;
  --r: 22px;
  --sh1: 0 1px 1px rgba(90, 70, 40, .04), 0 10px 28px rgba(90, 70, 40, .09);
  --sh2: 0 2px 4px rgba(90, 70, 40, .06), 0 22px 50px rgba(90, 70, 40, .14);
  --glass: rgba(250, 246, 239, .66); --glass-b: rgba(255, 255, 255, .62);
  --glow-gold: 0 0 0 1px rgba(168, 132, 74, .12);
}
html { background: var(--bg); }
body {
  background-color: var(--bg); color: var(--ink); font-weight: 400; background-size: auto; background-image: none; position: relative;
}
/* نور طبیعی: دو لکهٔ بزرگ و کم‌رنگ که بسیار آهسته جابه‌جا می‌شوند */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); }
body::before { width: 80vmax; height: 80vmax; inset-inline-end: -30vmax; top: -34vmax; background: radial-gradient(circle, rgba(255, 223, 168, .6), transparent 66%); animation: drift1 48s ease-in-out infinite alternate; }
body::after { width: 70vmax; height: 70vmax; inset-inline-start: -34vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(116, 128, 98, .34), transparent 66%); animation: drift2 60s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.05); } }
@keyframes drift2 { to { transform: translate3d(5vmax, -4vmax, 0) scale(1.08); } }
html.rm body::before, html.rm body::after { animation: none; }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.005em; }
a { color: var(--forest); }
a:hover { color: var(--gold-d); }
.kicker { color: var(--gold-d); letter-spacing: .3em; font-size: .68rem; font-weight: 600; direction: ltr; text-align: start; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: none; }
::selection { background: rgba(168, 132, 74, .25); }
.noscript, .loading { color: var(--mut); }
.skip { background: var(--forest); color: var(--cream); }
.test-banner { background: rgba(255, 255, 255, .55); color: var(--mut); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; font-size: .72rem; }
.test-banner p { margin: 0; flex: 1; }
.test-banner .bx { position: static; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mut); cursor: pointer; }

/* ---------- دکمه‌ها: قرص تیره، ثانویه شیشه‌ای ---------- */
.btn, .btn.gold, .btn.primary {
  background: var(--forest); border: 1px solid var(--forest); color: #f4efe6; font-weight: 600; border-radius: 999px;
  min-height: 52px; padding: 10px 28px; box-shadow: 0 10px 24px rgba(35, 43, 38, .22);
}
.btn:hover, .btn.gold:hover, .btn.primary:hover { background: var(--forest3); border-color: var(--forest3); box-shadow: 0 14px 30px rgba(35, 43, 38, .3); color: #fff; }
.btn.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-b); box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: var(--sh1); }
.btn.outl { background: transparent; color: var(--ink); border: 1px solid rgba(35, 43, 38, .3); box-shadow: none; }
.btn.danger { background: transparent; border-color: rgba(180, 83, 75, .4); color: var(--err); box-shadow: none; }
.btn.danger:hover { background: rgba(180, 83, 75, .1); color: var(--err); }
.btn.sm { min-height: 40px; padding: 6px 18px; font-size: .88rem; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; box-shadow: none; }

/* ---------- سربرگ و پابرگ ---------- */
.pub-head { background: rgba(236, 229, 217, .7); color: var(--ink); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid transparent; }
.pub-head.scrolled { background: rgba(240, 233, 222, .86); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(90, 70, 40, .08); }
.brand, .brand span { color: var(--ink); }
.brand img { filter: none; opacity: .9; }
.pub-nav a:not(.btn) { color: var(--ink); opacity: .8; font-size: .95rem; }
.pub-nav a:not(.btn):hover, .pub-nav a[aria-current=page] { background: rgba(255, 255, 255, .6); opacity: 1; box-shadow: none; }
.nav-toggle { color: var(--ink); border: 1px solid var(--line); background: var(--glass); border-radius: 14px; min-width: 44px; min-height: 44px; }
.pub-foot { background: transparent; color: var(--mut); box-shadow: inset 0 1px 0 var(--line); }
.pub-foot p { color: var(--mut); }
.pub-foot strong { color: var(--ink); font-weight: 600; }

/* ---------- سطح‌های شیشه‌ای ---------- */
.card, .item, .stat, .tbl-wrap, .auth, .cal .day, .chart-wrap, .visit, .picked-row, .faq details, .case-card, details, dialog {
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
.card, .item, .stat, .auth, .case-card { border-radius: var(--r); }
.card:hover, .item:hover { border-color: rgba(255, 255, 255, .9); box-shadow: var(--sh2); }
.stat { border-inline-start: 0; }
.stat b { color: var(--ink); font-weight: 600; }
.stat span { color: var(--mut); }
.item.unread { border-inline-start: 0; box-shadow: var(--sh1), inset 0 0 0 1.5px rgba(168, 132, 74, .45); }
.sect.alt { background: transparent; }
.tbl-wrap { background: var(--glass); border-radius: 20px; }
th { background: rgba(255, 255, 255, .55); box-shadow: 0 1px 0 var(--line); color: var(--mut); font-weight: 600; }
th, td { border-bottom-color: var(--line); }
tbody tr:hover { background: rgba(255, 255, 255, .5); }
.cal .day div { border-top: 1px solid var(--line); }
.cal .day.today { border-color: var(--gold); }
.cal .day h4 { color: var(--gold-d); }
.empty { background: rgba(255, 255, 255, .4); border: 1px dashed rgba(86, 70, 46, .25); border-radius: 22px; color: var(--mut); }
.empty:before { background: var(--gold-l); }
.auth { border-top: 1px solid var(--glass-b); padding: 32px; }
.photos img { background: var(--cream2); border-color: var(--line); }

/* ---------- فرم‌ها ---------- */
input, select, textarea { background: rgba(255, 255, 255, .62); border: 1px solid rgba(86, 70, 46, .2); color: var(--ink); border-radius: 16px; }
input::placeholder, textarea::placeholder { color: #a39b8d; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 132, 74, .16); background: #fff; }
.field label { color: var(--ink); font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--mut); }
select option { background: #f6f1e8; color: var(--ink); }

/* ---------- چیپ‌ها و گام‌ها ---------- */
.chip { background: rgba(255, 255, 255, .55); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; }
.chip:hover { background: #fff; }
.chip[aria-pressed=true], .chip[aria-checked=true] { background: var(--forest); border-color: var(--forest); color: #f4efe6; box-shadow: 0 8px 18px rgba(35, 43, 38, .22); }
.stepper li { border-bottom: 2px solid var(--line); color: var(--mut); }
.stepper li[aria-current=step], .stepper li.done { color: var(--ink); }
.stepper:after { background: var(--forest); height: 2px; }
.check circle { stroke: var(--gold); } .check path { stroke: var(--forest); }
.opt { border-color: var(--line); }

/* ---------- نشان‌ها، هشدارها، توست ---------- */
.badge { background: rgba(255, 255, 255, .6); border: 1px solid var(--line); color: var(--mut); }
.badge.pending, .badge.new, .badge.planned, .badge.reschedule { background: rgba(233, 190, 110, .22); border-color: rgba(185, 129, 45, .3); color: #8a5e17; }
.badge.confirmed, .badge.in_progress, .badge.reviewing { background: rgba(120, 160, 205, .2); border-color: rgba(70, 110, 160, .28); color: #2f5a88; }
.badge.done, .badge.answered, .badge.paid { background: rgba(110, 175, 140, .22); border-color: rgba(63, 138, 108, .3); color: #2b6a4f; }
.badge.cancelled, .badge.no_show, .badge.closed, .badge.failed { background: rgba(205, 120, 110, .2); border-color: rgba(180, 83, 75, .3); color: #8e3a33; }
.badge.need_info, .badge.deferred, .badge.refunded { background: rgba(160, 130, 200, .2); border-color: rgba(120, 90, 160, .28); color: #5e3f86; }
.badge.unread { background: var(--forest); border-color: var(--forest); color: #f4efe6; }
.alert { border-radius: 18px; }
.alert.err { background: rgba(205, 120, 110, .16); border-color: rgba(180, 83, 75, .3); color: #8e3a33; }
.alert.ok { background: rgba(110, 175, 140, .18); border-color: rgba(63, 138, 108, .3); color: #2b6a4f; }
.alert.info { background: rgba(255, 255, 255, .55); border-color: var(--line); color: var(--ink); }
.toast { background: var(--forest); color: #f4efe6; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 18px 44px rgba(35, 43, 38, .35); }
.toast.err { background: var(--err); }
.sk { background: linear-gradient(100deg, rgba(255,255,255,.35) 35%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.35) 65%); background-size: 220% 100%; }
dialog { border-radius: 28px; color: var(--ink); background: rgba(247, 242, 234, .9); box-shadow: 0 40px 90px rgba(60, 45, 25, .28); }
dialog::backdrop { background: rgba(60, 52, 40, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { color: var(--ink); }

/* ---------- منوی پنل: شیشهٔ سبز تیره، مثل آخرین صفحهٔ کانسپت ---------- */
.side-nav { background: linear-gradient(180deg, rgba(48, 58, 51, .96), rgba(26, 32, 28, .98)); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); color: #f1ece2; }
.side-nav .brand { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side-nav .brand, .side-nav .brand span { color: #f1ece2; }
.side-nav a.nav { color: #e5dfd2; border-radius: 14px; }
.side-nav a.nav:hover { background: rgba(255, 255, 255, .08); }
.side-nav a.nav[aria-current=page] { background: rgba(255, 255, 255, .92); color: var(--forest); }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .1); }
.side-foot small { color: #b5ad9f; }
.side-nav .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #f1ece2; box-shadow: none; }
.menu-btn.btn.ghost { color: var(--ink); }

/* ---------- صفحهٔ خدمت ---------- */
.svc-hero { background: transparent; }
.svc-hero::after { display: none; }
.svc-hero h1 { color: var(--ink); font-weight: 500; }
.svc-hero .lead { color: var(--mut); }
.svc-hero .back { color: var(--gold-d); }
.svc-hero .kgold, .kicker.kgold { color: var(--gold-d); }
.svc-copy p, .reveal-text { color: #4a443a; }
.reveal-text .w.gold { color: var(--gold-d); font-weight: 700; }
.svc-rule { background: linear-gradient(90deg, transparent, rgba(168, 132, 74, .5), transparent); }
.facts, .facts dt, .facts dd { border-color: var(--line); }
.facts dt { color: var(--mut); } .facts dd { color: var(--ink); }
.svc-side { padding: 20px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1); }
.svc-side h2 { color: var(--ink); } .svc-side p, .svc-side .muted { color: #5c5548; }
.faq details { border-radius: 20px; }
.faq details[open] { border-color: rgba(168, 132, 74, .45); box-shadow: var(--sh1); }
.faq details p { color: #5c5548; }
.faq summary { color: var(--ink); }
.faq summary:before { border-color: var(--gold); }
.case-body p { color: #5c5548; }

/* ---------- نمای فک / قبل و بعد: قاب «عکس» تیرهٔ گرم داخل صفحهٔ روشن ---------- */
.jv-tab { background: rgba(255, 255, 255, .5); border: 1px solid var(--line); color: var(--mut); }
.jv-tab:hover { color: var(--ink); border-color: rgba(168, 132, 74, .5); background: #fff; }
.jv-tab[aria-selected=true] { background: var(--forest); border-color: var(--forest); color: #f4efe6; box-shadow: 0 8px 18px rgba(35, 43, 38, .22); }
.jv-stage { border: 1px solid var(--glass-b); box-shadow: var(--sh2); border-radius: 26px; }
.jv-marks-t { color: var(--mut); }
.jv-chip, .tchip { background: rgba(240, 129, 58, .14); border-color: rgba(240, 129, 58, .45); color: #a24a12; }
.tchip b { color: #a24a12; }
.ba-grid .ba-strip { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 28px; padding: 12px; box-shadow: var(--sh1); }
.ba-frame { border-radius: 22px; border: 0; box-shadow: var(--sh1); }
.ba-handle { background: rgba(255, 255, 255, .92); }
.ba-body h3 { color: var(--ink); } .ba-body .meta { color: var(--mut); }
.vdoc-t { color: var(--gold-d); } .vdoc-t::before { background: var(--gold-d); }
.anim-note.doc { border-inline-start: 2px solid var(--gold); background: rgba(168, 132, 74, .07); }
.visit { border-radius: 22px; }
.visit.open { border-color: rgba(168, 132, 74, .45); }
.visit-head:hover { background: rgba(255, 255, 255, .4); }
.visit-date { color: var(--gold-d); }
.visit-count { background: rgba(240, 129, 58, .14); border: 1px solid rgba(240, 129, 58, .4); color: #a24a12; }
.visit-body { display: none; max-height: none; }
.visit.open .visit-body { display: grid; animation: routeIn .45s var(--spring) backwards; }
.chip-sm { background: rgba(255, 255, 255, .6); border-color: var(--line); color: var(--mut); }
.chart-wrap { background: rgba(255, 255, 255, .4); }
.odonto-b { fill: rgba(255, 255, 255, .6); stroke: rgba(86, 70, 46, .25); }
.odonto-n { fill: var(--mut); } .odonto-q { fill: var(--mut); }
.odonto-t:hover .odonto-b { fill: rgba(240, 129, 58, .2); stroke: rgba(240, 129, 58, .6); }
.odonto-t.on .odonto-b { fill: rgba(240, 129, 58, .8); stroke: #e0701f; }
.odonto-t.on .odonto-n { fill: #fff; }
.picked-n { color: var(--gold-d); }
.icon-btn, .dlg-x, .x { color: var(--mut); border-color: var(--line); background: rgba(255, 255, 255, .5); }
.muted { color: var(--mut); }
.jv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.jv-tabs::-webkit-scrollbar { display: none; }
.jv-tab { flex: none; white-space: nowrap; }

/* ============================================================================
   صفحهٔ اصلی — مثل کانسپت: هدر پزشک، کارت بزرگ، چهار میان‌بر، فهرست خدمات
   ============================================================================ */
.home { max-width: 720px; margin: 0 auto; padding: 18px 18px 40px; display: grid; gap: 18px; }
.home-bar { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, #fbf7ef, #e6dccb); border: 1px solid var(--glass-b); box-shadow: var(--sh1); }
.avatar img { width: 54%; height: auto; filter: brightness(.35) sepia(.5); }
.home-bar .who { flex: 1; min-width: 0; }
.home-bar .who small { display: block; color: var(--mut); font-size: .76rem; }
.home-bar .who b { display: block; font-size: 1.02rem; font-weight: 600; }
.home-bar .who span { color: var(--mut); font-size: .76rem; }
.bell { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-b); color: var(--ink); backdrop-filter: blur(12px); }
.bell svg { width: 20px; height: 20px; }

.home-hero { position: relative; overflow: hidden; border-radius: 30px; min-height: 250px; padding: 26px 22px; color: #fbf6ec; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  background:
    radial-gradient(70% 90% at 12% 18%, rgba(255, 214, 160, .75), transparent 62%),
    radial-gradient(60% 70% at 100% 100%, rgba(98, 112, 86, .75), transparent 66%),
    linear-gradient(140deg, #b8997a, #7e6a55 55%, #5d5446);
  box-shadow: var(--sh2); }
.home-hero .tooth-line { position: absolute; inset-inline-start: -10px; top: 10px; width: 62%; opacity: .2; color: #fff; pointer-events: none; }
.home-hero .tooth-line svg { width: 100%; height: auto; display: block; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 244, 220, .22) 48%, transparent 58%); transform: translateX(-30%); animation: sheen 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sheen { to { transform: translateX(30%); } }
html.rm .home-hero::before { animation: none; }
.home-hero h1 { position: relative; margin: 0; font-size: clamp(1.5rem, 5.4vw, 2.3rem); font-weight: 300; line-height: 1.7; color: #fffaf0; text-shadow: 0 2px 20px rgba(60, 40, 20, .35); }
.home-hero h1 em { font-style: normal; font-weight: 600; }
.home-hero .go { position: relative; align-self: flex-start; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(10px); transition: transform .5s var(--spring), background-color .2s ease; }
.home-hero .go:hover { background: rgba(255, 255, 255, .34); transform: translateX(-4px); color: #fff; }
.home-hero .go svg { width: 22px; height: 22px; transform: scaleX(-1); }

.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sc { display: grid; justify-items: center; gap: 12px; padding: 22px 12px 18px; border-radius: 24px; text-decoration: none; color: var(--ink); text-align: center;
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1); backdrop-filter: blur(16px); transition: transform .5s var(--spring), box-shadow .3s ease; }
.sc:hover { transform: translateY(-3px); box-shadow: var(--sh2); color: var(--ink); }
.sc svg { width: 30px; height: 30px; stroke-width: 1.4; }
.sc span { font-size: .9rem; font-weight: 500; }

.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 14px 2px -4px; }
.sec-h h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.sec-h .kicker { margin: 0 0 2px; }
.svc-list { display: grid; gap: 12px; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1); backdrop-filter: blur(16px); transition: transform .5s var(--spring), box-shadow .3s ease; }
.svc-row:hover { transform: translateY(-3px); box-shadow: var(--sh2); color: var(--ink); }
.svc-row .t { flex: 1; min-width: 0; padding-inline-start: 6px; }
.svc-row h3 { margin: 0 0 3px; font-size: 1rem; font-weight: 600; }
.svc-row p { margin: 0; color: var(--mut); font-size: .78rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-thumb { flex: none; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, #efe6d8, #d8cbb6); }
.svc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-row { height: 104px; border-radius: 24px; background: linear-gradient(100deg, rgba(255,255,255,.35) 35%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.35) 65%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }

.steps-lux { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.steps-lux li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1); backdrop-filter: blur(16px); }
.steps-lux .n { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #f4efe6; font-weight: 600; }
.steps-lux h3 { margin: 0 0 4px; font-size: .98rem; } .steps-lux p { margin: 0; color: var(--mut); font-size: .86rem; }
.doc-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh1); backdrop-filter: blur(16px); }
.doc-card .avatar { width: 72px; height: 72px; }
.doc-card h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 500; } .doc-card p:not(.kicker) { margin: 0; color: var(--mut); font-size: .88rem; }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .72rem; color: var(--mut); background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }

/* ---------- نوار پایین شناور و شیشه‌ای ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; padding: 8px; border-radius: 28px;
    background: rgba(248, 243, 235, .78); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 40px rgba(70, 52, 28, .18);
    -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
  .tabbar:not(.portal-tabbar) { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .tabbar:not(.portal-tabbar) a { min-width: 0; padding-inline: 1px; font-size: .61rem; white-space: nowrap; }
  .tabbar:not(.portal-tabbar) svg { width: 20px; height: 20px; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; min-height: 52px; border-radius: 20px; color: #a0978a; text-decoration: none; font-size: .68rem; font-weight: 500; transition: color .25s ease, background-color .25s ease; }
  .tabbar:not(.portal-tabbar) a { padding-inline: 1px; font-size: .61rem; }
  .tabbar a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .7); }
  .tabbar svg { stroke-width: 1.4; }
  .pub-nav { display: none; }
  .pub-menu-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(25,35,29,.5); backdrop-filter: blur(3px); }
  body.public-menu-open { overflow: hidden; }
  body.public-menu-open .pub-head:has(.pub-nav.open) { display: contents; }
  body.public-menu-open .pub-head .in { display: contents; }
  body.public-menu-open .pub-head .brand, body.public-menu-open .pub-head .nav-toggle { display: none; }
  .pub-nav.open { display: flex; position: fixed; z-index: 102; inset: 0 0 0 auto; width: min(86vw, 350px); padding: 90px 24px 110px; flex-direction: column; gap: 8px; overflow-y: auto; border: 0; background: linear-gradient(160deg, #354238, #1a211c); box-shadow: -20px 0 70px rgba(26,32,28,.35); }
  .pub-nav.open a, .pub-nav.open a:not(.btn) { display: block; color: #f5efe3; opacity: 1; padding: 12px 16px; border-radius: 16px; text-decoration: none; }
  .pub-nav.open a[aria-current=page], .pub-nav.open a:hover { background: rgba(255,255,255,.12); }
  .pub-nav.open .btn.outl { border-color: rgba(255,255,255,.4); }
  .nav-toggle { display: grid; place-items: center; position: relative; z-index: 91; }
  .home-menu { position: relative; cursor: pointer; }
  body.public-menu-open .pub-menu-scrim:not([hidden]){animation:public-scrim-in .55s ease both}
  body.public-menu-open .pub-nav.open{transform-origin:100% 50%;animation:public-menu-curve-in .8s cubic-bezier(.76,0,.24,1) both}
  body.public-menu-open .pub-nav.open.closing{animation:public-menu-curve-out .55s cubic-bezier(.76,0,.24,1) both}
  @keyframes public-menu-curve-in{from{opacity:.65;transform:translateX(105%) scaleX(.84);border-radius:55% 0 0 55%}to{opacity:1;transform:translateX(0) scaleX(1);border-radius:0}}
  @keyframes public-menu-curve-out{from{opacity:1;transform:translateX(0) scaleX(1);border-radius:0}to{opacity:.65;transform:translateX(105%) scaleX(.84);border-radius:55% 0 0 55%}}
  @keyframes public-scrim-in{from{opacity:0}to{opacity:1}}
  @media(prefers-reduced-motion:reduce){body.public-menu-open .pub-nav.open,body.public-menu-open .pub-nav.open.closing,body.public-menu-open .pub-menu-scrim:not([hidden]){animation:none}}
  .home-bar .bell, .home-bar .home-menu { width: 42px; height: 42px; flex: none; }
  .home-bar { gap: 8px; }
  .home-bar .who b { font-size: .88rem; }
  .pub-head .in { justify-content: space-between; }
  .brand span { display: inline; font-size: .85rem; }
  .pub-foot { padding-bottom: 40px; }
  .toasts { bottom: 100px; }
  .wrap, .svc-hero .in { padding-inline: 18px; }
  .page-pad.wrap { padding-inline: 18px; }
}
@media (min-width: 861px) {
  .home { max-width: 1040px; grid-template-columns: 1fr; padding-top: 28px; }
  .shortcuts { grid-template-columns: repeat(4, 1fr); }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .home-hero { min-height: 340px; padding: 40px; }
}
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding-top: 12px; }

/* صفحهٔ اصلی هدر خودش را دارد؛ هدر عمومی روی موبایل تکراری است */
@media (max-width: 860px) {
  body:has(.home) .pub-head { display: none; }
  body:has(.home) .pub-head:has(.pub-nav.open) { display: contents; }
  .test-banner { padding: 4px 10px; }
  .test-banner p { font-size: .68rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}
.home-hero { min-height: 280px; }

.svc-thumb { width: 92px; height: 92px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.auth { border-top: 1px solid var(--glass-b) !important; }
.empty:before, .auth:before { display: none; }
.pub-head .in { border-bottom: 0; }
.svc-photo { margin: 16px 0 26px; position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--sh1); }
.svc-hero-photo { display: block; width: 100%; height: clamp(190px, 45vw, 420px); object-fit: cover; }
.svc-photo figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; background: rgba(23,32,26,.83); color: #fff; border-radius: 10px; padding: 6px 12px; font-size: .76rem; }
.service-photo-current { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.service-photo-current img { max-width: 180px; max-height: 115px; object-fit: cover; border-radius: 12px; }
.svc-hero { border: 0; box-shadow: none; }
.hero-meta { color: var(--mut); text-align: center; font-size: .78rem; }

/* رزرو نوبت: سطح Configure، انتخاب خدمت با تصویرسازی و روند سه‌گام */
.book-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.book-wizard { max-width: 760px; margin: 0 auto; }
.book-layout { overflow: hidden; border-radius: 30px; background: #f3eee6; box-shadow: var(--sh1); }
.book-banner { min-height: 210px; display: flex; flex-direction: column; justify-content: end; align-items: flex-start; padding: 28px 28px 42px; color: #faf5eb; background: linear-gradient(90deg,rgba(22,40,29,.9),rgba(24,43,32,.6)), url('/assets/booking-leaves.jpg') center 46% / cover, #506b57; }
.book-banner-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; margin-bottom: 8px; }
.book-banner h2 { color: inherit; font-size: 1.7rem; line-height: 1.4; margin: 0; }
.book-banner p { margin: 4px 0 0; color: #f6f0e3; font-size: .92rem; }
.book-panel { position: relative; margin-top: -20px; padding: 24px 22px 30px; border-radius: 28px 28px 0 0; background: #f4efe7; }
.book-steps { display: grid; grid-template-columns: repeat(3,1fr); padding: 0 0 19px; margin: 0 0 18px; gap: 8px; list-style: none; border-bottom: 1px solid var(--line); }
.book-steps:after { display: none; }
.book-steps li { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 0 0 8px; border-bottom: 2px solid transparent; font-size: .82rem; color: var(--mut); }
.book-steps li[aria-current=step] { color: var(--forest); border-color: var(--forest); font-weight: 700; }
.book-steps li.done { color: var(--forest); }
.book-step-num { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 50%; background: #e5ded2; color: #766d60; }
.book-steps [aria-current=step] .book-step-num, .book-steps .done .book-step-num { background: var(--forest); color: #fff; }
.book-step-body h3 { font-size: 1.08rem; margin: 0 0 14px; }
.book-services { display: grid; gap: 10px; }
.book-service { width: 100%; min-height: 86px; display: flex; align-items: center; gap: 12px; text-align: right; font: inherit; color: var(--ink); padding: 8px 10px 8px 15px; border-radius: 18px; border: 1px solid rgba(86,70,46,.12); background: #faf7f0; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.book-service:hover { background: #fff; transform: translateY(-1px); }
.book-service[aria-checked=true] { border-color: var(--forest); background: #f3f5ef; }
.book-radio { flex: none; width: 25px; height: 25px; border: 2px solid #66746a; border-radius: 50%; display: grid; place-items: center; }
.book-service[aria-checked=true] .book-radio { background: var(--forest); border-color: var(--forest); }
.book-service[aria-checked=true] .book-radio:after { content: '✓'; color: white; font-size: .78rem; }
.book-service-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.book-service-text strong { font-weight: 600; line-height: 1.55; font-size: .92rem; }
.book-service-text small { font-size: .8rem; color: #675e52; }
.book-service-art { flex: none; width: 72px; height: 68px; overflow: hidden; border-radius: 14px; background: #e7dace; }
.book-service-art svg, .book-service-art img { width: 100%; height: 100%; display: block; }
.book-service-art img { object-fit: cover; }
.book-credits { margin-top: 18px; padding: 12px 14px; box-shadow: none; font-size: .72rem; color: var(--mut); }
.book-credits summary { cursor: pointer; }
.book-credits p { line-height: 1.9; }
.book-next { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.book-next span { font-size: 1.25rem; }
@media(max-width:860px) { .book-wizard { margin-inline: -18px; } .portal-shell .book-wizard { margin-inline: -16px; } .portal-shell .content:has(.book-wizard) { padding-top: 0; } .portal-shell .content:has(.book-wizard) > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .book-layout { border-radius: 0; box-shadow: none; } .book-banner { min-height: 192px; padding: 22px 26px 38px; } .book-panel { padding: 22px 18px 32px; } }
@media(max-width:380px) { .book-service-art { width: 62px; } .book-service-text strong { font-size: .83rem; } }
/* Booking date: compact Persian calendar and full-day time choices. */
.book-date-step { max-width: 640px; margin-inline: auto; }
.book-date-step > h2 { font-size: clamp(1.25rem, 4.8vw, 1.75rem); margin: 4px 0 6px; }
.book-eyebrow { color: #8c6e42; letter-spacing: .025em; font-size: .81rem; font-weight: 750; margin: 0; }
.book-date-step > .meta { line-height: 1.9; margin: 4px 0 20px; }
.book-calendar { padding: 16px; background: #fffdf9; border: 1px solid #e7dece; border-radius: 22px; box-shadow: 0 10px 28px rgba(71,62,43,.045); min-width: 0; }
.book-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 12px; border-bottom: 1px solid #e7dece; color: #263e37; }
.book-calendar-header strong { font-size: 1.08rem; }
.book-month-arrow { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; border: 1px solid #dfd8c9; background: #f7f3ec; color: #305146; font: inherit; font-size: 1.2rem; cursor: pointer; }
.book-month-arrow:disabled { opacity: .35; cursor: default; }
.book-calendar-days { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #c8c3b5 transparent; padding: 2px 0 10px; min-width: 0; }
.book-calendar-day { flex: 0 0 calc((100% - 24px) / 7); min-width: 0; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 1px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #344b40; font: inherit; font-weight: 650; cursor: pointer; scroll-snap-align: start; }
.book-calendar-weekday { display: grid; place-items: center; width: 100%; height: 24px; font-size: .82rem; color: #968e7f; font-weight: 500; }
.book-calendar-number { display: grid; place-items: center; width: 44px; height: 44px; max-width: 100%; border-radius: 12px; font-size: 1rem; }
.book-calendar-day:hover .book-calendar-number { background: #eff3e9; }
.book-calendar-day[aria-pressed=true] .book-calendar-number { background: #274e40; color: #fff; box-shadow: 0 6px 13px #274e4042; }
.book-calendar-day[aria-pressed=true] .book-calendar-weekday { color: #274e40; font-weight: 700; }
.book-calendar-day:focus-visible, .book-time:focus-visible, .book-month-arrow:focus-visible { outline: 3px solid #bb9e69; outline-offset: 2px; }
.book-times-title { font-size: 1.1rem; margin: 24px 0 8px; }
.book-time-section { margin: 13px 0 18px; }
.book-time-section h4 { font-size: .84rem; color: #716e5d; margin: 0 0 8px; }
.book-time-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.book-time { min-height: 44px; padding: 7px 2px; font: inherit; font-size: .88rem; border: 1px solid #dfdbcf; border-radius: 11px; background: #fffdf9; color: #344b40; cursor: pointer; }
.book-time:hover { border-color: #7e9c86; background: #f2f6ef; }
.book-time[aria-pressed=true] { background: #274e40; border-color: #274e40; color: #fff; }
.book-selection { padding: 13px 16px; background: #e9eee3; color: #284337; border-radius: 14px; line-height: 1.7; font-size: .9rem; }
.book-date-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.book-date-actions .book-next { flex: 1; margin: 0; }
@media(max-width:420px) { .book-calendar { padding: 12px; } .book-calendar-days { gap: 4px; } .book-time-grid { gap: 6px; } .book-date-actions { flex-wrap: wrap; } .book-date-actions .book-next { width: auto; } }
.patient-appt-list { display: grid; gap: 12px; }
.patient-appt-card { padding: 18px; border-radius: 17px; background: #fffdf9; border: 1px solid #e6ddcf; }
.patient-appt-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.patient-appt-card p { margin: 6px 0; }
.patient-appt-card .btn { margin-top: 10px; }
.book-block-list { display: grid; gap: 8px; }
.book-block-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-top: 1px solid #e7dece; }
/* Patient record: concept-inspired profile + four clear sections. */
.portal-shell .content:has(.my-record) > h1 { font-size: 1.4rem; margin-bottom: 18px; }
.my-record { max-width: 760px; margin-inline: auto; display: block; }
.my-rec-identity { display: flex; align-items: center; gap: 16px; padding: 15px 4px 22px; }
.my-rec-avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e3e9df; color: #315140; border: 3px solid #faf7ef; box-shadow: 0 3px 14px #3b463922; font-size: 1.55rem; font-weight: 750; object-fit: cover; }
.my-rec-identity h2 { margin: 0 0 5px; font-size: 1.28rem; color: #273c34; }
.my-rec-identity p { margin: 0; color: #766f63; font-size: .87rem; }
.my-rec-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #dfdbd2; margin-bottom: 18px; }
.my-rec-tabs::-webkit-scrollbar { display: none; }
.my-rec-tabs button { flex: 1 0 auto; min-height: 50px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #777166; font: inherit; font-size: .87rem; font-weight: 650; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.my-rec-tabs button[aria-selected=true] { border-color: #2f5041; color: #2f5041; }
.my-rec-tabs button:focus-visible { outline: 2px solid #a78857; outline-offset: -4px; }
.my-rec-panel > h3 { font-size: 1.03rem; margin: 21px 0 12px; }
.my-rec-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.my-rec-stats > div { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 14px 4px; background: #f5f0e8; border: 1px solid #ebe4d9; border-radius: 14px; text-align: center; }
.my-rec-stats b { font-size: 1.35rem; color: #2c483a; }
.my-rec-stats span { font-size: .72rem; color: #615f59; line-height: 1.5; }
.my-rec-next, .my-rec-appt, .my-rec-visit, .my-rec-image { border: 1px solid #e8e2d8; border-radius: 16px; background: #f8f5ef; }
.my-rec-next { padding: 16px; }
.my-rec-next p { margin: 8px 0; }
.my-rec-empty { margin: 10px 0; padding: 23px 17px; border: 1px dashed #d8d0c1; border-radius: 15px; color: #615c51; line-height: 1.8; }
.my-rec-empty a { color: #315341; font-weight: 700; }
.my-rec-history { display: grid; gap: 10px; }
.my-rec-appt { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; padding: 16px; }
.my-rec-appt span:not(.badge) { color: #736d62; }
.my-rec-appt .badge { margin-inline-start: auto; }
.my-rec-visit { overflow: hidden; }
.my-rec-visit summary { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 13px 15px; cursor: pointer; list-style: none; }
.my-rec-visit summary::-webkit-details-marker { display: none; }
.my-rec-tooth { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: #e9e9df; color: #345447; font-size: 1.8rem; }
.my-rec-visit-label { display: grid; gap: 4px; flex: 1; min-width: 0; }
.my-rec-visit-label small { font-size: .76rem; color: #7b746b; }
.my-rec-visit-label strong { color: #333b34; font-size: .96rem; }
.my-rec-chevron { color: #777066; font-size: 1.5rem; }
.my-rec-visit[open] .my-rec-chevron { transform: rotate(-90deg); }
.my-rec-visit-details { border-top: 1px solid #e5ded2; background: #fffdf9; padding: 12px 18px 18px; display: grid; gap: 7px; line-height: 1.8; }
.my-rec-visit-details p { margin: 0; }
.my-rec-visit-details ul { margin: 5px 0 0; padding-inline-start: 19px; }
.my-rec-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.my-rec-image { display: grid; gap: 8px; padding: 10px; text-align: right; color: inherit; font: inherit; cursor: pointer; }
.my-rec-image-thumb { display: grid; place-items: center; width: 100%; min-height: 105px; background: #e4e7e0; color: #526e59; border-radius: 10px; }
.my-rec-image small { color: #777066; }
.rec-image-full { max-width: min(90vw,850px); max-height: 75vh; object-fit: contain; display: block; }
.rec-staff-images { padding: 16px; margin-block: 14px; }
.my-rec-note { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); overflow-wrap: anywhere; }
.my-rec-note + .my-rec-note { margin-top: 10px; }
.my-rec-note small { color: var(--mut); display: block; margin-bottom: 6px; }
.my-rec-note h3 { margin: 4px 0 10px; font-size: 1rem; }
.my-rec-note p { white-space: pre-wrap; line-height: 1.9; margin: 6px 0 12px; }
.my-rec-note video { display: block; width: 100%; max-width: 600px; border-radius: 12px; margin-top: 12px; }
.note-admin-form, .note-admin-history, .followup-form, .followup-list, .rec-doctor-notes { margin-top: 18px; }
.note-admin-form, .followup-form { max-width: 700px; }
.followup-rows { display: grid; gap: 12px; }
.followup-row { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); overflow-wrap: anywhere; }
.followup-row h3 { margin: 0 0 10px; color: var(--forest); }
.followup-row p { margin: 5px 0; line-height: 1.7; white-space: pre-wrap; }
.followup-row button { margin: 12px 0 0 8px; }
@media(max-width:420px) { .my-rec-tabs button { padding-inline: 8px; font-size: .78rem; } .my-rec-stats span { font-size: .67rem; } .my-rec-images { grid-template-columns: 1fr 1fr; } }

@media(prefers-reduced-motion:reduce) { .book-service { transition: none; } }

.portfolio-page { max-width: 960px; }
.portfolio-page > h1 { margin-bottom: 8px; }
.portfolio { min-width: 0; }
.portfolio .case-filters { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; padding: 12px 0 16px; scroll-snap-type: x proximity; }
.portfolio .case-filters::-webkit-scrollbar, .case-thumbnails::-webkit-scrollbar { display: none; }
.portfolio .case-filter { flex: none; min-height: 44px; padding: 8px 18px; border: 1px solid transparent; border-radius: 100px; background: transparent; color: var(--mut); font: inherit; font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.portfolio .case-filter[aria-pressed="true"] { background: var(--forest); color: #fff; }
.portfolio .case-filter:focus-visible, .case-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.portfolio .case-gallery { display: block; min-width: 0; }
.case-feature { min-width: 0; }
.case-feature .ba-strip { max-width: 100%; width: 100%; }
.case-feature .ba-frame { width: 100%; border-radius: 22px; overflow: hidden; }
.case-feature .ba-body { padding: 10px 0 0; }
.case-feature-note { white-space: pre-wrap; color: var(--mut); }
.case-photo-missing { border: 1px dashed var(--line); border-radius: 22px; padding: 50px 20px; text-align: center; }
.case-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 8px 1px 14px; }
.case-thumb { width: 100%; max-width: none; min-width: 0; min-height: 102px; overflow: hidden; border: 2px solid transparent; background: var(--card); border-radius: 15px; color: var(--ink); font: inherit; cursor: pointer; padding: 0; text-align: start; }
.case-thumb[aria-pressed="true"] { border-color: var(--forest); }
.case-thumb img { width: 100%; height: 79px; display: block; object-fit: cover; }
.case-thumb span { display: block; font-size: .7rem; padding: 5px 8px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
/* Before/after gallery portfolio: existing published cases only. */

/* مستقل: صفحات پزشک و مطب بدون ادعای عکس یا مشخصات تأییدنشده */
.profile-page { max-width: 760px; display: grid; gap: 16px; }
.profile-page h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.profile-page h2 { margin: 4px 0 0; }
.profile-page .kicker { margin: 0; }
.profile-portrait, .clinic-scene { position: relative; margin: 0; min-height: 260px; border-radius: 28px; overflow: hidden; background: #ddd3c5; box-shadow: var(--sh1); }
.profile-portrait img, .clinic-scene img { width: 100%; height: 100%; min-height: 260px; max-height: 450px; object-fit: cover; display: block; }
.profile-portrait figcaption, .clinic-scene figcaption { position: absolute; bottom: 12px; right: 12px; left: 12px; width: fit-content; color: #fff; background: rgba(20,29,23,.84); padding: 6px 12px; border-radius: 12px; font-size: .79rem; }
.temp-doctor-thumb { position: relative; width: 76px; height: 76px; margin: 0; border-radius: 50%; overflow: hidden; flex: none; }
.temp-doctor-thumb img { width: 100%; height: 100%; object-fit: cover; }
.temp-doctor-thumb figcaption { position: absolute; inset-inline: 0; bottom: 0; text-align: center; font-size: .55rem; color: white; background: rgba(20,29,23,.85); }
.case-photo-missing { padding: 10px; }
.case-photo-missing img { display: block; width: 100%; height: clamp(210px, 55vw, 370px); object-fit: cover; border-radius: 16px; }
.case-photo-missing p { margin: 10px 6px; font-size: .82rem; color: var(--mut); }
.clinic-scene { background: radial-gradient(circle at 22% 25%, #f6ead4, transparent 48%), linear-gradient(145deg, #c7c2a7, #778a78); }
.profile-copy { white-space: pre-line; line-height: 2; }
.clinic-info { padding: 20px 24px; }
.clinic-info p { margin: 6px 0 0; }
.clinic-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* قاب فک: صحنهٔ روشن و گرم، مثل عکس‌های کانسپت */
.jv-stage { background: radial-gradient(120% 90% at 50% 0%, #fbf3ea, #ecd9cb); }
.jv-stage::after { background: radial-gradient(90% 70% at 50% 50%, transparent 55%, rgba(120, 80, 50, .12)); }
.jv-num { fill: #8a7e6e; font-size: 12px; }
.jv-side { fill: #8a7e6e; }
.jv-groove { stroke: #a9997c; }
.jv-tooth.on .jv-groove { stroke: #b3541a; }
.jv-tooth.on .jv-num { fill: #b3541a; }
.jv-fossa { fill: #a9997c; }
.brand img, .top-brand img, .avatar img { filter: none; }
.avatar img { filter: none; width: 62%; }
.stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px 12px; text-align: center; }
.stat b { font-size: 1.6rem; }
.stat span { font-size: .78rem; }
@media (min-width: 861px) { .stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.test-banner { position: relative; }

.visit-count { border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.visit-head { grid-template-columns: 1fr auto 18px; row-gap: 4px; }
.visit-head .visit-date { grid-column: 1 / -1; }
.visit-title { font-weight: 600; line-height: 1.7; }
.pub-foot, .content::after { border-top: 0; }
.content { border-top: 0; }
