:root {
  --bg: #f0f1f5;
  --surface: #ffffff;
  --card: #ffffff;
  --white: #ffffff;
  --text-color: #0e0e0e;
  --ink: #0e0e0e;
  --ink-soft: #5b5d6b;
  --primary: #5b21b6;
  --primary-2: #6d28d9;
  --primary-light: #f3eefc;
  --logo-color: #0e0e0e;
  --success: #16a34a;
  --line: #d6d6d6;
  --shadow: 0 10px 30px rgba(91, 33, 182, 0.08);
  --header-bg: rgba(240, 241, 245, 0.85);
  --hero-bg-1: #f7f7f7;
  --hero-surface: #ffffff;
  --hero-accent: rgba(91, 33, 182, 0.08);
  --hero-glow: rgba(91, 33, 182, 0.15);
  --btn-outline-bg: #ffffff;
  --btn-outline-hover: #f3eefc;
  --input-bg: #ffffff;
  --toggle-bg: #ffffff;
  --toggle-border: #d6d6d6;
  --section-space: clamp(48px, 6vw, 80px);
}

[data-theme="dark"] {
  --bg: #0f0e17;
  --surface: #1a1829;
  --card: #1a1829;
  --white: #1a1829;
  --text-color: #fffffe;
  --ink: #fffffe;
  --ink-soft: #a7a9be;
  --primary: #8b5cf6;
  --primary-2: #a78bfa;
  --primary-light: rgba(139, 92, 246, 0.15);
  --logo-color: #fffffe;
  --success: #22c55e;
  --line: #2e2a45;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(15, 14, 23, 0.85);
  --hero-bg-1: #161426;
  --hero-surface: #1a1829;
  --hero-accent: rgba(139, 92, 246, 0.12);
  --hero-glow: rgba(139, 92, 246, 0.22);
  --btn-outline-bg: #242136;
  --btn-outline-hover: rgba(139, 92, 246, 0.15);
  --input-bg: #242136;
  --toggle-bg: #1a1829;
  --toggle-border: #3b3558;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

/* Themed scrollbar (the grey/white bar on the right) in site colours */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-2);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

html,
body {
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Almarai", "Inter", sans-serif;
  line-height: 1.75;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

html[lang="en"] body {
  font-family: "DM Sans", sans-serif;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  position: relative;
  padding-block: clamp(18px, 2.4vw, 28px);
}

section[id] {
  scroll-margin-top: 100px;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  color: var(--logo-color);
  transition:
    filter 0.3s ease,
    transform 0.2s ease,
    height 0.2s ease;
}

[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.navlinks a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 24px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition:
    color 150ms ease-in-out,
    background 150ms ease-in-out;
}

.navlinks a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--toggle-bg);
  border: 1.5px solid var(--toggle-border);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-toggle {
  background: var(--toggle-bg);
  border: 1.5px solid var(--toggle-border);
  color: var(--ink);
  padding: 8px 14px;
  height: 42px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.lang-toggle:hover {
  transform: scale(1.06);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle i {
  font-size: 16px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
  color: #f59e0b;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.navcta {
  background: var(--primary);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(91, 33, 182, 0.2);
  transition:
    background 150ms ease-in-out,
    transform 150ms ease-in-out,
    box-shadow 150ms ease-in-out;
}

.navcta:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(91, 33, 182, 0.28);
}

.navtoggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--toggle-bg);
  border: 1.5px solid var(--toggle-border);
  color: var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.navtoggle:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
}

.navtoggle i {
  font-size: 16px;
}

.navtoggle .close-icon {
  display: none;
}

.navtoggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.navtoggle[aria-expanded="true"] .close-icon {
  display: block;
}

/* Hero */

.hero {
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 15px;
  margin-bottom: 0px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--hero-surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 590px;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -15%;
  width: 55%;
  height: 90%;
  border-radius: 80%;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
}


.hero-content h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.hero-subtitle {
  max-width: 460px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.8rem * 4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  max-width: max-content;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  min-height: 78px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat strong {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

html[lang="en"] .hero-stat strong,
html[lang="en"] .about-flex .num-big,
html[lang="en"] .services-intro .num-big,
html[lang="en"] .results-intro .num-big,
html[lang="en"] .faq-intro .num-big,
html[lang="en"] .service-card .service-num {
  font-family: "DM Sans", sans-serif;
}

.hero-stat span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 22ch;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-preview {
  position: relative;
  width: min(100%, 360px);
}

.hero-preview-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: 24px;
  opacity: 0.18;
  filter: blur(24px);
  z-index: 0;
}

.hero-preview-frame {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--hero-accent);
  box-shadow: 0 28px 54px rgba(14, 14, 14, 0.12);
  aspect-ratio: 4 / 5;
}

[data-theme="dark"] .hero-preview-frame {
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.4);
}

.hero-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 450ms ease;
}

.hero-preview:hover .hero-preview-frame img {
  transform: scale(1.03);
}

/* Hero eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid rgba(91, 33, 182, 0.16);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.eyebrow i {
  font-size: 12px;
  flex-shrink: 0;
}

.eyebrow span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Two-line hero title */
.hero-content h1 span {
  display: block;
}

.title-accent {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero preview decorations */
.hero-preview-ring {
  position: absolute;
  inset: 10% -4% -4% 10%;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  top: -16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(91, 33, 182, 0.16);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-chip i {
  color: var(--success);
  font-size: 13px;
  flex-shrink: 0;
}

.hero-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card {
  position: absolute;
  bottom: -20px;
  inset-inline-end: -12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.hero-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.hero-card-text strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.hero-card-text span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hero-card .hero-card-check {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16.5px;
  transition:
    transform 150ms ease-in-out,
    background 150ms ease-in-out,
    color 150ms ease-in-out,
    border-color 150ms ease-in-out,
    box-shadow 150ms ease-in-out;
}

.btn-solid {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.18);
}

.btn-solid:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
}

.btn-solid:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(91, 33, 182, 0.22);
}

.btn-outline {
  background: var(--btn-outline-bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--btn-outline-hover);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ABOUT */

.about-wrap {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 42px);
}

.about-photo-strip {
  flex: 0 0 42%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 200ms ease-in-out,
    transform 200ms ease-in-out;
}

.about-photo-strip:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(91, 33, 182, 0.14);
}

.about-photo-strip img {
  width: 100%;
  height: clamp(360px, 46vw, 520px);
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  display: block;
}

.about-flex {
  flex: 1;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.about-flex .num-big {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 8px;
}

.about-text {
  flex: 1;
  text-align: start;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 18px;
}

.about-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  line-height: 1.3;
  margin-bottom: 26px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.9;
}

/* SERVICES */
#services {
  padding-block: clamp(32px, 5vw, 64px);
}

.services-intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.services-intro .num-big {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 8px;
}

.services-text {
  flex: 1;
  text-align: start;
}

.services-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.services-text p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

/* Actual services list (what the doctor does) */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.service-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-item::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 220ms ease;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 33, 182, 0.25);
  box-shadow: 0 20px 44px rgba(91, 33, 182, 0.14);
}

.service-item:hover::before {
  opacity: 1;
}

.service-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 21px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.3);
  transition: transform 220ms ease;
}

.service-item:hover .service-item-icon {
  transform: scale(1.07) rotate(-4deg);
}

.service-item h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    box-shadow 200ms ease-in-out,
    transform 200ms ease-in-out,
    border-color 200ms ease-in-out;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 28px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 33, 182, 0.25);
  box-shadow: 0 20px 44px rgba(91, 33, 182, 0.14);
}

.service-card[open] {
  border-color: rgba(91, 33, 182, 0.35);
  box-shadow: 0 22px 48px rgba(91, 33, 182, 0.18);
}

.service-card:hover::before,
.service-card[open]::before {
  opacity: 1;
}

.service-card summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 22px;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition:
    transform 200ms ease-in-out,
    background 200ms ease-in-out;
}

.service-card:hover .service-num {
  transform: scale(1.08);
}

.service-card summary h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.service-chevron {
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 260ms ease-in-out;
}

.service-card[open] .service-chevron,
.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
}

/*
  Smooth expand/collapse animation for the FAQ & service <details> cards.
  Pure CSS: animates grid-template-rows 0fr -> 1fr instead of the native,
  instantaneous open/close, and needs no JavaScript at all. The extra
  specificity (two classes) is required to beat the browser's built-in
  "details:not([open]) > *:not(summary) { display:none }" rule.
*/
.service-card .service-body,
.faq-card .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  padding-top: 0;
  padding-bottom: 0;
}

.service-card[open] .service-body,
.faq-card[open] .faq-body {
  grid-template-rows: 1fr;
}

.service-body > p,
.faq-body > p {
  overflow: hidden;
  min-height: 0;
}

.service-body {
  padding-inline: 22px;
}

.service-body > p {
  padding-bottom: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

/* RESULTS */
.results-intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.results-intro .num-big {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 8px;
}

.results-text {
  flex: 1;
  text-align: start;
}

.results-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.results-text p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.9;
}

.results-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.ba-wrap {
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(91, 33, 182, 0.16);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

[data-theme="dark"] .ba-wrap {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.ba-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-after {
  clip-path: inset(0 0 0 var(--pos));
}

.ba-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--primary-2)
  );
  box-shadow: 0 0 16px rgba(91, 33, 182, 0.55);
  z-index: 3;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 24px rgba(91, 33, 182, 0.42),
    0 0 0 6px rgba(91, 33, 182, 0.12);
  z-index: 4;
  cursor: ew-resize;
  touch-action: none;
  transition:
    transform 120ms ease-in-out,
    box-shadow 120ms ease-in-out;
}

.ba-handle:hover,
.ba-handle:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 14px 30px rgba(91, 33, 182, 0.55),
    0 0 0 9px rgba(91, 33, 182, 0.16);
  outline: none;
}

.ba-handle i {
  font-size: 16px;
}

.ba-badge {
  position: absolute;
  top: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.35);
  z-index: 2;
  pointer-events: none;
}

.ba-badge-before {
  left: 16px;
}

.ba-badge-after {
  right: 16px;
  background: var(--primary-2);
}

.ba-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.ba-hint i {
  color: var(--primary);
}

.disclaimer {
  margin-top: 24px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

/* CONTACT */
#contact {
  padding-block: clamp(24px, 4vw, 40px);
}

.contact-intro {
  margin-bottom: 32px;
}

.contact-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-text p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
  align-items: stretch;
}

.contact-info {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  transition:
    box-shadow 200ms ease-in-out,
    transform 200ms ease-in-out;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  margin: 0 -14px;
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease-in-out;
}

.contact-item:hover {
  background: var(--primary-light);
}

.contact-item:last-of-type {
  border-bottom: none;
  padding-bottom: 4px;
}

.contact-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.contact-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.contact-btn {
  align-self: flex-start;
  margin-top: 0;
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.2);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
}

.contact-map {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 340px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

/* BOOKING PAGE */
.booking-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  width: 100%;
}

.booking-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  min-height: 0;
  box-shadow: none;
}

html[dir="rtl"] .booking-stat {
  text-align: right;
}

.booking-stat::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 12px;
  flex-shrink: 0;
}

.booking-stat b,
.booking-stat span {
  display: block;
}

.booking-stat b {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.booking-stat span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.booking-main {
  margin: 64px auto 90px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.booking-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 44px;
  border: 1px solid var(--line);
  transition:
    box-shadow 200ms ease-in-out,
    transform 200ms ease-in-out;
}

.booking-info {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  position: sticky;
  top: 96px;
  transition:
    box-shadow 200ms ease-in-out,
    transform 200ms ease-in-out;
}

.booking-info .contact-item {
  padding: 14px 14px;
  margin: 0 -14px;
}

.booking-card .contact-text {
  text-align: start;
}

.booking-card .card-head {
  margin-bottom: 30px;
}

.booking-card .card-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.booking-card .card-head p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--ink);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  font-family: "Almarai", sans-serif;
  font-size: 14.5px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f8f8fb;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--input-bg);
}

input::placeholder,
textarea::placeholder {
  color: #a2a2ab;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(91, 33, 182, 0.35);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.12);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background: var(--input-bg);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'><path d='M1 1L7 7L13 1' stroke='%235B21B6' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
}

html[dir="rtl"] select {
  background-position: left 16px center;
}

html[dir="ltr"] select {
  background-position: right 16px center;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.type-option {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  background: #f8f8fb;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

[data-theme="dark"] .type-option {
  background: var(--input-bg);
}

.type-option:hover {
  border-color: rgba(91, 33, 182, 0.4);
  transform: translateY(-1px);
}

.type-option input {
  width: auto;
  accent-color: var(--primary);
  margin: 0;
}

.type-option.selected {
  border-color: var(--primary);
  background: #f3eefc;
  color: var(--primary);
  font-weight: 700;
}

[data-theme="dark"] .type-option.selected {
  background: var(--primary-light);
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 17px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 8px;
  font-family: "Almarai", sans-serif;
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.22);
  transition:
    background 150ms ease-in-out,
    transform 150ms ease-in-out,
    box-shadow 150ms ease-in-out;
}

.submit-btn:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: scale(0.98);
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.privacy-note i {
  font-size: 13px;
  flex-shrink: 0;
}

.success-box {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.success-box.show {
  display: block;
  animation: fadeInScale 0.5s ease forwards;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f3eefc;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 18px;
}

[data-theme="dark"] .success-icon {
  background: var(--primary-light);
}

.success-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-box p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 340px;
  margin: 0 auto;
}

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

  .booking-info {
    position: static;
  }
}

@media (max-width: 560px) {
  .booking-card {
    padding: 28px 22px;
  }

  .row-2,
  .type-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ANIMATION */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes revealFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow,
.hero-content h1,
.hero-subtitle,
.hero-cta,
.hero-stats {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.eyebrow {
  animation-delay: 0.04s;
}

.hero-content h1 {
  animation-delay: 0.14s;
}

.hero-subtitle {
  animation-delay: 0.24s;
}

.hero-cta {
  animation-delay: 0.34s;
}

.hero-stats {
  animation-delay: 0.44s;
}

.hero-visual {
  opacity: 0;
  animation: fadeInScale 0.85s ease 0.18s forwards;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
}

[data-animate].in-view {
  animation: revealFade 0.65s ease forwards;
}

.service-card[data-animate].in-view {
  animation-delay: calc(var(--i, 0) * 70ms);
}

.faq-card[data-animate].in-view {
  animation-delay: calc(var(--i, 0) * 60ms);
}

.about-flex[data-animate].in-view,
.about-photo-strip[data-animate].in-view,
.services-intro[data-animate].in-view,
.results-intro[data-animate].in-view,
.faq-intro[data-animate].in-view,
.contact-intro[data-animate].in-view,
.contact-info[data-animate].in-view,
.contact-map[data-animate].in-view {
  animation-delay: 0s;
}

/*
  Language-switch transition. Any script may add "lang-fade" to <body>
  (e.g. on the custom "i18n:changed" event) to play a short cross-fade
  whenever the language changes, instead of text snapping instantly.
*/
body.lang-fade {
  animation: langFade 420ms ease;
}

@keyframes langFade {
  0% {
    opacity: 0.4;
    filter: blur(2px);
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.posts-intro {
  text-align: center;
  margin: 40px auto 20px;
  max-width: 800px;
}
.posts-intro h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  color: var(--primary);
  margin-bottom: 12px;
}
.posts-intro p {
  color: var(--ink-soft);
  font-size: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 24px;
  margin: 40px auto 80px;
  max-width: 1080px;
  padding: 0 20px;
}

.post-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.14);
}

.post-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: start;
}

.post-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.post-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-readmore {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-readmore svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

html[dir="rtl"] .post-readmore svg {
  transform: scaleX(-1);
}

html[dir="ltr"] .post-readmore svg {
  transform: scaleX(1);
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--ink-soft);
  font-size: 16px;
}

.error-state {
  color: #ef4444;
  background: #fee2e2;
  border-radius: 12px;
  font-weight: 700;
}

[data-theme="dark"] .error-state {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .eyebrow,
  .hero-content h1,
  .hero-subtitle,
  .hero-cta,
  .hero-stats,
  .hero-visual {
    opacity: 1;
    animation: none;
  }

  .hero-chip,
  .hero-card {
    opacity: 1;
    animation: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  body.lang-fade {
    animation: none;
  }

  .service-card .service-body,
  .faq-card .faq-body {
    transition: none;
  }

  .faq-body > p {
    transition: none;
  }

}

/* ============================================================
   RESPONSIVE — audited top to bottom for every section/breakpoint
   ============================================================ */

@media (max-height: 780px) and (min-width: 901px) {
  .hero {
    margin-top: 10px;
  }

  .hero-inner {
    padding: 28px 40px;
    min-height: 0;
    gap: 32px;
  }

  .hero-content {
    gap: 12px;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-stats {
    padding-top: 10px;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-preview {
    width: min(100%, 260px);
  }

  .hero-chip,
  .hero-card {
    display: none;
  }

  .logo img {
    height: 48px;
  }

  header nav {
    padding: 8px 0;
  }
}

@media (min-width: 1161px) and (max-width: 1320px) {
  .navlinks a {
    padding: 10px 12px;
    font-size: 12.5px;
  }
}

@media (min-width: 901px) and (max-width: 1160px) {
  .hero-inner {
    padding: 36px 38px;
    gap: 28px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }

  .hero-preview {
    width: min(100%, 300px);
  }

  .about-wrap {
    gap: 28px;
  }

  .navlinks a {
    padding: 9px 10px;
    font-size: 11.5px;
    letter-spacing: 0.02em;
  }

  .navcta {
    padding: 10px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 28px;
    min-height: unset;
    border-radius: 24px;
  }

  .hero-inner::before {
    inset-block-start: -20%;
    inset-inline-end: -30%;
    width: 80%;
    height: 50%;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-content h1,
  .hero-subtitle {
    -webkit-line-clamp: unset;
    min-height: 0;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-visual {
    order: 2;
    min-height: unset;
    padding-bottom: 8px;
  }

  .hero-preview {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero-stats {
    gap: 20px;
    min-height: 0;
  }

  .about-wrap {
    flex-direction: column;
    margin-top: 12px;
  }

  .about-photo-strip {
    width: 100%;
  }

  .services-intro,
  .results-intro,
  .faq-intro {
    flex-direction: column;
    gap: 12px;
  }

  .services-intro {
    margin-bottom: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 260px;
  }

  .goal-options {
    grid-template-columns: 1fr;
  }

  .results-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .navlinks {
    display: flex;
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(14, 14, 14, 0.16);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 200ms ease,
      transform 200ms ease,
      visibility 200ms;
  }

  .navlinks.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navlinks a {
    text-align: center;
    padding: 14px 16px;
  }

  .navtoggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  /* Prevent iOS Safari from auto-zooming into inputs smaller than 16px */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .wrap {
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 32px 20px;
    gap: 28px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stat strong {
    font-size: 1.5rem;
  }

  .hero-chip {
    top: -14px;
    inset-inline-start: 10px;
    padding: 8px 14px;
    font-size: 11.5px;
  }

  .hero-card {
    bottom: 8px;
    inset-inline-end: 8px;
    padding: 10px 14px;
    gap: 10px;
  }

  .hero-card-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .modal {
    padding: 24px 18px;
  }

  .goal-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .goal-footer .btn {
    width: 100%;
    min-width: 0;
  }

  .faq-body {
    padding-inline: 16px 44px;
  }

  html[dir="rtl"] .faq-body {
    padding-inline: 44px 16px;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 0 14px;
  }

  .logo img {
    height: 48px;
  }
}

/* CONTACT PS NOTE */
.ps-note {
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.9;
}

/* ADMIN DASHBOARD */
.admin-main {
  padding: 30px 0 64px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
}

.admin-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 10px 0 0;
  max-width: 720px;
}

.admin-section {
  margin-top: 30px;
}

.admin-main .admin-section:first-of-type {
  margin-top: 14px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-refresh-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.admin-refresh-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.admin-refresh-btn.spinning i {
  animation: adminSpin 700ms linear infinite;
}

.admin-refresh-btn--danger {
  color: #dc2626;
}

.admin-refresh-btn--danger:hover {
  border-color: #dc2626;
}

[data-theme="dark"] .admin-refresh-btn--danger {
  color: #f87171;
}

[data-theme="dark"] .admin-refresh-btn--danger:hover {
  border-color: #f87171;
}

@keyframes adminSpin {
  to {
    transform: rotate(360deg);
  }
}

.admin-section h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.signout-btn {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}

/* login */
.login-card {
  max-width: 460px;
  margin: 40px auto;
}

.login-card .card-head {
  text-align: center;
  margin-bottom: 26px;
}

.login-card .card-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-card .card-head p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.login-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 0;
  display: none;
}

/* patients grid (posts admin) + patients rail (horizontal scroll) */
.patients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.patients-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 16px;
  margin-top: 18px;
  scrollbar-width: none;
}

.patients-row::-webkit-scrollbar {
  display: none;
}

.patient-card {
  position: relative;
  flex: 0 0 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  scroll-snap-align: start;
  overflow: visible;
}

[data-theme="dark"] .patient-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.patient-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-head .status-badge {
  flex: 0 0 auto;
}

.pc-icon-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.pc-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pc-cancel {
  margin-inline-start: auto;
  color: #dc2626;
}

.pc-cancel:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.pc-purge {
  margin-inline-start: auto;
  color: #dc2626;
}

.pc-purge:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.pc-email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: start;
}

.pc-email i {
  color: var(--primary);
  font-size: 11px;
  flex: 0 0 auto;
}

.pc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.pc-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}

.pc-cell-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.pc-cell-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-cell-value i {
  color: var(--primary);
  font-size: 11px;
  flex: 0 0 auto;
}

.pc-notes {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
}

.pc-notes-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.pc-notes-view {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.pc-notes-view:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pc-notes-pop {
  position: absolute;
  z-index: 30;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  width: 280px;
  max-width: 86vw;
  max-height: 220px;
  overflow: auto;
  padding: 16px 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.pc-notes-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  inset-inline-end: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--card);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.pc-pop-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.pc-pop-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}

.pc-pop-close:hover {
  color: #dc2626;
}

.pc-submitted {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pc-submitted i {
  color: var(--primary);
}

.pc-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pc-actions .btn {
  font-size: 12.5px;
  padding: 9px 12px;
}

.pc-reschedule-btn {
  min-width: 0;
}

.pc-confirm {
  width: 100%;
}

[data-theme="dark"] .pc-cell {
  background: #1c1930;
}

[data-theme="dark"] .pc-notes {
  background: #1c1930;
}

[data-theme="dark"] .pc-icon-btn {
  background: #1c1930;
}

[data-theme="dark"] .pc-icon-btn:hover {
  color: #a78bfa;
  border-color: #a78bfa;
}

[data-theme="dark"] .pc-notes-pop {
  background: #211e33;
  border-color: #333047;
}

[data-theme="dark"] .pc-notes-pop::before {
  background: #211e33;
  border-color: #333047;
}

[data-theme="dark"] .pc-notes-view:hover {
  background: var(--primary-light);
}

/* cancel warning modal */
.warn-modal {
  max-width: 400px;
  text-align: center;
}

.warn-modal h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}

.warn-icon {
  margin: 0 auto 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

[data-theme="dark"] .warn-icon {
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
}

.warn-body {
  margin: 10px 0 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.warn-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-contacted {
  background: #dbeafe;
  color: #1e40af;
}

.status-confirmed {
  background: #dcfce7;
  color: #15803d;
}

.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

[data-theme="dark"] .status-pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

[data-theme="dark"] .status-contacted {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

[data-theme="dark"] .status-confirmed {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

[data-theme="dark"] .status-cancelled {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.status-awaiting {
  background: #ede9fe;
  color: #6d28d9;
}

[data-theme="dark"] .status-awaiting {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.pc-done {
  width: 100%;
}

.pc-done:hover {
  background: #059669;
}

.pc-await-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed #a78bfa;
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
  font-size: 12.5px;
  font-weight: 800;
}

[data-theme="dark"] .pc-await-note {
  color: #c4b5fd;
  border-color: #7c3aed;
  background: rgba(139, 92, 246, 0.14);
}

.admin-toast {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.admin-toast.show {
  animation: toastIn 350ms ease;
}

[data-theme="dark"] .admin-toast {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* reschedule modal */
.resched-modal {
  max-width: 420px;
  text-align: center;
}

.resched-modal h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}

.resched-sub {
  margin: 10px 0 18px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.resched-icon {
  margin: 0 auto 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

[data-theme="dark"] .resched-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
}

.resched-modal .field {
  text-align: right;
}

.resched-modal .form-error {
  margin-top: 12px;
}

.resched-recipient {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-alt, #f4f2fa);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 700;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

[dir="rtl"] .resched-recipient {
  direction: rtl;
  text-align: right;
}

/* public reschedule response page */
.resched-card {
  max-width: 480px;
}

.resched-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

.resched-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 18px 8px;
  font-size: 14px;
  line-height: 1.9;
}

.resched-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
}

.resched-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resched-cell {
  text-align: right;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.05);
}

.resched-cell-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.resched-cell-value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.resched-cell-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.resched-service {
  padding: 12px 2px 4px;
}

.resched-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.resched-actions .btn {
  padding: 12px 14px;
}

.resched-accept {
  background: #059669;
}

.resched-accept:hover {
  background: #047857;
}

.resched-alt {
  margin-top: 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
}

.resched-alt-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.resched-alt-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.resched-alt-sub {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.resched-alt-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resched-alt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.resched-alt-field input,
.resched-alt-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.resched-alt-err {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #dc2626;
}

.resched-alt-btn {
  margin-top: 14px;
  width: 100%;
}

@media (max-width: 520px) {
  .resched-alt-fields {
    grid-template-columns: 1fr;
  }
}

.resched-result {
  text-align: center;
  padding: 10px 0;
}

.resched-result-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
}

[data-theme="dark"] .resched-result-icon {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.resched-result-text {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.state-msg {
  text-align: center;
  color: var(--ink-soft);
  padding: 44px 16px;
  font-size: 14.5px;
}

.state-msg.error {
  color: #dc2626;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.18);
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.24);
}

[data-theme="dark"] .btn-danger {
  background: #ef4444;
}

[data-theme="dark"] .btn-danger:hover {
  background: #dc2626;
}

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

/* GLASS BUTTON */
.btn-glass {
  background: var(--surface);
  border: 1px solid rgba(91, 33, 182, 0.25);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* FAQ */
.faq-wrap {
  padding-block: 0;
}

.faq-intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.faq-intro .num-big {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 8px;
}

.faq-text {
  flex: 1;
  text-align: start;
}

.faq-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.375rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.faq-text p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.9;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.faq-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    box-shadow 200ms ease-in-out,
    border-color 200ms ease-in-out,
    transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-card:hover {
  border-color: rgba(91, 33, 182, 0.25);
}

.faq-card[open] {
  border-color: rgba(91, 33, 182, 0.35);
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.14);
  transform: translateY(-2px);
}

.faq-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary span {
  flex: 1;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.faq-chevron {
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-body {
  padding-inline: 20px 54px;
}

html[dir="rtl"] .faq-body {
  padding-inline: 54px 20px;
}

.faq-body > p {
  padding-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

/* GOAL FINDER MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 14, 23, 0.72);
  animation: modalFade 200ms ease;
}

.modal-overlay[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 40px 90px rgba(14, 14, 14, 0.35);
  padding: 34px;
  animation: modalIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .modal {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--toggle-bg);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition:
    transform 150ms ease-in-out,
    color 150ms ease-in-out,
    border-color 150ms ease-in-out;
}

.modal-close:hover {
  transform: scale(1.08);
  color: var(--primary);
  border-color: var(--primary);
}

.goal-head {
  text-align: center;
  padding-inline: 10px;
}

.goal-step {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.goal-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.goal-head p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto;
}

.goal-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--primary-light);
  margin: 22px 0 0;
  overflow: hidden;
}

.goal-progress-bar {
  height: 100%;
  width: 33%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 260ms ease;
}

.goal-panels {
  margin-top: 18px;
}

.goal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.goal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--input-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
  overflow-wrap: anywhere;
  transition:
    border-color 150ms ease-in-out,
    transform 150ms ease-in-out,
    box-shadow 150ms ease-in-out,
    background 150ms ease-in-out;
}

.goal-option:hover {
  border-color: rgba(91, 33, 182, 0.4);
  transform: translateY(-2px);
}

.goal-option-check {
  color: var(--line);
  font-size: 15px;
  flex-shrink: 0;
  transition:
    color 150ms ease-in-out,
    transform 150ms ease-in-out;
}

.goal-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.14);
}

.goal-option.selected .goal-option-check {
  color: var(--success);
  transform: scale(1.1);
}

.goal-hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin-top: 16px;
}

.goal-submit-error {
  text-align: center;
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin-top: 12px;
  margin-bottom: 0;
}

.goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.goal-footer .btn {
  min-width: 130px;
  justify-content: center;
  padding: 13px 24px;
}

.goal-footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#goalSuccess {
  padding: 20px 10px 10px;
}

/* STICKY MOBILE ACTION BAR */
.mobile-action-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 120;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: rgba(240, 241, 245, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(14, 14, 14, 0.16);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms;
}

.mobile-action-bar.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(130%);
  pointer-events: none;
}

[data-theme="dark"] .mobile-action-bar {
  background: rgba(15, 14, 23, 0.88);
}

.mab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 8px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition:
    transform 150ms ease-in-out,
    background 150ms ease-in-out;
}

.mab-btn:active {
  transform: scale(0.96);
}

.mab-btn i {
  font-size: 14px;
  flex-shrink: 0;
}

.mab-wa {
  background: #25d366;
  color: #fff;
  border-color: transparent;
}

.mab-book {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.24);
}

@media (max-width: 780px) {
  .mobile-action-bar {
    display: grid;
  }

  body {
    padding-bottom: 92px;
  }

  /* The mobile action bar already offers call / WhatsApp / booking,
     so the duplicate buttons in the "get in touch" section are hidden */
  .contact-actions {
    display: none;
  }
}

/* SPAM GUARD — hidden honeypot field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

html[dir="rtl"] .hp-field {
  left: auto;
  right: -9999px;
}

/* Inline form errors */
.form-error {
  color: #dc2626;
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.7;
  display: none;
}

/* POSTS PAGE */
.post-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ADMIN POSTS CMS */
.posts-editor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.posts-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-admin-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-admin-excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.post-admin-meta i {
  color: var(--primary);
}

.post-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.post-new-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.post-new-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.post-blocks {
  display: grid;
  gap: 10px;
}

.post-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.post-block-input {
  display: block;
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 64px;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.8;
}

.post-block-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}

.pb-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.pb-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.pb-btn.pb-del:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.post-block-num {
  margin-inline-start: auto;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 800;
}

.post-preview-modal {
  width: min(680px, 94vw);
}

.post-preview-body {
  max-height: 62vh;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.post-preview-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
}

.post-preview-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-body);
}

.post-preview-empty {
  color: var(--ink-soft);
}

.post-admin-actions .btn {
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* SETUP PANEL */
.setup-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 22px;
}

.setup-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow: auto;
  max-height: 360px;
  margin: 0 0 16px;
  direction: ltr;
  text-align: left;
  white-space: pre;
}

[data-theme="dark"] .setup-code {
  background: #111827;
  color: #d1d5db;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


@media (max-width: 780px) {
  header nav {
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 8px 0;
  }

  .nav {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    padding: 6px 12px;
    gap: 6px;
  }

  .logo img {
    height: 80px !important; /* Scale down logo size to fit one row */
    width: auto;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle, 
  .theme-toggle, 
  .navtoggle {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 12px;
  }

  .navcta {
    padding: 8px 12px;
    font-size: 12px;
  }
}


.roadmap-outer {
  position: relative;
}

.roadmap-outer.roadmap-pending {
  min-height: 420vh;
}

.roadmap-sticky {
  display: none;
}

.roadmap-outer.roadmap-active {
  /* JS sets an inline --roadmap-scroll-vh value per stop count */
  height: var(--roadmap-height, 420vh);
}

.roadmap-outer.roadmap-active .roadmap-fallback {
  display: none;
}

.roadmap-outer.roadmap-active .roadmap-sticky {
  display: block;
  position: sticky;
  top: 0;
  width: max(359px, 99vw);
  height: 100vh;
  margin-inline-start: calc(50% - 50vw);
  min-height: 0;
  max-height: none;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

#roadmapCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.roadmap-sticky::after {
  display: none;
}

.roadmap-progress {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.roadmap-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.roadmap-dot.is-active {
  background: var(--primary-2);
  transform: scale(1.35);
}

.roadmap-step-label {
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  z-index: 3;
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.roadmap-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.roadmap-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100% - 40px));
  padding: 26px 28px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(91, 33, 182, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) translateY(18px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 380ms ease,
    transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 380ms;
}

.roadmap-panel.is-active {
  z-index: 2;
}

.roadmap-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.roadmap-panel .service-num {
  margin-bottom: 8px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.roadmap-panel h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.roadmap-panel p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.roadmap-hint {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
  transition: opacity 300ms ease;
}

.roadmap-outer.is-first-viewed .roadmap-hint {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .roadmap-panel {
    width: min(380px, calc(100% - 32px));
    padding: 22px 22px;
  }
}

/* Readable vertical timeline used when the 3D view is unavailable
   (no WebGL / reduced motion). Kept modern & easy to read on phones. */
.roadmap-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: grid;
  gap: 20px;
}

.roadmap-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  inset-inline-start: 27px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--primary-2)
  );
  opacity: 0.4;
}

.roadmap-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.roadmap-step[data-animate].in-view {
  animation-delay: calc(var(--i, 0) * 90ms);
}

.roadmap-step-node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:
    0 10px 24px rgba(91, 33, 182, 0.32),
    0 0 0 6px var(--bg);
}

.roadmap-step-card {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.roadmap-step-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.roadmap-step:hover .roadmap-step-card {
  transform: translateY(-4px);
  border-color: rgba(91, 33, 182, 0.28);
  box-shadow: 0 20px 44px rgba(91, 33, 182, 0.14);
}

.roadmap-step-num {
  display: block;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.roadmap-step-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.roadmap-step-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 560px) {
  .roadmap-panel {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .roadmap-panel h3,
  .roadmap-step-card h3 {
    font-size: 16px;
  }

  .roadmap-panel p,
  .roadmap-step-card p {
    font-size: 13.5px;
  }

  .roadmap-steps {
    gap: 16px;
  }

  .roadmap-steps::before {
    inset-inline-start: 22px;
  }

  .roadmap-step {
    gap: 14px;
  }

  .roadmap-step-node {
    width: 44px;
    height: 44px;
    font-size: 16px;
    box-shadow:
      0 8px 20px rgba(91, 33, 182, 0.32),
      0 0 0 5px var(--bg);
  }

  .roadmap-step-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .roadmap-outer.roadmap-pending {
    min-height: 340vh;
  }

  .roadmap-outer.roadmap-active {
    height: var(--roadmap-height-mobile, 340vh);
  }

  .roadmap-hint {
    display: none;
  }
}

[data-theme="dark"] .roadmap-step-label {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

[data-theme="dark"] .roadmap-panel {
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .roadmap-panel p {
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   RESPONSIVE-ONLY FIXES (these never touch the desktop layout)
   ============================================================ */

/* 1. Hero — stop texts & the doctor image from being clipped /
   overflowing the screen on mobile (grid blow-out + image crop) */
@media (max-width: 900px) {
  .hero-inner > *,
  .hero-content,
  .hero-visual,
  .hero-preview {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    overflow-wrap: break-word;
  }

  .eyebrow span {
    white-space: normal;
    text-overflow: clip;
    line-height: 1.5;
  }

  .hero-preview-frame {
    aspect-ratio: auto;
  }

  .hero-preview-frame img {
    object-fit: contain;
    object-position: center;
  }
}

/* 2. Services list — one card at a time, swipe left/right on phones */
@media (max-width: 700px) {
  .services-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
  }

  .services-list::-webkit-scrollbar {
    display: none;
  }

  .service-item {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 22px 20px;
  }
}

/* 3. Results — the three before/after sliders share one slot and flip
   with prev/next arrows on phones (carousel enabled via JS) */
@media (max-width: 700px) {
  .results-showcase.results-carousel {
    display: block;
    position: relative;
  }

  .results-showcase.results-carousel .ba-wrap {
    display: none;
    max-width: 100%;
    margin-inline: auto;
  }

  .results-showcase.results-carousel .ba-wrap.is-active {
    display: block;
  }

  .results-showcase.results-carousel.animating .ba-wrap.is-active {
    animation: resultFadeIn 280ms ease;
  }

  @keyframes resultFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ba-nav {
    position: absolute;
    top: 50%;
    inset-inline: 8px;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .ba-nav-btn {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(91, 33, 182, 0.25);
    cursor: pointer;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .ba-nav-btn:active {
    transform: scale(0.92);
  }

  .ba-nav-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  html[dir="rtl"] .ba-nav-btn i {
    transform: scaleX(-1);
  }

  [data-theme="dark"] .ba-nav-btn {
    background: rgba(26, 24, 41, 0.88);
    color: #fff;
  }
}

/* 4. Roadmap — move the step card to the bottom & make it translucent so
   it no longer hides the 3D path on phones */
@media (max-width: 560px) {
  .roadmap-panel {
    top: auto;
    bottom: 14px;
    width: min(320px, calc(100% - 24px));
    max-width: none;
    padding: 16px 18px;
    border-radius: 18px;
    transform: translate(-50%, 12px) scale(0.98);
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(91, 33, 182, 0.2);
  }

  .roadmap-panel.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .roadmap-panel .service-num {
    width: 38px;
    height: 38px;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .roadmap-panel h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .roadmap-panel p {
    font-size: 12.5px;
    line-height: 1.7;
  }

  [data-theme="dark"] .roadmap-panel {
    background: rgba(26, 24, 41, 0.85);
  }
}

/* ============================================================
   DESKTOP roadmap polish: each step card sits to the LEFT or
   RIGHT of the glowing path (never on top of it) and uses a
   clean frosted-glass look. Mobile keeps the bottom card.
   ============================================================ */
@media (min-width: 720px) {
  .roadmap-panel {
    top: 50%;
    left: auto;
    right: auto;
    width: min(420px, 34vw);
    padding: 28px 30px;
    border-radius: 24px;
    transform: translateY(-50%) translateY(20px) scale(0.97);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-color: rgba(91, 33, 182, 0.14);
    box-shadow:
      0 24px 60px rgba(91, 33, 182, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  [data-theme="dark"] .roadmap-panel {
    background: rgba(26, 24, 41, 0.66);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .roadmap-panel.is-visible {
    transform: translateY(-50%) translateY(0) scale(1);
  }

  .roadmap-panel.side-left {
    left: clamp(28px, 6vw, 120px);
  }

  .roadmap-panel.side-right {
    right: clamp(28px, 6vw, 120px);
  }

  .roadmap-panel::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 30px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    opacity: 1;
  }

  .roadmap-panel p {
    line-height: 1.8;
  }
}
/* ---------- Image loading polish (blur-up fade + skeleton shimmer) ---------- */

html.js-img-fade img.img-fade {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.02);
  transition:
    opacity 0.6s ease-in-out,
    filter 0.6s ease-in-out,
    transform 0.6s ease-in-out;
}

html.js-img-fade img.img-fade.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.img-skeleton {
  background-color: var(--bg-alt);
  background-image: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: imgShimmer 1.6s linear infinite;
}

@keyframes imgShimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -140% 0;
  }
}

/* ---------- Media guard: images cannot be selected or drag-opened ---------- */

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.ba-image .ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html.js-img-fade img.img-fade {
    filter: none;
    transform: none;
    transition: opacity 0.4s linear;
  }

  .img-skeleton {
    animation: none;
    background-image: none;
  }
}

/* ---------- Facebook-style circular doctor avatar on posts ---------- */

.fb-post-avatar {
  width: 52px;
  height: 52px;
  margin-inline-end: 12px;
  flex-shrink: 0;
  position: relative;
}

.fb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
background-color: var(--bg-alt);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- In-site UI feedback (toasts + confirm modal) ---------- */

.ui-toast-container {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.ui-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(14, 14, 14, 0.24);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  animation: uiToastIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ui-toast--out {
  animation: uiToastOut 240ms ease forwards;
}

.ui-toast-icon {
  font-size: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.ui-toast--success .ui-toast-icon { color: #16a34a; }
.ui-toast--error .ui-toast-icon { color: #dc2626; }
.ui-toast--warning .ui-toast-icon { color: #d97706; }
.ui-toast--info .ui-toast-icon { color: var(--primary); }

[data-theme="dark"] .ui-toast--success .ui-toast-icon { color: #4ade80; }
[data-theme="dark"] .ui-toast--error .ui-toast-icon { color: #f87171; }
[data-theme="dark"] .ui-toast--warning .ui-toast-icon { color: #fbbf24; }

.ui-toast-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ui-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  margin-inline-start: 2px;
  transition: color 150ms ease;
}

.ui-toast-close:hover {
  color: var(--ink);
}

@keyframes uiToastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes uiToastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.ui-confirm-overlay {
  z-index: 300;
}

.ui-confirm {
  max-width: 400px;
  text-align: center;
}

.ui-confirm-title {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}

.ui-confirm-icon {
  margin: 0 auto 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(91, 33, 182, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ui-confirm-overlay.ui-confirm--danger .ui-confirm-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

[data-theme="dark"] .ui-confirm-overlay.ui-confirm--danger .ui-confirm-icon {
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
}

/* ---------- Admin week calendar ---------- */

.admin-head-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-pop {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  width: min(720px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(14, 14, 14, 0.28);
  padding: 16px;
  animation: calPopIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calendar-pop[hidden] {
  display: none;
}

[data-theme="dark"] .calendar-pop {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

@keyframes calPopIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.calendar-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cal-nav-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.cal-nav-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cal-nav-btn.cal-today {
  width: auto;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.cal-nav-prev i::before {
  content: "\f053";
}

.cal-nav-next i::before {
  content: "\f054";
}

[dir="rtl"] .cal-nav-prev i::before {
  content: "\f054";
}

[dir="rtl"] .cal-nav-next i::before {
  content: "\f053";
}

.cal-title {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.cal-title-label {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
}

.cal-title-range {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cal-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.cal-day {
  flex: 1 0 108px;
  min-width: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.cal-day--past {
  opacity: 0.55;
}

.cal-day--today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.18);
}

.cal-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.cal-day-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.cal-day-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.cal-day-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.cal-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cal-chip i {
  font-size: 11px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.cal-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.cal-chip.is-confirmed {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.08);
}

.cal-chip.is-awaiting {
  border-color: rgba(217, 119, 6, 0.5);
  background: rgba(217, 119, 6, 0.08);
}

.cal-empty {
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 4px 2px;
}

.cal-more {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  padding: 2px 2px 0;
}

.cal-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.patient-card.cal-flash {
  animation: calFlash 1.8s ease;
}

@keyframes calFlash {
  0%,
  100% {
    box-shadow: var(--shadow);
  }

  30% {
    box-shadow: 0 0 0 3px var(--primary);
  }
}

/* ============================================================
   ADMIN DASHBOARD — RESPONSIVE FIXES
   (login, patient/post cards, modals & calendar popover on phones)
   ============================================================ */

@media (max-width: 720px) {
  .admin-main {
    padding: 18px 0 42px;
    overflow-x: hidden;
  }

  .admin-head,
  .admin-section-head {
    align-items: stretch;
  }

  .admin-head h1 {
    font-size: 1.55rem;
  }

  .admin-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .patients-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .patients-row {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .patient-card {
    flex-basis: min(310px, calc(100vw - 36px));
  }

  .pc-head {
    flex-wrap: wrap;
  }

  .patient-name {
    flex: 1 1 130px;
  }

  .pc-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pc-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pc-actions .pc-confirm,
  .pc-actions .pc-done,
  .pc-actions .pc-reschedule-btn {
    grid-column: 1 / -1;
  }

  .post-admin-head {
    align-items: flex-start;
  }

  .post-admin-head h3 {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .post-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-admin-actions .btn {
    justify-content: center;
    min-width: 0;
  }

  .posts-editor,
  .setup-box {
    padding: 18px;
  }

  .setup-code {
    max-width: 100%;
    font-size: 11px;
  }

  .modal {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 26px 18px;
  }

  .pc-notes-pop {
    inset-inline: 0;
    width: min(280px, calc(100vw - 48px));
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: 14px;
  }

  .admin-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .admin-head-actions > * {
    min-width: 0;
  }

  .patient-card {
    flex-basis: calc(100vw - 28px);
  }

  .pc-two {
    grid-template-columns: 1fr;
  }

  .pc-actions,
  .post-admin-actions {
    grid-template-columns: 1fr;
  }

  .pc-actions .pc-confirm,
  .pc-actions .pc-done,
  .pc-actions .pc-reschedule-btn {
    grid-column: auto;
  }

  .post-admin-actions .btn {
    width: 100%;
  }

  .warn-actions,
  .resched-actions {
    grid-template-columns: 1fr;
  }

  .resched-alt-fields {
    grid-template-columns: 1fr;
  }

  .calendar-pop {
    inset-inline: 8px;
    top: 68px;
  }
}


/* Admin headers — responsive layout */
@media (max-width: 720px) {
  .admin-head,
  .admin-section-head {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-head h1,
  .admin-section-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-section-head h2 {
    margin-bottom: 0;
    font-size: 21px;
    line-height: 1.4;
  }

  .admin-section-head .admin-refresh-btn {
    align-self: flex-start;
  }

  .admin-head-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .admin-head-actions > * {
    min-width: 0;
  }

  .admin-head-actions .btn,
  .admin-head-actions .post-new-btn {
    max-width: 100%;
  }

  .calendar-pop {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(720px, calc(100vw - 28px));
  }
}

@media (max-width: 480px) {
  .admin-section-head .admin-refresh-btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
  }

  .admin-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-head-actions .btn,
  .admin-head-actions .post-new-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-head-actions .calendar-pop {
    grid-column: 1 / -1;
  }
}

/* ================= MEDIA PAGE (media.html: Posts / Reviews / Certificates) ================= */

.media-intro {
  margin-bottom: 6px;
}

.media-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px auto 6px;
  padding: 0 20px;
}

.media-tab {
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 11px 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.media-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.14);
}

.media-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.media-pane[hidden] {
  display: none;
}

.media-pane {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.media-pane .posts-intro {
  margin-top: 28px;
}

.media-pane .posts-grid {
  margin: 26px auto 0;
  padding: 0;
}

/* Reviews: video carousel card on the left, photo slots right + below */
.media-reviews-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.mv-card {
  grid-column: 1;
  grid-row: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.mv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mv-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
}

.mv-nav {
  display: flex;
  gap: 8px;
}

.mv-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.mv-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Flip carousel arrows in LTR so prev/next always point the right way */
html[dir="ltr"] .mv-nav-btn i {
  transform: scaleX(-1);
}

.mv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: center;
}

.mv-video-wrap {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 14;
  max-height: 560px;
  border: 1px solid var(--line);
}

.mv-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mv-text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  padding-top: 6px;
  text-align: start;
  min-width: 0;
}

.mv-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.6;
}

.mv-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.mv-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.mv-dot.is-active {
  background: var(--primary);
  transform: scale(1.3);
}

.media-photos-col {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.media-sub-head {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.media-photos-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.media-photo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.media-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.14);
}

.media-photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.media-photo-body {
  padding: 16px 18px;
}

.media-photo-body h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.6;
}

.media-photo-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.media-photos-below {
  margin-top: 26px;
}

.media-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Certificates grid */
.media-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.media-cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.media-cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(91, 33, 182, 0.14);
}

.media-cert-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft, #f6f3fb);
  display: block;
}

.media-cert-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.6;
}

/* Admin: tabbed sections (Patients / CMS) */
.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}

.admin-tab {
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.admin-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.14);
}

.admin-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-pane[hidden] {
  display: none;
}

.admin-pane {
  margin-top: 18px;
}

.admin-pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-pane-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

/* Admin: media upload row + thumbnails */
.media-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.media-upload-preview {
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.media-upload-preview[hidden] {
  display: none;
}

.media-admin-thumb {
  width: 100%;
  max-height: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.media-admin-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Homepage transformation caption */
.ba-slide {
  min-width: 0;
}

/* Results -> reviews CTA */
.results-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  text-align: center;
}

.results-cta p {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 800;
  color: var(--ink);
}

.results-cta .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 920px) {
  .media-reviews-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .mv-card {
    grid-column: 1;
    grid-row: auto;
  }

  .media-photos-col {
    grid-column: 1;
    grid-row: auto;
  }

  .mv-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .mv-video-wrap {
    grid-column: 1;
    grid-row: auto;
    max-height: 480px;
  }

  .mv-text {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .media-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .media-tabs::-webkit-scrollbar {
    display: none;
  }

  .media-tab {
    flex: 0 0 auto;
    padding: 10px 22px;
    font-size: 13.5px;
  }

  .mv-card {
    padding: 14px;
  }

  .mv-text h3 {
    font-size: 17px;
  }
}

/* ================= FULL IMAGE VIEWER (lightbox, media + admin) ================= */

.media-photo-card img,
.media-cert-card img,
.media-admin-thumb,
.media-upload-preview {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-width: min(860px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lightbox-img {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  display: block;
}

.lightbox-cap h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.6;
}

/* ================= RESPONSIVE: MEDIA + ADMIN (phones) ================= */

@media (max-width: 640px) {
  /* Tab bars become swipeable rows instead of wrapping */
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    flex: 0 0 auto;
    padding: 9px 20px;
    font-size: 13px;
  }

  /* Booking cards never overflow narrow screens */
  .patient-card {
    flex-basis: min(300px, 84vw);
  }

  /* Single column grids on phones */
  .media-cert-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .media-photos-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .media-pane {
    padding: 0 14px;
    margin-bottom: 60px;
  }

  .media-reviews-wrap {
    gap: 16px;
    margin-top: 20px;
  }

  .mv-card-head {
    gap: 8px;
  }

  .mv-label {
    font-size: 13.5px;
  }

  .mv-nav-btn {
    width: 34px;
    height: 34px;
  }

  .media-photos-grid {
    gap: 14px;
  }

  .lightbox-overlay {
    padding: 12px;
  }

  .lightbox-card {
    padding: 12px;
    border-radius: 18px;
  }

  /* Admin panes stack title over action */
  .admin-pane-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-pane-bar .post-new-btn {
    justify-content: center;
  }

  .posts-editor {
    padding: 14px;
  }
  .media-upload-preview {
    width: 104px;
    height: 76px;
  }
}

/* ================= LEGAL PAGES + COMPLIANCE ================= */

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
}

.footer-legal a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.legal-body {
  max-width: 860px;
  margin: 8px auto 80px;
  padding: 0 20px;
  display: grid;
  gap: 18px;
}

.legal-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.legal-sec h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.legal-sec p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* Before/after individual-results notice */
.results-vary {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin: 20px auto 0;
  max-width: 720px;
  padding: 0 20px;
  line-height: 1.8;
}

/* Privacy consent checkbox on booking forms */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  cursor: pointer;
  margin: 6px 0 2px;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-check a {
  color: var(--primary);
  font-weight: 800;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Admin upload progress (primary colors, never error-red) */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-progress-track {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.2s ease;
}

.upload-progress-pct {
  flex: 0 0 auto;
  min-width: 40px;
  text-align: end;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 12px;
  inset-inline: 12px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 14px 18px;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .legal-sec {
    padding: 18px;
  }

  .cookie-banner {
    bottom: 76px;
  }
}

.lightbox-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}