/* Doctors In Bangladesh — site styles
 * Componentized version of the original MedEase prototype.
 */

/* ─── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-nav.scrolled {
  border-bottom-color: var(--color-slate-mid);
  box-shadow: 0 4px 18px rgba(146,138,253,0.08);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: var(--nav-height);
}
.nav-drawer { display: none; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s ease;
}
.brand-mark:hover .brand-icon { transform: rotate(-6deg) scale(1.06); }
.brand-text {
  font-size: 19px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--color-text-primary);
}
.brand-text span { color: var(--color-purple); }

.nav-links {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  color: var(--color-text-body);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--color-slate); color: var(--color-text-primary); }
.nav-link.active {
  background: var(--color-purple-light);
  color: var(--color-purple);
  font-weight: 600;
}
.nav-link .pulse-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-purple);
  box-shadow: 0 0 0 0 rgba(146,138,253,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(146,138,253,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(146,138,253,0); }
  100% { box-shadow: 0 0 0 0 rgba(146,138,253,0); }
}

.nav-cta {
  background: var(--color-purple);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--color-purple-dark); transform: translateY(-2px); }
.nav-cta .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}

.nav-toggle {
  display: none;
  background: var(--color-purple);
  border: none;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-toggle:hover { background: var(--color-purple-dark); transform: scale(1.05); }
.site-nav.is-open .nav-toggle { background: var(--color-text-primary); }
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  position: relative;
  transition: background 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.site-nav.is-open .nav-toggle span { background: transparent; }
.site-nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: #fff; }
.site-nav.is-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); background: #fff; }

@media (max-width: 880px) {
  .site-nav {
    background: var(--color-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-bar {
    padding: 0 16px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-bar .nav-links,
  .nav-bar .nav-auth { display: none; }
  .brand-mark { flex: 1; min-width: 0; }

  /* Drawer: full-screen overlay below the nav bar */
  .site-nav.is-open .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--color-white);
    z-index: 999;
    padding: var(--space-4) var(--space-4) var(--space-8);
    overflow-y: auto;
    animation: navSlideDown 0.2s ease;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav-drawer-links .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: var(--weight-medium);
    border-radius: var(--radius-md);
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    background: transparent;
    transition: background 0.12s;
  }
  .nav-drawer-links .nav-link:hover {
    background: var(--color-slate);
  }
  .nav-drawer-links .nav-link.active {
    background: var(--color-purple);
    color: #fff;
    font-weight: var(--weight-semibold);
  }
  .nav-drawer-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-slate-mid);
  }
  .nav-drawer-auth .nav-user-name,
  .nav-drawer-auth .nav-login,
  .nav-drawer-auth .nav-logout,
  .nav-drawer-auth .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-md);
  }
  .nav-drawer-auth .nav-login {
    background: var(--color-slate);
    color: var(--color-text-primary);
    font-weight: var(--weight-semibold);
    border: 1.5px solid var(--color-slate-mid);
  }
}
@media (max-width: 480px) {
  .site-nav { padding: 0 12px; }
  .brand-text { font-size: var(--text-md); }
  .brand-icon { width: 34px; height: 34px; font-size: 17px; }
}


/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--color-slate);
  padding: 80px 40px 72px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.hero .blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero .blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(146,138,253,0.15) 0%, transparent 65%);
  top: -150px; left: -120px;
}
.hero .blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(202,229,255,0.30) 0%, transparent 65%);
  top: -80px; right: 60px;
}
.hero .blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(46,196,182,0.12) 0%, transparent 65%);
  bottom: -60px; right: 200px;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--color-text-body);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success); display: inline-block;
}
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1; letter-spacing: -1.5px;
  color: var(--color-text-primary); margin-bottom: 20px;
}
.hero-title em { color: var(--color-purple); font-style: normal; }
.hero-lede {
  font-size: 15px; line-height: 1.7;
  color: var(--color-text-body); margin-bottom: 32px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 12px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
}
.hero-trust .avatar:first-child { margin-left: 0; }
.hero-visual {
  position: relative; height: 480px;
}
.hero-visual .doctor-card {
  position: absolute; left: 24px; top: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, #CAE5FF 0%, #EDE9FF 60%, #d0f4f1 100%);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(146,138,253,0.18);
}
.hero-visual .doctor-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(146,138,253,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-visual .doc-figure {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.hero-visual .doc-coat {
  width: 160px; height: 200px; background: #fff;
  border-radius: 80px 80px 0 0; position: relative;
  box-shadow: 0 -4px 20px rgba(146,138,253,0.15);
}
.hero-visual .doc-lapel {
  position: absolute; top: 0; width: 40px; height: 70px;
  background: var(--color-purple-light);
  border-radius: 0 0 20px 20px; transform-origin: top center;
}
.hero-visual .doc-lapel.left  { left: 28px;  transform: rotate(-8deg); }
.hero-visual .doc-lapel.right { right: 28px; transform: rotate(8deg); }
.hero-visual .doc-id {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  background: var(--color-purple); width: 44px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; font-weight: 700; line-height: 1.3;
  text-align: center;
}
.hero-visual .doc-stetho {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 25px;
  border: 3px solid var(--color-cyan);
  border-bottom: none; border-radius: 25px 25px 0 0;
}
.hero-visual .doc-head {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c9a0, #e8a87c);
  border: 4px solid #fff;
  margin-bottom: -36px; position: relative; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  overflow: hidden;
}
.hero-visual .doc-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: #3D2B1F; border-radius: 36px 36px 0 0;
}
.hero-visual .teal-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, rgba(46,196,182,0.25), transparent);
  pointer-events: none;
}
.hero-float {
  position: absolute; z-index: 10;
  background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-float);
  padding: 14px 18px;
}
.hero-float.doctor-info { top: 24px; left: 0; display: flex; gap: 12px; min-width: 220px; align-items: center; }
.hero-float.doctor-info .avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.hero-float.quick-book { bottom: 80px; left: 0; min-width: 230px; padding: 16px 18px; }
.hero-float.quick-book .label {
  font-size: 11px; font-weight: 700; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px;
}
.hero-float.quick-book .pills {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.hero-float.quick-book button.spec {
  border-radius: var(--radius-pill); padding: 4px 10px;
  font-size: 10px; font-weight: 600;
  border: none;
  background: var(--color-slate); color: var(--color-text-muted);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.hero-float.quick-book button.spec.active {
  background: var(--color-purple); color: #fff;
}
.hero-float.quick-book .book-cta {
  width: 100%; background: var(--color-black); color: #fff;
  border-radius: var(--radius-pill);
  padding: 9px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s; text-decoration: none; display: block; text-align: center;
}
.hero-float.quick-book .book-cta:hover { background: var(--color-purple); }

.hero-float.available {
  top: 100px; right: -8px;
  border-radius: var(--radius-pill);
  padding: 7px 14px 7px 9px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--color-text-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.hero-float.available .pulse {
  width: 8px; height: 8px; background: var(--color-success);
  border-radius: 50%; box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
.hero-float.patients {
  bottom: 28px; right: 16px;
  background: var(--color-purple);
  color: #fff;
  padding: 12px 18px; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(146,138,253,0.35);
}
.hero-float.patients .num {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1;
}
.hero-float.patients .lbl { font-size: 10px; opacity: 0.85; margin-top: 3px; }
.hero-float.rating {
  top: 50%; right: -8px;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
}
.hero-float.rating .num {
  font-size: 18px; font-weight: 800; color: var(--color-text-primary);
  letter-spacing: -0.5px;
}
.hero-float.rating .stars { color: var(--color-warning); font-size: 12px; letter-spacing: 1px; }
.hero-float.rating .lbl { font-size: 10px; color: #9CA3AF; margin-top: 2px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { height: 420px; }
}

/* ─── Page intro band (sub pages) ─────────────────────────── */
.page-intro {
  background: var(--color-slate);
  padding: 64px 40px 44px; text-align: center;
}
.page-intro .section-chip { background: #fff; }
.page-intro h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -1.2px;
  color: var(--color-text-primary); line-height: 1.1;
}
.page-intro p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-top: var(--space-2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ─── Departments ─────────────────────────────────────────── */
.section { padding: 80px 40px; }
.section.alt { background: var(--color-slate); }
.section.soft { background: var(--color-slate-soft); }

.section-head {
  text-align: center; margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; letter-spacing: -0.8px;
  color: var(--color-text-primary); margin-bottom: 12px;
  line-height: 1.2;
}
.section-head p {
  font-size: 14px; color: var(--color-text-muted);
  max-width: 480px; margin: 0 auto; line-height: 1.7;
}
.section-head.left { text-align: left; }
.section-head.left p { margin: 10px 0 0; max-width: 480px; }

.dept-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dept-card {
  border-radius: 20px; padding: 28px 20px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 130px;
  text-decoration: none;
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(146,138,253,0.15);
}
.dept-card .ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.dept-card .name {
  font-size: 15px; font-weight: 600; color: var(--color-text-primary);
}
.dept-card .blurb {
  font-size: 12px; color: var(--color-text-muted); line-height: 1.5;
}
@media (max-width: 880px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Doctors ─────────────────────────────────────────────── */
.doctors-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.doctors-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; letter-spacing: -0.8px;
  color: var(--color-text-primary);
  max-width: 480px; line-height: 1.2;
}
.doctor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px;
}
.doctor-card {
  border-radius: 24px; overflow: hidden; position: relative;
  aspect-ratio: 3/4;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(146,138,253,0.22);
}
.doctor-card .silhouette {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  opacity: 0.25;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.doctor-card:hover .silhouette { transform: translateX(-50%) scale(1.06); }
.doctor-card .silhouette .head {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-text-primary);
}
.doctor-card .silhouette .body {
  width: 80px; height: 100px; border-radius: 40px 40px 0 0;
  background: var(--color-text-primary);
}
.doctor-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--color-teal) 0%, rgba(46,196,182,0.4) 45%, transparent 100%);
  transition: opacity 0.6s ease;
}
.doctor-card .badge {
  position: absolute; top: 12px; right: 12px;
  border-radius: var(--radius-pill);
  padding: 4px 11px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.doctor-card .badge.today { background: var(--color-success-soft); color: var(--color-success-fg); }
.doctor-card .badge.tomorrow { background: var(--color-warning-soft); color: var(--color-warning-fg); }
.doctor-card .info {
  position: relative; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #fff;
}
.doctor-card .info .name {
  font-size: 14px; font-weight: 700; line-height: 1.2;
}
.doctor-card .info .spec {
  font-size: 11px; opacity: 0.92; margin-top: 2px;
}
.doctor-card .book-pill {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.doctor-card .book-pill:hover { background: rgba(255,255,255,0.4); }

@media (max-width: 880px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

.dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 24px;
}
.dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-slate-mid);
}
.dots span.active { width: 22px; border-radius: 999px; background: var(--color-purple); }

/* ─── Stats / About ───────────────────────────────────────── */
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.stats-photo {
  position: relative;
}
.stats-photo .ph {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple-light) 100%);
  border-radius: 24px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.stats-photo .ph .silhouette {
  opacity: 0.3; text-align: center;
}
.stats-photo .ph .silhouette .head {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-text-primary); margin: 0 auto 8px;
}
.stats-photo .ph .silhouette .body {
  width: 100px; height: 130px; border-radius: 50px 50px 0 0;
  background: var(--color-text-primary); margin: 0 auto;
}
.stats-photo .badge-card {
  position: absolute; bottom: -16px; right: -16px;
  background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 10px;
}
.stats-photo .badge-card .ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-purple-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.stats-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat-pill {
  border-radius: 16px; padding: 20px;
}
.stat-pill .num {
  font-size: 28px; font-weight: 700; color: var(--color-text-primary); line-height: 1;
}
.stat-pill .lbl { font-size: 12px; margin-top: 4px; line-height: 1.4; }

@media (max-width: 880px) {
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Hospitals ───────────────────────────────────────────── */
.hospital-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-bottom: 20px;
}
.hospital-card {
  border-radius: 24px; overflow: hidden; background: #fff;
  border: 1px solid var(--color-slate-mid);
  box-shadow: 0 2px 16px rgba(146,138,253,0.07);
  transition: box-shadow 0.25s;
}
.hospital-card:hover { box-shadow: 0 8px 32px rgba(146,138,253,0.14); }
.hospital-cover {
  height: 148px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 20px;
}
.hospital-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.hospital-cover .building {
  display: flex; align-items: flex-end; gap: 3px;
  position: relative; z-index: 1;
}
.hospital-cover .building > span {
  border-radius: 5px 5px 0 0;
  display: block;
}
.hospital-cover .building .main {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px;
}
.hospital-cover .cross {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700;
}
.hospital-cover .badge {
  position: absolute; top: 12px; left: 14px;
  color: #fff; border-radius: var(--radius-pill);
  padding: 4px 11px; font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
}
.hospital-cover .hours {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 4px 10px; font-size: 10px; font-weight: 600; color: var(--color-text-body);
}
.hospital-body { padding: 20px 22px 0; }
.hospital-name { font-size: 15px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 5px; letter-spacing: -0.3px; }
.hospital-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--color-text-muted); margin-bottom: 14px;
}
.hospital-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hospital-pills span {
  border-radius: var(--radius-pill);
  padding: 3px 11px; font-size: 11px; font-weight: 600;
}
.hospital-rating {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.hospital-rating .stars { display: flex; gap: 2px; font-size: 13px; }
.hospital-rating .stars .on  { color: var(--color-warning); }
.hospital-rating .stars .off { color: var(--color-slate-mid); }
.hospital-rating .num { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.hospital-rating .reviews { font-size: 11px; color: #9CA3AF; }

.hospital-cta { padding: 0 22px 22px; display: flex; gap: 8px; }
.hospital-cta .btn-doctors {
  flex: 1; background: var(--color-slate); color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  padding: 10px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.hospital-cta .btn-doctors[aria-expanded="true"] {
  background: var(--color-purple); color: #fff;
}
.hospital-cta .btn-visit {
  background: var(--color-black); color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 16px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.2s;
}
.hospital-cta .btn-visit:hover { background: var(--color-purple); }

.hospital-doctors {
  border-top: 1px solid var(--color-slate);
  padding: 16px 22px 20px;
  background: #FAFBFF;
  display: none;
}
.hospital-doctors.open { display: block; animation: fadeUp 0.25s ease both; }
.hospital-doctors .label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: #9CA3AF; margin-bottom: 12px;
}
.hospital-doctors ul {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.hospital-doctors li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 10px 14px;
  border: 1px solid var(--color-slate-mid);
  transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.hospital-doctors li .avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.hospital-doctors li .meta { flex: 1; min-width: 0; }
.hospital-doctors li .name {
  font-size: 13px; font-weight: 700; color: var(--color-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hospital-doctors li .sub {
  font-size: 11px; color: var(--color-text-muted); margin-top: 1px;
}
.hospital-doctors li .right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.hospital-doctors li .right .star {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--color-text-primary);
}
.hospital-doctors li .right .avail {
  border-radius: var(--radius-pill);
  padding: 2px 8px; font-size: 10px; font-weight: 600;
}
.hospital-doctors li .right .avail.today    { background: var(--color-success-soft); color: var(--color-success-fg); }
.hospital-doctors li .right .avail.tomorrow { background: var(--color-warning-soft); color: var(--color-warning-fg); }

.map-strip {
  border-radius: 20px;
  background: linear-gradient(135deg, #EDE9FF 0%, #CAE5FF 100%);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid rgba(146,138,253,0.15);
  flex-wrap: wrap;
}
.map-strip .pin {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-purple);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; flex-shrink: 0;
  box-shadow: var(--shadow-btn);
}

@media (max-width: 880px) {
  .hospital-grid { grid-template-columns: 1fr; }
}

/* ─── Offers ──────────────────────────────────────────────── */
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px;
}
.offer-card {
  border-radius: 24px; padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.offer-card .deco {
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  pointer-events: none;
}
.offer-card .tag {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; border-radius: var(--radius-pill);
  padding: 4px 11px; font-size: 10px; font-weight: 700;
  margin-bottom: 16px;
}
.offer-card .discount {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1; margin-bottom: 10px;
}
.offer-card .title { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.offer-card .desc  { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.offer-card .code-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.offer-card .code {
  flex: 1; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; font-family: monospace;
  border-style: dashed; border-width: 1.5px;
}
.offer-card .copy-btn {
  border-radius: 10px;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  color: #fff; transition: opacity 0.2s;
}
.offer-card .expiry { font-size: 11px; }

.promo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.promo-card {
  border-radius: 16px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: transform 0.2s;
  border: 1px solid rgba(0,0,0,0.04);
}
.promo-card:hover { transform: translateY(-2px); }
.promo-card .icon { font-size: 24px; flex-shrink: 0; }
.promo-card .title { font-size: 13px; font-weight: 700; }
.promo-card .sub   { font-size: 11px; opacity: 0.75; margin-top: 2px; }

@media (max-width: 880px) {
  .offers-grid, .promo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .offers-grid, .promo-grid { grid-template-columns: 1fr; }
}

/* ─── Testimonials ────────────────────────────────────────── */
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.test-card {
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: 0 2px 20px rgba(146,138,253,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(146,138,253,0.18);
}
.test-card .stars { color: var(--color-purple); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.test-card p {
  font-size: 13px; color: var(--color-text-body);
  line-height: 1.7; margin-bottom: 20px; font-style: italic;
}
.test-card .who { display: flex; align-items: center; gap: 10px; }
.test-card .who .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
}
.test-card .who .name { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.test-card .who .role { font-size: 11px; color: var(--color-text-muted); }

@media (max-width: 880px) {
  .test-grid { grid-template-columns: 1fr; }
}

/* ─── Booking ─────────────────────────────────────────────── */
.booking-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-success {
  background: var(--color-cyan);
  border-radius: 16px; padding: 24px; text-align: center;
}
.booking-success .check {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 10px;
}
.booking-success .h { font-size: 16px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; }
.booking-promo {
  position: relative;
}
.booking-promo .ph {
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-cyan));
  border-radius: 24px; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.booking-promo .silhouette { opacity: 0.3; }
.booking-promo .silhouette .head {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--color-text-primary); margin: 0 auto 8px;
}
.booking-promo .silhouette .body {
  width: 100px; height: 130px; border-radius: 50px 50px 0 0;
  background: var(--color-text-primary); margin: 0 auto;
}
.booking-promo .promo-badge {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 16px;
  padding: 14px 20px; box-shadow: var(--shadow-float);
  text-align: center; white-space: nowrap;
}
.booking-promo .promo-badge .stars { color: var(--color-purple); font-size: 12px; margin-bottom: 4px; }

@media (max-width: 880px) {
  .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .booking-form .row { grid-template-columns: 1fr; }
}

/* ─── Programs ────────────────────────────────────────────── */
.program-list {
  display: flex; flex-direction: column; gap: 12px;
}
.program-row {
  background: #fff; border-radius: 20px;
  border: 1px solid var(--color-slate-mid);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow 0.2s; cursor: pointer; flex-wrap: wrap;
}
.program-row:hover { box-shadow: 0 4px 20px rgba(146,138,253,0.12); }
.program-row .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.program-row .meta { flex: 1; min-width: 200px; }
.program-row .title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.program-row .desc  { font-size: 12px; color: var(--color-text-muted); }
.program-row .price { font-size: 18px; font-weight: 700; color: var(--color-text-primary); margin-right: 12px; }
.program-row .book {
  background: var(--color-black); color: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.program-row .book:hover { background: var(--color-purple); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--color-slate-soft); }

.footer-cta-band {
  border-bottom: 1px solid var(--color-slate-mid);
  padding: 72px 40px 64px;
}
.footer-cta-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.footer-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-purple-light);
  border: 1px solid rgba(146,138,253,0.25);
  border-radius: var(--radius-pill);
  padding: 5px 14px; font-size: 12px; font-weight: 600;
  color: var(--color-purple); letter-spacing: 0.2px;
  margin-bottom: 20px;
}
.footer-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-purple); display: inline-block;
}
.footer-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -2px; color: var(--color-text-primary);
}
.footer-headline em { color: var(--color-purple); font-style: normal; }
.footer-blurb { font-size: 14px; color: var(--color-text-muted); line-height: 1.75; max-width: 380px; margin-top: 16px; }
.footer-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.footer-stats .num { font-size: 24px; font-weight: 700; color: var(--color-text-primary); letter-spacing: -0.5px; }
.footer-stats .lbl { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.footer-newsletter {
  background: #fff; border-radius: 24px; padding: 32px;
  border: 1px solid var(--color-slate-mid);
  box-shadow: 0 2px 20px rgba(146,138,253,0.07);
}
.footer-newsletter .h { font-size: 17px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 6px; letter-spacing: -0.3px; }
.footer-newsletter .desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 22px; }
.footer-newsletter .field {
  display: flex; background: var(--color-slate);
  border: 1.5px solid var(--color-slate-mid);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 18px; margin-bottom: 10px;
  transition: border-color 0.2s;
}
.footer-newsletter .field:focus-within { border-color: var(--color-purple); }
.footer-newsletter .field input {
  background: transparent; border: none;
  flex: 1; font-size: 14px; outline: none; font-family: inherit;
  color: var(--color-text-primary);
}
.footer-newsletter .field button {
  background: var(--color-purple); color: #fff;
  border-radius: var(--radius-pill); padding: 10px 22px;
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  white-space: nowrap; box-shadow: var(--shadow-btn);
  transition: background 0.2s;
}
.footer-newsletter .field button:hover { background: var(--color-purple-dark); }
.footer-newsletter .fine { font-size: 11px; color: #9CA3AF; }

.footer-links {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 40px 44px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col-h {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #9CA3AF; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 13.5px; color: var(--color-text-body);
  cursor: pointer; transition: color 0.18s, padding-left 0.18s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-purple); padding-left: 4px; }

.footer-brand p {
  font-size: 13px; color: var(--color-text-muted);
  line-height: 1.8; max-width: 240px; margin-bottom: 22px;
}
.footer-brand .socials {
  display: flex; gap: 8px;
}
.footer-brand .socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--color-slate-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer; color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-brand .socials a:hover {
  background: var(--color-purple-light);
  color: var(--color-purple);
  border-color: var(--color-purple);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--color-slate-mid);
  max-width: 1200px; margin: 0 auto;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span,
.footer-bottom a { font-size: 12px; color: #9CA3AF; }
.footer-bottom a:hover { color: var(--color-purple); }

@media (max-width: 880px) {
  .footer-cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ─── Misc ────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.no-margin { margin: 0; }
.errorlist {
  list-style: none; padding: 0; margin: 4px 0 0;
  font-size: 12px; color: var(--color-danger);
}
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-pill); padding: 11px 24px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--color-purple); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--color-purple-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-text-primary); border: 1.5px solid var(--color-slate-mid); }
.btn-outline:hover { border-color: var(--color-purple); color: var(--color-purple); }
.btn-outline-sm { display: inline-block; padding: 8px 16px; font-size: 12px; font-weight: 600; border-radius: var(--radius-pill); border: 1.5px solid var(--color-slate-mid); color: var(--color-text-primary); background: transparent; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-outline-sm:hover { border-color: var(--color-purple); color: var(--color-purple); }

/* ─── Nav Auth ───────────────────────────────────────────── */
.nav-auth {
  display: flex; align-items: center; gap: 10px;
}
.nav-user-name {
  font-size: 14px; font-weight: 600; color: var(--color-text-primary);
  padding: 6px 12px; background: var(--color-slate); border-radius: var(--radius-pill);
}
.nav-login {
  font-size: 14px; font-weight: 600; color: var(--color-text-body);
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-slate-mid);
  transition: all 0.2s; text-decoration: none;
}
.nav-login:hover { border-color: var(--color-purple); color: var(--color-purple); }
.nav-logout {
  font-size: 13px; font-weight: 600; color: #EF4444;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid #FEE2E2; background: #FFF5F5;
  text-decoration: none; transition: all 0.2s;
}
.nav-logout:hover { background: #FEE2E2; }

/* ─── Back link ──────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; padding: 8px 0;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-purple); }

/* ─── Doctor Detail ──────────────────────────────────────── */
.detail-section { padding: 40px 40px 80px; }
.detail-hero {
  border-radius: 28px; padding: 40px;
  display: flex; gap: 40px; align-items: flex-start;
  margin-bottom: 40px;
  box-shadow: 0 4px 32px rgba(146,138,253,0.12);
}
.detail-hero-left { flex-shrink: 0; }
.detail-avatar {
  width: 140px; height: 180px;
  border-radius: 20px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.detail-silhouette {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; opacity: 0.35; padding-bottom: 0;
}
.detail-silhouette .head {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-text-primary);
}
.detail-silhouette .body {
  width: 80px; height: 110px; border-radius: 40px 40px 0 0;
  background: var(--color-text-primary);
}
.detail-hero-info { flex: 1; }
.detail-badges-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.detail-dept-badge {
  border-radius: var(--radius-pill); padding: 4px 14px;
  font-size: 12px; font-weight: 700;
}
.detail-name {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.1;
  color: var(--color-text-primary); margin: 0 0 6px;
}
.detail-title-line {
  font-size: 13px; font-weight: 600; color: var(--color-text-body);
  margin-bottom: 4px;
}
.detail-designation {
  font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px;
}
.detail-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.detail-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--color-text-body);
}
.dmeta-icon { font-size: 14px; }
.detail-stats-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 20px; background: rgba(255,255,255,0.6);
  border-radius: 16px; margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.detail-stat { text-align: center; }
.ds-num {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--color-text-primary); letter-spacing: -0.5px;
}
.ds-lbl {
  display: block; font-size: 11px; color: var(--color-text-muted); margin-top: 2px;
}
.detail-fee-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.detail-fee-badge {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  color: var(--color-text-primary);
  backdrop-filter: blur(4px);
}
.detail-fee-badge.alt { opacity: 0.8; }

/* Detail two-col grid */
.detail-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
  align-items: start;
}
.detail-col-left,
.detail-col-right { display: flex; flex-direction: column; gap: 20px; }

.detail-card {
  background: #fff; border-radius: 20px; padding: 28px;
  border: 1px solid var(--color-slate-mid);
  box-shadow: 0 2px 16px rgba(146,138,253,0.06);
}
.detail-card-title {
  font-size: 16px; font-weight: 700; color: var(--color-text-primary);
  margin: 0 0 18px; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
}
.review-count-badge {
  font-size: 11px; font-weight: 600;
  background: var(--color-slate); color: var(--color-text-muted);
  border-radius: var(--radius-pill); padding: 3px 10px;
}
.detail-bio {
  font-size: 14px; line-height: 1.8; color: var(--color-text-body);
  margin: 0;
}

/* Tag cloud */
.detail-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag {
  border-radius: var(--radius-pill); padding: 6px 14px;
  font-size: 12px; font-weight: 600;
}
.detail-tag.plain {
  background: var(--color-slate);
  color: var(--color-text-body);
}

/* Education timeline */
.edu-timeline { display: flex; flex-direction: column; gap: 0; }
.edu-item {
  display: grid; grid-template-columns: 52px 16px 1fr;
  gap: 0 12px; align-items: flex-start;
  padding-bottom: 20px; position: relative;
}
.edu-item:last-child { padding-bottom: 0; }
.edu-year {
  font-size: 12px; font-weight: 700;
  padding-top: 2px; text-align: right;
}
.edu-dot {
  width: 12px; height: 12px; border-radius: 50%;
  margin-top: 4px; flex-shrink: 0; position: relative; z-index: 1;
}
.edu-item:not(:last-child) .edu-dot::after {
  content: ''; position: absolute; left: 50%; top: 12px;
  transform: translateX(-50%);
  width: 2px; height: calc(100% + 8px);
  background: var(--color-slate-mid);
}
.edu-content { padding-top: 1px; }
.edu-degree { font-size: 14px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.edu-school  { font-size: 12px; color: var(--color-text-muted); }

/* Awards */
.awards-list { display: flex; flex-direction: column; gap: 12px; }
.award-item { display: flex; align-items: baseline; gap: 12px; }
.award-year { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.award-title { font-size: 13px; color: var(--color-text-body); }

/* Memberships */
.memberships-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.memberships-list li {
  font-size: 13px; color: var(--color-text-body);
  display: flex; align-items: center; gap: 8px;
}

/* Chambers */
.chambers-list { display: flex; flex-direction: column; gap: 16px; }
.chamber-item {
  background: var(--color-slate); border-radius: 16px;
  padding: 18px; border: 1.5px solid transparent;
  position: relative; transition: border-color 0.2s;
}
.chamber-item.primary {
  border-color: rgba(146,138,253,0.3);
  background: #FAFBFF;
}
.chamber-badge {
  display: inline-block; border-radius: var(--radius-pill);
  padding: 3px 10px; font-size: 10px; font-weight: 700;
  margin-bottom: 8px;
}
.chamber-name { font-size: 14px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; }
.chamber-address { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; line-height: 1.5; }
.chamber-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chamber-chip {
  background: #fff; border: 1px solid var(--color-slate-mid);
  border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 500;
  color: var(--color-text-body);
}
.chamber-fees {
  display: flex; gap: 16px; font-size: 12px; color: var(--color-text-muted);
  margin: 10px 0 12px;
}
.chamber-fees strong { color: var(--color-text-primary); }

/* Next slot card */
.next-slot-card { border: 1.5px solid transparent; }
.next-slot-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-text-muted); margin-bottom: 6px; }
.next-slot-time { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
  border-bottom: 1px solid var(--color-slate); padding-bottom: 16px;
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.review-name { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.review-date { font-size: 11px; color: var(--color-text-muted); }
.review-stars { margin-left: auto; font-size: 12px; letter-spacing: 1px; }
.review-quote { font-size: 13px; color: var(--color-text-body); line-height: 1.7; margin: 0; font-style: italic; }

@media (max-width: 960px) {
  .detail-hero { flex-direction: column; gap: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .detail-section { padding: 24px 20px 60px; }
  .detail-hero { padding: 24px; }
  .detail-stats-row { gap: 16px; }
}

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: stretch;
}
.auth-container {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; min-height: calc(100vh - var(--nav-height));
}
.auth-container--signup { grid-template-columns: 5fr 7fr; }

/* Left visual panel */
.auth-visual {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #020617 100%);
  padding: 60px 56px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-visual-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-visual-blob.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(146,138,253,0.2) 0%, transparent 65%);
  top: -120px; left: -120px;
}
.auth-visual-blob.blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(ellipse, rgba(46,196,182,0.12) 0%, transparent 65%);
  bottom: -80px; right: -60px;
}
.auth-visual-inner { position: relative; z-index: 1; }
.auth-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.auth-brand-name {
  font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px;
}
.auth-brand-name span { color: var(--color-purple); }
.auth-headline {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.15; letter-spacing: -1.2px;
  color: #fff; margin: 0 0 18px;
}
.auth-sub {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 360px; margin-bottom: 32px;
}
.auth-trust-pills { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.atp {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9);
  width: fit-content;
}
.auth-stats { display: flex; gap: 28px; }
.auth-stat { text-align: left; }
.as-n { display: block; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.as-l { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Signup feature list */
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.85); }
.af-ic {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(146,138,253,0.3); border: 1px solid rgba(146,138,253,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--color-purple);
  flex-shrink: 0;
}
.auth-offer-pill {
  display: inline-block;
  background: rgba(246,196,68,0.18); border: 1px solid rgba(246,196,68,0.35);
  border-radius: 12px; padding: 10px 16px;
  font-size: 13px; color: #FCD34D; line-height: 1.5;
}

/* Right form panel */
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
  background: #fff;
}
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-header { margin-bottom: 28px; }
.auth-form-title {
  font-size: 28px; font-weight: 700; color: var(--color-text-primary);
  letter-spacing: -0.8px; margin: 0 0 8px;
}
.auth-form-sub { font-size: 14px; color: var(--color-text-muted); }
.auth-switch-link { color: var(--color-purple); font-weight: 600; text-decoration: none; }
.auth-switch-link:hover { text-decoration: underline; }

.auth-alert {
  padding: 12px 16px; border-radius: 12px; font-size: 13px;
  margin-bottom: 16px; font-weight: 500;
}
.auth-alert.success { background: #DCFCE7; color: #166534; }
.auth-alert.error   { background: #FEE2E2; color: #991B1B; }
.auth-error-banner {
  background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 12px;
  padding: 12px 16px; font-size: 13px; color: #991B1B;
  margin-bottom: 16px;
}

.auth-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-label {
  font-size: 13px; font-weight: 600; color: var(--color-text-primary);
  display: flex; justify-content: space-between; align-items: center;
}
.auth-forgot { font-size: 12px; font-weight: 500; color: var(--color-purple); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

/* Style all auth form inputs */
.auth-form-wrap input[type="text"],
.auth-form-wrap input[type="email"],
.auth-form-wrap input[type="tel"],
.auth-form-wrap input[type="password"],
.auth-form-wrap input[type="date"],
.auth-form-wrap select {
  width: 100%; box-sizing: border-box;
  padding: 11px 16px; border-radius: 12px;
  border: 1.5px solid var(--color-slate-mid);
  font-size: 14px; font-family: inherit; outline: none;
  color: var(--color-text-primary);
  background: var(--color-slate);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-form-wrap input:focus {
  border-color: var(--color-purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(146,138,253,0.12);
}
.auth-field-error { font-size: 11px; color: #EF4444; margin-top: 2px; }

.auth-remember-row { margin-bottom: 20px; }
.auth-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--color-text-body); cursor: pointer;
}
.auth-check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-purple); cursor: pointer; }

.btn-auth-submit {
  width: 100%; justify-content: center;
  background: var(--color-purple); color: #fff;
  border-radius: 14px; padding: 14px;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 20px rgba(146,138,253,0.35);
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.btn-auth-submit:hover { background: var(--color-purple-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(146,138,253,0.4); }
.btn-auth-submit .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: #9CA3AF; margin-bottom: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-slate-mid);
}
.auth-social-row { display: flex; gap: 10px; margin-bottom: 24px; }
.auth-social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--color-slate-mid);
  background: var(--color-slate);
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--color-text-muted); cursor: not-allowed; opacity: 0.7;
}
.auth-footer-note {
  font-size: 11.5px; color: #9CA3AF; line-height: 1.7; text-align: center;
}
.auth-footer-note a { color: var(--color-purple); text-decoration: none; }
.auth-footer-note a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .auth-container,
  .auth-container--signup { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { padding: 40px 24px; min-height: calc(100vh - var(--nav-height)); }
  .auth-field-row { grid-template-columns: 1fr; }
}

/* ─── Inline SVG icons (server-rendered) ──────────────────── */
.icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* Sized icons inside dashboard chips */
.sidebar-link__icon .icon  { width: 18px; height: 18px; }
.stat-card__icon .icon     { width: 24px; height: 24px; }
.med-tray__icon .icon      { width: 22px; height: 22px; }
.quick-action__icon .icon  { width: 18px; height: 18px; }
.medicine-icon .icon       { width: 24px; height: 24px; }
.back-link .icon           { width: 16px; height: 16px; }

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.icon-inline .icon { width: 14px; height: 14px; opacity: 0.85; }

/* ─── Dashboard ──────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-purple);
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: color 0.15s ease, transform 0.15s ease;
}
.back-link:hover { color: var(--color-purple-dark); transform: translateX(-2px); }

.form-card { padding: 0; max-width: 760px; }
.form-card:hover { transform: none; box-shadow: var(--shadow-card); }
.form-section { padding: var(--space-6); border-bottom: 1px solid var(--color-slate-mid); }
.form-section:last-of-type { border-bottom: none; }
.form-section__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.form-section__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-row + .form-row,
.form-row + .form-grid,
.form-grid + .form-row,
.form-grid + .form-grid { margin-top: var(--space-4); }
.form-field-group { display: flex; flex-direction: column; }
.form-field textarea,
textarea.form-field { min-height: 96px; resize: vertical; line-height: var(--leading-normal); }
.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: 6px;
}
.form-actions {
  padding: var(--space-5) var(--space-6);
  background: var(--color-slate-soft);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  border-top: 1px solid var(--color-slate-mid);
}

.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}
.alert--danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert--warning { background: var(--color-warning-soft); color: var(--color-warning-fg); border: 1px solid #FCD34D; }
.alert--info { background: var(--color-cyan); color: #1E40AF; border: 1px solid #93C5FD; }

/* Journey stepper */
.journey {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-8);
}
.journey__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.journey__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.journey__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  align-items: stretch;
  position: relative;
}
.journey__step {
  background: var(--color-slate-soft);
  border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.journey__step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-purple);
}
.journey__step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-purple);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  box-shadow: 0 2px 8px rgba(146,138,253,0.3);
}
.journey__step__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
}
.journey__step__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}
@media (max-width: 880px) {
  .journey__steps { grid-template-columns: 1fr; }
}

/* Per-row history card */
.history-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-slate);
  align-items: start;
  transition: background 0.15s ease;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: var(--color-slate-soft); }
.history-row .date-block {
  padding: var(--space-3);
  min-width: 0;
}
.history-row .date-block__day { font-size: var(--text-2xl); }
.history-row .date-block__month { font-size: var(--text-xs); }
.history-row__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.history-row__doctor {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.history-row__doctor strong {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}
.history-row__action {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
  min-width: 132px;
}
.history-row__action .btn { justify-content: center; padding: 8px 16px; font-size: var(--text-sm); }
.history-row__progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.progress-pip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-slate);
  color: var(--color-text-muted);
}
.progress-pip--filled { background: var(--color-success-soft); color: var(--color-success-fg); }
.progress-pip--empty  { background: var(--color-slate); color: var(--color-text-muted); }
.history-row__hint {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: inline-block;
}
.history-row__hint--scheduled    { background: var(--color-cyan); color: #1E40AF; }
.history-row__hint--needs-visit  { background: var(--color-warning-soft); color: var(--color-warning-fg); font-weight: var(--weight-semibold); }
.history-row__hint--needs-records{ background: var(--color-purple-light); color: var(--color-purple-dark); }
.history-row__hint--complete     { background: var(--color-success-soft); color: var(--color-success-fg); }
.history-row__hint--cancelled    { background: #FEE2E2; color: #991B1B; }

@media (max-width: 720px) {
  .history-row { grid-template-columns: 1fr; }
  .history-row__action { justify-self: stretch; }
  .history-row__action .btn { width: 100%; justify-content: center; }
}

/* Dashboard home extras */
.greeting-band {
  background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-cyan) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.greeting-band h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}
.greeting-band p {
  font-size: var(--text-base);
  color: var(--color-text-body);
  margin: 0;
}
.greeting-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 640px) {
  .greeting-band { padding: var(--space-5); border-radius: var(--radius-lg); }
  .greeting-band h1 { font-size: var(--text-xl); }
  .greeting-band p { font-size: var(--text-sm); }
  .greeting-band__actions { width: 100%; }
  .greeting-band__actions .btn { flex: 1; justify-content: center; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card .stat-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}
.stat-card.stat-card--alert {
  background: linear-gradient(135deg, var(--color-warning-soft) 0%, #FFFBEB 100%);
  border: 1px solid #FCD34D;
}
.stat-card.stat-card--alert:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}
.stat-card.stat-card--alert .stat-card__icon { background: var(--color-warning); color: var(--color-white); }
.stat-card.stat-card--alert .stat-card__value { color: var(--color-warning-fg); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 960px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.slot-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-slate-soft);
  border: 1px solid var(--color-slate-mid);
}
.slot-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.slot-card__head .label { color: var(--color-text-muted); }
.slot-card__head__count {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-purple-dark);
  background: var(--color-purple-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.slot-card__med {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-sm);
}
.slot-card__med-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
.slot-card__med-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.slot-card__med-time {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-purple);
}
.slot-card--empty {
  background: transparent;
  border-style: dashed;
}
.slot-card--empty .caption {
  text-align: center;
  padding: var(--space-2) 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-mid);
  background: var(--color-white);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-action:hover {
  border-color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.quick-action__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--color-purple-light);
  color: var(--color-purple-dark);
}
.quick-action__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}
.quick-action__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.activity-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-slate);
}
.activity-row:last-child { border-bottom: none; }
.activity-row__date {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 70px;
  padding-top: 3px;
}
.activity-row__body { flex: 1; min-width: 0; }
.activity-row__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
.activity-row__meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ─── Hospital cards (shared partial) ────────────────────── */
.hospital-card { padding: 0; display: flex; flex-direction: column; }
.hospital-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.hospital-card__head {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-5);
  padding-bottom: var(--space-3);
}
.hospital-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-slate-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hospital-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.hospital-card__logo-fallback {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-purple-dark);
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-cyan));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hospital-card__body {
  padding: 0 var(--space-5) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.hospital-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Page hero strip used on public list pages */
.page-hero {
  background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-cyan) 100%);
  padding: var(--space-12) var(--space-10);
  margin-bottom: var(--space-8);
}
.page-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}
.page-hero p {
  font-size: var(--text-md);
  color: var(--color-text-body);
  margin: 0;
}
@media (max-width: 640px) {
  .page-hero { padding: var(--space-8) var(--space-5); }
  .page-hero h1 { font-size: var(--text-xl); }
}

/* ─── Global mobile sweep ─── */
@media (max-width: 880px) {
  /* Forms get touch-friendly heights on tablet/mobile */
  .form-field {
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 10px 14px;
  }
  textarea.form-field { min-height: 96px; }
  .btn {
    min-height: 44px;
    padding: 11px 20px;
  }
  /* Dashboard header stacks vertically with full-width action */
  .dashboard-header { align-items: stretch; }
  .dashboard-header > div:first-child { width: 100%; }
  .dashboard-header > .btn,
  .dashboard-header > a.btn { align-self: stretch; justify-content: center; }
  .dashboard-header h1 { font-size: var(--text-xl); }
  .dashboard-header p { font-size: var(--text-sm); }

  /* Today's medicines stack to single column */
  .dashboard-grid > div:first-child .card .slot-card,
  .stat-grid { gap: var(--space-3); }

  /* Search-medicines filter dropdowns */
  .filter-tabs { gap: 6px; }
  .filter-tab { font-size: var(--text-xs); padding: 6px 12px; }

  /* Stat tiles: ensure value remains readable */
  .stat-card { padding: var(--space-4); gap: var(--space-3); }
  .stat-card__icon { width: 44px; height: 44px; font-size: 20px; }
  .stat-card__value { font-size: var(--text-xl); }
}

.meds-slot-grid {
  padding: var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.medicine-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .meds-slot-grid { grid-template-columns: 1fr; padding: var(--space-4); }
  .medicine-filter-grid { grid-template-columns: 1fr; }

  /* Quick actions: 2 → 1 col */
  .quick-actions { grid-template-columns: 1fr; }

  /* List card rows: tighten padding */
  .list-card__header,
  .list-card__row,
  .activity-row { padding-left: var(--space-4); padding-right: var(--space-4); }

  /* Form actions stack and fill width */
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }

  /* Page intro headings smaller on mobile */
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .dashboard-header h1 { font-size: var(--text-lg); }
  .greeting-band { padding: var(--space-4); }
  /* Hide secondary meta on tightest screens for breathing room */
  .history-row .date-block__day { font-size: var(--text-xl); }
  /* Medicine search summary stacks */
  .medicine-summary { padding: var(--space-4); gap: var(--space-3); }
  .medicine-summary__main { gap: var(--space-3); }
  .medicine-icon { width: 44px; height: 44px; font-size: 20px; }
  .medicine-price__amount { font-size: var(--text-xl); }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }
}


.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  background: var(--color-slate-soft);
  min-height: calc(100vh - var(--nav-height));
}
.dashboard-sidebar {
  position: sticky;
  top: var(--nav-height);
  align-self: start;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--color-white);
  border-right: 1px solid var(--color-slate-mid);
  padding: var(--space-5) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  scrollbar-width: thin;
  box-shadow: 1px 0 0 var(--color-slate-mid);
}
.dashboard-sidebar::-webkit-scrollbar { width: 6px; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: var(--color-slate-mid); border-radius: var(--radius-pill); }
.dashboard-sidebar::-webkit-scrollbar-thumb:hover { background: var(--color-slate-dark); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-purple-light) 0%, rgba(202,229,255,0.55) 100%);
  border: 1px solid rgba(146,138,253,0.18);
}
.sidebar-user__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
}
.sidebar-user__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1.2;
}
.sidebar-user__role {
  font-size: var(--text-xs);
  color: var(--color-purple-dark);
  font-weight: var(--weight-semibold);
  margin-top: 2px;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: var(--space-5) var(--space-3) var(--space-2);
}
.sidebar-section-label:first-of-type { padding-top: var(--space-3); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px var(--space-3) 11px 14px;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sidebar-link:hover {
  background: var(--color-slate);
  color: var(--color-purple-dark);
}
.sidebar-link:hover .sidebar-link__icon {
  background: var(--color-white);
  color: var(--color-purple-dark);
}
.sidebar-link.active {
  background: var(--color-purple-light);
  color: var(--color-purple-dark);
  font-weight: var(--weight-bold);
  box-shadow: inset 3px 0 0 var(--color-purple);
}
.sidebar-link.active .sidebar-link__icon {
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow: 0 2px 6px rgba(146,138,253,0.25);
}
.sidebar-link__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-slate);
  color: var(--color-text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-main {
  padding: var(--space-10);
  min-width: 0;
}
.dashboard-main__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.dashboard-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.dashboard-header p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--text-base);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
}
.stat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card__icon--purple { background: var(--color-purple-light); }
.stat-card__icon--cyan   { background: var(--color-cyan); }
.stat-card__icon--amber  { background: var(--color-stat-amber); }
.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: 1;
}
.stat-card__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.list-card { padding: 0; overflow: hidden; }
.list-card:hover { transform: none; box-shadow: var(--shadow-card); }
.list-card__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-slate-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-card__header h2 {
  font-size: var(--text-lg);
  margin: 0;
}
.list-card__header a {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-purple);
}
.list-card__row {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-slate);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.list-card__row:last-child { border-bottom: none; }

.date-block {
  background: var(--color-slate-soft);
  border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  min-width: 60px;
}
.date-block__month {
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.date-block__day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-purple);
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-slate);
  color: var(--color-text-body);
}
.status-pill--purple  { background: var(--color-purple-light); color: var(--color-purple-dark); }
.status-pill--success { background: var(--color-success-soft); color: var(--color-success-fg); }
.status-pill--danger  { background: #FEE2E2; color: #991B1B; }
.status-pill--warning { background: var(--color-warning-soft); color: var(--color-warning-fg); }

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.dashboard-table thead tr {
  background: var(--color-slate);
  border-bottom: 1px solid var(--color-slate-mid);
}
.dashboard-table th {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dashboard-table tbody tr {
  border-bottom: 1px solid var(--color-slate);
  transition: background 0.15s ease;
}
.dashboard-table tbody tr:hover { background: var(--color-slate-soft); }
.dashboard-table td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-body);
  vertical-align: middle;
}
.dashboard-table td .row-title {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  display: block;
}
.dashboard-table td .row-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.empty-state {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.empty-state__icon {
  font-size: 44px;
  opacity: 0.3;
  margin-bottom: var(--space-4);
}
.empty-state h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.med-tray { padding: 0; overflow: hidden; }
.med-tray:hover { transform: none; box-shadow: var(--shadow-card); }
.med-tray__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-slate-mid);
}
.med-tray__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.med-tray__icon--morning { background: var(--color-stat-amber); }
.med-tray__icon--noon    { background: var(--color-cyan); }
.med-tray__icon--night   { background: var(--color-purple-light); }
.med-tray__title { font-size: var(--text-lg); margin: 0; }
.med-tray__count { font-size: var(--text-sm); color: var(--color-text-muted); }
.med-tray__body { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.med-tray__row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-mid);
  background: var(--color-slate-soft);
}
.med-tray__row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-purple);
  cursor: pointer;
  margin-top: 2px;
}
.med-tray__name {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 2px;
}
.med-tray__name strong { font-size: var(--text-lg); color: var(--color-text-primary); font-weight: var(--weight-bold); line-height: 1.2; }
.med-tray__time { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-purple); }
.med-tray__dose { font-size: var(--text-sm); color: var(--color-text-body); }
.med-tray__instruct { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* ─── Mobile dashboard drawer ─── */
.dashboard-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-mid);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}
.dashboard-mobile-bar__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}
.dashboard-mobile-bar__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-purple-light);
  color: var(--color-purple-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: inherit;
  min-height: 40px;
}
.dashboard-mobile-bar__toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}
.dashboard-mobile-bar__toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.dashboard-sidebar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 880px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-mobile-bar { display: flex; }
  .dashboard-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    height: auto;
    width: 280px;
    max-width: 86vw;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-float);
  }
  .dashboard-layout[data-sidebar="open"] .dashboard-sidebar { transform: translateX(0); }
  .dashboard-layout[data-sidebar="open"] .dashboard-sidebar__backdrop {
    display: block;
    opacity: 1;
  }
  .dashboard-main { padding: var(--space-5); }
}
@media (max-width: 480px) {
  .dashboard-main { padding: var(--space-4); }
}


/* ═══════════════════════════════════════════════════════════
   BOOKING UNAVAILABLE STATE
   ═══════════════════════════════════════════════════════════ */

.booking-unavailable-state {
  background: var(--color-slate);
  border: 1.5px solid var(--color-slate-mid);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.bustate-icon {
  font-size: 48px;
  line-height: 1;
  opacity: 0.6;
}
.bustate-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}
.bustate-msg {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 380px;
  margin: 0;
}
.bustate-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.bustate-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-slate-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  max-width: 380px;
  line-height: var(--leading-relaxed);
}

/* Visual panel (right side) when booking unavailable */
.booking-unavailable-visual {
  background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-cyan) 100%);
  border-radius: var(--radius-2xl);
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.buv-circle {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
}
.buv-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 60%;
}
.buv-line {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-pill);
  height: 10px;
}
.buv-line--lg { width: 100%; }
.buv-line--md { width: 75%; }
.buv-line--sm { width: 50%; }
.buv-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-body);
  box-shadow: var(--shadow-xs);
}
.buv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-warning);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .booking-unavailable-state { padding: 28px 20px; }
  .bustate-actions { flex-direction: column; width: 100%; }
  .bustate-actions .btn { width: 100%; justify-content: center; }
  .booking-unavailable-visual { height: 240px; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER ATTRIBUTION — aarsis Solutions
   ═══════════════════════════════════════════════════════════ */

.footer-bottom {
  border-top: 1px solid var(--color-slate-mid);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-bottom__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 16px;
}
.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__copy span,
.footer-bottom__copy a,
.footer-bottom__links a {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: none;
}
.footer-bottom__copy a:hover,
.footer-bottom__links a:hover { color: var(--color-purple); }

.footer-bottom__aarsis {
  border-top: 1px solid var(--color-slate-mid);
  padding: 14px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #9CA3AF;
  text-align: center;
}
.footer-bottom__aarsis strong {
  color: var(--color-text-muted);
}
.footer-aarsis-link {
  color: var(--color-purple);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-aarsis-link:hover {
  color: var(--color-purple-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-bottom { padding: 0 16px 20px; }
  .footer-bottom__copy { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom__links { flex-wrap: wrap; gap: 10px; }
  .footer-bottom__aarsis { flex-direction: column; gap: 4px; }
}


/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE RESPONSIVENESS — comprehensive sweep
   ═══════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow on all viewports */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Container responsive padding ───────────────────────── */
@media (max-width: 768px) { .container { padding: 0 var(--space-5); } }
@media (max-width: 480px) { .container { padding: 0 var(--space-4); } }

/* ── Section padding ──────────────────────────────────────  */
@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .page-intro { padding: 48px 20px 32px; }
}
@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .page-intro { padding: 36px 16px 24px; }
}

/* ── Hero responsive ──────────────────────────────────────  */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 40px; min-height: auto; }
  .hero-visual { height: 340px; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 16px 32px; }
  .hero-grid { gap: 24px; }
  .hero-visual { height: 300px; }
  .hero-float { padding: 10px 14px; border-radius: 14px; }
  .hero-float.doctor-info { min-width: 180px; left: -4px; }
  .hero-float.quick-book { min-width: 190px; left: -4px; bottom: 60px; }
  .hero-float.available { top: 80px; right: -4px; font-size: 11px; }
  .hero-float.patients { bottom: 16px; right: 8px; padding: 10px 14px; }
  .hero-float.rating { top: 45%; right: -4px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(26px, 8vw, 38px); letter-spacing: -1px; }
  .hero-visual { display: none; }
  .hero-trust { flex-wrap: wrap; }
}

/* ── Dept grid ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .dept-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dept-card { padding: 20px 16px; min-height: 110px; }
  .dept-card .name { font-size: 13px; }
}
@media (max-width: 360px) { .dept-grid { grid-template-columns: 1fr; } }

/* ── Doctor grid ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doctors-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 360px) { .doctor-grid { grid-template-columns: 1fr; } }

/* ── Stats ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .stats-photo .badge-card { position: static; margin-top: 16px; width: 100%; box-sizing: border-box; }
  .stats-photo .ph { height: 260px; }
}

/* ── Hospital grid ────────────────────────────────────────── */
@media (max-width: 640px) { .hospital-grid { grid-template-columns: 1fr; } }

/* ── Offers ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .offers-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) { .promo-grid { grid-template-columns: 1fr; } }

/* ── Testimonials ─────────────────────────────────────────── */
@media (max-width: 640px) { .test-grid { grid-template-columns: 1fr; } }

/* ── Booking ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .booking-grid { gap: 24px; }
  .booking-form .row { grid-template-columns: 1fr; }
}

/* ── Footer CTA band ──────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-cta-band { padding: 48px 20px 40px; }
  .footer-newsletter { padding: 24px 20px; }
  .footer-newsletter .field {
    flex-direction: column; padding: 12px;
    border-radius: var(--radius-lg); gap: 10px;
  }
  .footer-newsletter .field input { width: 100%; }
  .footer-newsletter .field button { width: 100%; border-radius: var(--radius-md); }
  .footer-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .footer-cta-band { padding: 36px 16px 32px; }
  .footer-links { padding: 36px 16px 32px; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 360px) { .footer-links { grid-template-columns: 1fr; } }

/* ── Programs ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .program-row { flex-wrap: wrap; gap: 12px; }
  .program-row .meta { min-width: 0; flex: 1 1 100%; }
  .program-row .price { font-size: 15px; }
  .program-row .book { padding: 7px 12px; font-size: 11px; flex-shrink: 0; }
}

/* ── Doctor / Hospital detail ─────────────────────────────── */
@media (max-width: 480px) {
  .detail-section { padding: 16px 14px 48px; }
  .detail-hero { padding: 20px; gap: 16px; }
  .detail-name { font-size: clamp(20px, 6vw, 28px); }
  .detail-stats-row { flex-wrap: wrap; gap: 12px; }
  .detail-stat { min-width: 80px; }
  .detail-fee-row { flex-direction: column; align-items: flex-start; }
  .chamber-item { padding: 14px; }
}

/* ── Auth pages ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-form-panel { padding: 28px 16px; }
  .auth-form-title { font-size: var(--text-xl); }
}

/* ── Map strip ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .map-strip { padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Touch targets ────────────────────────────────────────── */
@media (max-width: 880px) {
  .btn, .nav-link, .nav-cta, .nav-login, .nav-logout,
  .filter-tab, .dept-card { min-height: 44px; }
  .form-field, select.form-field { font-size: 16px; min-height: 48px; }
  textarea.form-field { min-height: 96px; }
}

/* ── Section head ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(20px, 5.5vw, 28px); }
  .doctors-head h2 { font-size: clamp(20px, 5.5vw, 28px); }
}

/* ── Filter tabs ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: 12px; }
}

/* ─── Floating Action Buttons ────────────────────────────── */
.fab-group {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 90;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.fab--wa {
  background: #25D366;
}
.fab--calc {
  background: var(--color-purple);
}

@media (max-width: 640px) {
  .fab-group {
    bottom: var(--space-4);
    right: var(--space-4);
    gap: var(--space-2);
  }
  .fab {
    width: 46px;
    height: 46px;
  }
  .fab--calc svg { width: 20px; height: 20px; }
  .fab--wa svg { width: 24px; height: 24px; }
}
