/* =============================================================================
   Avanobat — Glassmorphism layer
   -----------------------------------------------------------------------------
   Loaded LAST on every page (after theme.css / login.css / static-pages.css and
   after each page's own <style>), so it re-skins the existing components with a
   premium frosted-glass look while preserving the teal/amber brand, the existing
   layout, and all responsive rules.

   Rule of thumb: this file only touches *surface* properties — background,
   backdrop-filter, border, box-shadow, border-radius, and hover/focus polish.
   It never changes flex/grid/positioning that the base styles rely on.
   ========================================================================== */

/* ---- Flat, clean background (mockups have no ambient orbs / gradients) ---- */
body::before { display: none; }
body { background: var(--bg); color: var(--text-strong); }

/* =============================================================================
   Reusable glass primitives
   ========================================================================== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
}

.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.glass-panel {
  background: var(--glass-bg-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-soft);
}

.glass-nav {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

/* Glass button with hover shimmer sweep + glow ------------------------------ */
.glass-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.glass-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glass-glow), var(--glass-highlight);
}
.glass-btn:active { transform: translateY(0); }

/* Shimmer sweep removed for the flat look */
.glass-btn::before,
.primary-btn::before,
.booking-doc-map::before { display: none; }

/* =============================================================================
   Re-skin existing components
   ========================================================================== */

/* ---- Cards & panels ------------------------------------------------------- */
.card,
.list-card,
.admin-form-card,
.doctor-notes-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
}
/* Base padding for .card lives only in index.html's inline <style>; define it
   here too so every other page (doctor, about, login, blog) gets proper inner
   padding and text never touches the card edge. */
.card { border-radius: var(--radius-lg); padding: 18px; }
.list-card { padding: 14px 14px 12px; }
.admin-form-card { padding: 12px; }
.doctor-notes-card { padding: 12px 14px; }
@media (max-width: 600px) { .card { padding: 16px; } }

.stat-card {
  background: var(--glass-bg-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

/* ---- Doctor cards (homepage) --------------------------------------------- */
.doc-card {
  background: var(--glass-bg);
  border: 1px solid #EDF1EF;
  box-shadow: none;
}
.doc-card:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: none;
}

.booking-doc-card {
  background: var(--glass-bg-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

/* ---- Flat header bar (mockup: plain bar, not a floating pill) ------------ */
shared-header { display: block; }
.app-header {
  padding: 14px 2px 16px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
@media (min-width: 769px) {
  .app-header { border-bottom: 1px solid var(--glass-border); margin-bottom: 20px; }
}

/* ---- Bottom nav (mobile) — قرصِ شیشه‌ایِ شناور --------------------------- */
/* انیمیشنِ ورود: هر بار که بین صفحه‌ها جابه‌جا می‌شوی، نوار از پایین بالا می‌آید */
@keyframes bottom-nav-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(135%); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bottom-nav {
  /* قرصِ شناورِ وسط‌چین به‌جای نوارِ چسبیده به پایین */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 26px);
  max-width: 500px;
  background: var(--nav-glass-bg, rgba(255, 255, 255, 0.72));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--nav-glass-border, rgba(255, 255, 255, 0.65));
  border-radius: 32px;
  box-shadow: var(--nav-glass-shadow, 0 18px 46px rgba(16, 40, 34, 0.22)), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 10px;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  animation: bottom-nav-in 0.52s cubic-bezier(0.34, 1.4, 0.5, 1) both;
}
.bottom-nav-btn {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 58px;
  padding: 0 16px;
  border-radius: 22px;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: background-color 0.24s ease, color 0.24s ease, flex-grow 0.3s cubic-bezier(0.34, 1.3, 0.5, 1), padding 0.3s cubic-bezier(0.34, 1.3, 0.5, 1), box-shadow 0.24s ease;
}
/* لیبلِ متن: پیش‌فرض جمع‌شده (فقط آیکن دیده می‌شود)؛ در حالتِ فعال باز می‌شود */
.bottom-nav-btn > span:not(.bottom-nav-icon) {
  font-size: 15px;
  font-weight: 700;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.24s ease, margin 0.24s ease;
}
.bottom-nav-icon {
  width: 31px;
  height: 31px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.bottom-nav-icon svg { width: 28px; height: 28px; }
.bottom-nav-btn:hover { color: var(--accent-strong); }
.bottom-nav-btn:hover .bottom-nav-icon { background: transparent; color: var(--accent-strong); }
/* فعال: قرصِ سبزِ پررنگ با لیبلِ متن (مثلِ دکمهٔ «خانه» در طرح) */
.bottom-nav-btn.active {
  flex: 1 1 auto;
  color: #fff;
  background: var(--accent, #1F6E61);
  box-shadow: 0 12px 28px rgba(31, 110, 97, 0.42);
  transform: none;
  padding: 0 24px;
  font-weight: 700;
}
.bottom-nav-btn.active .bottom-nav-icon { background: transparent; color: #fff; transform: none; box-shadow: none; }
.bottom-nav-btn.active > span:not(.bottom-nav-icon) {
  color: #fff;
  max-width: 160px;
  opacity: 1;
  margin-inline-start: 10px;
}
.bottom-nav-btn:active { transform: scale(0.93); }

/* ---- Modals --------------------------------------------------------------- */
.modal-backdrop {
  background: var(--glass-bg-deep);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
}
.modal-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

/* ---- Tabs / segmented controls ------------------------------------------- */
.portal-tabs,
.tab-bar {
  background: var(--glass-bg-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--glass-highlight);
}
.portal-tab-button.active,
.tab-button.active {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
}

/* ---- Inputs / fields ------------------------------------------------------ */
.input,
.field input,
.field select,
.field textarea,
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="date"],
select,
textarea {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ---- Pills, time chips, soft chips --------------------------------------- */
.pill,
.time,
.time-chip {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-soft);
}
.pill.active,
.time.active,
.time-chip.active {
  background: var(--accent-soft);
  border-color: var(--cta);
  box-shadow: 0 8px 18px rgba(244, 183, 64, 0.2), var(--glass-highlight);
}

/* =============================================================================
   Buttons — glass + sheen + glow
   ========================================================================== */
.primary-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(31, 110, 97, 0.22);
  transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
/* Less rounded buttons (per feedback) */
.doc-card-side .doc-map-link { border-radius: 10px; }
.subtle-btn { border-radius: 10px; }
.primary-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(31, 110, 97, 0.28);
}
.primary-btn:active { transform: translateY(0); }

.subtle-btn {
  background: var(--glass-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.subtle-btn:hover {
  background: var(--mint-soft);
  border-color: var(--accent-strong);
  box-shadow: 0 2px 10px rgba(16, 40, 34, 0.06);
}

.ghost-btn:hover { filter: brightness(1.08); }

/* keep the loading spinner above the shimmer */
.button-loading::after { z-index: 2; }

/* =============================================================================
   Skeleton loaders (shape-matched, subtle shimmer)
   ========================================================================== */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton,
.skeleton-line,
.skeleton-circle {
  position: relative;
  background: linear-gradient(
    100deg,
    rgba(34, 52, 55, 0.06) 25%,
    rgba(34, 52, 55, 0.12) 45%,
    rgba(34, 52, 55, 0.06) 65%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-line { height: 12px; margin: 6px 0; }
.skeleton-line.sm { height: 10px; width: 55%; }
.skeleton-line.lg { height: 18px; width: 70%; }
.skeleton-line.xs { height: 9px; width: 35%; }
.skeleton-circle { border-radius: 999px; }

/* A skeleton doctor card mirrors .doc-card dimensions */
.skeleton-doc-card {
  border-radius: 24px;
  padding: 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-doc-head { display: flex; gap: 12px; align-items: center; }
.skeleton-doc-head .skeleton-circle { width: 72px; height: 72px; flex: 0 0 auto; }
.skeleton-doc-head .skeleton-lines { flex: 1; }

/* A skeleton list row mirrors .list-card */
.skeleton-row {
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  margin-bottom: 10px;
}

/* =============================================================================
   Micro-interactions & graceful fallback
   ========================================================================== */
.subtle-btn,
.ghost-btn,
.pill,
.time,
.time-chip,
.doc-chip,
.bottom-nav-btn,
.doc-map-link,
.booking-doc-map {
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

/* ---- Admin accounting analytics ------------------------------------------ */
.analytics-block { margin-top: 16px; }
.analytics-block-title { font-size: 13px; font-weight: 700; color: var(--text-strong); margin-bottom: 8px; }
.analytics-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.analytics-bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.analytics-bar-label { width: 130px; font-size: 12px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 0 auto; }
.analytics-bar-track { flex: 1; height: 14px; border-radius: 999px; background: var(--glass-bg-tint); overflow: hidden; min-width: 60px; }
.analytics-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--secondary)); }
.analytics-bar-val { font-size: 12px; font-weight: 700; color: var(--accent-strong); flex: 0 0 auto; min-width: 96px; text-align: left; }
.analytics-conv { display: flex; height: 28px; border-radius: 999px; overflow: hidden; margin: 10px 0; box-shadow: var(--glass-highlight); }
.analytics-conv span { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; font-weight: 700; min-width: 0; transition: flex-basis 0.3s ease; }
.analytics-conv-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.analytics-conv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
.analytics-delta { font-size: 12px; font-weight: 700; }
.analytics-delta.up { color: #1a7f5a; }
.analytics-delta.down { color: #b42318; }
.analytics-chart-empty { color: var(--text-muted); font-size: 13px; padding: 20px; text-align: center; }

/* ---- Header chrome (brand tagline + mobile bell/date pill) --------------- */
.mobile-only { display: none; }
.app-brand-titles { display: inline-flex; flex-direction: column; line-height: 1.2; }
.app-brand-tagline { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.header-bell {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--accent-strong);
  cursor: pointer;
}
.header-bell-dot {
  position: absolute;
  top: 9px;
  inset-inline-end: 11px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cta);
  border: 2px solid var(--glass-bg);
  display: none;            /* hidden until there is an unread notification */
}
.header-bell.has-unread .header-bell-dot {
  display: block;
  animation: bellPulse 1.6s ease-in-out infinite;
}
@keyframes bellPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244,183,64,0.5); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(244,183,64,0); }
}
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none !important; }
  /* the legacy inline style hides .app-header-actions on mobile (it used to hold
     only desktop buttons); re-show it so the mobile bell + date pill appear. */
  .app-header-actions { display: flex; gap: 8px; align-items: center; }
}

/* ---- Footer feature row (mockup) ----------------------------------------- */
.footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 6px 0 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border-soft);
}
.footer-feature { display: flex; align-items: center; gap: 12px; }
.footer-feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: var(--mint);
  border: 1px solid var(--glass-border);
}
.footer-feature-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-feature-text strong { font-size: 14px; color: var(--text-strong); }
.footer-feature-text span { font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px) {
  .footer-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-features { grid-template-columns: 1fr; }
}

/* ---- Hero banner slider (mockup) ----------------------------------------- */
.hero-slider {
  position: relative;
  margin: 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight);
}
.hero-track { display: flex; transition: transform 0.4s ease; align-items: stretch; }
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}
/* بنرِ تصویری: کلِ تصویر تمام‌عرض، بدونِ کراپ و کاملاً ریسپانسیو (ارتفاع از نسبتِ خودِ تصویر) */
.hero-slide.has-image { display: block; background: var(--mint); }
.hero-slide-img { display: block; width: 100%; height: auto; }
/* Split layout only for the empty placeholder / no-image slides */
.hero-slide.is-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 210px; align-items: center; }
/* متنِ روی بنرِ تصویری به‌صورتِ overlay با اسکریمِ خوانایی */
.hero-slide.has-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 64%);
}
.hero-slide.has-text .hero-slide-text { position: absolute; inset: 0; justify-content: center; }
.hero-slide-text {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 60%;
}
.hero-slide.is-split .hero-slide-text { max-width: none; }
.hero-slide-title { font-size: 24px; font-weight: 800; color: var(--text-strong); margin: 0; }
.hero-slide-desc { font-size: 14px; color: var(--text-muted); line-height: 1.9; max-width: 380px; margin: 0; }
.hero-slide-btn { margin-top: 8px; width: auto; height: 44px; padding: 0 26px; display: inline-flex; align-items: center; }
.hero-slide-media { min-height: 210px; background-size: cover; background-position: center; background-color: var(--mint-strong); }
.hero-slide-media.is-placeholder { display: flex; align-items: center; justify-content: center; color: var(--accent); opacity: 0.45; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent-strong);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--glass-shadow-soft);
}
.hero-prev { right: 12px; }
.hero-next { left: 12px; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(31, 110, 97, 0.3); border: none; cursor: pointer; padding: 0; transition: width 0.2s ease, background 0.2s ease; }
.hero-dot.active { background: var(--accent); width: 22px; }
.hero-slider.is-single .hero-arrow,
.hero-slider.is-single .hero-dots { display: none; }
@media (max-width: 760px) {
  .hero-slide { min-height: 175px; }
  .hero-slide.is-split { grid-template-columns: 1.15fr 0.85fr; }
  .hero-slide-media { min-height: 175px; }
  .hero-slide-text { padding: 16px 16px; max-width: 74%; }
  .hero-slide-title { font-size: 18px; }
  .hero-slide-desc { font-size: 12px; }
  .hero-arrow { width: 36px; height: 36px; }
}

/* ---- Per-page banner (<page-banner>) — identical to the contact .ct-banner -- */
.page-banner-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.page-banner-text {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.page-banner-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.page-banner-desc { margin: 0; font-size: 14.5px; line-height: 2; color: var(--text-muted); max-width: 52ch; }
.page-banner-btn {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; background: var(--primary);
  color: var(--text-inverse); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background-color 0.18s ease, transform 0.1s ease;
}
.page-banner-btn:hover { background: var(--accent-strong); }
.page-banner-btn:active { transform: translateY(1px); }
.page-banner-media {
  position: relative;
  min-height: 230px;
  margin: 16px 16px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(140deg, var(--mint-strong) 0%, var(--secondary-soft) 100%);
  border: 1px solid var(--glass-border);
}
.page-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.page-banner-media.has-image img { display: block; }
.page-banner-badge {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); color: var(--accent-strong); font-weight: 700; font-size: 13px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.page-banner-leaf { position: absolute; z-index: 1; color: var(--secondary); opacity: 0.5; pointer-events: none; }
.page-banner-leaf-1 { inset-block-start: -10px; inset-inline-start: 38%; width: 120px; height: 150px; transform: rotate(8deg); }
.page-banner-leaf-2 { inset-block-end: -16px; inset-inline-start: 30%; width: 90px; height: 120px; opacity: 0.35; transform: rotate(-12deg); }
@media (max-width: 880px) {
  .page-banner-card { grid-template-columns: 1fr; }
  .page-banner-text { padding: 28px 24px 8px; }
  .page-banner-title { font-size: 25px; }
  .page-banner-media { margin: 8px 18px 18px; min-height: 180px; }
  .page-banner-leaf-1, .page-banner-leaf-2 { display: none; }
}

/* ---- Admin banner management --------------------------------------------- */
.admin-banner-row { border: 1px solid var(--glass-border-soft); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--glass-bg-tint); }
.admin-banner-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.admin-banner-row-head strong { font-size: 13px; color: var(--text-strong); }
.admin-banner-actions { display: flex; gap: 6px; }
.admin-banner-actions .subtle-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.admin-banner-thumb { width: 100%; height: 84px; border-radius: 10px; object-fit: cover; background: var(--mint); border: 1px solid var(--glass-border-soft); margin-bottom: 8px; }
.admin-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-banner-grid .field { margin-bottom: 0; }
.admin-banner-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .admin-banner-grid { grid-template-columns: 1fr; } }

/* ---- Page banners admin (per-page: «مدیریت صفحات») ---------------------- */
.admin-page-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.admin-page-chip { height: 34px; padding: 0 14px; font-size: 13px; }
.admin-page-chip.active { background: var(--primary); border-color: var(--primary); color: var(--text-inverse); }
.admin-page-chip.active:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--text-inverse); }
.admin-subpanel { border-top: 1px dashed var(--glass-border); margin-top: 14px; padding-top: 12px; }
.admin-subpanel-title { font-size: 13px; font-weight: 700; color: var(--text-strong); margin: 0 0 8px; }
.admin-social-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-page-note { font-size: 13px; color: var(--text-muted); background: var(--mint); border: 1px solid var(--glass-border-soft); border-radius: 12px; padding: 12px 14px; line-height: 1.9; }
.admin-page-preview { margin-top: 12px; }
.admin-page-preview-banner { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--glass-border); padding: 22px 18px; min-height: 96px; background: linear-gradient(180deg, var(--glass-bg), var(--mint)); }
.admin-page-preview-banner.has-image { color: var(--text-inverse); }
.admin-page-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.admin-page-preview-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,40,34,0.6), rgba(16,40,34,0.15)); z-index: 1; }
.admin-page-preview-banner .pp-body { position: relative; z-index: 2; }
.admin-page-preview-banner h4 { margin: 0 0 6px; font-size: 18px; color: inherit; }
.admin-page-preview-banner p { margin: 0; font-size: 13px; color: inherit; opacity: 0.9; }
.admin-page-preview-tag { display: inline-block; margin-bottom: 8px; font-size: 11px; color: var(--text-muted); }
@media (max-width: 560px) { .admin-social-row { grid-template-columns: 1fr 1fr auto; } }

/* ---- Tickets admin tab --------------------------------------------------- */
.tickets-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; align-items: start; }
.ticket-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ticket-filter-btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
.ticket-filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--text-inverse); }
.ticket-list { display: flex; flex-direction: column; gap: 7px; max-height: 520px; overflow-y: auto; }
.ticket-row {
  padding: 12px 14px; border: 1px solid var(--glass-border-soft); border-radius: 14px;
  background: var(--glass-bg-tint); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ticket-row:hover { border-color: var(--accent-soft); }
.ticket-row.selected { border-color: var(--primary); background: var(--mint-soft); }
.ticket-row.unread .ticket-row-title { font-weight: 700; }
.ticket-row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ticket-row-title { flex: 1; font-size: 13px; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ticket-badge.open { background: var(--cta-soft); color: var(--navy-900); }
.ticket-badge.replied { background: rgba(31,110,97,0.12); color: var(--accent-strong); }
.ticket-badge.closed { background: rgba(34,52,55,0.1); color: var(--text-muted); }
.ticket-row-meta { font-size: 11.5px; color: var(--text-muted); }
.ticket-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); flex: 0 0 auto; }

.ticket-detail { padding: 18px; }
.ticket-detail-head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border-soft); }
.ticket-detail-title { font-size: 15px; font-weight: 700; color: var(--text-strong); margin: 0 0 6px; }
.ticket-detail-meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ticket-msg { background: var(--mint-soft); border: 1px solid var(--glass-border-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.9; color: var(--text-strong); margin-bottom: 14px; white-space: pre-wrap; word-break: break-word; }
.ticket-replies { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ticket-reply { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.9; max-width: 90%; white-space: pre-wrap; word-break: break-word; }
.ticket-reply.admin { background: var(--primary); color: var(--text-inverse); align-self: flex-end; }
.ticket-reply.user { background: var(--glass-bg-tint); border: 1px solid var(--glass-border-soft); align-self: flex-start; }
.ticket-reply-meta { font-size: 10.5px; opacity: 0.7; margin-top: 4px; }
.ticket-reply-form { display: flex; flex-direction: column; gap: 8px; }
.ticket-reply-form textarea { min-height: 80px; resize: vertical; }
.ticket-status-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ticket-status-row select { height: 36px; font-size: 13px; }
.ticket-empty-detail { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 13px; gap: 10px; }
.ticket-empty-detail svg { color: var(--accent-soft); }

/* badge روی دکمهٔ تب ناوبری */
.admin-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cta); color: var(--navy-900); font-size: 10.5px; font-weight: 700; margin-inline-start: 4px; }
@media (max-width: 900px) { .tickets-layout { grid-template-columns: 1fr; } }

/* ---- Doctor cards (mockup 3-column layout) ------------------------------- */
.doc-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
}
.doc-card-person { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.doc-card-person .doc-photo,
.doc-card-person .avatar { width: 76px; height: 76px; flex: 0 0 auto; }
.doc-card-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; align-items: stretch; }
.doc-card-name { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.doc-card-spec { font-size: 13px; color: var(--text-muted); }
.doc-card-clinic,
.doc-card-meta {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12.5px; color: var(--navy-900);
  background: none; padding: 0; border-radius: 0; margin: 0;
}
.doc-card-clinic .doc-meta-icon,
.doc-card-meta .doc-meta-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-muted); }
/* address & clinic: always a single truncated line */
.doc-card-clinic span,
.doc-card-meta span { flex: 1; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.doc-card-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center;
  padding: 0 10px;
}
.doc-tag-online { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--accent-strong); }
.doc-online-dot { width: 7px; height: 7px; border-radius: 999px; background: #2bb673; box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18); }
.doc-first-slot-block { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.doc-first-slot-label { font-size: 11px; color: var(--text-muted); }
.doc-first-slot-date { font-size: 11px; font-weight: 600; color: var(--text-strong); }
.doc-first-slot-time { font-size: 10.5px; font-weight: 600; color: var(--accent-strong); background: var(--mint); border-radius: 7px; padding: 1px 10px; }
.doc-first-slot-empty { font-size: 11px; color: var(--text-muted); }
.doc-code-chip { border-radius: 10px; }

.doc-card-side { display: flex; flex-direction: column; align-items: stretch; gap: 11px; justify-content: center; }
.doc-code-chip { align-self: flex-start; background: var(--mint); color: var(--accent-strong); padding: 1px 8px; line-height: 1.4; min-height: 0; }
.doc-card-side .doc-map-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: auto; min-height: 0; line-height: 1.3; padding: 5px 10px; width: 100%; }
.doc-book-btn { width: 100%; height: 44px; margin-top: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

@media (max-width: 760px) {
  /* Horizontal 3-column card (like the mockup) — smaller type, more breathing room. */
  .doc-card { padding: 13px 11px; }
  .doc-card-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
  .doc-card-person { gap: 7px; }
  .doc-card-person .doc-photo,
  .doc-card-person .avatar { width: 46px; height: 46px; }
  .doc-card-name { font-size: 11.5px; line-height: 1.45; }
  .doc-card-spec { font-size: 9.5px; }
  .doc-card-clinic, .doc-card-meta { font-size: 9px; }
  .doc-card-clinic .doc-meta-icon,
  .doc-card-meta .doc-meta-icon { width: 11px; height: 11px; }
  .doc-card-mid { padding: 0 5px; gap: 9px; }
  .doc-first-slot-block { gap: 4px; }
  .doc-tag-online { font-size: 8.5px; }
  .doc-online-dot { width: 6px; height: 6px; }
  .doc-first-slot-label { font-size: 9px; }
  .doc-first-slot-date { font-size: 9px; font-weight: 600; }
  .doc-first-slot-time { font-size: 9px; padding: 1px 6px; }
  .doc-card-side { gap: 9px; }
  .doc-code-chip { font-size: 8.5px; padding: 1px 6px; }
  .doc-card-side .doc-map-link { height: auto; min-height: 0; padding: 3px 8px; font-size: 9.5px; gap: 3px; border-radius: 8px; }
  .doc-card-side .doc-map-link svg { width: 12px; height: 12px; }
  .doc-book-btn { height: 34px; font-size: 10.5px; padding: 0 6px; gap: 4px; border-radius: 9px; }
  .doc-book-btn svg { width: 14px; height: 14px; }
}

/* ---- Homepage = stack of separate flat cards (mockup) -------------------- */
#landingPage { background: transparent; border: none; box-shadow: none; padding: 0; margin-top: 0; }
.search-card { margin-top: 0; }
#landingDoctorList { display: flex; flex-direction: column; gap: 14px; }

/* ---- Homepage search section (mockup layout) ----------------------------- */
.landing-search-head { margin-bottom: 12px; }
.landing-search-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.search-bar-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.search-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.search-input-wrap .input {
  width: 100%; padding-left: 46px; height: 52px; border-radius: 14px;
  border-color: #EAEEEC;
  box-shadow: 0 6px 20px rgba(16, 40, 34, 0.08);
}
.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  pointer-events: none;
}
.filter-toggle-btn {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid #EAEEEC;
  background: var(--glass-bg);
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 40, 34, 0.08);
}
.filter-toggle-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-go-btn {
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  padding: 0 24px;
  margin-top: 0;
  border-radius: 10px;
}
.filters-row { margin-top: 12px; }

/* header menu buttons: label + trailing icon (per mockup) */
.header-menu-btn { gap: 6px; }
.header-menu-btn svg { flex: 0 0 auto; opacity: 0.85; }

/* filter selects: leading category icon on the right + chevron on the left */
.filter-select-wrap { position: relative; display: flex; flex: 1 1 180px; min-width: 150px; }
.filter-select-wrap .filter-select { width: 100%; flex: 1 1 auto; }
.filter-select.has-icon { padding-right: 40px; }
.filter-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
  pointer-events: none;
  z-index: 1;
}

/* doctor-list heading: star + "مشاهده همه" */
.landing-list-head { margin-top: 18px; margin-bottom: 4px; align-items: center; }
.landing-list-title { display: inline-flex; align-items: center; gap: 8px; }
.landing-list-star { width: 20px; height: 20px; color: var(--cta); flex: 0 0 auto; }
.landing-see-all { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-strong); font-size: 13px; font-weight: 600; cursor: pointer; }
.landing-see-all:hover { color: var(--accent); }
@media (max-width: 768px) {
  .filters-row { display: none; }
  .filters-row.filters-open { display: flex; flex-wrap: wrap; }
  .filter-select-wrap { flex: 1 1 calc(50% - 6px); }
  .search-go-btn { flex: 1 1 100%; }
  .search-input-wrap .input { height: 48px; }
  .filter-toggle-btn { width: 48px; height: 48px; }
}

/* ---- Homepage blog section (4-col desktop / horizontal carousel mobile) -- */
.home-blog-section { margin-top: 22px; }
.home-blog-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid #EDF1EF;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-blog-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-soft); border-color: var(--glass-border); }
.home-blog-card-img {
  height: 124px;
  background: var(--mint);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.home-blog-card-img.is-empty { opacity: 0.5; }
.home-blog-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.home-blog-card-title { font-size: 14px; font-weight: 700; color: var(--text-strong); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-blog-card-sum { font-size: 12px; color: var(--text-muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-blog-card-meta { margin-top: auto; font-size: 11px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 760px) {
  .home-blog-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .home-blog-row::-webkit-scrollbar { display: none; }
  .home-blog-card { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---- About page (mockup) ------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 0; align-items: stretch; overflow: hidden; padding: 0; }
.about-hero-media { position: relative; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--mint), var(--glass-bg)); color: var(--accent-strong); }
.about-hero-brand { font-weight: 800; font-size: 18px; }
.about-hero-leaf { position: absolute; left: 14px; bottom: 10px; width: 88px; height: 88px; color: var(--accent); opacity: 0.22; }
.about-hero-text { padding: 26px 26px; }
.about-h1 { font-size: 26px; font-weight: 800; margin: 0 0 10px; color: var(--text-strong); }
.about-hero-text p { font-size: 14px; line-height: 2; color: var(--text-muted); margin: 0; }

.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.about-col { display: flex; flex-direction: column; gap: 8px; }
.about-col h3 { margin: 0; font-size: 16px; color: var(--text-strong); }
.about-col p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--text-muted); }
.about-col-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; }
.about-col-rule { width: 26px; height: 3px; border-radius: 999px; background: var(--accent); margin-top: 4px; align-self: flex-end; }
.about-values-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; justify-content: space-between; }
.about-value { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); flex: 1 1 56px; }
.about-value-ic { width: 40px; height: 40px; border-radius: 999px; background: var(--mint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.about-stat { text-align: center; padding: 6px; border-inline-start: 1px solid var(--glass-border-soft); }
.about-stat:first-child { border: none; }
.about-stat-num { font-size: 22px; font-weight: 800; color: var(--accent-strong); }
.about-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.about-cols-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.about-why h3, .about-trust h3 { margin: 0 0 12px; font-size: 16px; color: var(--text-strong); }
.about-why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.about-why-list li { position: relative; padding-inline-start: 26px; font-size: 13px; color: var(--navy-900); }
.about-why-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 18px; height: 18px; border-radius: 999px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%231F6E61' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.about-team { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--mint-soft); }
.about-team-illus { width: 56px; height: 56px; border-radius: 14px; background: var(--glass-bg); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.about-team-title { font-size: 13.5px; font-weight: 700; color: var(--text-strong); }
.about-team-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.about-trust-row { display: flex; gap: 10px; }
.about-trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11.5px; color: var(--text-muted); padding: 14px 8px; border: 1px solid var(--glass-border-soft); border-radius: 14px; }
.about-trust-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.about-trust-note { font-size: 12px; color: var(--text-muted); text-align: center; margin: 12px 0 0; }

@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-media { min-height: 140px; }
  .about-hero-text { padding: 18px; }
  .about-cols { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat { border: none; }
  .about-cols-2 { grid-template-columns: 1fr; }
  .about-trust-row { flex-direction: column; }
}

/* ---- Login page split layout (mockup) ------------------------------------ */
body.login-layout .login-shell.login-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1100px;
  margin: 28px auto;
  padding: 0;
  background: var(--glass-bg);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  width: 100%;
}
/* RTL: keep the form card on the right and the image panel on the left (per mockup) */
body.login-layout .login-shell.login-split .login-card { order: 1; }
body.login-layout .login-shell.login-split .login-media { order: 2; }
.login-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--mint) 0%, var(--glass-bg) 100%);
  color: var(--accent-strong);
  min-height: 520px;
  overflow: hidden;
}
.login-media-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.login-media-name { font-size: 22px; font-weight: 800; }
.login-media-tag { font-size: 13px; color: var(--text-muted); }
.login-media-leaf { position: absolute; left: 18px; bottom: 16px; width: 110px; height: 110px; color: var(--accent); opacity: 0.2; }
body.login-layout .login-shell.login-split .login-card { border: none; box-shadow: none; border-radius: 0; background: var(--glass-bg); margin: 0; max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 44px 48px; }
.login-header-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.login-brand-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-brand-name { font-size: 18px; font-weight: 800; color: var(--text-strong); }
.login-brand-tag { font-size: 12px; color: var(--text-muted); }
.login-header-brand .login-title { font-size: 20px; font-weight: 800; color: var(--text-strong); margin-top: 4px; }
.login-header-brand .login-subtitle { font-size: 13px; color: var(--text-muted); }
.login-back { margin-top: 8px; font-size: 12px; color: var(--accent-strong); align-self: center; }
@media (max-width: 760px) {
  body.login-layout .login-shell.login-split { grid-template-columns: 1fr; max-width: 460px; }
  .login-media { display: none; }
  body.login-layout .login-shell.login-split .login-card { padding: 26px 20px; }
}

/* ---- Doctor profile page (full mockup layout) ---------------------------- */
.doctor-page { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: right; }
.doctor-breadcrumb { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doctor-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.doctor-breadcrumb a:hover { color: var(--accent-strong); }
.doctor-breadcrumb-current { color: var(--text-strong); font-weight: 600; }

.doctor-profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.doctor-profile .doctor-photo-wrap { width: 112px; height: 112px; border-radius: 999px; background: var(--mint); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; padding: 4px; }
.doctor-profile #doctorPhoto { width: 102px; height: 102px; border-radius: 999px; object-fit: cover; border: none; }
.doctor-profile-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.doctor-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2bb673; }
.doctor-name { font-size: 22px; font-weight: 800; margin: 0; color: var(--text-strong); }
.doctor-spec { font-size: 13px; color: var(--text-muted); }
.doctor-profile .doctor-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 2px; }
.doctor-profile .doctor-meta span { background: var(--mint-soft); border: 1px solid var(--glass-border-soft); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--navy-900); }
.doctor-profile .doctor-actions { display: flex; flex-direction: column; gap: 8px; width: 190px; }
.doctor-profile .doctor-actions .primary-btn,
.doctor-profile .doctor-actions .subtle-btn { width: 100%; height: 44px; margin-top: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

.doctor-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 2px 0; }
.doctor-feature { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--glass-border-soft); border-radius: 14px; background: var(--glass-bg); text-align: right; }
.doctor-feature-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--mint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.doctor-feature strong { display: block; font-size: 13px; color: var(--text-strong); }
.doctor-feature span { font-size: 11.5px; color: var(--text-muted); }

.doctor-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.doctor-main { display: flex; flex-direction: column; gap: 14px; }
.doctor-side { display: flex; flex-direction: column; gap: 14px; }
.doctor-section-title { font-size: 16px; font-weight: 800; color: var(--text-strong); margin: 0 0 10px; }
.doctor-about-default { font-size: 13.5px; line-height: 2; color: var(--text-muted); margin: 0; }
#doctorNote.doctor-note { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--navy-900); }
.doctor-faq .faq-item { border-top: 1px solid var(--glass-border-soft); padding: 11px 0; }
.doctor-faq .faq-item:first-of-type { border-top: none; padding-top: 0; }
.doctor-faq summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.doctor-faq summary::-webkit-details-marker { display: none; }
.doctor-faq summary::after { content: "+"; color: var(--accent-strong); font-size: 18px; line-height: 1; }
.doctor-faq details[open] summary::after { content: "\2212"; }
.doctor-faq .faq-item p { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; margin: 8px 0 0; }

@media (max-width: 860px) {
  .doctor-profile { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .doctor-profile-info { align-items: center; }
  .doctor-profile .doctor-meta { justify-content: center; }
  .doctor-profile .doctor-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .doctor-profile .doctor-actions .primary-btn,
  .doctor-profile .doctor-actions .subtle-btn { flex: 1 1 150px; }
  .doctor-features { grid-template-columns: 1fr 1fr; }
  .doctor-content { grid-template-columns: 1fr; }
}

/* ---- Doctor register page (mockup) --------------------------------------- */
.dr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dr-form .field { margin-bottom: 0; }
.dr-form .dr-full { grid-column: 1 / -1; }
.dr-why { display: flex; flex-direction: column; gap: 14px; }
.dr-why-head { font-size: 18px; font-weight: 800; color: var(--text-strong); }
.dr-why-sub { font-size: 13px; color: var(--text-muted); margin: -8px 0 2px; }
.dr-why-item { display: flex; gap: 12px; align-items: flex-start; }
.dr-why-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--mint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.dr-why-item strong { display: block; font-size: 13.5px; color: var(--text-strong); }
.dr-why-item span { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.dr-why-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--mint-soft); color: var(--accent-strong); font-size: 12px; line-height: 1.85; }
.dr-why-note svg { flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 760px) {
  .dr-form { grid-template-columns: 1fr; }
}

/* ---- Public blog pages --------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), var(--glass-highlight); }
.blog-card-cover { display: block; height: 160px; background-size: cover; background-position: center; }
.blog-card-cover-empty { background: linear-gradient(135deg, rgba(41, 89, 88, 0.18), rgba(244, 183, 64, 0.18)); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.blog-card-title { font-weight: 700; font-size: 15px; color: var(--text-strong); line-height: 1.6; }
.blog-card-summary { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.blog-card-author { font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.blog-filters { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.blog-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }

.blog-article { max-width: 780px; margin: 0 auto; }
.blog-breadcrumb { font-size: 12px; margin-bottom: 8px; }
.blog-breadcrumb a { color: var(--accent-strong); text-decoration: none; }
.blog-title { font-size: 26px; font-weight: 700; line-height: 1.6; margin: 6px 0 14px; color: var(--text-strong); }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px dashed var(--glass-border-soft); margin-bottom: 16px; }
.blog-author { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.blog-author-photo { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.blog-author-avatar { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--navy-900)); color: #fff; font-weight: 700; }
.blog-author-name { display: block; font-weight: 700; font-size: 14px; }
.blog-cover { width: 100%; border-radius: 16px; margin: 4px 0 16px; object-fit: cover; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.blog-body { font-size: 15px; line-height: 2.1; color: var(--navy-900); }
.blog-body h2, .blog-body h3 { color: var(--text-strong); line-height: 1.6; }
.blog-body img { max-width: 100%; border-radius: 12px; }
.blog-body p { margin: 0 0 14px; }
.blog-body ul, .blog-body ol { padding-inline-start: 22px; line-height: 2; }
.blog-body a { color: var(--accent-strong); }
.blog-cta { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--glass-border-soft); text-align: center; }

/* ---- Lightweight rich-text editor (blog manager) ------------------------- */
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--glass-border-soft);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--glass-bg-tint);
}
.rte-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rte-btn:hover { background: var(--glass-bg-strong); border-color: var(--accent); }
.rte-area {
  min-height: 180px;
  border: 1px solid var(--glass-border-soft);
  border-radius: 0 0 12px 12px;
  padding: 12px 14px;
  background: var(--glass-bg);
  line-height: 2;
  font-size: 14px;
  outline: none;
}
.rte-area:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.rte-area:empty:before { content: attr(data-placeholder); color: var(--text-hint); }

/* ---- Admin dashboard: flat full-height sidebar layout (out of the box) ---- */
/* پنل از حالت «کارت داخل کارت» خارج می‌شود: خود پورتال شفاف و بدون پدینگ است */
#adminPortal, #doctorPortal { padding: 0; background: transparent; border: none; box-shadow: none; }
.admin-shell {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 72vh;
}
.admin-sidebar {
  position: sticky;
  top: 72px;
  align-self: flex-start;
  flex: 0 0 224px;
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 8px 0;
  /* بدون کارت/اسکرول: صاف، با یک جداکنندهٔ نازک از محتوا */
  border-radius: 0;
  background: transparent;
  border: none;
  border-inline-end: 1px solid var(--glass-border-soft);
  box-shadow: none;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--glass-border-soft);
  margin-bottom: 4px;
}
/* دکمهٔ بستنِ منو — فقط روی موبایل (منوی تمام‌صفحه) */
.admin-sidebar-close {
  display: none;
  margin-inline-start: auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-sidebar-close:hover { background: var(--glass-bg-strong); }
.admin-sidebar-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--navy-900));
  color: #fff;
  font-weight: 700;
}
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: start;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}
.admin-nav-icon { width: 19px; height: 19px; flex: 0 0 auto; opacity: 0.85; }
.admin-nav-item:hover { background: var(--glass-bg); color: var(--text-strong); transform: translateX(-2px); }
.admin-nav-item.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(41, 89, 88, 0.28), var(--glass-highlight);
}
.admin-nav-item.active .admin-nav-icon { opacity: 1; }
.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--glass-border-soft);
}
.admin-sidebar-foot .subtle-btn { width: 100%; }
.admin-content { flex: 1 1 auto; min-width: 0; }
.admin-content-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-content-head .section-title { font-size: 20px; }
/* همبرگرِ داخل محتوا دیگر استفاده نمی‌شود؛ همبرگرِ کنار لوگو در هدر جایگزین شد */
.admin-hamburger { display: none !important; }
/* همبرگرِ کنار لوگو (در هدر مشترک) */
.portal-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-strong);
  cursor: pointer;
  margin-inline-end: 8px;
}
.admin-backdrop { display: none; }

/* Tablet: narrow the sticky sidebar a touch so content keeps room */
@media (max-width: 1024px) and (min-width: 861px) {
  .admin-shell { gap: 12px; }
  .admin-sidebar { flex-basis: 200px; width: 200px; }
  .admin-nav-item { padding: 9px 10px; font-size: 13px; }
}

@media (max-width: 860px) {
  /* مهم: backdrop-filter/transform روی کارت، المانِ position:fixed داخلش را «محبوس» می‌کند
     و باعث می‌شود drawer سایدبار به‌جای تمام‌قد، یک باکسِ کوچک داخل کارت شود. روی موبایل
     که کارت پس‌زمینه‌ای ندارد، این افکت‌ها را حذف می‌کنیم تا drawer نسبت به viewport تمام‌قد شود. */
  #adminPortal, #doctorPortal {
    padding: 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
  }
  .admin-shell { display: block; min-height: 0; }
  .admin-content { width: 100%; max-width: 100%; overflow-x: hidden; }
  /* جلوگیری از سرریز افقی: شکستن لینک‌ها/متن‌های بلند در پنل روی موبایل */
  .admin-content a, .admin-content .list-card, .admin-content code, .admin-content .toast { overflow-wrap: anywhere; word-break: break-word; }
  .admin-content textarea, .admin-content input, .admin-content select { max-width: 100%; box-sizing: border-box; }
  /* همبرگرِ کنار لوگو فقط روی موبایلِ پنل فعال نمایش داده می‌شود */
  body.portal-active .portal-hamburger { display: inline-flex; }
  /* منوی تمام‌صفحه روی موبایل (تمام عرض و تمام قد) */
  .admin-sidebar {
    position: fixed;
    inset: 0;                 /* top/right/bottom/left = 0 → تمام صفحه */
    height: 100%;
    max-height: none;
    width: auto;
    max-width: 100%;
    flex: none;
    border-radius: 0;
    background: var(--surface);
    border: none;
    box-shadow: none;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(110%);   /* پنهان در سمت راست */
    transition: transform 0.28s ease;
    z-index: 1300;                  /* بالاتر از هدر و نوار پایین */
    overflow-y: auto;
  }
  .admin-sidebar.open { transform: translateX(0); }   /* اسلاید از راست، تمام‌صفحه */
  .admin-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--glass-bg-deep);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1100;
  }
  .admin-hamburger { display: inline-flex; }
  .admin-sidebar-close { display: inline-flex; }
  .admin-content-head { position: sticky; top: 0; z-index: 5; background: var(--glass-bg); padding: 4px 0; }
}

/* ---- Booking step progress bar (wizard) ---------------------------------- */
.booking-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 8px auto 16px;
  padding: 14px 8px 6px;
  max-width: 520px;
}
.bstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-align: center;
  max-width: 96px;
  cursor: default;
}
.bstep-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--glass-bg-strong);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.bstep-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}
.bstep.is-current .bstep-dot {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--glass-bg);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--glass-highlight);
}
.bstep.is-current .bstep-label { color: var(--accent-strong); font-weight: 700; }
.bstep.is-done .bstep-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.bstep.is-done .bstep-label { color: var(--text-strong); }
.bstep.is-done,
.bstep.is-current { cursor: pointer; }
.bstep-line {
  flex: 1 1 auto;
  height: 2px;
  min-width: 16px;
  max-width: 70px;
  margin-top: 16px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
  transition: background 0.25s ease;
}
.bstep-line.is-done { background: var(--accent); }

/* ---- Booking step panels & nav ------------------------------------------- */
.booking-step[hidden] { display: none !important; }
.booking-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 6px 0 12px;
}
.booking-step-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.booking-step-nav .primary-btn,
.booking-step-nav .subtle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  margin-top: 0;
}

/* ---- Patient selection (self / other) ------------------------------------ */
.patient-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--glass-bg-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
}
.patient-card-check {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}
/* ---- Booking step 1: account card (centered) ----------------------------- */
.account-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--glass-bg-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  max-width: 440px;
  margin: 6px auto 0;
}
.account-card--in {
  flex-direction: row;
  align-items: center;
  text-align: right;
  gap: 12px;
  padding: 16px 18px;
}
.account-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.account-card-icon svg { width: 30px; height: 30px; }
.account-card-title { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.account-card-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 350px;
}
.account-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
}
.account-card-actions .account-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-radius: 12px;
  font-weight: 700;
}
.account-card-check {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
}
.account-card-name { font-weight: 700; color: var(--text-strong); }
.account-card-phone { font-size: 13px; color: var(--text-muted); }
@media (max-width: 480px) {
  .account-card { padding: 22px 16px; }
  .account-card-actions { max-width: 100%; }
}

.patient-question { font-size: 14px; font-weight: 600; margin: 4px 0 10px; color: var(--text-strong); }
.patient-options { display: flex; flex-direction: column; gap: 10px; }
.patient-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.patient-option:hover { border-color: rgba(41, 89, 88, 0.3); }
.patient-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--focus-ring), var(--glass-highlight);
  background: var(--glass-bg-strong);
}
.patient-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.patient-option-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.patient-option-name { font-weight: 700; font-size: 14px; }
.patient-option-phone { font-size: 12px; color: var(--text-muted); }
.patient-edit-btn { color: var(--accent-strong); font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.patient-fields { margin-top: 14px; }

/* ---- Whole-card CTA affordance (replaces the removed in-card button) ----- */
.doc-card-cta {
  justify-content: flex-end;
  border-top: 1px dashed var(--glass-border-soft);
  padding-top: 10px;
  margin-top: 2px;
}
.doc-cta-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-inline-start: auto;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.doc-card:hover .doc-cta-hint { gap: 10px; }

/* When the browser can't blur, lean on more opaque surfaces so nothing looks
   washed out (rgba alone reads as flat translucency). */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .glass-card, .glass-panel, .glass-nav, .glass-btn,
  .card, .list-card, .admin-form-card, .doctor-notes-card,
  .stat-card, .doc-card, .booking-doc-card,
  .app-header, .bottom-nav, .modal-card, .portal-tabs, .tab-bar {
    background: var(--surface);
  }
  .modal-backdrop { background: var(--overlay); }
}

@media (prefers-reduced-motion: reduce) {
  .glass-btn::before,
  .primary-btn::before,
  .booking-doc-map::before { display: none; }
  .skeleton, .skeleton-line, .skeleton-circle { animation: none; }
  *,
  *::before,
  *::after { transition-duration: 0.001ms !important; }
}

/* ---- کنترلِ دارک‌مود (سوییچ) — در پنل‌های ادمین/منشی/کاربر ---------------- */
.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-tint);
  color: var(--text-strong);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle-row:hover { border-color: var(--accent, #1F6E61); }
.theme-toggle-label { display: inline-flex; align-items: center; gap: 9px; }
.theme-toggle-label svg { width: 19px; height: 19px; color: var(--accent-strong); flex: 0 0 auto; }
.theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.25s ease;
}
.theme-switch-knob {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.theme-toggle-row.is-dark .theme-switch { background: var(--accent, #1F6E61); }
.theme-toggle-row.is-dark .theme-switch-knob { transform: translateX(-20px); }

/* ---- اسکلتِ لودِ کارتِ حساب کاربری + انیمیشنِ ورود ---------------------- */
.account-card--skeleton { gap: 10px; }
.account-card--skeleton .account-skel-icon { width: 60px; height: 60px; margin-bottom: 4px; }
.account-card--skeleton .account-skel-title { height: 18px; width: 140px; }
.account-card--skeleton .account-skel-sub { height: 12px; width: 280px; max-width: 80%; }
.account-card--skeleton .account-skel-sub2 { height: 12px; width: 210px; max-width: 65%; }
.account-card--skeleton .account-card-actions { margin-top: 12px; }
.account-card--skeleton .account-skel-btn { height: 46px; width: 100%; border-radius: 12px; }

/* شیمرِ اسکلت در دارک‌مود (روشن روی تیره تا دیده شود) */
html[data-theme="dark"] .skeleton,
html[data-theme="dark"] .skeleton-line,
html[data-theme="dark"] .skeleton-circle {
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.05) 65%
  );
}

/* ورودِ نرمِ کارتِ حساب کاربری (پس از اسکلت) */
@keyframes account-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
#bookingAuthLoggedIn.account-reveal,
#bookingAuthGuest.account-reveal { animation: account-card-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* =======================================================================
   CONSOLIDATED DARK-MODE OVERRIDES (auto-generated audit pass)
   Additive only — corrects hardcoded colors that did not adapt to dark.
   ======================================================================= */
/* ===== dark-mode overrides from assets/styles/glass.css (11 rules) ===== */
html[data-theme="dark"] .doc-card {
  border-color: var(--glass-border);
}

html[data-theme="dark"] .home-blog-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

html[data-theme="dark"] .search-input-wrap .input {
  border-color: var(--glass-border-soft);
}

html[data-theme="dark"] .filter-toggle-btn {
  border-color: var(--glass-border-soft);
}

html[data-theme="dark"] .hero-slide.has-text::before {
  background: linear-gradient(to left, rgba(14, 21, 19, 0.96) 0%, rgba(14, 21, 19, 0.78) 34%, rgba(14, 21, 19, 0) 64%);
}

html[data-theme="dark"] .hero-arrow {
  background: rgba(20, 30, 27, 0.85);
  border-color: var(--glass-border);
}

html[data-theme="dark"] .page-banner-media {
  background: radial-gradient(circle at 30% 30%, rgba(95, 208, 184, 0.08), transparent 60%), linear-gradient(140deg, var(--mint-strong) 0%, var(--secondary-soft) 100%);
}

html[data-theme="dark"] .skeleton,
html[data-theme="dark"] .skeleton-line,
html[data-theme="dark"] .skeleton-circle {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.05) 65%);
}

html[data-theme="dark"] .ticket-badge.closed {
  background: rgba(95, 208, 184, 0.08);
  color: var(--text-muted);
}

html[data-theme="dark"] .patient-option:hover {
  border-color: rgba(95, 208, 184, 0.3);
}

html[data-theme="dark"] .blog-card-cover-empty {
  background: linear-gradient(135deg, rgba(95, 208, 184, 0.12), rgba(244, 183, 64, 0.12));
}

html[data-theme="dark"] .theme-switch-knob {
  background: var(--text-strong);
}

/* ===== dark-mode overrides from index.html (34 rules) ===== */
/* Dark mode overrides for index.html inline styles */
/* Applied via glass.css (loaded after inline <style>) */

/* LIGHT BACKGROUNDS -> dark mode equivalents */
html[data-theme="dark"] .doc-card {
  background: var(--glass-bg);
}

html[data-theme="dark"] .doc-card:hover {
  background: var(--glass-bg);
}

html[data-theme="dark"] .booking-doc-photo-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(95, 208, 184, 0.12), transparent 60%), var(--glass-bg);
}

html[data-theme="dark"] .booking-doc-photo {
  background: var(--glass-bg);
}

html[data-theme="dark"] .booking-doc-card .booking-doc-meta {
  background: var(--surface);
}

html[data-theme="dark"] .doc-map-link {
  background: var(--glass-bg);
}

html[data-theme="dark"] .input {
  background: rgba(22, 33, 29, 0.6);
  color: var(--text-strong);
}

html[data-theme="dark"] .input::placeholder {
  color: var(--text-hint);
}

html[data-theme="dark"] .input:focus {
  background: var(--glass-bg);
}

html[data-theme="dark"] .tab-bar {
  background: var(--surface);
}

html[data-theme="dark"] .badge {
  background: rgba(95, 208, 184, 0.15);
}

html[data-theme="dark"] .jdate-picker {
  background: var(--glass-bg);
}

html[data-theme="dark"] .jdate-nav {
  background: var(--glass-bg);
}

html[data-theme="dark"] .jdate-cell {
  background: var(--glass-bg);
}

html[data-theme="dark"] .jdate-cell:hover:not(.selected):not(.jdate-empty) {
  background: var(--surface);
}

html[data-theme="dark"] .doctor-notes-icon {
  background: rgba(95, 208, 184, 0.15);
  color: var(--text-strong);
}

html[data-theme="dark"] .time-chip.disabled {
  background: var(--surface);
}

html[data-theme="dark"] .bk-done-track {
  background: linear-gradient(135deg, rgba(95, 208, 184, 0.15), rgba(95, 208, 184, 0.08));
}

html[data-theme="dark"] .portal-tab-button.active {
  background: var(--glass-bg);
}

html[data-theme="dark"] .clinic-chip {
  background: var(--glass-bg);
}

html[data-theme="dark"] .filter-select {
  background: var(--glass-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.8 2.667c.368 0 .667.299.667.667v7.19L7.13 8.862a.667.667 0 01.943 0 .667.667 0 010 .943l-2.8 2.8a.667.667 0 01-.943 0l-2.8-2.8a.667.667 0 010-.943.667.667 0 01.943 0l1.662 1.662V3.334c0-.368.299-.667.667-.667zM7.066 3.334c0-.368.299-.667.667-.667h5.6c.368 0 .667.299.667.667 0 .368-.299.667-.667.667h-5.6a.667.667 0 01-.667-.667zM8.666 6.534c0-.368.299-.667.667-.667h4c.368 0 .667.299.667.667 0 .368-.299.667-.667.667h-4a.667.667 0 01-.667-.667zM10.666 9.334c0-.368.299-.667.667-.667h2c.368 0 .667.299.667.667 0 .368-.299.667-.667.667h-2a.667.667 0 01-.667-.667z' fill='%235FD0B8'/%3E%3C/svg%3E") no-repeat left 12px center;
}

html[data-theme="dark"] .footer-social-btn {
  background: var(--glass-bg);
}

html[data-theme="dark"] .footer-badge {
  background: var(--glass-bg);
}

/* LIGHT BORDERS -> dark mode */
html[data-theme="dark"] .doc-photo {
  border-color: var(--border);
}

html[data-theme="dark"] .booking-doc-photo-wrap {
  border-color: var(--border);
}

html[data-theme="dark"] .booking-doc-photo {
  border-color: var(--border);
}

html[data-theme="dark"] .booking-doc-card .booking-doc-meta {
  border-color: var(--border);
}

html[data-theme="dark"] .booking-doc-card .booking-doc-address {
  border-color: var(--border);
}

html[data-theme="dark"] .time.reserved {
  border-color: var(--border);
}

html[data-theme="dark"] .doctor-notes-icon {
  border-color: var(--border);
}

html[data-theme="dark"] .footer-social-btn {
  border-color: var(--border);
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border);
}

/* DARK TEXT -> light text in dark mode */
html[data-theme="dark"] .doc-chip {
  color: rgba(232, 240, 237, 0.85);
  background: rgba(95, 208, 184, 0.15);
}

html[data-theme="dark"] .doc-chip-soft {
  color: rgba(232, 240, 237, 0.85);
  background: rgba(95, 208, 184, 0.15);
}

/* ===== dark-mode overrides from assets/login.css (10 rules) ===== */
html[data-theme="dark"] .primary-btn {
  color: #fff;
}

/* (باتم‌بار خودش با توکن‌های --nav-glass-* در دارک درست می‌شود؛ override حذف شد تا قرصِ سبز بماند) */

html[data-theme="dark"] .badge {
  background: rgba(95, 208, 184, 0.12);
  color: var(--accent-strong);
}

html[data-theme="dark"] .badge.success {
  background: rgba(95, 208, 184, 0.12);
  color: var(--accent-strong);
}

html[data-theme="dark"] .badge.warning {
  background: rgba(244, 183, 64, 0.12);
  color: var(--cta);
}

html[data-theme="dark"] .badge.info {
  background: rgba(95, 208, 184, 0.12);
  color: var(--accent-strong);
}

/* ===== dark-mode overrides from assets/static-pages.css (11 rules) ===== */
html[data-theme="dark"] .page-card {
  box-shadow: 0 22px 60px rgba(232, 240, 237, 0.08);
}

html[data-theme="dark"] .page-side-panel {
  box-shadow: 0 14px 40px rgba(232, 240, 237, 0.12);
}

html[data-theme="dark"] .page-side-cta {
  color: var(--navy-900);
}

html[data-theme="dark"] .subtle-btn::after {
  background: radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(95, 208, 184, 0.12), transparent 55%);
}

html[data-theme="dark"] .subtle-btn:hover {
  box-shadow: 0 0 0 1px rgba(95, 208, 184, 0.20), 0 6px 16px rgba(232, 240, 237, 0.10);
}

html[data-theme="dark"] .footer-col-title {
  color: var(--text-strong);
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .badge {
  background: rgba(95, 208, 184, 0.12);
  color: var(--text-strong);
}

html[data-theme="dark"] .badge.warning {
  color: var(--text-strong);
}

html[data-theme="dark"] .track-code-chip {
  background: linear-gradient(135deg, rgba(95, 208, 184, 0.15), rgba(95, 208, 184, 0.08));
  border-color: rgba(95, 208, 184, 0.20);
}

html[data-theme="dark"] .track-card {
  box-shadow: 0 6px 18px rgba(232, 240, 237, 0.06);
}

/* ===== dark-mode overrides from assets/styles/theme.css (3 rules) ===== */
html[data-theme="dark"] .blog-body a,
html[data-theme="dark"] .article a,
html[data-theme="dark"] .tr-admin-html a {
  color: #E8F0ED;
}

html[data-theme="dark"] .otp-box {
  color: #E8F0ED;
}

html[data-theme="dark"] .otp-box:focus {
  box-shadow: 0 0 0 3px rgba(95, 208, 184, 0.25);
}

/* گرادینتِ آواتارها (بلاگ + لوگوی سایدبارِ ادمین) در دارک تیره بماند تا متنِ سفید خوانا باشد
   (چون --navy-900 در دارک روشن شده، گرادینتِ پیش‌فرض روشن می‌شد). */
html[data-theme="dark"] .blog-author-avatar,
html[data-theme="dark"] .admin-sidebar-logo {
  background: linear-gradient(135deg, var(--accent), #0C1F1B);
}

/* ---- بنرِ تصویریِ صفحات (page-banner) — تمام‌عرض، بدونِ کراپ، ریسپانسیو ---- */
.page-banner-img { position: relative; padding: 0; overflow: hidden; }
.page-banner-img-el { display: block; width: 100%; height: auto; }
.page-banner-img.has-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0) 64%);
}
.page-banner-img .page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 28px;
  max-width: 60%;
}
@media (max-width: 640px) {
  .page-banner-img .page-banner-overlay { max-width: 100%; padding: 16px 18px; }
  .page-banner-img.has-text::before { background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0) 100%); }
}

/* اسکریمِ overlayِ بنرِ صفحات در دارک‌مود (به‌جای سفید، تیره) */
html[data-theme="dark"] .page-banner-img.has-text::before {
  background: linear-gradient(to left, rgba(14, 21, 19, 0.94) 0%, rgba(14, 21, 19, 0.7) 36%, rgba(14, 21, 19, 0) 66%);
}
html[data-theme="dark"] .hero-slide.has-text::before {
  background: linear-gradient(to left, rgba(14, 21, 19, 0.94) 0%, rgba(14, 21, 19, 0.7) 34%, rgba(14, 21, 19, 0) 64%);
}
@media (max-width: 640px) {
  html[data-theme="dark"] .page-banner-img.has-text::before {
    background: linear-gradient(to top, rgba(14, 21, 19, 0.95) 0%, rgba(14, 21, 19, 0.45) 60%, rgba(14, 21, 19, 0) 100%);
  }
}
