/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core Palette — Sage Green + Off-White */
  --navy:          #1A3028;   /* deep sage (dark elements: footer, hero card, CTA) */
  --navy-mid:      #243D35;
  --navy-light:    #2D5248;
  --gold:          #C4933F;
  --gold-bright:   #D4A44F;
  --gold-light:    #E8BC6A;
  --gold-pale:     #FDF6E8;
  --gold-ultra:    #FEFCF5;
  --teal:          #4A7C6F;   /* sage green — primary accent */
  --teal-mid:      #3D6B5F;
  --teal-light:    #E2F0EC;   /* light mint */
  --teal-pale:     #EFF7F5;   /* very pale mint */

  /* Sage-Tinted Backgrounds */
  --bg-white:      #ffffff;
  --bg-warm:       #F5F9F8;   /* very slight mint-white */
  --bg-cream:      #EDF4F1;   /* mint cream */
  --bg-light:      #F8FAFA;
  --bg-section:    #EEF5F3;   /* section mint tint */

  /* Text */
  --text-dark:     #1A3028;
  --text-body:     #2C3D38;
  --text-mid:      #4A5C56;
  --text-light:    #7A8F8A;
  --text-xlight:   #A8BAB6;

  /* Borders */
  --border:        #DDE9E6;
  --border-light:  #E8F0EE;
  --border-gold:   rgba(196,147,63,.2);

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;

  /* Geometry */
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  /* Shadows — sage-toned, soft */
  --shadow-xs:     0 1px 4px rgba(26,48,40,.05);
  --shadow-sm:     0 2px 12px rgba(26,48,40,.06), 0 1px 3px rgba(26,48,40,.04);
  --shadow:        0 4px 24px rgba(26,48,40,.08), 0 2px 6px rgba(26,48,40,.04);
  --shadow-md:     0 8px 40px rgba(26,48,40,.1), 0 3px 10px rgba(26,48,40,.06);
  --shadow-lg:     0 20px 70px rgba(26,48,40,.12), 0 6px 20px rgba(26,48,40,.07);
  --shadow-gold:   0 8px 32px rgba(196,147,63,.18), 0 2px 8px rgba(196,147,63,.1);

  --max-width:     1200px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .18s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Cursor Glow ─────────────────────────────────────────────────────────── */
.cursor-glow {
  position: fixed; top: -180px; left: -180px; z-index: 9997;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,147,63,.07) 0%, rgba(74,124,111,.04) 40%, transparent 70%);
  pointer-events: none; will-change: transform;
  transition: width .3s ease, height .3s ease, opacity .3s ease;
  mix-blend-mode: screen;
}
.cursor-glow.pressed {
  width: 280px; height: 280px; top: -140px; left: -140px;
  background: radial-gradient(circle, rgba(196,147,63,.12) 0%, rgba(74,124,111,.06) 40%, transparent 70%);
}
@media (max-width: 768px), (hover: none) { .cursor-glow { display: none; } }

/* ── 1. Scroll Progress Bar ──────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--teal));
  transition: none;
  pointer-events: none;
}

/* ── 2. Gradient Text — Hero headings ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 3. Custom Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal) 0%, var(--navy-light) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy); }
/* Firefox */
html { scrollbar-width: thin; scrollbar-color: var(--teal) var(--bg-warm); }

/* ── 4. Noise Texture Overlay ────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
a { color: var(--navy); text-decoration: none; transition: var(--transition-fast); }

/* ── Language-Specific Fonts & Sizing ────────────────────────────────────── */

/* Korean — Noto Sans KR: taller glyphs, needs tighter line-height */
body.lang-ko {
  font-family: 'Noto Sans KR', 'Inter', system-ui, -apple-system, sans-serif;
  word-break: keep-all; /* Prevent mid-word breaks in Korean */
}
body.lang-ko h1, body.lang-ko h2, body.lang-ko h3 {
  font-family: 'Noto Sans KR', 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em; line-height: 1.25;
}
body.lang-ko .hero-text h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.25; }
body.lang-ko .section-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
body.lang-ko .hero-sub { font-size: 1rem; }
body.lang-ko .drjoy-message { font-size: .975rem; }
body.lang-ko .btn { font-size: .85rem; }
body.lang-ko .btn-lg { font-size: .95rem; }
body.lang-ko .nav-links > li > a { font-size: .82rem; }
body.lang-ko .trust-bar-item { font-size: .75rem; }
body.lang-ko .why-list-item h3 { font-size: .925rem; }
body.lang-ko .step-body p { font-size: .85rem; }
body.lang-ko .faq-q { font-size: .925rem; }

/* Japanese — Noto Sans JP: wider glyphs, needs more spacing */
body.lang-ja {
  font-family: 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
  word-break: normal; overflow-wrap: anywhere;
}
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3 {
  font-family: 'Noto Sans JP', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.02em; line-height: 1.3;
}
body.lang-ja .hero-text h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; }
body.lang-ja .section-header h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
body.lang-ja .hero-sub { font-size: .975rem; line-height: 1.9; }
body.lang-ja .drjoy-message { font-size: .95rem; line-height: 1.95; }
body.lang-ja .btn { font-size: .82rem; letter-spacing: .03em; }
body.lang-ja .btn-lg { font-size: .92rem; }
body.lang-ja .nav-links > li > a { font-size: .8rem; }
body.lang-ja .trust-bar-item { font-size: .73rem; }
body.lang-ja .why-list-item h3 { font-size: .9rem; }
body.lang-ja .step-body p { font-size: .83rem; line-height: 1.7; }
body.lang-ja .faq-q { font-size: .9rem; }
body.lang-ja .credential-tag { font-size: .72rem; }
body.lang-ja .process-image-badge { font-size: .78rem; }

/* Chinese Simplified — Noto Sans SC: compact glyphs, clean rendering */
body.lang-zh {
  font-family: 'Noto Sans SC', 'Inter', system-ui, -apple-system, sans-serif;
  word-break: normal;
}
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3 {
  font-family: 'Noto Sans SC', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.01em; line-height: 1.3;
}
body.lang-zh .hero-text h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.22; }
body.lang-zh .section-header h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
body.lang-zh .hero-sub { font-size: 1rem; line-height: 1.85; }
body.lang-zh .drjoy-message { font-size: .975rem; line-height: 1.9; }
body.lang-zh .btn { font-size: .85rem; }
body.lang-zh .btn-lg { font-size: .95rem; }
body.lang-zh .nav-links > li > a { font-size: .82rem; }
body.lang-zh .trust-bar-item { font-size: .75rem; }
body.lang-zh .why-list-item h3 { font-size: .925rem; }
body.lang-zh .step-body p { font-size: .85rem; }
body.lang-zh .faq-q { font-size: .925rem; }

/* CJK shared: prevent overflow on long unbroken strings */
body.lang-ko *, body.lang-ja *, body.lang-zh * {
  overflow-wrap: break-word;
}

/* CJK mobile: tighter sizing to prevent overflow */
@media (max-width: 768px) {
  body.lang-ko .hero-text h1,
  body.lang-ja .hero-text h1,
  body.lang-zh .hero-text h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.3;
  }
  body.lang-ko .section-header h2,
  body.lang-ja .section-header h2,
  body.lang-zh .section-header h2 {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }
  body.lang-ja .nav-links > li > a,
  body.lang-ko .nav-links > li > a { font-size: .85rem; }
  body.lang-ja .trust-bar-item,
  body.lang-ko .trust-bar-item,
  body.lang-zh .trust-bar-item { font-size: .7rem; padding: .35rem 1rem; }
  body.lang-ja .drjoy-content h2,
  body.lang-ko .drjoy-content h2,
  body.lang-zh .drjoy-content h2 { font-size: 1.5rem; }
  body.lang-ja .cta-inner h2,
  body.lang-ko .cta-inner h2,
  body.lang-zh .cta-inner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
}

@media (max-width: 520px) {
  body.lang-ko .hero-text h1,
  body.lang-ja .hero-text h1,
  body.lang-zh .hero-text h1 {
    font-size: 1.65rem; line-height: 1.35;
  }
  body.lang-ja .hero-sub,
  body.lang-ko .hero-sub,
  body.lang-zh .hero-sub { font-size: .9rem; }
}
img { max-width: 100%; display: block; }

/* Prose inline images — full-width with rounded corners and caption space */
.prose img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.75rem auto;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
/* Prevent hero background images from being affected by prose rules */
.page-hero-bg img {
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  height: 100%;
  object-position: center center;
}

/* ── 5. Text Line-by-Line Reveal ─────────────────────────────────────────── */
.reveal-lines .reveal-line {
  display: block;
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-lines.visible .reveal-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-lines.visible .reveal-line:nth-child(2) { opacity: 1; transform: none; transition-delay: .15s; }
.reveal-lines.visible .reveal-line:nth-child(3) { opacity: 1; transform: none; transition-delay: .3s; }

/* ── 6. Magnetic Button Effect (CSS part) ────────────────────────────────── */
.btn-magnetic {
  transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .3s ease;
  will-change: transform;
}

/* ── 7. Parallax Image (CSS part) ────────────────────────────────────────── */
.parallax-wrap {
  overflow: hidden; position: relative;
}
.parallax-img {
  will-change: transform;
  transition: transform .1s linear;
}

/* ── Lucide Icons ─────────────────────────────────────────────────────────── */
[data-lucide] {
  display: inline-block;
  width: 1em; height: 1em;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Condition card icons */
.condition-icon [data-lucide] { width: 1.9rem; height: 1.9rem; stroke-width: 1.5; }
.condition-card:hover .condition-icon [data-lucide] { stroke: #fff; }

/* Why section icons */
.why-icon [data-lucide] {
  width: 2.2rem; height: 2.2rem;
  stroke: var(--gold-bright); stroke-width: 1.5;
}

/* Trust bar icons */
.tbi-lucide { width: 1rem; height: 1rem; stroke: var(--teal); stroke-width: 2; flex-shrink: 0; }

/* Info list icons (consultation page) */
.info-icon { width: 1rem; height: 1rem; stroke: var(--teal); stroke-width: 2; margin-right: .4rem; }

/* Footer contact icon */
.footer-contact-link { display: inline-flex; align-items: center; gap: .4rem; }
.footer-contact-link [data-lucide] { stroke: rgba(255,255,255,.4); width: .9rem; height: .9rem; }
.footer-contact-link:hover [data-lucide] { stroke: var(--gold-bright); }

/* Conditions list page icons */
.condition-list-icon [data-lucide] { width: 1.4rem; height: 1.4rem; stroke: var(--teal); stroke-width: 1.75; }

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header .eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-pale);
  padding: .38rem 1.1rem; border-radius: 50px; margin-bottom: 1.1rem;
  border: 1px solid var(--border-gold);
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.65rem); font-weight: 800;
  color: var(--navy); margin-bottom: 1rem;
  line-height: 1.18; letter-spacing: -.02em;
}
.section-header p { font-size: 1.05rem; color: var(--text-light); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.section-cta { text-align: center; margin-top: 3.5rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 2rem; border-radius: 50px;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: var(--transition); white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(26,48,40,.2);
}
.btn-primary:hover {
  background: var(--navy-mid); color: #fff; border-color: var(--navy-mid);
  box-shadow: 0 8px 32px rgba(26,48,40,.28); transform: translateY(-2px);
}
.btn-accent {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(26,48,40,.18);
  position: relative; overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,147,63,.18) 0%, transparent 60%);
  pointer-events: none;
}
.btn-accent:hover {
  background: var(--navy-mid); color: #fff; border-color: var(--navy-mid);
  box-shadow: 0 10px 36px rgba(26,48,40,.28); transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #fff; border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(196,147,63,.35); transform: translateY(-2px); color: #fff;
}
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-navy {
  background: transparent; color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-mid); color: #fff; transform: translateY(-1px); }
.btn-kakao { background: #FEE500; color: #3A1D1D; border-color: #FEE500; }
.btn-kakao:hover { background: #f5d900; color: #3A1D1D; transform: translateY(-1px); }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .82rem; }
.btn-block { display: flex; width: 100%; }
.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.6);
}

/* ── Prose ────────────────────────────────────────────────────────────────── */
.prose h2 {
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700;
  color: var(--navy); margin: 2.5rem 0 .9rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-mid); margin: 1.75rem 0 .55rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text-mid); line-height: 1.8; }
.prose ul { padding-left: 1.6rem; margin-bottom: 1.3rem; }
.prose ul li { margin-bottom: .55rem; color: var(--text-mid); }
.prose ul li::marker { color: var(--gold); }
.prose strong { color: var(--navy); font-weight: 700; }

/* ── Navbar — White Premium ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 12px rgba(26,48,40,.05);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(26,48,40,.09);
}
.navbar.scrolled .nav-inner { height: 60px; }
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  height: 70px; transition: height .4s ease;
}
/* ── SPINE-X Logo — Metal Shimmer + 3D Tilt ─────────────────────────────── */
.logo {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800;
  letter-spacing: .05em; display: inline-flex; align-items: center;
  text-decoration: none; cursor: pointer;
  /* Gold metallic gradient */
  background: linear-gradient(
    110deg,
    #7A5A10 0%,
    #C4933F 15%,
    #E2B55A 28%,
    #FAF0D0 42%,
    #FFFAEE 50%,
    #FAF0D0 58%,
    #E2B55A 72%,
    #C4933F 85%,
    #7A5A10 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoShimmer 3.5s linear infinite;
  will-change: background-position, transform;
  filter: drop-shadow(0 1px 3px rgba(196,147,63,.25));
  transition: filter .25s ease, transform .12s ease;
}
.logo:hover { filter: drop-shadow(0 2px 8px rgba(196,147,63,.5)) brightness(1.12); }

@keyframes logoShimmer {
  0%   { background-position: 250% center; }
  100% { background-position: -50%  center; }
}

.logo span {
  /* -X in teal crystal metal */
  background: linear-gradient(
    110deg,
    #1A3028 0%,
    #3D6B5F 18%,
    #4A7C6F 32%,
    #96D4C4 48%,
    #D4F5EE 54%,
    #96D4C4 60%,
    #4A7C6F 74%,
    #3D6B5F 88%,
    #1A3028 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoShimmerTeal 3.5s linear infinite;
  animation-delay: .6s;
}

@keyframes logoShimmerTeal {
  0%   { background-position: 250% center; }
  100% { background-position: -50%  center; }
}

/* Footer logo — white shimmer on dark background */
.footer-brand .logo {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.85) 30%,
    #ffffff 48%,
    rgba(255,255,255,.85) 66%,
    rgba(255,255,255,.45) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}
.footer-brand .logo span {
  background: linear-gradient(
    110deg,
    rgba(196,147,63,.6) 0%,
    #C4933F 25%,
    #E8BC6A 45%,
    #FAF0D0 54%,
    #E8BC6A 65%,
    #C4933F 80%,
    rgba(196,147,63,.6) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-delay: .6s;
}

/* nav-right group: lang + dark toggle + CTA */
.nav-right {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
}
.nav-cta { margin-left: 0; }  /* previously had margin-left: .75rem */

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; flex: 1; justify-content: flex-start; padding-left: .5rem; }
.nav-links > li > a {
  display: block; padding: .5rem .75rem;
  font-size: .855rem; font-weight: 600; letter-spacing: .01em;
  color: var(--text-mid); border-radius: 8px;
  transition: var(--transition-fast); white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--bg-section); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 230px; padding: .6rem; z-index: 200;
}
.dropdown-menu li a {
  display: block; padding: .65rem 1rem;
  font-size: .875rem; color: var(--text-mid); border-radius: 8px;
  transition: var(--transition-fast);
}
.dropdown-menu li a:hover { background: var(--bg-section); color: var(--navy); padding-left: 1.25rem; }
.dropdown:hover .dropdown-menu { display: block; }

/* Language dropdown */
.nav-lang { position: relative; display: flex; align-items: center; margin-left: .5rem; }
.lang-current {
  display: flex; align-items: center; gap: .3rem;
  font-size: 1.2rem; line-height: 1; padding: .35rem .5rem;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  transition: var(--transition-fast);
}
.lang-current:hover { border-color: var(--navy); background: var(--bg-section); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 140px; padding: .4rem; z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; font-size: .85rem; font-weight: 600;
  color: var(--text-mid); border-radius: 6px;
  transition: var(--transition-fast); text-decoration: none;
}
.lang-option:hover { background: var(--bg-section); color: var(--navy); }
.lang-option.active { background: var(--navy); color: #fff; }
.footer-social-link { display: inline-flex; align-items: center; gap: .4rem; }
.footer-social-link svg { stroke: rgba(255,255,255,.4); }
.footer-social-link:hover svg { stroke: var(--gold-bright); }

.nav-cta { margin-left: .75rem; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--navy); font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 8px;
  cursor: pointer; transition: var(--transition-fast);
}
.nav-toggle:hover { border-color: var(--navy); background: var(--bg-section); }

/* ── Sticky Mobile CTA ────────────────────────────────────────────────────── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .7rem 1rem; gap: .5rem; justify-content: center;
  box-shadow: 0 -4px 20px rgba(26,48,40,.08);
}
.sticky-cta .btn { flex: 1; max-width: 180px; font-size: .85rem; }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-messages { padding: 1rem 0; }
.alert { padding: .9rem 1.3rem; border-radius: var(--radius-sm); margin-bottom: .5rem; font-size: .9rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── Hero — Image Background ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--navy);
  overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-image-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-image-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.35) saturate(.8);
}
.hero-image-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26,48,40,.85) 0%, rgba(26,48,40,.5) 50%, rgba(26,48,40,.3) 100%),
    linear-gradient(to bottom, rgba(26,48,40,.4) 0%, transparent 40%, transparent 70%, rgba(26,48,40,.6) 100%);
}

/* Hero image card (right column) */
.hero-image-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 3/4;
}
.hero-image-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s cubic-bezier(.2,0,.2,1);
}
.hero-image-card:hover img { transform: scale(1.05); }
.hero-image-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,48,40,.7) 0%, transparent 50%);
}
/* Posture analysis hero card */
.hero-spine-card, .hero-posture-card { background: #030A07; overflow: hidden; }
.hero-spine-card canvas, .hero-posture-card canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero-spine-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(3,10,7,.85) 0%, rgba(3,10,7,.1) 40%, transparent 100%);
}
.hero-spine-card .hero-card-floating, .hero-posture-card .hero-card-floating { z-index: 2; }
.hero-card-floating {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 2;
}
.hero-card-floating .trust-badge { margin-bottom: .75rem; }
.hero-card-floating .trust-list li {
  padding: .5rem 0; font-size: .82rem;
  border-bottom-color: rgba(255,255,255,.08);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 4rem; align-items: center;
  padding-top: 5rem; padding-bottom: 5rem;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(196,147,63,.15);
  padding: .4rem 1.1rem; border-radius: 50px; margin-bottom: 1.75rem;
  border: 1px solid rgba(196,147,63,.3);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 800; line-height: 1.08;
  color: #fff; margin-bottom: 1.5rem;
  letter-spacing: -.025em;
}
.hero-text h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-light) 50%, #8FBCB0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.075rem; color: rgba(255,255,255,.7);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-divider {
  width: 48px; height: 2px; margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
}

.hero-stats {
  display: flex; gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: left; }
.hero-stat-number {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800;
  color: #fff; line-height: 1;
  display: flex; align-items: baseline; gap: .08rem;
}
.hero-stat-number .plus { font-size: 1.4rem; color: var(--gold-bright); }
.hero-stat-label { font-size: .76rem; color: rgba(255,255,255,.5); margin-top: .3rem; font-weight: 500; line-height: 1.4; }

/* Hero card — white with navy */
.hero-visual { position: relative; }
.hero-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(196,147,63,.07) 0%, transparent 50%);
  pointer-events: none;
}
.hero-card-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--teal), var(--gold-bright));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196,147,63,.12); border: 1px solid rgba(196,147,63,.22);
  color: var(--gold-bright); padding: .5rem 1rem;
  border-radius: 50px; font-size: .78rem; font-weight: 700;
  margin-bottom: 1.6rem;
}
.trust-list { list-style: none; padding: 0; }
.trust-list li {
  padding: .78rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.4;
}
.trust-list li:last-child { border-bottom: none; }
.trust-list li::before {
  content: '✓'; flex-shrink: 0;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--teal), #5A9688);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900; color: white; margin-top: .1rem;
}

/* ── Trust Bar ────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 1.1rem 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0;
}
.trust-bar-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .42rem 1.4rem;
  font-size: .79rem; font-weight: 600; color: var(--text-light);
  border-right: 1px solid var(--border);
}
.trust-bar-item:last-child { border-right: none; }
.trust-bar-item strong { color: var(--navy); }
.trust-bar-item .tbi-icon { font-size: .95rem; }

/* ── Dr. Joy Section ──────────────────────────────────────────────────────── */
.drjoy-section {
  background: var(--bg-warm);
  padding: 7rem 0; position: relative; overflow: hidden;
}

.drjoy-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 30%, var(--teal) 70%, transparent);
  opacity: .35;
}
.drjoy-section::after {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,147,63,.04) 0%, transparent 70%);
  pointer-events: none;
}

.drjoy-inner {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 5.5rem; align-items: center; position: relative; z-index: 1;
}

.drjoy-photo { position: relative; }
.drjoy-photo-frame {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, #1A3028 60%, #243D35 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative; overflow: visible;
}
.drjoy-photo-inner {
  width: 100%; height: 100%;
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.avatar-icon { font-size: 7rem; }
.drjoy-photo-inner p { font-size: .85rem; color: rgba(255,255,255,.3); }
.drjoy-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.drjoy-eyebrow-row {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: .75rem;
}
.drjoy-eyebrow-row .drjoy-eyebrow { margin-bottom: 0; }
.drjoy-status-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(74,124,111,.08);
  border: 1px solid rgba(74,124,111,.2);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: .75rem; font-weight: 700; color: var(--teal);
  white-space: nowrap;
}
.drjoy-status-badge .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulse-anim 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.3); }
}

.drjoy-float-cred {
  position: absolute; bottom: -1rem; left: 1.25rem; right: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-bright);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-sm);
}
.drjoy-float-cred .cred-icon { font-size: 1.5rem; flex-shrink: 0; }
.drjoy-float-cred .cred-text { font-size: .75rem; color: var(--navy); font-weight: 700; line-height: 1.4; }
.drjoy-float-cred .cred-sub { font-size: .7rem; color: var(--text-xlight); font-weight: 400; }

.drjoy-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.drjoy-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); border-radius: 1px; }

.drjoy-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--navy); margin-bottom: .4rem; line-height: 1.15;
}
.drjoy-title {
  font-size: .875rem; color: var(--text-light); font-weight: 500;
  margin-bottom: 1.75rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.drjoy-quote-wrap {
  position: relative; padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.drjoy-quote-wrap::before {
  content: ''; position: absolute; left: 0; top: .2rem;
  width: 3px; height: calc(100% - .4rem);
  background: linear-gradient(to bottom, var(--gold-bright), var(--teal));
  border-radius: 2px;
}
.drjoy-message { font-size: 1.025rem; color: var(--text-mid); line-height: 1.85; margin-bottom: .9rem; }
.drjoy-signature {
  font-family: var(--font-serif); font-size: 1.35rem;
  font-style: italic; color: var(--navy);
  margin: 1rem 0 1.75rem;
}
.drjoy-credentials { display: flex; flex-wrap: wrap; gap: .5rem; }
.credential-tag {
  background: var(--bg-section); color: var(--text-mid);
  font-size: .75rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 50px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.credential-tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* About page profile block */
.drjoy-profile-block {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 2.5rem; margin-bottom: 2.5rem;
  border-left: 4px solid var(--gold-bright);
  box-shadow: var(--shadow-md);
}
.drjoy-profile-block h2 { font-family: var(--font-serif); color: #fff !important; border-bottom-color: rgba(196,147,63,.2) !important; }
.drjoy-profile-block .drjoy-profile-title { font-size: .875rem; color: var(--gold-bright); font-weight: 600; margin-bottom: 1.25rem; }
.drjoy-profile-block p { color: rgba(255,255,255,.78) !important; }
.drjoy-profile-block strong { color: var(--gold-light) !important; }

/* ── Process Section ──────────────────────────────────────────────────────── */
.process-section { background: var(--bg-white); }

/* New image + steps layout */
.process-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.process-image {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.process-image img {
  width: 100%; height: 100%; object-fit: cover; min-height: 480px;
  transition: transform 5s cubic-bezier(.2,0,.2,1);
}
.process-image:hover img { transform: scale(1.04); }
.process-image-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--navy); color: #fff;
  padding: .65rem 1.2rem; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.process-image-badge span {
  color: var(--gold-bright); font-family: var(--font-serif); font-size: 1rem;
}
.process-steps-vertical {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.process-steps-vertical::before {
  content: ''; position: absolute; left: 25px; top: 2.6rem; bottom: 2.6rem;
  width: 1px; background: var(--border); z-index: 0;
}
.process-step-v {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.25rem 0; position: relative; z-index: 1;
}
.process-step-v .step-body h3 { text-align: left; }
.process-step-v .step-body p { text-align: left; }

/* Legacy horizontal grid */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 2.2rem; left: calc(12.5% + 1.5rem); right: calc(12.5% + 1.5rem);
  height: 1px; background: var(--border); z-index: 0;
}
.process-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 1.25rem;
  position: relative; z-index: 1;
}
.step-num-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover .step-num-wrap {
  background: var(--navy); border-color: var(--navy);
  box-shadow: var(--shadow-md); transform: scale(1.08);
}
.step-num {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 800;
  color: var(--gold-bright); line-height: 1;
}
.process-step:hover .step-num { color: #fff; }
.step-body h3 { font-size: .975rem; font-weight: 800; color: var(--navy); margin-bottom: .6rem; letter-spacing: -.01em; }
.step-body p { font-size: .875rem; color: var(--text-light); line-height: 1.65; }

/* ── Conditions Grid ──────────────────────────────────────────────────────── */
.conditions-section { background: var(--bg-section); }
.conditions-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem;
}
.condition-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .75rem; padding: 1.6rem .9rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-mid);
  font-size: .835rem; font-weight: 600;
  transition: var(--transition); box-shadow: var(--shadow-xs); cursor: pointer;
}
.condition-card:hover {
  background: var(--navy); border-color: var(--navy);
  color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.condition-card:hover .condition-icon { transform: scale(1.12); }
.condition-icon { font-size: 2rem; display: block; transition: transform .3s ease; }
.condition-name { line-height: 1.3; }

/* ── Why Section — white with subtle bg ──────────────────────────────────── */
.why-section { background: var(--bg-warm); }

/* New image + list layout */
.why-section-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-section-image {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-section-image img {
  width: 100%; height: auto; min-height: 500px; object-fit: cover;
  transition: transform 5s cubic-bezier(.2,0,.2,1);
}
.why-section-image:hover img { transform: scale(1.04); }
.why-image-stat {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(26,48,40,.9); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  text-align: center; box-shadow: var(--shadow-md);
  border: 1px solid rgba(196,147,63,.2);
}
.why-image-stat-num {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 800;
  color: var(--gold-bright); line-height: 1;
}
.why-image-stat-label {
  font-size: .7rem; color: rgba(255,255,255,.6); margin-top: .3rem;
  font-weight: 600; line-height: 1.3;
}
.section-header--left { text-align: left; }
.section-header--left p:not(.eyebrow) { margin: 0; }
.why-section-content .section-header { margin-bottom: 2.5rem; }
.why-list { display: flex; flex-direction: column; gap: 1.5rem; }
.why-list-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.why-list-item:hover {
  transform: translateX(6px); border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
}
.why-list-item .why-icon { flex-shrink: 0; margin-top: .1rem; }
.why-list-item h3 {
  font-size: .975rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem;
}
.why-list-item p {
  font-size: .875rem; color: var(--text-light); line-height: 1.65; margin: 0;
}

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem 1.75rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.why-card::before {
  content: attr(data-num);
  position: absolute; top: -.5rem; right: .5rem;
  font-family: var(--font-serif); font-size: 7rem; font-weight: 800;
  color: rgba(26,48,40,.03); line-height: 1;
  pointer-events: none; user-select: none;
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--teal));
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.why-card:hover {
  transform: translateY(-5px); border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.why-card:hover::after { width: 100%; }
.why-icon { font-size: 2.25rem; margin-bottom: 1.25rem; }
.why-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .7rem; }
.why-card p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* ── Blog / Articles ──────────────────────────────────────────────────────── */
.blog-section { background: var(--bg-white); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.article-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition); display: flex; flex-direction: column;
}
.article-card-stripe { height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold-bright)); transition: height .25s ease; }
/* Article card with thumbnail image */
.article-card-with-thumb .article-card-stripe { display: none; }
.article-card-thumb {
  overflow: hidden; aspect-ratio: 3/2;
}
.article-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transition: transform .5s cubic-bezier(.2,0,.2,1);
}
.article-card-with-thumb:hover .article-card-thumb img { transform: scale(1.06); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.article-card:hover .article-card-stripe { height: 6px; }
.article-card-body { padding: 1.6rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.article-meta { margin-bottom: .75rem; }
.article-category {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-pale); padding: .28rem .75rem; border-radius: 50px;
}
.article-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: .75rem; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--teal); }
.article-excerpt { font-size: .885rem; color: var(--text-light); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 700; color: var(--teal);
  transition: var(--transition-fast); margin-top: auto;
}
.read-more:hover { color: var(--gold); gap: .65rem; }

.article-list-item {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 1.75rem 2rem; border: 1px solid var(--border);
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.article-list-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.article-list-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.article-list-item p { font-size: .875rem; color: var(--text-light); }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  text-align: center; position: relative; overflow: hidden;
}
.cta-bg-image {
  position: absolute; inset: 0; z-index: 0;
}
.cta-bg-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.2) saturate(.6);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 120% at 50% 120%, rgba(74,124,111,.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(196,147,63,.07) 0%, transparent 50%);
}
.cta-inner { max-width: 620px; margin: 0 auto; padding: 2rem 0; position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800;
  color: #fff; margin-bottom: 1.25rem; line-height: 1.15;
}
.cta-inner > p { color: rgba(255,255,255,.65); margin-bottom: 2.25rem; font-size: 1.075rem; line-height: 1.7; }
.cta-note { font-size: .8rem; color: rgba(255,255,255,.35); margin-top: 1.25rem !important; margin-bottom: 0 !important; }

/* CTA gold button for dark background */
.cta-section .btn-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #fff; border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.cta-section .btn-accent::after { display: none; }
.cta-section .btn-accent:hover {
  box-shadow: 0 14px 45px rgba(196,147,63,.4); transform: translateY(-2px);
}

/* ── Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #243D35 100%);
  padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.page-hero-with-image { padding: 6rem 0 5rem; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: brightness(.28) saturate(.6);
}
.page-hero-with-image > .container { position: relative; z-index: 2; }
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(196,147,63,.1); pointer-events: none; z-index: 1;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px; background: linear-gradient(to bottom, transparent, var(--bg-white)); z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800;
  color: #fff; margin-bottom: .8rem; line-height: 1.15;
}
.page-hero p { color: rgba(255,255,255,.6); font-size: 1.05rem; }

/* ── Content Layout ───────────────────────────────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; align-items: start; }
.main-content { min-width: 0; }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--navy);
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold-pale);
}
.sidebar-conditions { list-style: none; padding: 0; }
.sidebar-conditions li { border-bottom: 1px solid var(--border-light); padding: .5rem 0; }
.sidebar-conditions li:last-child { border-bottom: none; }
.sidebar-conditions li a { font-size: .875rem; color: var(--text-mid); display: block; transition: var(--transition-fast); }
.sidebar-conditions li a:hover { color: var(--teal); padding-left: .4rem; }

/* ── Disclaimer ───────────────────────────────────────────────────────────── */
.disclaimer-box {
  background: var(--gold-ultra); border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-bright); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-top: 2.5rem;
}
.disclaimer-box p { font-size: .875rem; color: var(--text-mid); margin: 0; }

/* ── Programs ─────────────────────────────────────────────────────────────── */
.programs-intro {
  max-width: 700px; margin: 0 auto 3.5rem;
  text-align: center; font-size: 1rem; color: var(--text-mid); line-height: 1.8;
  padding-bottom: 3.5rem; border-bottom: 1px solid var(--border);
}
.programs-list { display: flex; flex-direction: column; gap: 0; }
.program-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2rem; padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.program-item:last-child { border-bottom: none; }
.program-item:hover { background: var(--bg-warm); border-radius: var(--radius); }
.program-item-num {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800;
  color: var(--border); line-height: 1; padding-top: .3rem; flex-shrink: 0;
  transition: var(--transition);
}
.program-item:hover .program-item-num { color: var(--gold-bright); }
.program-item-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.program-item-body h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.program-type-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .75rem; border-radius: 50px;
  background: var(--bg-section); color: var(--text-light); border: 1px solid var(--border);
}
.program-type-featured { background: var(--gold-pale); color: var(--gold); border-color: var(--border-gold); }
.program-type-specialist { background: var(--teal-pale); color: var(--teal); border-color: rgba(74,124,111,.2); }
.program-item-body > p { font-size: .975rem; color: var(--text-mid); line-height: 1.8; margin-bottom: .9rem; }
.program-features { list-style: none; padding: 0; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.program-features li {
  font-size: .9rem; color: var(--text-mid); padding-left: 1.3rem; position: relative;
}
.program-features li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright);
}
.program-ideal { font-size: .875rem; color: var(--text-light); font-style: italic; margin-bottom: 1.25rem !important; }
.programs-note { margin-top: 3.5rem; }
.programs-note-inner {
  background: var(--bg-warm); border: 1px solid var(--border);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  font-size: .95rem; color: var(--text-mid); line-height: 1.75;
}
.programs-note-inner strong { color: var(--navy); }

/* Legacy card style (kept for compatibility) */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.program-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden;
}
.program-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold-bright)); }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.program-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.program-card p { font-size: .925rem; color: var(--text-mid); line-height: 1.7; }
.program-card .program-cta { margin-top: 1.5rem; }

/* ── Blog index ───────────────────────────────────────────────────────────── */
.blog-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.articles-list { display: flex; flex-direction: column; gap: 1.5rem; }
.category-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.category-card .cat-icon { font-size: 2.5rem; margin-bottom: .9rem; display: block; }
.category-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.category-card p { font-size: .875rem; color: var(--text-light); }
.category-card .cat-count { font-size: .78rem; color: var(--teal); font-weight: 700; margin-top: .75rem; display: block; }

/* ── Consultation ─────────────────────────────────────────────────────────── */
.consultation-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; }
.consultation-form { display: flex; flex-direction: column; gap: 0; }
.consultation-form .btn { margin-top: .5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.info-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.info-card ul li { font-size: .9rem; color: var(--text-mid); }
.info-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: .5rem; }
.info-card.disclaimer { background: var(--gold-ultra); border-color: var(--border-gold); }
.info-card.disclaimer p { font-size: .82rem; color: var(--text-light); margin: 0; }
.contact-link { color: var(--navy); font-weight: 600; }
.contact-link:hover { color: var(--teal); }

.consultation-grid { display: grid; grid-template-columns: 1fr 420px; gap: 3.5rem; align-items: start; }
.form-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .82rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: var(--font); color: var(--text-dark);
  transition: var(--transition); background: var(--bg-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,124,111,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .8rem; color: var(--text-xlight); margin-top: .4rem; }

/* ── Related conditions ───────────────────────────────────────────────────── */
.related-conditions-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-conditions-list a {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: 50px; padding: .35rem .9rem;
  font-size: .8rem; font-weight: 600; color: var(--text-mid);
  transition: var(--transition-fast);
}
.related-conditions-list a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Dr. Joy Photo (fixed structure) ─────────────────────────────────────── */
.drjoy-photo-frame {
  width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #1A3028 60%, #243D35 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}
.drjoy-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.drjoy-img-fallback {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
}
.drjoy-float-cred {
  position: absolute; bottom: -1.2rem; left: 1rem; right: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-bright);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-sm); z-index: 2;
}
.cred-lucide { width: 1.5rem; height: 1.5rem; stroke: var(--gold-bright); flex-shrink: 0; stroke-width: 1.5; }
.cred-text { font-size: .75rem; color: var(--navy); font-weight: 700; line-height: 1.4; }
.cred-sub { font-size: .7rem; color: var(--text-xlight); font-weight: 400; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb-sep { opacity: .4; }

/* ── Core Content Block (condition detail) ────────────────────────────────── */
.core-content-block {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3028 100%);
  border-radius: var(--radius-lg); padding: 2.5rem;
  margin-bottom: 2.5rem; border-left: 4px solid var(--gold-bright);
}
.core-content-block h2 { font-family: var(--font-serif); color: #fff !important; border-bottom-color: rgba(255,255,255,.1) !important; margin-top: 1rem; }
.core-content-block p { color: rgba(255,255,255,.75) !important; margin-bottom: 1.5rem; }

.label-badge {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(196,147,63,.12);
  border: 1px solid rgba(196,147,63,.25);
  padding: .28rem .85rem; border-radius: 50px;
}

/* ── Condition Overview Block ─────────────────────────────────────────────── */
.condition-overview-block { background: rgba(196,147,63,.04); border: 1px solid rgba(196,147,63,.15); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 0; }
.condition-overview-desc { font-size: 1.05rem; color: var(--text-body); line-height: 1.75; margin-bottom: 1.5rem; }
.condition-report-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid rgba(196,147,63,.2); }
.condition-report-cta p { font-size: .875rem; color: var(--text-mid); margin: .25rem 0 0; }

.articles-section-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 1.5rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Conditions List Page ─────────────────────────────────────────────────── */
.conditions-list { display: flex; flex-direction: column; gap: 0; }
.condition-list-item {
  display: grid; grid-template-columns: 52px 1fr 40px;
  align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--border);
  color: var(--text-body); transition: var(--transition);
}
.condition-list-item:first-child { border-top: 1px solid var(--border); }
.condition-list-item:hover { background: var(--bg-warm); border-radius: var(--radius); border-color: transparent; }
.condition-list-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-section); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.condition-list-item:hover .condition-list-icon { background: var(--navy); border-color: var(--navy); }
.condition-list-icon [data-lucide] { width: 1.3rem; height: 1.3rem; stroke: var(--teal); stroke-width: 1.75; }
.condition-list-item:hover .condition-list-icon [data-lucide] { stroke: #fff; }
.condition-list-text h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.condition-list-text p { font-size: .875rem; color: var(--text-light); }
.condition-list-arrow { display: flex; align-items: center; justify-content: center; }
.condition-list-arrow [data-lucide] { width: 1.1rem; height: 1.1rem; stroke: var(--border); stroke-width: 2; transition: var(--transition-fast); }
.condition-list-item:hover .condition-list-arrow [data-lucide] { stroke: var(--navy); transform: translateX(3px); }

/* ── Article page ─────────────────────────────────────────────────────────── */
.article-page-section { padding-top: 3rem; }
.lang-notice { background: rgba(196,147,63,.08); border-left: 3px solid var(--gold); padding: .6rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .85rem; color: var(--text-mid); margin-bottom: 1rem; }
.article-header-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .75rem; flex-wrap: wrap;
}
.article-date { font-size: .82rem; color: rgba(255,255,255,.5); }
.article-header-dot { color: rgba(255,255,255,.3); }
.article-category-tag { font-size: .82rem; color: var(--gold-bright); font-weight: 600; }
.article-type-badge { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .65rem; border-radius: 50px; }
.article-type-badge.core { background: var(--gold-pale); color: var(--gold); }
.article-type-badge.traffic { background: var(--teal-pale); color: var(--teal); }

.inline-cta {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 2rem; margin-top: 3rem;
}
.inline-cta h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.inline-cta p { font-size: .95rem; color: var(--text-mid); margin-bottom: 1.25rem; }

.related-section { background: var(--bg-section); }
.related-title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 2rem; }

/* ── Blog index extras ────────────────────────────────────────────────────── */
.article-date { font-size: .78rem; color: var(--text-xlight); margin-left: .5rem; }
.category-nav-section { background: var(--bg-warm); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.category-nav { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cat-pill {
  display: inline-block; padding: .38rem 1rem;
  font-size: .8rem; font-weight: 600;
  color: var(--text-mid); background: var(--bg-white);
  border: 1px solid var(--border); border-radius: 50px;
  transition: var(--transition-fast);
}
.cat-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 3rem;
}
.page-info { font-size: .875rem; color: var(--text-light); }
.empty-state {
  text-align: center; padding: 4rem 0; color: var(--text-light);
}
.empty-state [data-lucide] { width: 3rem; height: 3rem; stroke: var(--border); margin: 0 auto 1rem; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-section { background: var(--bg-section); position: relative; overflow: hidden; }

/* Testimonial Auto Marquee (left-flowing, infinite) */
.testimonial-marquee-wrap {
  position: relative; z-index: 1; padding: 0 0 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonial-marquee {
  display: flex; gap: 1.5rem; width: max-content;
  animation: testimonialMarquee 150s linear infinite;
  will-change: transform;
}
.testimonial-marquee:hover { animation-play-state: paused; }
.testimonial-slide {
  flex: 0 0 min(400px, 85vw);
}
@keyframes testimonialMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - .75rem)); } /* half = one full set incl. half gap */
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee { animation: none; }
}
.testimonials-bg-image {
  position: absolute; inset: 0; z-index: 0;
}
.testimonials-bg-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.15) saturate(.5) blur(2px);
}
.testimonials-section > .container { position: relative; z-index: 1; }
.testimonials-section .section-header h2 { color: #fff; }
.testimonials-section .section-header p { color: rgba(255,255,255,.5); }
.testimonials-section .section-header .eyebrow {
  background: rgba(196,147,63,.15); border-color: rgba(196,147,63,.3); color: var(--gold-bright);
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
/* Slider card overrides */
.testimonial-slide .testimonial-card {
  height: 100%; backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.3);
}
.testimonial-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-serif); font-size: 5rem; line-height: 1;
  color: var(--gold-pale); position: absolute; top: 1rem; right: 1.5rem;
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold-bright); font-size: 1rem; letter-spacing: .1em; }
.testimonial-card blockquote {
  font-size: .95rem; color: var(--text-mid); line-height: 1.75;
  font-style: italic; flex: 1; border: none; padding: 0; margin: 0;
}
.testimonial-card blockquote em { font-style: normal; font-weight: 700; color: var(--navy); }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.testimonial-name { font-size: .9rem; font-weight: 700; color: var(--navy); }
.testimonial-info { font-size: .78rem; color: var(--text-xlight); margin-top: .1rem; }
.testimonials-note { text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); margin-top: 2rem; }
.testimonials-report-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: rgba(196,147,63,.1); border: 1px solid rgba(196,147,63,.3); border-radius: var(--radius-lg); padding: 1.5rem 2rem; margin-top: 2.5rem; }
.trc-text strong { color: var(--gold); font-size: 1rem; display: block; margin-bottom: .35rem; }
.trc-text p { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; max-width: 540px; }
@media (max-width: 600px) { .testimonials-report-cta { flex-direction: column; text-align: center; } .trc-text p { max-width: 100%; } }

/* ── Location ─────────────────────────────────────────────────────────────── */
.location-section { background: var(--bg-white); }
.location-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.eyebrow-inline {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .75rem;
}
.location-content h2 {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800;
  color: var(--navy); line-height: 1.2; margin-bottom: 2rem;
}
.location-content h2 span { color: var(--teal); }
.location-details { display: flex; flex-direction: column; gap: 1.4rem; }
.location-item { display: flex; align-items: flex-start; gap: 1rem; }
.loc-icon { width: 1.25rem; height: 1.25rem; stroke: var(--gold-bright); stroke-width: 1.75; flex-shrink: 0; margin-top: .2rem; }
.location-item strong { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: .2rem; }
.location-item p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.location-item a { color: var(--teal); font-weight: 600; }
/* Google Maps embed */
.map-embed-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  min-height: 400px; aspect-ratio: 4/3;
}
.map-embed-wrap iframe { width: 100%; height: 100%; display: block; }

/* Image fallback for map */
.map-image-fallback {
  display: none; position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md); min-height: 300px;
}
.map-image-fallback img {
  width: 100%; height: 100%; object-fit: cover; min-height: 300px;
}
.map-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,48,40,.8) 0%, rgba(26,48,40,.3) 50%, transparent 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: 2rem; text-align: center; gap: .5rem;
}
.map-label { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: #fff; }
.map-sublabel { font-size: .875rem; color: rgba(255,255,255,.7); }
.map-placeholder {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: .5rem;
  min-height: 280px; box-shadow: var(--shadow-sm);
}
.map-icon { width: 3rem; height: 3rem; stroke: var(--teal); stroke-width: 1.5; margin-bottom: .5rem; }

/* ── About Page Hero Image ─────────────────────────────────────��─────────── */
.about-hero-image {
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 2.5rem; box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}
.about-hero-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

/* ── Programs Page Images ────────────────────────────────────────────────── */
.programs-hero-image {
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 3rem; box-shadow: var(--shadow-md);
  max-height: 360px;
}
.programs-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.program-item-image {
  width: 100px; height: 100px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.program-item-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.program-item { grid-template-columns: 100px 1fr; }

/* ── Conditions List Thumbnails ──────────────────────────────────────────── */
.condition-list-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-xs); border: 1px solid var(--border);
}
.condition-list-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.condition-list-item { grid-template-columns: 64px 1fr 40px; }

/* ── Condition Detail Feature Image ──────────────────────────────────────── */
.condition-feature-image {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 2.5rem; box-shadow: var(--shadow-sm);
  max-height: 320px;
}
.condition-feature-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-section { background: var(--bg-warm); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.faq-col { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; background: transparent; border: none; cursor: pointer;
  font-size: .975rem; font-weight: 700; color: var(--navy);
  text-align: left; transition: var(--transition-fast);
}
.faq-q:hover { color: var(--teal); }
.faq-icon { width: 1rem; height: 1rem; stroke: var(--text-light); flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-q { color: var(--teal); }
.faq-item.open .faq-icon { transform: rotate(45deg); stroke: var(--teal); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }
.faq-a p { font-size: .9rem; color: var(--text-mid); line-height: 1.75; margin: 0; }

/* ── Floating Contact Button ──────────────────────────────────────────────── */
.float-contact {
  position: fixed; right: 1.5rem; bottom: 2rem; z-index: 990;
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-end;
  opacity: 0; transform: translateX(20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.float-contact.visible { opacity: 1; transform: none; pointer-events: all; }
.float-btn {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.2rem .7rem .9rem;
  border-radius: 50px; font-size: .82rem; font-weight: 700;
  box-shadow: var(--shadow-md); transition: var(--transition);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.float-btn:hover { transform: translateX(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.float-btn-phone { background: var(--navy); color: #fff; }
.float-btn-kakao { background: #FEE500; color: #3A1D1D; }
.float-btn-whatsapp { background: #25D366; color: #fff; }
.float-btn-telegram { background: #0088cc; color: #fff; }
.float-btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

/* ── Naver Blog Section ──────────────────────────────────────────────────── */
.naver-blog-section { background: var(--bg-white); }
.naver-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.naver-blog-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.naver-blog-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent;
}
.naver-blog-thumb {
  overflow: hidden; aspect-ratio: 16/10;
}
.naver-blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,0,.2,1);
}
.naver-blog-card:hover .naver-blog-thumb img { transform: scale(1.06); }
.naver-blog-body {
  padding: 1.4rem 1.5rem 1.5rem; flex: 1;
  display: flex; flex-direction: column;
}
.naver-blog-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin-bottom: .6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.naver-blog-body p {
  font-size: .85rem; color: var(--text-light); line-height: 1.6;
  flex: 1; margin-bottom: .75rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.naver-blog-link {
  font-size: .82rem; font-weight: 700; color: #03C75A;
  transition: var(--transition-fast);
}
.naver-blog-card:hover .naver-blog-link { color: var(--navy); }

/* ── Instagram Embed Section ──────────────────────────────────────────────── */
.instagram-embed-section { background: var(--bg-warm); }
.ig-embed-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.ig-profile-header {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem;
}
.ig-avatar {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid transparent;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
  padding: 3px;
}
.ig-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 2px solid #fff;
}
.ig-profile-header h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .15rem;
}
.ig-profile-name { font-size: .875rem; color: var(--text-light); margin: 0; }
.ig-bio {
  font-size: .95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.5rem;
}
.ig-stats {
  display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem;
}
.ig-stat {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: var(--text-light); font-weight: 500;
}
.ig-stat svg { stroke: var(--teal); flex-shrink: 0; }

.ig-embed-frame {
  min-height: 400px; border-radius: var(--radius-lg); overflow: hidden;
}
.ig-embed-frame iframe { border-radius: var(--radius-lg) !important; }

/* ── Social Proof Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy); padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,124,111,.15) 0%, transparent 50%, rgba(196,147,63,.08) 100%);
}
.stats-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 800;
  color: #fff; line-height: 1; display: flex; align-items: baseline;
  justify-content: center; gap: .1rem;
}
.stat-plus { font-size: 1.5rem; color: var(--gold-bright); }
.stat-star { font-size: 1.8rem; color: var(--gold-bright); margin-left: .2rem; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .5rem; font-weight: 600; letter-spacing: .05em; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.12); }
@media (max-width: 768px) {
  .stats-bar-inner { gap: 1.5rem; flex-wrap: wrap; }
  .stat-number { font-size: 2rem; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; }
}

/* ── CTA Available Slots ─────────────────────────────────────────────────── */
.cta-slots {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(196,147,63,.15); border: 1px solid rgba(196,147,63,.3);
  border-radius: 50px; padding: .5rem 1.2rem;
  font-size: .85rem; color: var(--gold-bright); font-weight: 600;
  margin-bottom: 1.5rem;
}
.slots-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
  animation: pulse-anim 2s ease-in-out infinite;
}
.cta-slots strong { font-size: 1.1rem; color: #fff; }

/* ── Live Toast Notification ─────────────────────────────────────────────── */
.live-toast {
  position: fixed;
  bottom: calc(2rem + 238px + 52px + 12px + 8px);  /* stacks above chatbot toggle */
  right: 1.5rem; left: auto;
  z-index: 9992;
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0;   /* slides in from right */
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease;
  max-width: 320px;
}
.live-toast.show { transform: translateX(0); opacity: 1; }
.live-toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
  animation: pulse-anim 2s ease-in-out infinite;
}
.live-toast-text { font-size: .82rem; color: var(--text-mid); line-height: 1.4; }
.live-toast-text strong { color: var(--navy); }
.live-toast-time { display: block; font-size: .72rem; color: var(--text-xlight); margin-top: .15rem; }
.live-toast-close {
  background: transparent; border: none; color: var(--text-xlight);
  font-size: 1.2rem; cursor: pointer; padding: 0 .25rem; line-height: 1;
  flex-shrink: 0;
}
.live-toast-close:hover { color: var(--navy); }
@media (max-width: 768px) {
  .live-toast { left: 1rem; right: 1rem; bottom: 80px; max-width: none; transform: translateY(120%); }
  .live-toast.show { transform: translateY(0); }
}

/* ── Shooting Star (rare, decorative) ────────────────────────────────────── */
.shooting-star {
  position: fixed;
  top: 0; left: 0;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, .65);
  will-change: transform, opacity;
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%; right: 0;
  width: 160px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(196, 147, 63, .35) 35%, rgba(212, 164, 79, .9) 75%, #fff);
  transform: translateY(-50%);
  border-radius: 1px;
  filter: blur(.5px);
}
@keyframes shootingStarRun {
  0%   { opacity: 0; transform: rotate(var(--angle)) translate(0, 0); }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translate(var(--dist), 0); }
}
.shooting-star.run { animation: shootingStarRun 2.4s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; border-color: transparent; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(220,39,67,.2);
}
.btn-instagram:hover {
  box-shadow: 0 8px 28px rgba(220,39,67,.35); transform: translateY(-2px); color: #fff;
}

@media (max-width: 900px) {
  .ig-embed-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .ig-embed-frame { min-height: 300px; }
}

@media (max-width: 900px) { .naver-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .naver-blog-grid { grid-template-columns: 1fr; } }
.float-label { font-size: .8rem; }

/* ── Search Overlay ──────────────────────────────────────────────────────── */
.nav-search { display: flex; align-items: center; }
.nav-search-btn {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-mid); width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.nav-search-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-section); }

.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,48,40,.85); backdrop-filter: blur(12px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 20vh; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 2rem; }
.search-overlay-form {
  display: flex; gap: .75rem; position: relative;
}
.search-overlay-form input {
  flex: 1; padding: 1rem 1.25rem;
  font-size: 1.1rem; font-family: var(--font);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius); background: rgba(255,255,255,.1);
  color: #fff; outline: none; transition: var(--transition);
}
.search-overlay-form input::placeholder { color: rgba(255,255,255,.4); }
.search-overlay-form input:focus { border-color: var(--gold-bright); background: rgba(255,255,255,.15); }
.search-close {
  position: absolute; top: -60px; right: 0;
  background: transparent; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: .5rem;
  transition: var(--transition-fast);
}
.search-close:hover { color: #fff; }

/* Search page */
.search-hero-form { margin-top: 1.5rem; max-width: 600px; }
.search-form-large {
  display: flex; gap: .75rem;
}
.search-form-large input {
  flex: 1; padding: .9rem 1.25rem;
  font-size: 1rem; font-family: var(--font);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius); background: rgba(255,255,255,.1);
  color: #fff; outline: none;
}
.search-form-large input::placeholder { color: rgba(255,255,255,.4); }
.search-form-large input:focus { border-color: var(--gold-bright); }
.search-results-info { font-size: .95rem; color: var(--text-mid); margin-bottom: 2rem; }
.search-results-info strong { color: var(--navy); }

/* ── Quick Consultation Form ─────────────────────────────────────────────── */
.quick-form-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.quick-form-header {
  background: var(--navy); padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--gold-bright);
}
.quick-form-header h3 {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800;
  color: #fff; margin-bottom: .3rem;
}
.quick-form-header p { font-size: .875rem; color: rgba(255,255,255,.6); margin: 0; }
.quick-form-card .consultation-form { padding: 2rem; }
.detail-toggle {
  display: block; width: 100%; text-align: center;
  background: transparent; border: none; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--teal);
  padding: 1rem 0 .5rem; transition: var(--transition-fast);
}
.detail-toggle:hover { color: var(--navy); }
.detail-fields {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.detail-fields.open { max-height: 500px; }

@media (max-width: 768px) {
  .float-contact { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .location-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.65); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; padding: 5rem 0 3.5rem;
  border-top: 1px solid rgba(196,147,63,.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: .4rem; }
.footer-disclaimer { font-size: .76rem !important; color: rgba(255,255,255,.22) !important; margin-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.07); padding-top: .85rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
  font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.4rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: .45rem; }
.footer-links ul li a { font-size: .875rem; color: rgba(255,255,255,.4); transition: var(--transition-fast); }
.footer-links ul li a:hover { color: var(--gold-bright); padding-left: .4rem; }
.footer-contact p { font-size: .875rem; margin-bottom: .5rem; }
.footer-contact a { color: rgba(255,255,255,.45); }
.footer-contact a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 1.5rem 0; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.22); text-align: center; }

/* ── Admin ────────────────────────────────────────────────────────────────── */
.admin-wrapper { max-width: 960px; margin: 3rem auto; padding: 0 1.5rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.admin-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--navy); color: #fff; padding: .75rem 1rem; font-size: .78rem; font-weight: 700; text-align: left; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border-light); font-size: .9rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-section); }
.badge { display: inline-block; padding: .22rem .65rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-draft { background: var(--bg-section); color: var(--text-light); }
.badge-core { background: var(--gold-pale); color: #7c5a0a; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 360px; gap: 3rem; }
  .conditions-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-section-layout { grid-template-columns: 1fr; gap: 3rem; }
  .why-section-image { max-height: 400px; }
  .why-section-image img { min-height: 400px; }
  .process-layout { grid-template-columns: 1fr; gap: 3rem; }
  .process-image img { min-height: 320px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-visual { display: none; }
  .hero-image-card { display: none; }
  .drjoy-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .drjoy-photo-wrap { max-width: 340px; margin: 0 auto; }
  .drjoy-photo { max-width: 300px; margin: 0 auto; }
  .drjoy-float-badge { right: -.5rem; }
  .content-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .consultation-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .blog-index-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: 0; } /* hero-inner handles all padding */
  .hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-sub { max-width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; z-index: 999;
    max-height: calc(100vh - 70px); overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { color: var(--text-body); padding: .9rem .5rem; border-bottom: 1px solid var(--border-light); border-radius: 0; }
  .dropdown-menu { position: static; border: none; box-shadow: none; background: var(--bg-section); border-radius: 8px; padding: .25rem .5rem; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .sticky-cta { display: flex; }
  main { padding-bottom: 72px; }
  .conditions-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-layout { grid-template-columns: 1fr; gap: 2rem; }
  .process-image img { min-height: 250px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-section-layout { grid-template-columns: 1fr; gap: 2rem; }
  .why-section-image { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 1.2rem; }
  .section { padding: 3rem 0; }
  .hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat-number { font-size: 2rem; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.75rem; }
  .section-header p { font-size: .9rem; }
  .drjoy-content h2 { font-size: 1.75rem; }
  .drjoy-photo-ring { width: 220px; height: 220px; }
  .drjoy-float-cred { font-size: .75rem; padding: .45rem .7rem; gap: .4rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table { min-width: 560px; }
  .report-layout { gap: 2rem; }
  .inline-cta-btns { flex-direction: column; }
  .inline-cta-btns .btn { width: 100%; }
  .cta-inner { padding: 2rem 1.25rem; }
}

/* ── Dr. Joy Photo Presentation ───────────────────────────────────────────── */
.drjoy-photo-wrap {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.drjoy-photo-ring {
  position: relative; width: 300px; height: 300px;
  animation: drjoyFloat 5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes drjoyFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.drjoy-ring-svg {
  position: absolute; inset: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px);
  pointer-events: none;
}
.drjoy-ring-outer { animation: ringRotate 18s linear infinite; }
.drjoy-ring-inner { animation: ringRotate 12s linear infinite reverse; }
@keyframes ringRotate { to { transform: rotate(360deg); } }
.drjoy-photo-frame {
  position: absolute; inset: 10px;
  width: auto; height: auto; aspect-ratio: auto;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(196,147,63,.35);
  box-shadow: 0 0 0 1px rgba(196,147,63,.12), 0 8px 40px rgba(0,0,0,.25), inset 0 0 20px rgba(0,0,0,.1);
}
.drjoy-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.drjoy-glow-bg {
  position: absolute; inset: 20px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(196,147,63,.18) 0%, rgba(74,124,111,.12) 60%, transparent 100%);
  animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.08); }
}
[data-theme="dark"] .drjoy-photo-frame {
  border-color: rgba(196,147,63,.5);
  box-shadow: 0 0 0 1px rgba(196,147,63,.2), 0 8px 40px rgba(0,0,0,.5), 0 0 30px rgba(196,147,63,.1);
}
[data-theme="dark"] .drjoy-glow-bg {
  background: radial-gradient(circle, rgba(196,147,63,.25) 0%, rgba(74,124,111,.15) 60%, transparent 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg-white:    #0C1812;
  --bg-warm:     #0F1D17;
  --bg-cream:    #121F1A;
  --bg-section:  #111C18;
  --bg-light:    #0E1915;
  --text-dark:   #E5F2EE;
  --text-body:   #BED5CE;
  --text-mid:    #8AABA4;
  --text-light:  #5A7A74;
  --text-xlight: #3A5A54;
  --border:      #1C3028;
  --border-light:#162520;
  --shadow-xs:   0 1px 4px rgba(0,0,0,.3);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.4);
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --shadow-md:   0 8px 40px rgba(0,0,0,.5);
  --shadow-lg:   0 20px 70px rgba(0,0,0,.6);
}
[data-theme="dark"] body { background: var(--bg-white); color: var(--text-body); }
[data-theme="dark"] .navbar { background: rgba(12,24,18,.97); border-bottom-color: var(--border); }
[data-theme="dark"] .navbar.scrolled { background: rgba(12,24,18,.99); }
/* logo uses gradient text — no color override needed in dark mode */
[data-theme="dark"] .nav-links > li > a { color: var(--text-dark); }
[data-theme="dark"] .nav-links { background: rgba(12,24,18,.98); }
[data-theme="dark"] .dropdown-menu { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .dropdown-menu a { color: var(--text-body); }
[data-theme="dark"] .trust-bar { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .trust-bar-item { color: var(--text-mid); }
[data-theme="dark"] .drjoy-section { background: linear-gradient(135deg, #0A1610 0%, #0F1D17 60%, #111C18 100%); }
[data-theme="dark"] .drjoy-content h2 { color: var(--text-dark); }
[data-theme="dark"] .drjoy-message { color: var(--text-body); }
[data-theme="dark"] .process-section { background: var(--bg-white); }
[data-theme="dark"] .step-body h3 { color: var(--text-dark); }
[data-theme="dark"] .step-body p { color: var(--text-mid); }
[data-theme="dark"] .conditions-section { background: var(--bg-section); }
[data-theme="dark"] .condition-card { background: var(--bg-warm); border-color: var(--border); color: var(--text-body); }
[data-theme="dark"] .condition-name { color: var(--text-body); }
[data-theme="dark"] .why-section { background: var(--bg-white); }
[data-theme="dark"] .why-list-item h3 { color: var(--text-dark); }
[data-theme="dark"] .blog-section { background: var(--bg-section); }
[data-theme="dark"] .article-card,
[data-theme="dark"] .article-card-with-thumb { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .article-card-body { background: var(--bg-warm); }
[data-theme="dark"] .article-card h3 a,
[data-theme="dark"] .article-card-body h3 a { color: var(--text-dark); }
[data-theme="dark"] .article-excerpt { color: var(--text-mid); }
[data-theme="dark"] .naver-blog-section { background: var(--bg-warm); }
[data-theme="dark"] .naver-blog-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .naver-blog-card h3 { color: var(--text-dark); }
[data-theme="dark"] .naver-blog-card p { color: var(--text-mid); }
[data-theme="dark"] .faq-section { background: var(--bg-section); }
[data-theme="dark"] .faq-item { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .faq-q { color: var(--text-dark); }
[data-theme="dark"] .faq-a p { color: var(--text-body); }
[data-theme="dark"] .program-item { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .program-item h3 { color: var(--text-dark); }
[data-theme="dark"] .programs-intro { color: var(--text-body); }
[data-theme="dark"] .programs-note-inner { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .location-section { background: var(--bg-white); }
[data-theme="dark"] .location-content h2 { color: var(--text-dark); }
[data-theme="dark"] .location-item strong { color: var(--text-dark); }
[data-theme="dark"] .location-item p,
[data-theme="dark"] .location-item a { color: var(--text-body); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background: var(--bg-section); color: var(--text-dark); border-color: var(--border); }
[data-theme="dark"] label { color: var(--text-body); }
[data-theme="dark"] .section-header h2 { color: var(--text-dark); }
[data-theme="dark"] .section-header p { color: var(--text-mid); }
[data-theme="dark"] .eyebrow { color: var(--teal); }
[data-theme="dark"] .chatbot-panel { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .chat-msg.bot .chat-msg-bubble { background: var(--bg-section); color: var(--text-body); }
[data-theme="dark"] .chatbot-input-row input { background: var(--bg-section); color: var(--text-dark); border-color: var(--border); }
[data-theme="dark"] .chatbot-quick-btns { border-color: var(--border); }
[data-theme="dark"] .chat-quick-btn { border-color: var(--border); color: var(--text-mid); }
[data-theme="dark"] .chatbot-messages { background: var(--bg-warm); }

/* Dark mode toggle button (removed — dark mode is permanent) */
.dark-toggle {
  display: none;
  background: none; border: 1.5px solid var(--border);
  cursor: pointer; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .95rem;
  color: var(--text-mid); transition: var(--transition-fast);
  margin-left: .4rem; flex-shrink: 0;
}
.dark-toggle:hover { background: var(--teal-light); border-color: var(--teal); color: var(--navy); }
[data-theme="dark"] .dark-toggle { border-color: var(--border); }
[data-theme="dark"] .dark-toggle:hover { background: rgba(74,124,111,.2); color: var(--gold); }

/* ── Privacy Policy ───────────────────────────────────────────────────────── */
.privacy-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin: 2rem 0 .6rem; border-bottom: 1px solid var(--border-light); padding-bottom: .4rem; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p, .privacy-body li { font-size: .95rem; color: var(--text-body); line-height: 1.75; }
.privacy-body ul { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.privacy-body ul li { margin-bottom: .35rem; }
.privacy-body a { color: var(--teal); }

/* ── AdSense Slots ────────────────────────────────────────────────────────── */
.ad-slot { margin: 2rem 0; min-height: 60px; border-radius: var(--radius-sm); overflow: hidden; }
.ad-slot-top { margin-bottom: 2rem; }
.ad-slot-bottom { margin-top: 2rem; }
.sidebar-ad-wrap { margin-bottom: 1.5rem; min-height: 120px; border-radius: var(--radius-sm); overflow: hidden; }
.ad-card-grid { min-height: 200px; background: var(--bg-section); border: 1px solid var(--border-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; padding: 1rem; }

/* ── Sidebar Diagnostic Report Card ──────────────────────────────────────── */
.sidebar-card-report { border-color: rgba(196,147,63,.25); background: linear-gradient(160deg, rgba(196,147,63,.06) 0%, var(--bg-section) 100%); }
.report-badge-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(196,147,63,.12); border: 1px solid rgba(196,147,63,.25); border-radius: 50px; padding: .2rem .7rem; margin-bottom: .6rem; }
.report-mini-list { list-style: none; padding: 0; margin: .6rem 0; }
.report-mini-list li { font-size: .82rem; color: var(--text-mid); padding: .2rem 0; padding-left: 1.1rem; position: relative; }
.report-mini-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-size: .75rem; }
.report-price-row { display: flex; align-items: baseline; gap: .6rem; margin: .75rem 0 .8rem; }
.report-price { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.report-delivery { font-size: .75rem; color: var(--text-mid); }
.inline-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ── Diagnostic Report Page ───────────────────────────────────────────────── */
.page-hero-slim { min-height: 220px; }
.report-layout { display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: start; }
.report-includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.report-include-item { display: flex; gap: .85rem; align-items: flex-start; }
.rii-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(74,124,111,.12); border: 1px solid rgba(74,124,111,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--teal); }
.rii-icon svg { width: 16px; height: 16px; }
.report-include-item strong { font-size: .9rem; font-weight: 700; color: var(--text-dark); display: block; margin-bottom: .2rem; }
.report-include-item p { font-size: .82rem; color: var(--text-mid); margin: 0; }
.report-timeline { margin: 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.rt-step { display: flex; gap: 1rem; align-items: flex-start; }
.rt-num { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rt-step strong { font-size: .9rem; color: var(--text-dark); display: block; }
.rt-step p { font-size: .82rem; color: var(--text-mid); margin: .15rem 0 0; }
.report-photo-guide { background: var(--bg-section); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem; margin-top: 2rem; }
.report-photo-guide h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-dark); }
.photo-guide-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.pg-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.pg-item svg { color: var(--teal); width: 20px; height: 20px; }
.pg-item span { font-size: .75rem; color: var(--text-body); font-weight: 600; }
.pg-item small { font-size: .7rem; color: var(--text-mid); font-weight: 400; }
/* Form */
.report-form-card { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; position: sticky; top: 100px; }
.report-price-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.report-price-big { font-size: 2rem; font-weight: 800; color: var(--gold); }
.report-price-big small { font-size: 1rem; font-weight: 400; }
.report-delivery-tag { font-size: .78rem; background: rgba(74,124,111,.12); color: var(--teal); border: 1px solid rgba(74,124,111,.2); border-radius: 50px; padding: .3rem .8rem; font-weight: 600; }
.report-form .form-group { margin-bottom: 1rem; }
.report-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dark); margin-bottom: .35rem; }
.report-form input, .report-form textarea, .report-form select { width: 100%; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .9rem; font-size: .9rem; color: var(--text-dark); transition: border-color .2s; font-family: inherit; }
.report-form input:focus, .report-form textarea:focus, .report-form select:focus { outline: none; border-color: var(--teal); }
.report-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.file-upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; cursor: pointer; transition: border-color .2s; }
.file-upload-zone.drag-over { border-color: var(--teal); background: rgba(74,124,111,.05); }
.file-input-hidden { display: none; }
.file-upload-label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--text-mid); font-size: .85rem; }
.file-upload-label svg { width: 28px; height: 28px; color: var(--teal); }
.file-upload-label small { font-size: .75rem; color: var(--text-light); }
.file-preview { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.preview-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.payment-box { background: rgba(196,147,63,.05); border: 1px solid rgba(196,147,63,.2); border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1.25rem; }
.payment-box h4 { font-size: .9rem; font-weight: 700; color: var(--gold); margin-bottom: .75rem; display: flex; align-items: center; gap: .45rem; }
.payment-box h4 svg { width: 16px; height: 16px; }
.payment-steps { padding-left: 1.3rem; margin: 0; }
.payment-steps li { font-size: .85rem; color: var(--text-body); margin-bottom: .4rem; }
.payment-methods-row { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
#paypal-button-container { margin-top: .5rem; }
.form-disclaimer { font-size: .72rem; color: var(--text-light); line-height: 1.5; margin-top: 1rem; text-align: center; }
/* Trust row */
.report-trust-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; padding: 1.5rem; background: var(--bg-section); border-radius: var(--radius-xl); border: 1px solid var(--border-light); }
.report-trust-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-mid); }
.report-trust-item svg { color: var(--teal); width: 18px; height: 18px; }
.report-trust-item strong { color: var(--text-dark); }
/* Success */
.report-success-card { background: var(--bg-section); border: 1px solid rgba(74,124,111,.3); border-radius: var(--radius-xl); padding: 3rem 2rem; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(74,124,111,.15); color: var(--teal); font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.report-success-card h2 { font-size: 1.5rem; margin-bottom: .75rem; }
/* Responsive */
@media (max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; }
  .report-form-card { position: static; }
  .report-includes-grid { grid-template-columns: 1fr; }
  .photo-guide-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE TRANSITION
══════════════════════════════════════════════════════════════════════════ */
.page-transition-overlay {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 99999; opacity: 0;
  pointer-events: none;
  transition: opacity .42s cubic-bezier(.4,0,.2,1);
}
.page-transition-overlay.leaving { opacity: 1; pointer-events: all; }
body.page-loaded > main { animation: pageSlideIn .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FAQ CHATBOT WIDGET
══════════════════════════════════════════════════════════════════════════ */
/* Chatbot toggle — sits at top of float-contact stack, right side */
.chatbot-toggle {
  position: fixed; right: 1.5rem; bottom: calc(2rem + 238px);
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-light) 100%);
  color: #fff; border: none; cursor: pointer;
  z-index: 9991; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(74,124,111,.4), 0 2px 8px rgba(74,124,111,.2);
  transition: var(--transition); font-size: 1.3rem; line-height: 1;
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot-toggle .ci-open { display: block; }
.chatbot-toggle .ci-close { display: none; }
.chatbot-toggle.open .ci-open { display: none; }
.chatbot-toggle.open .ci-close { display: block; }
@media (max-width: 768px) { .chatbot-toggle { display: none; } }

/* Panel — opens to the LEFT from right side */
.chatbot-panel {
  position: fixed;
  bottom: calc(2rem + 238px - 16px);
  right: calc(1.5rem + 52px + 12px);
  width: min(340px, calc(100vw - 5rem));
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 9990; display: flex; flex-direction: column;
  transform: translateX(20px) scale(.97); opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  overflow: hidden;
}
.chatbot-panel.open { transform: none; opacity: 1; pointer-events: all; }
@media (max-width: 768px) { .chatbot-panel { display: none; } }

.chatbot-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-mid) 100%);
  color: #fff; padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.chatbot-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.chatbot-header-info h4 { font-size: .88rem; font-weight: 700; margin: 0; }
.chatbot-header-info p  { font-size: .74rem; opacity: .7; margin: 0; }
.chat-online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-right: .3rem; vertical-align: middle; }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: .85rem;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 180px; max-height: 260px;
  scroll-behavior: smooth;
}
.chat-msg { max-width: 86%; display: flex; flex-direction: column; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: .55rem .85rem; border-radius: 14px;
  font-size: .83rem; line-height: 1.5;
}
.chat-msg.bot  .chat-bubble { background: var(--bg-section); color: var(--text-body); border-bottom-left-radius: 3px; }
.chat-msg.user .chat-bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }

.chatbot-quick {
  padding: .5rem .75rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
  border-top: 1px solid var(--border-light);
}
.chat-q-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-mid); font-size: .76rem;
  padding: .3rem .65rem; border-radius: 20px;
  cursor: pointer; transition: var(--transition-fast);
  font-family: var(--font);
}
.chat-q-btn:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal-mid); }

.chatbot-input {
  display: flex; gap: .45rem; padding: .65rem .75rem;
  border-top: 1px solid var(--border-light);
}
.chatbot-input input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 20px;
  padding: .45rem .85rem; font-size: .83rem; outline: none;
  background: var(--bg-section); color: var(--text-body);
  font-family: var(--font); transition: border-color .2s;
}
.chatbot-input input:focus { border-color: var(--teal); }
.chatbot-send {
  background: var(--teal); color: #fff; border: none;
  border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition-fast);
  font-size: .8rem;
}
.chatbot-send:hover { background: var(--teal-mid); transform: scale(1.05); }

/* ══════════════════════════════════════════════════════════════════════════
   PATIENT JOURNEY TIMELINE
══════════════════════════════════════════════════════════════════════════ */
.timeline-section { background: var(--bg-section); }
[data-theme="dark"] .timeline-section { background: var(--bg-section); }
.timeline-wrap { max-width: 680px; margin: 0 auto; position: relative; }
.timeline-wrap::before {
  content: ''; position: absolute; left: 27px; top: 6px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--teal) 0%, var(--gold) 80%, transparent 100%);
}
.tl-node { display: flex; gap: 1.5rem; margin-bottom: 2.25rem; position: relative; }
.tl-node:last-child { margin-bottom: 0; }
.tl-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.35rem; font-weight: 800;
  border: 3px solid var(--teal); z-index: 1; position: relative;
  box-shadow: 0 0 0 5px var(--bg-section);
}
[data-theme="dark"] .tl-icon { box-shadow: 0 0 0 5px var(--bg-section); }
.tl-body { padding-top: .6rem; }
.tl-week {
  display: inline-block; background: var(--teal); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: .18rem .6rem; border-radius: 20px; margin-bottom: .4rem;
  text-transform: uppercase;
}
.tl-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0 0 .3rem; }
.tl-body p  { font-size: .9rem; color: var(--text-mid); margin: 0; line-height: 1.6; }
[data-theme="dark"] .tl-body h3 { color: var(--text-dark); }

/* ══════════════════════════════════════════════════════════════════════════
   3D SPINE INTERACTIVE SECTION
══════════════════════════════════════════════════════════════════════════ */
.spine3d-section {
  background: var(--navy);
  color: #fff; overflow: hidden; position: relative;
}
.spine3d-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .spine3d-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.spine3d-text { max-width: 480px; }
.spine3d-text .eyebrow { color: var(--gold-light); }
.spine3d-text h2 { color: #fff; margin-bottom: 1rem; }
.spine3d-text p  { color: rgba(255,255,255,.7); margin-bottom: 1.25rem; line-height: 1.75; }
.spine3d-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.spine3d-features li {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.75); font-size: .92rem;
}
.spine3d-features li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 1rem; }
.spine3d-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#spineCanvas {
  width: 100%; max-width: 380px; height: 480px;
  display: block; cursor: grab; border-radius: var(--radius-lg);
  outline: none;
}
#spineCanvas:active { cursor: grabbing; }
@media (max-width: 768px) { #spineCanvas { max-width: 320px; height: 360px; } }
.spine3d-label {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-size: .75rem; color: rgba(255,255,255,.4); white-space: nowrap;
  pointer-events: none;
}
/* Decorative blobs */
.spine3d-section::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,111,.15) 0%, transparent 70%);
}
.spine3d-section::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,147,63,.1) 0%, transparent 70%);
}

/* ══════════════════════════════════════════════════════════════════════════
   CASE STUDY GALLERY (Before / After)
══════════════════════════════════════════════════════════════════════════ */
.ba-section { background: var(--bg-section); }
[data-theme="dark"] .ba-section { background: var(--bg-section); }

/* 4-column grid of case cards */
.ba-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem;
}
@media (max-width: 1024px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ba-grid { grid-template-columns: 1fr; } }

.ba-case {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-white); box-shadow: var(--shadow);
  transition: var(--transition);
}
[data-theme="dark"] .ba-case { background: var(--bg-warm); }
.ba-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Split image: top = problem, bottom = solution */
.ba-images {
  display: grid; grid-template-rows: 1fr 1fr; height: 260px; position: relative;
}
.ba-img-wrap { position: relative; overflow: hidden; }
.ba-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ba-case:hover .ba-img-wrap img { transform: scale(1.04); }

/* Divider between top/bottom images */
.ba-divider {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%); pointer-events: none;
}
.ba-divider-line { flex: 1; height: 2px; background: rgba(255,255,255,.8); }
.ba-divider-pill {
  background: var(--gold); color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  padding: .22rem .65rem; border-radius: 20px;
  text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Image labels */
.ba-img-label {
  position: absolute; bottom: .5rem; left: .6rem; z-index: 4;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.45); padding: .18rem .55rem; border-radius: 10px;
}

/* Tint overlays */
.ba-img-wrap.problem::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(180,40,40,.12); pointer-events: none;
}
.ba-img-wrap.solution::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(74,124,111,.12); pointer-events: none;
}

/* Card footer */
.ba-case-body { padding: .85rem 1rem; }
.ba-case-tag {
  display: inline-block; background: var(--teal-light); color: var(--teal-mid);
  font-size: .7rem; font-weight: 700; padding: .18rem .6rem; border-radius: 20px;
  margin-bottom: .4rem; letter-spacing: .04em;
}
[data-theme="dark"] .ba-case-tag { background: rgba(74,124,111,.2); color: var(--teal); }
.ba-case-body h4 { font-size: .88rem; font-weight: 700; color: var(--text-dark); margin: 0 0 .2rem; }
.ba-case-body p  { font-size: .78rem; color: var(--text-mid); margin: 0; line-height: 1.5; }

.ba-disclaimer {
  text-align: center; font-size: .78rem; color: var(--text-light);
  margin-top: 1.75rem; font-style: italic; line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROGRAM PRICE COMPARISON TABLE
══════════════════════════════════════════════════════════════════════════ */
.price-table-section { background: var(--bg-section); }
[data-theme="dark"] .price-table-section { background: var(--bg-section); }
.price-table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.price-table {
  width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 580px;
  background: var(--bg-white);
}
[data-theme="dark"] .price-table { background: var(--bg-warm); }
.price-table thead th {
  padding: 1.1rem .85rem; text-align: center; font-weight: 700;
  font-size: .82rem; letter-spacing: .02em;
}
.price-table thead .th-feature { text-align: left; color: var(--text-mid); font-weight: 500; }
.price-table thead .th-prog { color: var(--text-dark); }
.price-table thead .th-prog.featured {
  background: var(--teal); color: #fff; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
[data-theme="dark"] .price-table thead .th-prog { color: var(--text-dark); }
.price-table tbody tr:nth-child(odd) td { background: var(--bg-section); }
[data-theme="dark"] .price-table tbody tr:nth-child(odd) td { background: var(--bg-section); }
.price-table td {
  padding: .75rem .85rem; text-align: center;
  border-top: 1px solid var(--border-light); color: var(--text-body);
}
[data-theme="dark"] .price-table td { border-color: var(--border); color: var(--text-body); }
.price-table td.feat-name { text-align: left; font-size: .85rem; color: var(--text-mid); }
.price-table td.featured-col { background: rgba(74,124,111,.06); }
[data-theme="dark"] .price-table td.featured-col { background: rgba(74,124,111,.1); }
.price-table td.featured-col.odd-row { background: rgba(74,124,111,.1); }
.price-check { color: var(--teal); font-size: 1.05rem; font-weight: 700; }
.price-cross  { color: var(--text-xlight); font-size: 1rem; }
.price-partial { color: var(--gold); font-size: .8rem; font-weight: 600; }
.price-table tfoot td { border-top: 2px solid var(--border); padding: 1rem .85rem; }
.price-table tfoot .tf-cta { text-align: center; }
.price-badge-popular {
  display: inline-block; background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .15rem .5rem; border-radius: 10px; text-transform: uppercase;
  margin-top: .2rem; display: block;
}
.price-note { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: 1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE — COMPREHENSIVE READABILITY PATCH
══════════════════════════════════════════════════════════════════════════ */

/* Navbar */
[data-theme="dark"] .navbar { background: rgba(10,22,17,.97); border-bottom-color: var(--border); }
[data-theme="dark"] .navbar.scrolled { background: rgba(10,22,17,.99); box-shadow: 0 4px 30px rgba(0,0,0,.4); }
[data-theme="dark"] .nav-inner .logo { filter: drop-shadow(0 1px 4px rgba(196,147,63,.4)); }
[data-theme="dark"] .nav-toggle { color: var(--text-dark); border-color: var(--border); }
[data-theme="dark"] .nav-toggle:hover { background: rgba(74,124,111,.15); border-color: var(--teal); }
[data-theme="dark"] .nav-links > li > a { color: var(--text-body); }
[data-theme="dark"] .nav-links > li > a:hover { color: var(--gold-light); background: rgba(74,124,111,.12); }
[data-theme="dark"] .nav-search-btn { color: var(--text-body); background: none; border: none; }
[data-theme="dark"] .nav-search-btn:hover { color: var(--gold-light); }
[data-theme="dark"] .lang-current { border-color: var(--border); color: var(--text-body); }
[data-theme="dark"] .lang-current:hover { background: rgba(74,124,111,.12); border-color: var(--teal); }
[data-theme="dark"] .lang-dropdown { background: var(--bg-section); border-color: var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .lang-option { color: var(--text-body); }
[data-theme="dark"] .lang-option:hover { background: rgba(74,124,111,.15); color: var(--text-dark); }
[data-theme="dark"] .lang-option.active { background: var(--teal); color: #fff; }
[data-theme="dark"] .nav-links { background: rgba(10,22,17,.98); }
[data-theme="dark"] .nav-links > li > a { border-bottom-color: var(--border); }
[data-theme="dark"] .dropdown-menu { background: var(--bg-section); border-color: var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .dropdown-menu a { color: var(--text-body); }
[data-theme="dark"] .dropdown-menu a:hover { background: rgba(74,124,111,.15); color: var(--gold-light); }

/* Sticky CTA (mobile) */
[data-theme="dark"] .sticky-cta { background: rgba(10,22,17,.97); border-top-color: var(--border); }

/* Search overlay */
[data-theme="dark"] .search-overlay { background: rgba(10,22,17,.97); }
[data-theme="dark"] #searchInput { background: var(--bg-section); color: var(--text-dark); border-color: var(--border); }

/* Section header & common text */
[data-theme="dark"] .section-header h2 { color: var(--text-dark); }
[data-theme="dark"] .section-header p   { color: var(--text-mid); }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .eyebrow-inline { color: var(--teal) !important; }

/* Trust bar */
[data-theme="dark"] .trust-bar { background: var(--bg-section); border-bottom-color: var(--border); }
[data-theme="dark"] .trust-bar-item { color: var(--text-body); }
[data-theme="dark"] .trust-bar-item strong { color: var(--text-dark); }

/* Dr. Joy section */
[data-theme="dark"] .drjoy-eyebrow { color: var(--teal); }
[data-theme="dark"] .drjoy-content h2 { color: var(--text-dark); }
[data-theme="dark"] .drjoy-title   { color: var(--text-mid); }
[data-theme="dark"] .drjoy-message { color: var(--text-body); }
[data-theme="dark"] .drjoy-signature { color: var(--gold); }
[data-theme="dark"] .credential-tag { background: rgba(74,124,111,.15); border-color: rgba(74,124,111,.25); color: var(--text-body); }
[data-theme="dark"] .drjoy-float-cred { background: rgba(10,22,17,.9); border-color: rgba(74,124,111,.25); }
[data-theme="dark"] .cred-text { color: var(--text-dark); }
[data-theme="dark"] .cred-sub  { color: var(--text-mid); }

/* Process / Method */
[data-theme="dark"] .process-section { background: var(--bg-white); }
[data-theme="dark"] .step-num-wrap { border-color: rgba(196,147,63,.3); background: rgba(196,147,63,.08); }
[data-theme="dark"] .step-num { color: var(--gold); }
[data-theme="dark"] .step-body h3 { color: var(--text-dark); }
[data-theme="dark"] .step-body p   { color: var(--text-mid); }
[data-theme="dark"] .process-image-badge { background: rgba(10,22,17,.85); color: var(--gold); border-color: rgba(196,147,63,.3); }

/* Why SPINE-X */
[data-theme="dark"] .why-section { background: var(--bg-warm); }
[data-theme="dark"] .why-section-content h2 { color: var(--text-dark); }
[data-theme="dark"] .why-list-item { border-color: var(--border); background: transparent; }
[data-theme="dark"] .why-list-item:hover { border-color: rgba(74,124,111,.4); background: rgba(74,124,111,.06); }
[data-theme="dark"] .why-list-item h3 { color: var(--text-dark); }
[data-theme="dark"] .why-list-item p  { color: var(--text-mid); }
[data-theme="dark"] .why-icon { color: var(--teal); background: rgba(74,124,111,.15) !important; }
[data-theme="dark"] .why-image-stat { background: rgba(10,22,17,.9); border-color: rgba(196,147,63,.3); }
[data-theme="dark"] .why-image-stat-num { color: var(--gold); }
[data-theme="dark"] .why-image-stat-label { color: var(--text-mid); }

/* Stats bar */
[data-theme="dark"] .stats-bar { background: linear-gradient(135deg, #0A1610 0%, #0F1D17 100%); }
[data-theme="dark"] .stat-number { color: var(--gold); }
[data-theme="dark"] .stat-label { color: rgba(255,255,255,.45); }
[data-theme="dark"] .stat-divider { background: rgba(255,255,255,.08); }
[data-theme="dark"] .stat-plus, [data-theme="dark"] .stat-star { color: var(--gold-light); }

/* Testimonials */
[data-theme="dark"] .testimonials-section { background: var(--bg-section); }
[data-theme="dark"] .testimonial-card { background: rgba(15,29,23,.85); border: 1px solid rgba(74,124,111,.2); }
[data-theme="dark"] .testimonial-card blockquote { color: rgba(200,220,215,.85); }
[data-theme="dark"] .testimonial-name { color: #fff; }
[data-theme="dark"] .testimonial-info { color: rgba(255,255,255,.45); }
[data-theme="dark"] .slider-btn { background: rgba(15,29,23,.8); border-color: rgba(74,124,111,.3); color: var(--text-body); }
[data-theme="dark"] .slider-dot { background: rgba(74,124,111,.4); }
[data-theme="dark"] .slider-dot.active { background: var(--gold); }

/* Location */
[data-theme="dark"] .location-section { background: var(--bg-white); }
[data-theme="dark"] .location-content h2 { color: var(--text-dark); }
[data-theme="dark"] .location-content h2 span { color: var(--teal); }
[data-theme="dark"] .location-item strong { color: var(--text-dark); }
[data-theme="dark"] .location-item p, [data-theme="dark"] .location-item a { color: var(--text-mid); }
[data-theme="dark"] .map-image-overlay { background: rgba(10,22,17,.85); }
[data-theme="dark"] .map-label { color: var(--gold-light); }
[data-theme="dark"] .map-sublabel { color: rgba(255,255,255,.5); }

/* FAQ */
[data-theme="dark"] .faq-section { background: var(--bg-section); }
[data-theme="dark"] .faq-item { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .faq-q { color: var(--text-dark); }
[data-theme="dark"] .faq-q:hover { background: rgba(74,124,111,.08); }
[data-theme="dark"] .faq-icon { color: var(--teal); }
[data-theme="dark"] .faq-a p { color: var(--text-body); }

/* CTA section */
[data-theme="dark"] .cta-inner h2 { color: #fff; }
[data-theme="dark"] .cta-inner p  { color: rgba(255,255,255,.7); }
[data-theme="dark"] .cta-slots { background: rgba(74,124,111,.2); border-color: rgba(74,124,111,.4); color: rgba(255,255,255,.8); }
[data-theme="dark"] .cta-note  { color: rgba(255,255,255,.45); }

/* Consultation form */
[data-theme="dark"] .consultation-layout { background: transparent; }
[data-theme="dark"] .quick-form-card { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .quick-form-header { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-mid) 100%); }
[data-theme="dark"] .quick-form-card .consultation-form { background: var(--bg-warm); }
[data-theme="dark"] .form-group label { color: var(--text-dark); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-section); color: var(--text-dark);
  border-color: var(--border);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: var(--text-xlight); }
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,124,111,.15);
}
[data-theme="dark"] .form-note { color: var(--text-light); }
[data-theme="dark"] .required  { color: var(--gold); }
[data-theme="dark"] .detail-toggle { color: var(--text-mid); }
[data-theme="dark"] .detail-toggle:hover { color: var(--gold-light); }
[data-theme="dark"] .info-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .info-card h3 { color: var(--text-dark); }
[data-theme="dark"] .info-card p,
[data-theme="dark"] .info-card li { color: var(--text-body); }
[data-theme="dark"] .consult-sidebar-section h4 { color: var(--gold-light); }

/* Programs page */
[data-theme="dark"] .program-item { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .program-item h3 { color: var(--text-dark); }
[data-theme="dark"] .program-item p { color: var(--text-body); }
[data-theme="dark"] .program-features li { color: var(--text-body); }
[data-theme="dark"] .program-features li::before { color: var(--teal); }
[data-theme="dark"] .program-ideal { color: var(--text-mid); }
[data-theme="dark"] .program-type-badge { background: rgba(74,124,111,.15); color: var(--teal); }
[data-theme="dark"] .program-type-featured { background: var(--teal); color: #fff; }
[data-theme="dark"] .program-type-specialist { background: rgba(196,147,63,.15); color: var(--gold); }
[data-theme="dark"] .programs-intro p { color: var(--text-body); }
[data-theme="dark"] .programs-note-inner { background: var(--bg-section); border-color: var(--border); color: var(--text-body); }
[data-theme="dark"] .programs-note-inner strong { color: var(--text-dark); }

/* Blog pages */
[data-theme="dark"] .blog-section { background: var(--bg-section); }
[data-theme="dark"] .article-card { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .article-card:hover { border-color: rgba(74,124,111,.4); }
[data-theme="dark"] .article-card h3 a { color: var(--text-dark); }
[data-theme="dark"] .article-card h3 a:hover { color: var(--gold-light); }
[data-theme="dark"] .article-card-body { background: var(--bg-warm); }
[data-theme="dark"] .article-excerpt { color: var(--text-mid); }
[data-theme="dark"] .article-category { color: var(--teal); background: rgba(74,124,111,.15); }
[data-theme="dark"] .article-meta { color: var(--text-light); }
[data-theme="dark"] .read-more { color: var(--gold); }
[data-theme="dark"] .read-more:hover { color: var(--gold-light); }
/* Article detail prose */
[data-theme="dark"] .article-main  { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .prose         { color: var(--text-body); }
[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3      { color: var(--text-dark); }
[data-theme="dark"] .prose a       { color: var(--teal); }
[data-theme="dark"] .prose a:hover { color: var(--gold-light); }
[data-theme="dark"] .prose blockquote { border-left-color: var(--teal); background: rgba(74,124,111,.08); color: var(--text-body); }
[data-theme="dark"] .prose code    { background: var(--bg-section); color: var(--gold-light); border-color: var(--border); }
[data-theme="dark"] .prose pre     { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .article-sidebar .info-card { background: var(--bg-section); }
[data-theme="dark"] .pagination .page-btn { background: var(--bg-section); border-color: var(--border); color: var(--text-body); }
[data-theme="dark"] .pagination .page-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
[data-theme="dark"] .pagination .page-btn:hover { background: rgba(74,124,111,.15); color: var(--text-dark); }

/* About page */
[data-theme="dark"] .about-hero-text h1 { color: #fff; }
[data-theme="dark"] .about-section { background: var(--bg-white); }
[data-theme="dark"] .about-section h2 { color: var(--text-dark); }
[data-theme="dark"] .about-section p  { color: var(--text-body); }

/* Conditions */
[data-theme="dark"] .conditions-section { background: var(--bg-section); }
[data-theme="dark"] .condition-card { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .condition-card:hover { background: rgba(74,124,111,.15); border-color: rgba(74,124,111,.4); }
[data-theme="dark"] .condition-name { color: var(--text-body); }
[data-theme="dark"] .condition-icon { color: var(--teal); }

/* Page hero gradient bottom fade — auto via var(--bg-white) */
[data-theme="dark"] .page-hero::after { background: linear-gradient(to bottom, transparent, var(--bg-white)); }

/* Naver blog */
[data-theme="dark"] .naver-blog-section { background: var(--bg-warm); }
[data-theme="dark"] .naver-blog-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .naver-blog-card h3 { color: var(--text-dark); }
[data-theme="dark"] .naver-blog-card p  { color: var(--text-mid); }
[data-theme="dark"] .naver-blog-link   { color: var(--teal); }

/* Instagram embed */
[data-theme="dark"] .instagram-embed-section { background: var(--bg-section); }
[data-theme="dark"] .ig-embed-info { background: transparent; }
[data-theme="dark"] .ig-profile-header h3 { color: var(--text-dark); }
[data-theme="dark"] .ig-profile-name, [data-theme="dark"] .ig-bio { color: var(--text-mid); }
[data-theme="dark"] .ig-stat { color: var(--text-light); }

/* Timeline */
[data-theme="dark"] .timeline-section { background: var(--bg-section); }
[data-theme="dark"] .tl-icon { box-shadow: 0 0 0 5px var(--bg-section); background: var(--navy); }
[data-theme="dark"] .tl-body h3 { color: var(--text-dark); }
[data-theme="dark"] .tl-body p  { color: var(--text-mid); }

/* 3D spine section */
[data-theme="dark"] .spine3d-section { background: linear-gradient(135deg, #080F0D 0%, #0C1812 60%, #0A1610 100%); }
[data-theme="dark"] .spine3d-text p { color: rgba(200,220,215,.7); }

/* Before/After */
[data-theme="dark"] .ba-section { background: var(--bg-section); }
[data-theme="dark"] .ba-case { background: var(--bg-warm); border-color: var(--border); }
[data-theme="dark"] .ba-case-body h4 { color: var(--text-dark); }
[data-theme="dark"] .ba-case-body p  { color: var(--text-mid); }
[data-theme="dark"] .ba-disclaimer   { color: var(--text-light); }

/* Price table */
[data-theme="dark"] .price-table-section { background: var(--bg-section); }
[data-theme="dark"] .price-table { background: var(--bg-warm); }
[data-theme="dark"] .price-table thead th { color: var(--text-dark); border-bottom-color: var(--border); }
[data-theme="dark"] .price-table td  { border-color: var(--border); color: var(--text-body); }
[data-theme="dark"] .price-table tbody tr:nth-child(odd) td { background: rgba(255,255,255,.02); }
[data-theme="dark"] .price-table td.feat-name { color: var(--text-mid); }

/* Live toast */
[data-theme="dark"] .live-toast { background: var(--bg-warm); border-color: rgba(74,124,111,.3); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .live-toast-text strong { color: var(--gold-light); }
[data-theme="dark"] .live-toast-text { color: var(--text-mid); }
[data-theme="dark"] .live-toast-time   { color: var(--text-xlight); }
[data-theme="dark"] .live-toast-close  { color: var(--text-light); }
[data-theme="dark"] .live-toast-close:hover { color: var(--text-dark); }

/* ── Mobile media queries for dark mode ───────────────────────────────── */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-links {
    background: rgba(10,22,17,.98);
    border-bottom-color: var(--border);
  }
  [data-theme="dark"] .nav-links > li > a { border-bottom-color: var(--border); color: var(--text-dark); }
  [data-theme="dark"] .dropdown-menu { background: var(--bg-section); }
}

/* ── Reading Time ────────────────────────────────────────────────────────── */
.reading-time {
  font-size: .8rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Social Share Bar ────────────────────────────────────────────────────── */
.social-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--border-light);
}
.social-share-label {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500;
  flex-shrink: 0;
}
.social-share-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-x  { background: #000; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }

/* ── Newsletter Box ──────────────────────────────────────────────────────── */
.newsletter-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0 0;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: .5rem 1.25rem;
  align-items: start;
}
.newsletter-icon {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  background: rgba(196,147,63,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.newsletter-icon i { color: var(--gold-light); width: 20px; height: 20px; }
.newsletter-text { grid-column: 2; }
.newsletter-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: #fff; }
.newsletter-text p  { font-size: .85rem; color: rgba(255,255,255,.72); margin: 0; }
.newsletter-form {
  grid-column: 1 / -1;
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-input:focus { border-color: var(--gold-light); background: rgba(255,255,255,.15); }
.newsletter-submit { white-space: nowrap; }
.newsletter-privacy {
  grid-column: 1 / -1;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-top: .25rem;
}
.newsletter-success { color: var(--gold-light); font-weight: 600; font-size: .9rem; text-align: center; padding: .5rem 0; }

@media (max-width: 480px) {
  .newsletter-box { grid-template-columns: 1fr; }
  .newsletter-icon { display: none; }
  .newsletter-text { grid-column: 1; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { min-width: 0; }
}

/* ── Programs Remote CTA ─────────────────────────────────────────────────── */
.remote-cta-block {
  margin: 2.5rem 0;
}
.remote-cta-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  color: #fff;
  text-align: center;
}
.remote-cta-badge {
  display: inline-block;
  background: rgba(196,147,63,.25);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(196,147,63,.3);
  margin-bottom: 1rem;
}
.remote-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: .75rem;
}
.remote-cta-inner p {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}
.remote-cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.5rem;
  margin-bottom: 1.75rem;
}
.remote-cta-features span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  color: rgba(255,255,255,.75);
}
.remote-cta-features i { color: var(--gold-light); width: 15px; height: 15px; }

@media (max-width: 640px) {
  .remote-cta-inner { padding: 2rem 1.5rem; }
  .remote-cta-inner h3 { font-size: 1.4rem; }
}

/* ── Dark mode: newsletter + remote-cta (already dark, fine as-is) ─────── */
[data-theme="dark"] .social-share-bar { border-top-color: var(--border); }
[data-theme="dark"] .newsletter-box { background: linear-gradient(135deg, #0a1610 0%, #0f2018 100%); }
[data-theme="dark"] .remote-cta-inner { background: linear-gradient(135deg, #0a1610 0%, #0f2018 100%); }

