/* Sukhavita — Bootstrap 5 Template */
:root {
  /* Brand palette — cream + gold */
  --cream: #f8f4eb;
  --gold: #faca11;
  --green-dark: #2a2416;
  --light: #f8f4eb;
  --black: #2a2416;

  /* Semantic tokens */
  --brand: #faca11;
  --brand-dark: #8a6a00;
  --brand-mid: #d4a40e;
  --brand-light: #fde9a0;
  --brand-soft: rgba(250, 202, 17, 0.22);
  --brand-glow: rgba(250, 202, 17, 0.38);
  --on-brand: #2a2416;
  --dark: var(--green-dark);
  --dark-muted: #6b5e3a;
  --text: var(--black);
  --text-muted: #6b5e3a;
  --white: #ffffff;
  --surface: var(--cream);
  --border: rgba(42, 36, 22, 0.12);
  --shadow: 0 4px 24px rgba(42, 36, 22, 0.06);
  --shadow-lg: 0 12px 40px rgba(42, 36, 22, 0.1);
  --radius: 2px;
  --radius-sm: 2px;
  --font: var(--font-inter, Inter), system-ui, -apple-system, sans-serif;
  --font-display: var(--font-nunito, Nunito), var(--font-inter, Inter), sans-serif;
  --bs-font-sans-serif: var(--font);
  --bs-body-font-family: var(--font);
  --transition: 0.35s ease;
  --brand-logo-ratio: 220 / 92;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.object-cover {
  object-fit: cover;
  object-position: center;
}

h1, h2, h3, .hero-title, .section-title, .page-hero-title,
.cta-box h2, .doctor-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Bootstrap overrides */
.btn-primary {
  --bs-btn-color: var(--on-brand);
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-mid);
  --bs-btn-hover-border-color: var(--brand-mid);
  --bs-btn-hover-color: var(--on-brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-active-color: var(--white);
  --bs-btn-focus-shadow-rgb: 250, 202, 17;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: none;
  box-shadow: none;
}

.btn-outline-light {
  border-radius: var(--radius);
  font-weight: 600;
  border-width: 2px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-light {
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--dark);
}

.form-control,.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem var(--brand-soft);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-muted);
}

/* Navbar — always pinned to viewport top */
#mainNav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.65rem 0;
  z-index: 1050;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--white) !important;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

#mainNav.navbar-inner,
#mainNav.navbar-inner.scrolled,
#mainNav.navbar-on-hero.scrolled {
  background: var(--white) !important;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}

/* Navbar on hero — white text before scroll */
#mainNav.navbar-on-hero:not(.scrolled) {
  --bs-navbar-color: rgba(255, 255, 255, 0.92);
  --bs-navbar-hover-color: var(--brand-light);
  --bs-navbar-active-color: var(--brand-light);
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-nav-link-color: rgba(255, 255, 255, 0.92);
  --bs-nav-link-hover-color: var(--brand-light);
  background: transparent !important;
}

#mainNav.navbar-on-hero:not(.scrolled) .brand-name,
#mainNav.navbar-on-hero:not(.scrolled) .brand-sub,
#mainNav.navbar-on-hero:not(.scrolled) .navbar-brand,
#mainNav.navbar-on-hero:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

#mainNav.navbar-on-hero:not(.scrolled) .brand-sub {
  color: var(--brand-light) !important;
}

#mainNav.navbar-on-hero:not(.scrolled) .nav-link:hover,
#mainNav.navbar-on-hero:not(.scrolled) .nav-link.active {
  color: var(--brand-light) !important;
}

#mainNav.navbar-on-hero:not(.scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

#mainNav.navbar-on-hero:not(.scrolled) .nav-toggler-bars span {
  background: var(--white);
}

#mainNav.navbar-on-hero.scrolled .brand-name {
  color: var(--dark);
}

#mainNav.navbar-on-hero.scrolled .brand-sub {
  color: var(--brand-dark);
}

#mainNav.navbar-on-hero.scrolled .nav-link {
  color: var(--dark-muted) !important;
}

#mainNav.navbar-on-hero.scrolled .nav-link:hover,
#mainNav.navbar-on-hero.scrolled .nav-link.active {
  color: var(--brand-dark) !important;
}

/* Navbar — Sign in & Book CTAs */
.nav-item-actions {
  flex-shrink: 0;
}

.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
  border:none;
}

.btn-nav-signin {
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--border);
}

.btn-nav-signin:hover,
.btn-nav-signin.active {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.btn-nav-book {
  color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  border: 2px solid transparent;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-nav-book:hover,
.btn-nav-book.active {
  color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  box-shadow: 0 6px 18px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-nav-account {
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--brand);
}

.btn-nav-account:hover,
.btn-nav-account.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.btn-nav-register {
  color: var(--brand-dark);
  background: transparent;
  border: 2px solid var(--brand);
}

.btn-nav-register:hover,
.btn-nav-register.active {
  color: var(--white);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-nav-compact {
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  gap: 0.3rem;
}

.btn-nav-compact .bi {
  font-size: 1rem;
}

.navbar-mobile-cta-text {
  line-height: 1;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
}

.lang-switcher-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switcher-btn:hover {
  color: var(--dark);
}

.lang-switcher-btn.active {
  background: var(--brand);
  color: var(--on-brand);
}

.lang-switcher-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nav-offcanvas-lang .lang-switcher {
  width: fit-content;
}

#mainNav.navbar-on-hero:not(.scrolled) .lang-switcher {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

#mainNav.navbar-on-hero:not(.scrolled) .lang-switcher-btn {
  color: rgba(255, 255, 255, 0.85);
}

#mainNav.navbar-on-hero:not(.scrolled) .lang-switcher-btn.active {
  background: var(--white);
  color: var(--brand-dark);
}

#mainNav .navbar-mobile-ctas {
  flex-shrink: 0;
}

@media (max-width: 399.98px) {
  .navbar-mobile-cta-text {
    display: none;
  }

  .btn-nav-compact {
    padding: 0.45rem 0.55rem;
  }
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-signin {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-signin:hover,
#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-signin.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-book {
  color: var(--dark);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-book:hover,
#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-book.active {
  color: var(--dark);
  background: var(--brand-light);
  border-color: var(--brand-light);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-account {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-account:hover,
#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-account.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-register {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-register:hover,
#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-register.active {
  color: var(--dark);
  background: var(--white);
  border-color: var(--white);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-compact.btn-nav-signin,
#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-compact.btn-nav-account {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

#mainNav.navbar-on-hero:not(.scrolled) .btn-nav-compact.btn-nav-book {
  color: var(--dark);
  background: var(--white);
  border-color: var(--white);
}

@media (hover: hover) {
  #mainNav.navbar-on-hero:not(.scrolled):hover {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .brand-name,
  #mainNav.navbar-on-hero:not(.scrolled):hover .navbar-brand,
  #mainNav.navbar-on-hero:not(.scrolled):hover .nav-link {
    color: var(--dark-muted) !important;
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .brand-sub,
  #mainNav.navbar-on-hero:not(.scrolled):hover .nav-link:hover,
  #mainNav.navbar-on-hero:not(.scrolled):hover .nav-link.active {
    color: var(--brand-dark) !important;
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .brand-logo--light {
    filter: none;
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .navbar-toggler {
    border-color: var(--border);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .nav-toggler-bars span {
    background: var(--dark);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .lang-switcher {
    background: var(--surface);
    border-color: var(--border);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .lang-switcher-btn {
    color: var(--text-muted);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .lang-switcher-btn.active {
    background: var(--brand);
    color: var(--on-brand);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-signin,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-compact.btn-nav-signin,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-compact.btn-nav-account {
    color: var(--dark);
    background: var(--white);
    border-color: var(--border);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-signin:hover,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-signin.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: var(--brand);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-book,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-compact.btn-nav-book {
    color: var(--on-brand);
    background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px var(--brand-glow);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-book:hover,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-book.active {
    color: var(--on-brand);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    border-color: transparent;
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-account {
    color: var(--dark);
    background: var(--white);
    border-color: var(--brand);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-account:hover,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-account.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: var(--brand);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-register {
    color: var(--brand-dark);
    background: transparent;
    border-color: var(--brand);
  }

  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-register:hover,
  #mainNav.navbar-on-hero:not(.scrolled):hover .btn-nav-register.active {
    color: var(--white);
    background: var(--brand-dark);
    border-color: var(--brand-dark);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .nav-link {
    font-size: 0.875rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-actions .btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 991.98px) {
  #mainNav .container {
    flex-wrap: nowrap;
  }

  .nav-offcanvas-footer .btn-nav-book,
  .nav-offcanvas-footer .btn-nav-signin,
  .nav-offcanvas-footer .btn-nav-account,
  .nav-offcanvas-footer .btn-nav-register {
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }
}

/* Mobile offcanvas menu */
.nav-offcanvas-toggler {
  padding: 0.35rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.nav-toggler-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.nav-toggler-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-offcanvas {
  width: min(300px, 86vw) !important;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(42, 36, 22, 0.1);
  z-index: 1105 !important;
  pointer-events: auto;
  background: var(--white);
}

.nav-offcanvas::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.nav-offcanvas.show {
  pointer-events: auto;
}

.offcanvas-backdrop {
  z-index: 1100 !important;
}

.nav-offcanvas-link,
.nav-offcanvas-close,
.nav-offcanvas-footer .btn {
  touch-action: manipulation;
  cursor: pointer;
}

.nav-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(0.9rem, env(safe-area-inset-top, 0px)) 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.nav-offcanvas-brand {
  min-width: 0;
}

.nav-offcanvas-header .brand-name {
  color: var(--dark);
}

.nav-offcanvas-header .brand-sub {
  color: var(--brand-dark);
}

.nav-offcanvas-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-offcanvas-close:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.nav-offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.nav-offcanvas-lang {
  display: flex;
  justify-content: flex-start;
}

.nav-offcanvas-lang .lang-switcher {
  width: 100%;
  justify-content: stretch;
}

.nav-offcanvas-lang .lang-switcher-btn {
  flex: 1;
  text-align: center;
}

.nav-offcanvas-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0.35rem 0 0.5rem;
}

.nav-offcanvas-menu {
  flex: 1;
  margin: 0;
  border-top: 1px solid var(--border);
}

.nav-offcanvas-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.15rem 0.7rem 0;
  margin-bottom: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
  border: 0;
  border-bottom: 1px solid var(--border);
}

.nav-offcanvas-link:hover {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--border);
}

.nav-offcanvas-link.active {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
  box-shadow: inset 2px 0 0 var(--brand);
  padding-left: 0.65rem;
}

.nav-offcanvas-link.active .nav-offcanvas-icon {
  background: transparent;
  color: var(--brand-dark);
}

.nav-offcanvas-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-dark);
  border-radius: 0;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-offcanvas-link:hover .nav-offcanvas-icon {
  background: transparent;
  color: var(--brand-dark);
}

.nav-offcanvas-text {
  flex: 1;
}

.nav-offcanvas-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.45;
  transform: none;
  transition: var(--transition);
}

.nav-offcanvas-link:hover .nav-offcanvas-arrow,
.nav-offcanvas-link.active .nav-offcanvas-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--brand-dark);
}

.nav-offcanvas-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nav-offcanvas-cta {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-offcanvas-wa {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-width: 2px;
}

.nav-offcanvas-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

#mainNav .navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-right: 0.75rem;
}

#mainNav .navbar-brand .brand-logo {
  display: block;
  width: 132px;
  height: auto;
  aspect-ratio: var(--brand-logo-ratio);
  max-width: min(220px, calc(100vw - 5.5rem));
  object-fit: contain;
}

.navbar-brand .brand-logo {
  display: block;
  width: 154px;
  height: auto;
  aspect-ratio: var(--brand-logo-ratio);
  max-width: min(220px, calc(100vw - 5.5rem));
  object-fit: contain;
}

.nav-offcanvas-brand .brand-logo {
  width: 110px;
  height: auto;
  max-width: 110px;
}

.footer .navbar-brand .brand-logo {
  width: 154px;
  height: auto;
  max-width: min(220px, 100%);
}

.brand-logo--light {
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

@media (max-width: 575.98px) {
  #mainNav .navbar-brand .brand-logo {
    width: min(110px, calc(100vw - 5rem));
  }
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  color: var(--on-brand);
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dark-muted) !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark) !important;
}

/* Hero */
.hero {
  --hero-height: 92vh;
  --hero-height: 92dvh;
  position: relative;
  color: var(--white);
  overflow: hidden;
  height: var(--hero-height);
  min-height: 36rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-dark),
    var(--brand),
    var(--brand-light),
    transparent 82%
  );
  pointer-events: none;
}

.hero-content-row {
  min-height: var(--hero-height);
  padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-item {
  position: relative;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(42, 36, 22, 0.72) 0%,
    rgba(42, 36, 22, 0.42) 48%,
    rgba(42, 36, 22, 0.18) 100%
  );
  pointer-events: none;
}

.hero-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero-content-inner,
.hero-content a,
.hero-content button {
  pointer-events: auto;
}

/* Controls layer — above overlay, wave, and content */
.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hero-carousel-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  margin: 0;
  z-index: 1;
  pointer-events: auto;
}

.hero-carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  opacity: 1;
  transition: var(--transition);
}

.hero-carousel-indicators .active {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: scale(1.2);
}

.hero-carousel-control {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: var(--transition);
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-control:hover {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
}

.hero-carousel-control .carousel-control-prev-icon,
.hero-carousel-control .carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

.hero-carousel-control:hover .carousel-control-prev-icon,
.hero-carousel-control:hover .carousel-control-next-icon {
  filter: none;
}

.hero-controls .carousel-control-prev.hero-carousel-control {
  left: 1.25rem;
}

.hero-controls .carousel-control-next.hero-carousel-control {
  right: 1.25rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brand);
}

.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  /* max-width: 16ch; */
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 36rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-text-link:hover {
  color: var(--brand);
}

.hero-badge {
  display: none;
}

/* Sections — vertical rhythm matches Bootstrap .py-4 */
.section {
  padding: 1.5rem 0;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-intro--center {
  text-align: center;
  margin-inline: auto;
}

.section-intro--center .section-label::before {
  margin-inline: auto;
}

.section-intro--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}

.section-intro--split .section-subtitle {
  margin: 0;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--brand);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.section-more {
  margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .hero-title {
    max-width: none;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }
}

/* About */
.section-about {
  background: var(--white);
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.about-copy {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin: 0 auto;
}

.about-image-bg {
  position: absolute;
  inset: 1.25rem -0.85rem -0.85rem 1.25rem;
  background: var(--brand);
  border-radius: 0;
}

.about-image-photo {
  position: absolute;
  inset: 0 0.85rem 0.85rem 0;
  z-index: 1;
  border-radius: 0;
  overflow: hidden;
}

.about-image-img {
  object-fit: cover;
  object-position: center;
}

.about-stats {
  position: absolute;
  bottom: 1.5rem;
  right: -0.5rem;
  z-index: 2;
}

.stat-item {
  background: var(--dark);
  color: var(--cream);
  border-radius: 0;
  padding: 1.15rem 1.35rem;
  text-align: left;
  min-width: 7.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 244, 235, 0.72);
  margin-top: 0.4rem;
}

.about-features {
  display: grid;
  gap: 0.15rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-weight: 500;
  color: var(--dark);
  border-top: 1px solid var(--border);
}

.about-features i {
  color: var(--brand-dark);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Treatments */
.section-treatments {
  background: var(--white);
}

.treatment-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: transparent;
  border: 0;
}

.treatment-board .feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: none;
}

.treatment-board .feature-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.treatment-board .feature-card-body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.treatment-board .feature-card-body p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.treatment-board .feature-card-body .service-link {
  margin-top: auto;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.feature-card:hover {
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow);
  transform: none;
  background: var(--white);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}

.feature-card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
  line-height: 1.65;
}

.feature-card .service-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.feature-card .service-link:hover {
  color: var(--dark);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .treatment-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Services */

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row .service-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brand-dark);
  letter-spacing: 0;
  margin: 0.15rem 0 0;
}

.service-row-copy h3 {
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.service-row-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-row .service-link {
  grid-column: 2;
  justify-self: start;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }

  .service-row .service-link {
    grid-column: auto;
  }
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.service-card:hover {
  background: var(--white);
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: block;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--dark);
  gap: 0.65rem;
}

/* Branches */
.branch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.branch-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.branch-card:hover {
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow);
}

.branch-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.branch-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.branch-card-city {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}

.branch-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.branch-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.branch-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  min-height: 1.25rem;
}

.hours-multiline {
  white-space: pre-line;
}

.branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: baseline;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.branch-links-label {
  color: var(--text-muted);
  font-weight: 600;
}

.branch-links a {
  color: var(--brand-dark);
  text-decoration: none;
}

.branch-links a:hover {
  color: var(--dark);
}

.branch-detail-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.branch-card-media img,
.branch-detail-photo img {
  object-fit: cover;
  object-position: center;
}

/* Blog */
.section-blog {
  background: var(--surface);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: var(--on-brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-active-color: var(--white);
  font-weight: 600;
  border-width: 1px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.75rem 1.75rem;
}

.blog-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.blog-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.blog-card:hover {
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow);
}

.blog-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
}

.blog-card-image-fallback {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.blog-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
}

.blog-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.blog-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-card h3 a {
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card h3 a:hover {
  color: var(--brand-dark);
}

.blog-card-body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--dark);
  gap: 0.55rem;
}

/* Partners */
.section-partners {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.partners-carousel-wrap {
  position: relative;
  padding: 0 3rem;
}

/* Custom partners track (React) — prev/next below carousel */
.partners-carousel-nav .partners-carousel-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.partners-carousel-nav .partners-carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.partners-carousel-nav .partners-carousel-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--brand-glow);
}

@media (max-width: 575.98px) {
  .partners-carousel-wrap {
    padding: 0 2.25rem;
  }
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.35rem;
  min-height: 0;
  transition: var(--transition);
}

.partner-item:hover {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow);
}

.partner-logo {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 2.35rem;
  transition: var(--transition);
}

.partner-item:hover .partner-logo {
  background: transparent;
  color: var(--brand-dark);
}

.partner-logo img {
  max-width: 100%;
  max-height: 110px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.partner-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* Gallery */
.section-gallery-list {
  padding-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
  z-index: 1;
}

.gallery-item img {
  object-fit: cover;
  object-position: center;
}

.gallery-item:hover {
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow-lg);
}

.gallery-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  background: linear-gradient(transparent, rgba(37, 48, 34, 0.82));
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(37, 48, 34, 0.88);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-nav--prev {
  left: 1rem;
}

.gallery-lightbox-nav--next {
  right: 1rem;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 3rem);
}

.gallery-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.gallery-lightbox-figure figcaption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-lightbox-caption {
  font-weight: 600;
}

.gallery-lightbox-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 575.98px) {
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .gallery-lightbox-nav--prev {
    left: 0.5rem;
  }

  .gallery-lightbox-nav--next {
    right: 0.5rem;
  }
}

/* CTA */
.section-cta {
  padding: 1.5rem 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  background: linear-gradient(165deg, #3a3224 0%, var(--dark) 52%, #1c1810 100%);
  border: 1px solid rgba(250, 202, 17, 0.22);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.cta-box-copy {
  max-width: 38rem;
}

.cta-box h2 {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.cta-box p {
  opacity: 0.72;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact */
.section-contact {
  background: var(--white);
}

.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 1.1rem;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-list span:not(.contact-icon) {
  color: var(--dark);
  font-weight: 500;
}

.contact-form {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form::before {
  content: "";
  display: block;
  height: 2px;
  margin: -2rem -2rem 1.5rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

.contact-map-wrap {
  width: 100%;
}

.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-footer {
  margin-top: 0.75rem;
  text-align: right;
}

/* Legal document pages */
.section-legal .legal-document {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section-legal .legal-document::before {
  content: "";
  display: block;
  height: 2px;
  margin: -2rem -2rem 1.5rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

@media (max-width: 575.98px) {
  .section-legal .legal-document {
    padding: 1.25rem;
  }
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(180deg, #3a3224 0%, var(--dark) 38%, #1c1810 100%);
  color: rgba(248, 244, 235, 0.72);
  padding: 4.5rem 0 2rem;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light), transparent 78%);
}

.footer-tagline {
  font-size: 0.95rem;
  max-width: 22rem;
  margin: 0;
  line-height: 1.7;
}

.footer h6 {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.15rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-light);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-content-row {
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: max(5.25rem, calc(4.25rem + env(safe-area-inset-bottom, 0px)));
  }

  .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-controls {
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 1rem max(1.15rem, env(safe-area-inset-bottom, 0px));
  }

  .hero-carousel-indicators {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
  }

  .hero-controls .carousel-control-prev.hero-carousel-control,
  .hero-controls .carousel-control-next.hero-carousel-control {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
  }

  .hero-carousel-control {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.16);
  }

  .cta-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .cta-box .text-lg-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .hero-content-row {
    padding-bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form::before {
    margin: -1.5rem -1.5rem 1.25rem;
  }

  .section-legal .legal-document::before {
    margin: -1.25rem -1.25rem 1.15rem;
  }
}

/* Inner pages */
.page-inner {
  padding-top: 80px;
}

.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(250, 202, 17, 0.16), transparent 48%),
    var(--cream);
  color: var(--dark);
  padding: 1.75rem 0 2.25rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-dark),
    var(--brand),
    var(--brand-light),
    transparent 82%
  );
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(42, 36, 22, 0.1);
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.page-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text-muted);
}

.page-breadcrumb li + li::before {
  content: "";
  flex-shrink: 0;
  width: 0.32rem;
  height: 0.32rem;
  margin: 0 0.55rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
}

.page-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: var(--brand-dark);
}

.page-breadcrumb .is-current {
  color: var(--text-muted);
  font-weight: 400;
}

.page-hero-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-hero-title::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--brand);
  margin-bottom: 0.85rem;
}

.page-hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
  line-height: 1.7;
}

.page-inner .section,
.page-inner .section-branches,
.page-inner .section-services,
.page-inner .section-treatments,
.page-inner .section-contact,
.page-inner .section-contact-highlights,
.page-inner .section-member-dashboard {
  background: var(--white);
}

.section-doctors-home {
  background: var(--white);
}

.section-branches,
.section-services {
  background:
    radial-gradient(ellipse at top right, rgba(250, 202, 17, 0.1), transparent 44%),
    var(--surface);
}

.branches-carousel {
  position: relative;
}

.branches-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.branches-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.branches-carousel-viewport:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--brand-glow);
}

.branches-carousel-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.branches-carousel-slide {
  flex: 0 0 82%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
}

.branches-carousel-slide .branch-card {
  width: 100%;
}

.branches-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.branches-carousel-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.branches-carousel-btn:hover:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.branches-carousel-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--brand-glow);
}

.branches-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 768px) {
  .branches-carousel-slide {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media (min-width: 992px) {
  .branches-carousel-slide {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .branches-carousel-viewport {
    scroll-behavior: auto;
  }
}

.section-doctors-list,
.section-blog-list {
  background: transparent;
}

/* List page search */
.list-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.list-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.list-search-input {
  padding: 0.85rem 3rem 0.85rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.list-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem var(--brand-soft), var(--shadow);
}

.list-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.list-search-clear:hover {
  background: var(--brand);
  color: var(--dark);
}

.blog-toolbar {
  margin-bottom: 2rem;
}

.section-cta-inner {
  padding: 1.5rem 0;
}

.doctors-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.doctors-count {
  font-weight: 600;
  color: var(--dark-muted);
  font-size: 0.95rem;
}

.doctors-count span {
  color: var(--brand-dark);
}

.doctors-filter-scroll {
  min-width: 0;
  max-width: 100%;
}

.doctors-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctors-filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.doctors-filter-btn:hover,
.doctors-filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.doctor-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.doctor-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.doctor-card-media {
  display: block;
  flex-shrink: 0;
}

.doctor-card-media:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.doctor-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(250, 202, 17, 0.45);
}

.doctor-photo {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-photo-fallback {
  background: var(--surface);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.05em;
}

.doctor-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-specialty {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  width: fit-content;
}

.doctor-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.doctor-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
  flex: 1;
}

.doctor-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.doctor-meta i {
  color: var(--brand);
  font-size: 0.95rem;
}

.doctor-meta {
  margin-bottom: 0.75rem;
}

.doctor-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.doctor-card-actions .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Doctors listing: compact card + circular avatar */
.doctor-card--compact .doctor-card-media {
  display: flex;
  justify-content: center;
  padding: 0.85rem 0.75rem 0;
}

.doctor-card--compact .doctor-photo {
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.doctor-card--compact .doctor-photo img {
  border-radius: 50%;
}

.doctor-card--compact .doctor-initials {
  font-size: 1.35rem;
}

.doctor-card--compact .doctor-card-body {
  padding: 0.65rem 0.85rem 0.85rem;
  text-align: center;
  align-items: center;
}

.doctor-card--compact .doctor-specialty {
  margin-bottom: 0.45rem;
  font-size: 0.65rem;
  padding: 0.25rem 0.55rem;
}

.doctor-card--compact .doctor-name {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.doctor-card--compact .doctor-meta {
  margin-bottom: 0.5rem;
}

.doctor-card--compact .doctor-meta li {
  justify-content: center;
  font-size: 0.75rem;
}

.doctor-card--compact .doctor-card-actions {
  padding-top: 0.55rem;
  width: 100%;
}

.doctor-card--compact .doctor-card-actions .btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
}

@media (min-width: 576px) {
  .doctor-card--compact .doctor-photo {
    width: 6rem;
    height: 6rem;
  }
}

@media (min-width: 992px) {
  .doctor-card--compact .doctor-photo {
    width: 6.5rem;
    height: 6.5rem;
  }
}

.doctor-name a:hover {
  color: var(--brand-dark) !important;
}

.doctors-empty {
  color: var(--text-muted);
  padding: 2rem 0;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .doctors-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .doctors-filter-scroll {
    width: 100%;
    margin-inline: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-inline: calc(0.5 * var(--bs-gutter-x, 1.5rem));
  }

  .doctors-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding-inline: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    gap: 0.4rem;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .doctors-filter::-webkit-scrollbar {
    height: 4px;
  }

  .doctors-filter::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
}

/* Detail pages */
.page-hero-sm {
  padding: 1.5rem 0 1.75rem;
}

.page-hero-sm .page-breadcrumb {
  margin-bottom: 0.9rem;
}

.page-hero-sm .page-hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.page-hero-sm .page-hero-title::before {
  margin-bottom: 0.7rem;
}

.page-hero-sm .page-hero-lead {
  font-size: 1rem;
  max-width: 36rem;
}

.detail-section {
  padding: 1.5rem 0;
}

.detail-section .col-lg-8 > .detail-content,
.detail-section .detail-article {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.detail-section .col-lg-8 > .detail-content::before,
.detail-section .detail-article::before {
  content: "";
  display: block;
  height: 2px;
  margin: -2rem -1.75rem 1.65rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

@media (max-width: 575.98px) {
  .detail-section .col-lg-8 > .detail-content,
  .detail-section .detail-article {
    padding: 1.35rem 1.15rem;
  }

  .detail-section .col-lg-8 > .detail-content::before,
  .detail-section .detail-article::before {
    margin: -1.35rem -1.15rem 1.25rem;
  }
}

.detail-title {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.detail-content .lead {
  font-size: 1.1rem;
  color: var(--dark-muted);
}

.detail-content h2,
.detail-content h3 {
  font-weight: 700;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.detail-sidebar-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem;
}

.detail-sidebar-card::before {
  content: "";
  display: block;
  height: 2px;
  margin: -1.5rem -1.35rem 1.35rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

.detail-sidebar-profile {
  overflow: hidden;
  background: linear-gradient(165deg, #3a3224 0%, var(--dark) 52%, #1c1810 100%);
  border: 1px solid rgba(250, 202, 17, 0.28);
  box-shadow: var(--shadow-lg);
  color: var(--cream);
  padding: 1.75rem 1.4rem 1.5rem;
}

.detail-sidebar-profile::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1.75rem -1.4rem 1.5rem;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.detail-sidebar-profile .detail-sidebar-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.detail-sidebar-profile .detail-sidebar-card::before {
  display: none;
}

.detail-sidebar-profile .detail-doctor-name {
  color: var(--cream);
}

.detail-sidebar-profile .detail-info-list li {
  color: rgba(248, 244, 235, 0.72);
}

.detail-sidebar-profile .doctor-specialty {
  background: rgba(250, 202, 17, 0.18);
  color: var(--brand-light);
}

.detail-doctor-name {
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.35;
}

.detail-sidebar-profile.sticky-lg-top {
  top: 4rem;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .detail-sidebar-profile.sticky-lg-top {
    position: static;
  }
}

.detail-doctor-photo {
  width: 10.5rem;
  max-width: 72%;
  aspect-ratio: 1;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-doctor-photo .doctor-initials {
  font-size: 1.65rem;
}

@media (min-width: 992px) {
  .detail-doctor-photo {
    width: 9.5rem;
    max-width: 100%;
  }
}

.doctor-card a.doctor-photo {
  display: block;
  text-decoration: none;
}

.detail-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-info-list i {
  color: var(--brand);
  margin-top: 0.1rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.detail-tags li {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
}

.detail-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.detail-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: var(--dark-muted);
  font-weight: 500;
}

.detail-check-list i {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.detail-process-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.detail-process-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--dark-muted);
  font-weight: 500;
}

.detail-process-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.detail-cta-inline {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-article-image {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  display: block;
}

.detail-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-article-meta .blog-date {
  margin-bottom: 0;
}

.detail-article p, .detail-article h1, .detail-article h2, .detail-article h3, .detail-article h4, .detail-article h5, .detail-article h6, .detail-article ul, .detail-article ol{
  margin-bottom: 0.5rem!important;
}

.detail-meta {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.detail-meta i {
  color: var(--brand);
  margin-right: 0.35rem;
}

.article-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.detail-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.detail-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.detail-share a:hover,
.detail-share-copy:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.detail-share-copy {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: none;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.related-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  transition: var(--transition);
}

.related-list a:hover {
  color: var(--brand-dark);
}

.related-list time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Blog detail — related articles sidebar */
.detail-sidebar-blog.sticky-lg-top {
  top: 4rem;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .detail-sidebar-blog.sticky-lg-top {
    position: static;
  }
}

.related-articles-card {
  padding: 1.5rem 1.35rem;
}

.related-articles-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--brand-soft);
  color: var(--dark);
}

.related-articles-heading .bi {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.related-article-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: var(--transition);
}

.related-article-item:hover {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow);
}

.related-article-item:hover .related-article-title {
  color: var(--brand-dark);
}

.related-article-item:hover .related-article-arrow {
  color: var(--brand-dark);
  transform: translateX(2px);
}

.related-article-thumb {
  flex-shrink: 0;
  width: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.related-article-thumb .blog-card-image {
  aspect-ratio: 1;
  width: 4.5rem;
  height: 4.5rem;
}

.related-article-thumb .blog-category {
  display: none;
}

.related-article-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.related-article-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-dark);
  line-height: 1.2;
}

.related-article-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.related-article-item time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.related-article-arrow {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.related-articles-all {
  margin-top: 1rem;
}

/* Detail sidebar — related treatments / services-style list */
.detail-sidebar-related.sticky-lg-top {
  top: 4rem;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .detail-sidebar-related.sticky-lg-top {
    position: static;
  }
}

.related-sidebar-card {
  padding: 1.5rem 1.35rem;
}

.related-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--brand-soft);
  color: var(--dark);
}

.related-sidebar-heading .bi {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.related-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.related-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: var(--transition);
}

.related-sidebar-item:hover {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow);
}

.related-sidebar-item:hover .related-sidebar-title {
  color: var(--brand-dark);
}

.related-sidebar-item:hover .related-sidebar-arrow {
  color: var(--brand-dark);
  transform: translateX(2px);
}

.related-sidebar-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.related-sidebar-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.related-sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  transition: color var(--transition);
}

.related-sidebar-excerpt {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-sidebar-arrow {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.related-sidebar-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.related-sidebar-actions {
  margin-top: 1rem;
}

.related-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-right: 0.35rem;
}

.related-sidebar-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  line-height: 1.2;
}

.detail-sidebar-services.sticky-lg-top {
  top: 4rem;
  z-index: 2;
}

.detail-sidebar-services .service-booking-aside + .related-sidebar-card {
  margin-top: 1.25rem;
}

@media (max-width: 991.98px) {
  .detail-sidebar-services.sticky-lg-top {
    position: static;
  }
}

.detail-service-num {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.detail-service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--radius);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.detail-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

@media (max-width: 991.98px) {
  .detail-cta-inline .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }
}

/* WhatsApp floating form */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-float-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(37, 48, 34, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: -1;
}

.wa-float.is-open .wa-float-backdrop {
  opacity: 1;
  visibility: visible;
}

.wa-float-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(340px, calc(100vw - 2rem));
  /* max-height: min(520px, calc(100vh - 8rem)); */
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.wa-float-panel-top {
  flex-shrink: 0;
  padding: 1.25rem 1.25rem 0.5rem;
}

.wa-float-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 1rem 1.25rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--surface);
}

.wa-float-panel-body::-webkit-scrollbar {
  width: 6px;
}

.wa-float-panel-body::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 10px;
  margin: 4px 0;
}

.wa-float-panel-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 10px;
}

.wa-float-panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

.wa-float.is-open .wa-float-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.wa-float-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  z-index: 2;
}

.wa-float-close:hover {
  background: var(--brand-soft);
  color: var(--dark);
}

.wa-float-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding-right: 1.75rem;
}

.wa-float-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  font-size: 1.35rem;
}

.wa-float-panel-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.3;
}

.wa-float-status {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.wa-float-intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.wa-float-form .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.wa-float-form .form-control,
.wa-float-form .form-select {
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
}

.wa-float-form .mb-3 {
  margin-bottom: 0.85rem !important;
}

.wa-float-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
  border: none;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.wa-float-submit:hover {
  background: #1fb855;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-float-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.wa-float.is-open .wa-float-btn {
  background: var(--dark);
}

.wa-float-btn:hover {
  background: #1fb855;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wa-float-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
  }

  .wa-float-panel {
    position: fixed;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: calc(100vh - 7rem);
    z-index: 1040;
  }

  .wa-float-panel-body {
    padding: 0.5rem 0.85rem 1rem;
  }

  .wa-float-btn-label {
    display: none;
  }

  .wa-float-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Admin login & dashboard */
.admin-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(145deg, var(--dark) 0%, var(--brand-mid) 45%, var(--brand-dark) 100%);
}

.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem;
}

.admin-login-logo .brand-logo {
  display: block;
  width: 200px;
  height: auto;
  aspect-ratio: var(--brand-logo-ratio);
  object-fit: contain;
}

.admin-login-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.admin-login-title {
  color: var(--dark);
  font-weight: 700;
}

.admin-login-sub {
  font-size: 0.9rem;
}

.admin-login-alert {
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.admin-input-group .input-group-text {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.admin-input-group .form-control {
  border-left: 0;
}

.admin-input-group .input-group-text + .form-control:focus {
  border-color: var(--brand);
}

.admin-login-submit {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.admin-login-back a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.admin-login-back a:hover {
  color: var(--brand-dark);
}

.admin-login-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-dashboard-page,
.admin-login-page {
  font-family: var(--font);
}

.admin-dashboard-page {
  --admin-bar-height: 3.25rem;
  --admin-sidebar-width: 240px;
  background: var(--surface);
  min-height: 100vh;
}

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: var(--admin-bar-height);
}

.admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--admin-bar-height);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.admin-bar-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.admin-bar-end {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.admin-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}

.admin-nav-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.admin-bar-logo {
  display: block;
  width: 100px;
  height: auto;
  aspect-ratio: var(--brand-logo-ratio);
  object-fit: contain;
}

.admin-bar-user {
  color: var(--text-muted) !important;
}

.admin-dashboard-main .admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: 100%;
  box-shadow: none;
}

.admin-stat-card > i {
  font-size: 1.75rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.admin-stat-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.admin-stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.admin-stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.admin-stat-card-link:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--brand);
}

.admin-shell {
  display: flex;
  min-height: calc(100vh - var(--admin-bar-height));
  position: relative;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--admin-bar-height);
  z-index: 1035;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    bottom: 0;
    z-index: 1040;
    overflow: hidden;
  }

  .admin-shell-content {
    margin-left: var(--admin-sidebar-width);
  }
}

.admin-sidebar-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.35rem 0.75rem 0.15rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 36, 22, 0.35) transparent;
}

.admin-sidebar-groups::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar-groups::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  margin: 0.35rem 0;
}

.admin-sidebar-groups::-webkit-scrollbar-thumb {
  background: rgba(42, 36, 22, 0.22);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.admin-sidebar-groups::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 36, 22, 0.45);
  background-clip: padding-box;
}

.admin-sidebar-groups:hover::-webkit-scrollbar-thumb {
  background: rgba(42, 36, 22, 0.32);
  background-clip: padding-box;
}

.admin-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.25rem 0.5rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-sidebar-link span {
  line-height: 1.2;
}

.admin-sidebar-link:hover {
  background: var(--brand-soft);
  color: var(--dark);
}

.admin-sidebar-link.active {
  background: var(--brand);
  color: var(--on-brand);
}

.admin-sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  width: 100%;
}

.admin-sidebar-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.admin-sidebar-back:hover {
  color: var(--brand-dark);
}

.admin-shell-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.admin-dashboard-main {
  padding-bottom: 2rem;
}

.admin-dashboard-main > .container-fluid {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.admin-page-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 42rem;
  line-height: 1.5;
}

.admin-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-page-header-actions .btn {
  white-space: nowrap;
}

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.admin-table-wrap--scroll {
  overflow-x: auto;
}

.admin-table-scroll-note {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  padding: 0 0.15rem;
}

.admin-table-scroll-note .bi {
  margin-right: 0.25rem;
}

.admin-table {
  margin: 0;
  font-size: 0.9rem;
}

.admin-table thead th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.admin-form {
  max-width: 900px;
}

/* Site config */
.admin-config-page {
  max-width: 72rem;
}

.admin-config-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-config-tabs-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-config-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-config-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.admin-config-tab-btn:hover {
  color: var(--dark);
  background: var(--white);
}

.admin-config-tab-btn.active {
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: var(--shadow);
}

.admin-config-tab-panel {
  display: none;
}

.admin-config-tab-panel.is-active {
  display: block;
}

.admin-config-section .card-header {
  border-bottom: 1px solid var(--border);
}

.admin-config-subsection {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-config-subsection:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.admin-config-subsection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-config-subsection-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.admin-config-path {
  padding: 0.2rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-bilingual-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.admin-bilingual-block-head {
  display: grid;
  grid-template-columns: minmax(9rem, 1.1fr) 1fr 1fr;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-bilingual-block-body {
  display: flex;
  flex-direction: column;
}

.admin-bilingual-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.1fr) 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-bilingual-row:last-child {
  border-bottom: none;
}

.admin-bilingual-row-label .form-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-bilingual-cell .form-control {
  width: 100%;
}

.admin-bilingual-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-config-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-config-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
}

.admin-config-field-grid--smtp-server {
  grid-template-columns: minmax(0, 2fr) 7rem 8.5rem;
}

.admin-config-group-label {
  margin: 1.35rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-config-group-label:first-child {
  margin-top: 0;
}

.admin-config-save {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  margin-top: 0.25rem;
  background: var(--white);
}

.admin-config-save .card-body {
  border-top: 3px solid var(--brand);
}

@media (max-width: 991.98px) {
  .admin-bilingual-block-head {
    display: none;
  }

  .admin-bilingual-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .admin-bilingual-row + .admin-bilingual-row {
    border-top: 1px dashed var(--border);
  }

  .admin-bilingual-cell-lang {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0.35rem;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .admin-bilingual-legal {
    grid-template-columns: 1fr;
  }

  .admin-config-field-grid,
  .admin-config-field-grid--smtp-server {
    grid-template-columns: 1fr;
  }
}

.admin-dashboard-main .card.admin-form {
  border: 1px solid var(--border);
  box-shadow: none;
}

.admin-dashboard-main .card.border-0.shadow-sm {
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.admin-hero-grid .card {
  transition: border-color var(--transition);
}

.admin-hero-grid .card:hover {
  transform: none;
  box-shadow: none !important;
}

.image-upload-preview {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 320px;
  background: var(--surface);
}

.image-upload-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.image-upload-preview--fixed {
  width: var(--image-preview-size, 200px);
  max-width: var(--image-preview-size, 200px);
}

.image-upload-preview--fixed img {
  width: var(--image-preview-size, 200px);
  height: var(--image-preview-size, 200px);
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.admin-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.admin-thumb-wrap-sm {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: var(--radius-sm);
}

.admin-thumb-empty,
.admin-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  background: var(--brand-soft);
}

.partner-logo-img {
  object-fit: contain !important;
}

/* Quill editor (CMS) — snow.css loads after jscc in admin, so !important keeps site font */
.quill-editor-wrap .ql-editor,
.quill-editor-wrap .ql-toolbar {
  font-family: var(--font) !important;
}

.quill-editor-wrap .ql-container {
  height: var(--quill-h, 260px);
  overflow: hidden;
}

.quill-editor-wrap .ql-editor {
  min-height: unset !important;
  height: 100%;
  max-height: var(--quill-h, 260px);
  overflow-y: auto;
}
.ql-editor p, .ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6, .ql-editor ul, .ql-editor ol{
  margin-bottom: 0.5rem!important;
}

.ql-editor h1{
  font-size: 2rem!important;
  font-weight: 700;
}
.ql-editor h2{
  font-size: 1.75rem!important;
  font-weight: 700;
}
.ql-editor h3{
  font-size: 1.25rem!important;
  font-weight: 700;
}
.ql-editor p, .ql-editor li, .ql-editor ul, .ql-editor ol{
  font-size: 14px!important;
}
.ql-editor ul, .ql-editor ol{
  padding-left: 1rem!important;
}

/* Rich HTML on public pages */
.rich-html {
  padding: 0;
  border: 0;
  min-height: 0;
}

.rich-html p:last-child {
  margin-bottom: 0;
}

.rich-html h1,
.rich-html h2,
.rich-html h3 {
  color: var(--dark);
  font-weight: 700;
  margin-top: 1.25rem;
}

.rich-html a {
  color: var(--brand-dark);
}

.rich-html ul,
.rich-html ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.rich-html ol {
  list-style-type: decimal;
}

.rich-html ul {
  list-style-type: disc;
}

.rich-html li {
  margin-bottom: 0rem;
}

/* 404 */
.not-found-shell-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-not-found {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.page-not-found-inner {
  max-width: 520px;
  margin: 0 auto;
}

.page-not-found-code {
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-not-found-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.page-not-found-lead {
  font-size: 1.05rem;
  max-width: 420px;
}

.page-not-found-links a {
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.page-not-found-links a:hover {
  color: var(--dark);
}

/* Service detail — payment gateway */
.service-payment-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.service-payment-card::before {
  content: "";
  display: block;
  height: 2px;
  margin: -1.25rem -1.25rem 1.1rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

.service-payment-card--disabled {
  background: var(--surface);
}

.service-payment-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-payment-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.service-payment-gateway {
  font-weight: 600;
  color: var(--brand-dark) !important;
}

.service-booking-aside .booking-card + .booking-card,
.service-booking-aside .service-payment-card + .booking-card {
  margin-top: 0;
}

/* Booking */

.booking-panel,
.booking-confirmation-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.booking-panel::before,
.booking-confirmation-card::before {
  content: "";
  display: block;
  height: 2px;
  margin: -2rem -1.5rem 1.5rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

@media (min-width: 768px) {
  .booking-panel,
  .booking-confirmation-card {
    padding: 2.25rem 2rem;
  }

  .booking-panel::before,
  .booking-confirmation-card::before {
    margin: -2.25rem -2rem 1.65rem;
  }
}

.booking-panel-account {
  padding: 1rem 1.25rem;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}

.booking-aside.sticky-lg-top {
  top: 4rem;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .booking-aside.sticky-lg-top {
    position: static;
  }
}

.booking-aside-card {
  overflow: hidden;
  background: linear-gradient(165deg, #3a3224 0%, var(--dark) 52%, #1c1810 100%);
  border: 1px solid rgba(250, 202, 17, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg);
  color: var(--cream);
}

.booking-aside-card::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1.5rem -1.35rem 1.25rem;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.booking-aside-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(250, 202, 17, 0.22);
  color: var(--cream);
}

.booking-aside-heading .bi {
  color: var(--brand);
  font-size: 1.1rem;
}

.booking-steps {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 0 1rem;
}

.booking-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  margin: 0;
}

.booking-steps li:not(:last-child) {
  border-bottom: 1px solid rgba(248, 244, 235, 0.12);
}

.booking-steps li:first-child {
  padding-top: 0;
}

.booking-step-num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius);
}

.booking-step-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.booking-step-body p {
  font-size: 0.85rem;
  color: rgba(248, 244, 235, 0.65);
  margin: 0;
  line-height: 1.5;
}

.booking-aside-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(250, 202, 17, 0.12);
  border-radius: var(--radius-sm);
}

.booking-aside-note .bi {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.booking-aside-note p {
  font-size: 0.8rem;
  color: rgba(248, 244, 235, 0.7);
  margin: 0;
  line-height: 1.5;
}

.booking-aside-note a {
  font-weight: 600;
  color: var(--brand-light);
  text-decoration: none;
}

.booking-aside-note a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.booking-ref {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.booking-form-alert {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.booking-confirmation-success {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #ecf8ef;
  border: 1px solid #b7e0c2;
  border-radius: var(--radius-sm);
  color: #1f5130;
}

.booking-confirmation-success > .bi {
  font-size: 1.75rem;
  color: #198754;
  line-height: 1;
}

.booking-confirmation-success-title {
  font-weight: 700;
  color: #146c43;
}

.booking-summary li {
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.booking-payment-cta {
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

/* Auth — login & register */

.auth-form-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.auth-form-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.auth-form-card-header {
  padding: 2rem 1.75rem 1.25rem;
  background: linear-gradient(
    160deg,
    var(--brand-soft) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-bottom: 1px solid var(--border);
}

.auth-form-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  color: var(--on-brand);
  font-size: 1.65rem;
  box-shadow: 0 8px 24px var(--brand-glow);
}

.auth-form-card-title {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.auth-form-card-body {
  padding: 1.75rem;
}

.auth-form-card-footer {
  padding: 1rem 1.75rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.auth-form-link {
  color: var(--brand-dark);
  text-decoration: none;
}

.auth-form-link:hover {
  color: var(--dark);
  text-decoration: underline;
}

.auth-field-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-muted);
  margin-bottom: 0.4rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.auth-input-icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  color: var(--brand-dark);
  pointer-events: none;
  font-size: 1.05rem;
}

.auth-input {
  padding-left: 2.75rem !important;
  padding-right: 0.85rem;
  min-height: 2.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm) !important;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.auth-input:disabled {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

.member-contact-current {
  padding: 1rem 1.15rem;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.auth-input-wrap-password .auth-input {
  padding-right: 2.85rem !important;
}

.auth-password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--transition), background var(--transition);
}

.auth-password-toggle:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.auth-alert {
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.btn-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--brand-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-auth-submit:hover:not(:disabled) {
  color: var(--on-brand);
  box-shadow: 0 6px 22px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-auth-submit:disabled {
  opacity: 0.75;
}

/* Member dashboard */
.section-member-dashboard {
  background: var(--white);
}

.member-dashboard-sidebar {
  position: sticky;
  top: 5.25rem;
  overflow: hidden;
  background: linear-gradient(165deg, #3a3224 0%, var(--dark) 52%, #1c1810 100%);
  border: 1px solid rgba(250, 202, 17, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--cream);
}

.member-dashboard-sidebar::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
}

.member-dashboard-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.65rem 1.4rem 1.35rem;
}

.member-dashboard-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px var(--brand-glow);
  flex-shrink: 0;
}

.member-dashboard-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.member-dashboard-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.85rem;
}

.member-dashboard-meta {
  width: 100%;
  display: grid;
  gap: 0.4rem;
}

.member-dashboard-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(248, 244, 235, 0.78);
  word-break: break-word;
}

.member-dashboard-meta .bi {
  margin-top: 0.12rem;
  color: var(--brand);
  flex-shrink: 0;
}

.member-dashboard-nav {
  padding: 0 0.85rem 0.35rem;
}

.member-dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(248, 244, 235, 0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-left: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.member-dashboard-nav-link .bi {
  font-size: 1.05rem;
  opacity: 0.9;
}

.member-dashboard-nav-link:hover {
  background: rgba(250, 202, 17, 0.12);
  color: #fff;
}

.member-dashboard-nav-link.is-active {
  background: rgba(250, 202, 17, 0.16);
  color: var(--brand);
  font-weight: 600;
  border-left-color: var(--brand);
}

.member-dashboard-actions {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.4rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(248, 244, 235, 0.1);
}

.member-dashboard-actions .btn-primary {
  width: 100%;
}

.member-dashboard-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(248, 244, 235, 0.62);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.member-dashboard-logout:disabled {
  opacity: 0.65;
  cursor: wait;
}

.member-dashboard-logout:hover:not(:disabled) {
  color: var(--brand-light);
}

.member-dashboard-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.4rem 2rem;
}

.member-dashboard-panel::before {
  content: "";
  display: block;
  height: 2px;
  margin: -1.75rem -1.4rem 1.5rem;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
}

@media (min-width: 768px) {
  .member-dashboard-panel {
    padding: 2.15rem 2.15rem 2.35rem;
  }

  .member-dashboard-panel::before {
    margin: -2.15rem -2.15rem 1.65rem;
  }
}

.member-dashboard-panel-head {
  margin-bottom: 1.6rem;
}

.member-dashboard-panel-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.member-dashboard-panel-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.3rem;
}

.member-dashboard-panel-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 0 0 0.4rem;
}

.member-dashboard-panel-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.member-dashboard-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-dashboard-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.member-dashboard-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: none;
}

.member-dashboard-section-link:hover {
  color: var(--dark);
}

.member-stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.15rem 1.2rem 1.05rem;
  height: 100%;
  overflow: hidden;
}

.member-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.7rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.member-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.member-stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}

.member-appt-list {
  display: grid;
  gap: 0.75rem;
}

.member-appt-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
}

.member-appt-ref {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.member-appt-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.15rem;
}

.member-appt-sub,
.member-appt-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.member-appt-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.member-appt-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.member-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-status--requested {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.member-status--confirmed {
  background: var(--dark);
  color: var(--brand);
}

.member-status--cancelled {
  background: rgba(42, 36, 22, 0.08);
  color: var(--text-muted);
}

.member-appt-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: none;
}

.member-appt-view:hover {
  color: var(--dark);
}

.member-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border);
}

.member-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.member-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
}

.member-empty-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 22rem;
  margin-inline: auto;
}

.member-settings-block {
  height: 100%;
  padding: 1.25rem 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.member-settings-block-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.member-settings-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--brand-dark);
}

.member-settings-block-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.nav-offcanvas-member {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--brand);
}

.nav-offcanvas-member .fw-semibold {
  color: var(--dark);
}

.nav-offcanvas-member .nav-offcanvas-link {
  margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
  .member-dashboard-sidebar {
    position: static;
  }

  .member-dashboard-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .member-dashboard-nav-link {
    flex: 1 1 auto;
    justify-content: center;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }

  .member-dashboard-nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--brand);
  }

  .member-appt-card-aside {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
}

/* Contact page */
.section-contact-teaser {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-contact-highlights {
  padding-top: 0;
  background: var(--white);
}

.contact-highlight-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.contact-highlight-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 72%);
}

.contact-highlight-card:hover {
  border-color: rgba(250, 202, 17, 0.45);
  box-shadow: var(--shadow);
}

.contact-highlight-card-header {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.contact-highlight-card-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.contact-highlight-card--consult .contact-highlight-card-icon {
  background: var(--brand-soft);
}

.contact-highlight-card-heading {
  min-width: 0;
}

.contact-highlight-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin: 0 0 0.5rem;
}

.contact-highlight-card-intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.contact-highlight-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.contact-highlight-card-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}

.contact-highlight-card-item:hover {
  border-color: var(--brand);
  background: var(--white);
}

.contact-highlight-card-item-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.contact-highlight-card-item-body {
  min-width: 0;
}

.contact-highlight-card-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin: 0 0 0.25rem;
}

.contact-highlight-card-item-text {
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 575.98px) {
  .contact-highlight-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-highlight-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .admin-nav-toggle {
    display: inline-flex;
  }

  .admin-sidebar-overlay {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    bottom: 0;
    z-index: 1040;
    width: min(280px, 88vw);
    margin-left: 0;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow: hidden;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
  }

  .admin-shell-content {
    width: 100%;
    margin-left: 0;
  }

  .admin-dashboard-main > .container-fluid {
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
  }

  .admin-page-title {
    font-size: 1.2rem;
  }

  .admin-table-scroll-note {
    display: block;
  }

  .admin-detail-hero-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }
}

@media (max-width: 767.98px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page-header-actions {
    width: 100%;
  }

  .admin-page-header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-table-wrap--scroll .admin-table {
    min-width: 32rem;
  }

  .admin-stat-card {
    padding: 1.15rem !important;
  }

  .admin-detail-metric {
    padding: 1rem 0.85rem;
  }

  .admin-detail-hero-actions .btn {
    min-width: 100%;
  }
}

/* Confirm dialog (shared ConfirmProvider) */
.confirm-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.confirm-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.confirm-modal-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.confirm-modal-title {
  color: var(--text);
}

.confirm-modal-message {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.confirm-modal-actions .btn {
  min-width: 7rem;
}

/* Admin detail pages (member, appointment, …) */
.admin-detail-breadcrumb .breadcrumb-item a {
  color: var(--brand-dark);
  text-decoration: none;
}

.admin-detail-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.admin-detail-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--dark) 55%, var(--brand-mid) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: #fff;
  box-shadow: none;
}

.admin-detail-hero-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.admin-detail-hero-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.admin-detail-hero-content {
  flex: 1;
  min-width: min(100%, 16rem);
}

.admin-detail-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.admin-detail-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.admin-detail-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-detail-status-pill.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.admin-detail-status-pill.is-blocked {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.admin-detail-status-pill.is-requested {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.admin-detail-status-pill.is-confirmed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.admin-detail-status-pill.is-cancelled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.admin-detail-hero-avatar--icon {
  font-size: 1.65rem;
}

.admin-detail-hero-ref {
  margin: 0;
  font-size: 0.875rem;
}

.admin-detail-hero-ref code {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.admin-detail-metric-value--text {
  font-size: 1.1rem;
  line-height: 1.3;
}

.admin-appointment-status-form-wrap .admin-appointment-status-form,
.admin-appointment-status-form-wrap form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-appointment-status-form-wrap .form-select {
  flex: 1;
  min-width: 10rem;
  max-width: 14rem;
}

.admin-detail-hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  opacity: 0.95;
}

.admin-detail-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-detail-hero-meta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-detail-metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  height: 100%;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color var(--transition);
}

.admin-detail-metric:hover {
  border-color: var(--brand);
  box-shadow: none;
}

.admin-detail-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.admin-detail-metric-icon--warn {
  background: #fef3c7;
  color: #b45309;
}

.admin-detail-metric-icon--info {
  background: #e0f2fe;
  color: #0369a1;
}

.admin-detail-metric-icon--ok {
  background: #dcfce7;
  color: #15803d;
}

.admin-detail-metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}

.admin-detail-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.admin-detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.admin-detail-card-head--status {
  background: linear-gradient(90deg, var(--brand-soft) 0%, var(--white) 100%);
}

.admin-detail-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--brand-dark);
  font-size: 1.1rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-detail-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.admin-detail-card-body {
  padding: 1.25rem;
}

.admin-detail-fields {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-detail-fields > li {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.admin-detail-fields > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-detail-fields > li:first-child {
  padding-top: 0;
}

.admin-detail-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.admin-detail-field-label .bi {
  font-size: 0.9rem;
  color: var(--brand);
}

.admin-detail-field-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  word-break: break-word;
}

.admin-detail-field-value a {
  color: var(--brand-dark);
  text-decoration: none;
}

.admin-detail-field-value a:hover {
  text-decoration: underline;
}

.admin-detail-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.admin-detail-callout .bi {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.admin-detail-callout--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.admin-detail-callout--ok .bi {
  color: #059669;
}

.admin-detail-callout--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.admin-detail-callout--warn .bi {
  color: #d97706;
}

.admin-detail-card-actions {
  padding-top: 0.25rem;
  border-top: 1px dashed var(--border);
}

.admin-detail-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.admin-detail-panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.admin-detail-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.admin-detail-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--dark);
}

.admin-detail-panel-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.admin-detail-panel-body {
  padding: 0;
}

.admin-detail-panel-body .admin-table-wrap {
  border: 0;
  border-radius: 0;
}

.admin-detail-panel-body .admin-table thead th {
  background: var(--white);
  border-top: 0;
}

.admin-detail-panel-foot {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.admin-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-detail-empty .bi {
  font-size: 1.25rem;
  opacity: 0.6;
}

/* Legacy dl (appointment detail) */
.admin-member-dl > div {
  margin-bottom: 0.85rem;
}

.admin-member-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.admin-member-dl dd {
  margin: 0;
  font-size: 0.9375rem;
}

.admin-member-block-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-member-block-form .btn {
  align-self: flex-start;
}

@media (max-width: 575.98px) {
  .admin-detail-hero {
    padding: 1.25rem;
  }

  .admin-detail-hero-title {
    font-size: 1.25rem;
  }

  .admin-detail-fields > li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Maintenance mode (public site) */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(165deg, var(--surface) 0%, #f5edd8 45%, #f8e7b8 100%);
}

.maintenance-page__inner {
  max-width: 32rem;
  width: 100%;
  text-align: center;
}

.maintenance-page__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.maintenance-page__brand .brand-logo {
  width: 220px;
  height: auto;
  aspect-ratio: var(--brand-logo-ratio);
  object-fit: contain;
}

.maintenance-page__icon {
  font-size: 2.75rem;
  color: var(--brand);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.maintenance-page__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.maintenance-page__message {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.maintenance-page__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.maintenance-page__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.maintenance-page__link:hover {
  color: var(--dark);
  text-decoration: underline;
}

.maintenance-page__footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cms-skel {
  display: block;
  background: linear-gradient(90deg, var(--surface) 25%, #eee 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: cms-skel 1.2s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes cms-skel {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.cms-skel-title {
  height: 1.75rem;
  width: 12rem;
}

.cms-skel-line {
  height: 0.85rem;
  width: 20rem;
  max-width: 100%;
}

.cms-skel-cell {
  height: 0.85rem;
  width: 80%;
}

.cms-skel-card {
  height: 12rem;
  width: 100%;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-pagination-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}

.site-pagination-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
