/* ============================================================
   Life Dental Spa — design system
   Theme is switched from the admin (Site settings -> Theme).
   Variable naming: --teal* are the PRIMARY color slots,
   --mint* the SOFT TINT slots, --gold the ACCENT slot.
   ============================================================ */

/* ----------------------------------------------------------------
   THEME: Classic (default) — royal blue, cream, gold, serif
----------------------------------------------------------------- */
body, body.theme-luxury {
  --ink: #211f1a;
  --ink-soft: #5a574d;
  --ink-mute: #8a867a;
  --teal: #2355A0;
  --teal-dark: #1b4480;
  --teal-deep: #102a52;
  --mint: #ece5d6;
  --mint-soft: #faf7f0;
  --sand: #f4efe4;
  --gold: #b88a2d;
  --white: #fffdf8;
  --line: #e3dccb;
  --radius: 14px;
  --radius-lg: 20px;
  --btn-radius: 999px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --display-weight: 600;
  --display-transform: none;
  --display-spacing: -0.01em;
  --hero-bg: radial-gradient(800px 480px at 88% -10%, rgba(184, 138, 45, 0.12), transparent 60%),
             radial-gradient(700px 420px at -10% 110%, rgba(35, 85, 160, 0.10), transparent 60%),
             #faf7f0;
  --band-bg: #102a52;
  --band-fg: #cfc6ae;
  --cta-bg: linear-gradient(120deg, #1b4480, #102a52);
  --shadow-sm: 0 2px 10px rgba(33, 31, 26, 0.05);
  --shadow-md: 0 12px 36px rgba(33, 31, 26, 0.10);
  --shadow-lg: 0 26px 64px rgba(33, 31, 26, 0.16);
  --btn-shadow: 0 8px 24px rgba(35, 85, 160, 0.30);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--display-spacing);
}
h1, h2 { text-transform: var(--display-transform); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--btn-radius);
  font-weight: 700; font-size: 15px; font-family: var(--font-body);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.22s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--mint); color: var(--teal-dark); }
.btn-ghost { color: var(--teal-deep); background: var(--mint); }
.btn-ghost:hover { background: var(--line); color: var(--teal-deep); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--mint); }
.btn-sm { padding: 8px 13px; font-size: 12.5px; }

/* ---------- Top bar ---------- */

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 10px; }
.logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--teal-deep); letter-spacing: 0; white-space: nowrap; }
.logo span em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 14px; color: var(--ink); font-weight: 600; font-size: 13.5px;
  border-radius: calc(var(--btn-radius) / 2 + 4px); white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li.open > a { background: var(--mint); color: var(--teal-dark); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px;
  display: none; min-width: 280px; max-height: 70vh; overflow: auto;
}
.dropdown.wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
li.open > .dropdown { display: block; }
li.open > .dropdown.wide { display: grid; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.dropdown a:hover { background: var(--mint-soft); color: var(--teal-dark); }
.dropdown .all-link { font-weight: 700; color: var(--teal); }

.nav-actions { display: flex; align-items: center; gap: 7px; }
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; font-size: 12px; font-weight: 700; }
.lang-switch a { padding: 5px 9px; color: var(--ink-mute); }
.lang-switch a.active { background: var(--teal-deep); color: #fff; }
.currency-select {
  border: 1.5px solid var(--line); border-radius: var(--btn-radius); padding: 5px 7px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--ink-soft);
  background: var(--white); cursor: pointer;
}
.cart-link { position: relative; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 4px 2px; white-space: nowrap; }
.cart-link:hover { color: var(--teal); }
.cart-count {
  position: absolute; top: -10px; right: -14px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 17px; height: 17px;
  display: grid; place-items: center; padding: 0 4px;
}
.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--teal-deep); }

.flash { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 10px; font-size: 14.5px; font-weight: 600; }
.flash-success { background: var(--mint); color: var(--teal-deep); border: 1px solid var(--line); }
.flash-error { background: #fdeeee; color: #b03030; border: 1px solid #f3cccc; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 92px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--btn-radius); box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(42px, 5.6vw, 70px); margin: 24px 0 20px; color: var(--teal-deep); }
.hero h1 .accent { color: var(--gold); }
body.theme-luxury .hero h1 .accent { font-style: italic; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.hero-badge::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* ---------- Clinical cases — never-ending marquee ---------- */
.cases-marquee {
  position: relative; overflow: hidden; width: 100%;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cases-track {
  display: flex; gap: 16px; width: max-content;
  animation: casesScroll 48s linear infinite;
}
.cases-marquee:hover .cases-track { animation-play-state: paused; }
.case-slide {
  flex: 0 0 auto; width: 300px; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; display: block;
  box-shadow: var(--shadow-sm);
}
.case-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-slide:hover img { transform: scale(1.06); }
@keyframes casesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cases-track { animation: none; }
}
@media (max-width: 640px) {
  .case-slide { width: 220px; }
}

.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6; background: var(--mint);
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: color-mix(in srgb, var(--white) 95%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
}
.float-card .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--teal-dark); }
.float-card .lbl { font-size: 12.5px; color: var(--ink-mute); line-height: 1.3; max-width: 130px; }
.float-card.fc1 { top: 26px; left: -34px; }
.float-card.fc2 { bottom: 38px; right: -26px; }

/* ---------- Stats band ---------- */
.stats { background: var(--band-bg); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; color: #fff; }
.stat .lbl { font-size: 12.5px; color: var(--band-fg); margin-top: 4px; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.tint { background: var(--mint-soft); }
.section.sand { background: var(--sand); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); color: var(--teal-deep); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.kicker { color: var(--gold); font-weight: 800; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 12px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 21px; color: var(--teal-deep); }
.card-body h3 a { color: inherit; }
.card-body p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-mute); }
.pill {
  background: var(--mint); color: var(--teal-dark); border-radius: var(--btn-radius);
  padding: 4px 12px; font-size: 12.5px; font-weight: 700;
}
.pill.gold { background: color-mix(in srgb, var(--gold) 14%, var(--white)); color: var(--gold); }
.card-link { font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(4px); }

/* compact service rows */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; transition: all 0.22s ease; color: var(--ink);
}
.service-row:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateX(4px); color: var(--ink); }
.service-row .txt b { display: block; font-size: 15.5px; color: var(--teal-deep); font-family: var(--font-display); font-weight: var(--display-weight); }
.service-row .txt small { color: var(--ink-mute); font-size: 13px; }
.service-row .arrow { margin-left: auto; color: var(--gold); font-weight: 800; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.founder .portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--teal-deep); margin-bottom: 8px; }
.founder .role { color: var(--gold); font-weight: 700; margin-bottom: 20px; }
.founder p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.celebrity-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 48px; }
.quote-card {
  background: var(--band-bg); color: #f0ede6; border-radius: var(--radius-lg);
  padding: 36px 38px; position: relative; overflow: hidden;
}
.quote-card::before { content: "\201C"; position: absolute; top: -18px; right: 18px; font-family: var(--font-display); font-size: 130px; color: rgba(255,255,255,0.08); }
.quote-card p { font-size: 17px; font-style: italic; margin-bottom: 16px; font-family: var(--font-display); }
.quote-card .who { font-weight: 800; letter-spacing: 0.08em; font-size: 13px; color: var(--gold); font-family: var(--font-body); }

.t-grid { columns: 3 300px; column-gap: 22px; }
.t-card {
  break-inside: avoid; margin-bottom: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.t-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 13px; }
.t-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.t-card .who { font-weight: 700; font-size: 14px; color: var(--teal-deep); }

/* ---------- Cases gallery ---------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cases a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: block; }
.cases img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cases a:hover img { transform: scale(1.05); }

/* ---------- Contact strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px; text-align: center; transition: all 0.22s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.contact-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-tile h3 { font-size: 17px; color: var(--teal-deep); }
.contact-tile small { color: var(--ink-mute); display: block; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--cta-bg);
  border-radius: var(--radius-lg); color: #fff;
  padding: 62px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.cta-band p { color: color-mix(in srgb, #ffffff 65%, transparent); max-width: 520px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--hero-bg); padding: 68px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 54px); color: var(--teal-deep); margin-bottom: 12px; max-width: 820px; }
.page-hero p { color: var(--ink-soft); font-size: 17px; max-width: 640px; }
.breadcrumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumbs a { color: var(--gold); font-weight: 700; }

/* ---------- Treatment detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 48px; align-items: start; }
.prose h2 { font-size: 27px; color: var(--teal-deep); margin: 34px 0 14px; }
.prose h3 { font-size: 20px; color: var(--teal-deep); margin: 26px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 30px; aspect-ratio: 16/8; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--mint-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.side-card h3 { font-size: 18px; color: var(--teal-deep); margin-bottom: 14px; }
.side-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.side-card .row:last-of-type { border-bottom: 0; }
.side-card .row b { color: var(--teal-dark); }
.side-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--teal-deep); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--gold); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Pricing ---------- */
.city-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.city-tab {
  padding: 10px 20px; border-radius: var(--btn-radius); border: 1.5px solid var(--line);
  background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s ease; font-family: var(--font-body);
}
.city-tab.active, .city-tab:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.price-city { display: none; }
.price-city.active { display: block; }
.price-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.price-cat h3 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-family: var(--font-body); font-weight: 800; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.price-row:last-child { border-bottom: 0; }
.price-row .nm { color: var(--ink-soft); }
.price-row .pr { font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.pricing-note { max-width: 720px; margin: 36px auto 0; text-align: center; color: var(--ink-mute); font-size: 14px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md); max-width: 660px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--mint-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent);
}
.errorlist { color: #c0392b; font-size: 13px; list-style: none; margin: 4px 0 0; }
.qty-input { width: 64px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius); text-align: center; font-family: var(--font-body); }

/* ---------- Tables ---------- */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-card th { text-align: left; padding: 14px 18px; background: var(--mint-soft); color: var(--teal-deep); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.table-card td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.table-card tr:hover td { background: var(--mint-soft); }
.badge { display: inline-block; padding: 3px 11px; border-radius: var(--btn-radius); font-size: 12px; font-weight: 700; }
.badge-new { background: #fff3da; color: #9a6b14; }
.badge-confirmed, .badge-qualified, .badge-paid { background: var(--mint); color: var(--teal-dark); }
.badge-done, .badge-converted, .badge-fulfilled { background: #e7f6e7; color: #2e7d32; }
.badge-cancelled, .badge-lost { background: #fdeeee; color: #b03030; }
.badge-contacted, .badge-pending { background: #e8eefb; color: #3b5bb5; }

/* ---------- Clinic detail ---------- */
.clinic-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.clinic-hero .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/11; }
.clinic-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.info-rows { display: flex; flex-direction: column; gap: 0; margin: 22px 0 26px; border-top: 1px solid var(--line); }
.info-row { display: flex; gap: 14px; align-items: baseline; font-size: 15px; color: var(--ink-soft); padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row b { color: var(--teal-deep); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; min-width: 90px; }

/* ---------- Articles ---------- */
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/7; margin-bottom: 36px; box-shadow: var(--shadow-md); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-meta { color: var(--ink-mute); font-size: 14px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--band-bg); color: var(--band-fg); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--band-fg); font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .brand { font-family: var(--font-display); color: #fff; font-size: 24px; margin-bottom: 12px; }
.footer .tagline { font-size: 14.5px; max-width: 280px; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; }
.socials a {
  min-width: 40px; height: 34px; border-radius: var(--radius); background: rgba(255,255,255,0.08);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em;
  transition: background 0.2s; padding: 0 10px;
}
.socials a:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 76px); }
.dash-side { background: var(--band-bg); padding: 28px 16px; }
.dash-side a { display: flex; gap: 10px; align-items: center; color: var(--band-fg); padding: 11px 14px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.dash-side a.active, .dash-side a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.dash-main { padding: 36px 40px; background: var(--mint-soft); }
.dash-main h1 { color: var(--teal-deep); font-size: 28px; margin-bottom: 6px; }
.dash-sub { color: var(--ink-mute); margin-bottom: 28px; font-size: 14.5px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.dash-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.dash-card .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--teal-dark); }
.dash-card .lbl { font-size: 13px; color: var(--ink-mute); }
.dash-section { margin-bottom: 30px; }
.dash-section h2 { font-size: 18px; color: var(--teal-deep); margin-bottom: 12px; }
.dash-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- Dashboard charts & calendar ---------- */
.dash-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bar-chart { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.bar-label { color: var(--ink-soft); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--mint-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.bar-fill.alt { background: var(--gold); }
.bar-value { text-align: right; font-weight: 800; color: var(--teal-deep); }

.funnel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 200px; align-items: center; gap: 14px; font-size: 13.5px; }
.funnel-label { font-weight: 700; color: var(--teal-deep); }
.funnel-track { background: var(--mint-soft); border-radius: 10px; height: 34px; overflow: hidden; }
.funnel-fill { display: flex; align-items: center; justify-content: flex-end; height: 100%; min-width: 38px; padding-right: 10px; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); color: #fff; font-weight: 800; border-radius: 10px; }
.funnel-meta { color: var(--ink-mute); font-size: 12.5px; }
@media (max-width: 700px) {
  .funnel-row { grid-template-columns: 90px 1fr; }
  .funnel-meta { grid-column: 2; }
}

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.cal-nav { display: flex; gap: 8px; }
.calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px;
}
.cal-wd { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); padding: 4px 8px; }
.cal-day {
  min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px;
  display: flex; flex-direction: column; gap: 3px; background: var(--white); overflow: hidden;
}
.cal-day.out { opacity: 0.38; background: var(--mint-soft); }
.cal-day.today { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.cal-num { font-size: 12px; font-weight: 800; color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px; text-decoration: none; }
.cal-day.today .cal-num { color: var(--teal-dark); }
.cal-add { opacity: 0; width: 16px; height: 16px; border-radius: 5px; background: var(--teal);
  color: #fff; display: grid; place-items: center; font-size: 12px; line-height: 1;
  transition: opacity 0.15s; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-num:hover { color: var(--teal); }
.cal-event {
  font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--mint); color: var(--teal-dark);
}
.cal-event.status-new { background: #fff3da; color: #9a6b14; }
.cal-event.status-done { background: #e7f6e7; color: #2e7d32; }
.cal-event.status-cancelled { background: #fdeeee; color: #b03030; text-decoration: line-through; }
.cal-more { font-size: 10.5px; color: var(--ink-mute); font-weight: 700; }
@media (max-width: 880px) {
  .dash-2col { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
  .cal-day { min-height: 56px; }
  .cal-event { display: none; }
  .cal-day .cal-num::after { content: ""; }
}

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 70vh; }
.chat-side { background: var(--mint-soft); border-right: 1px solid var(--line); padding: 18px 12px; }
.chat-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); padding: 0 10px 10px; font-family: var(--font-body); }
.chat-side a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.chat-side a.active, .chat-side a:hover { background: var(--mint); color: var(--teal-deep); }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.chat-header h2 { font-size: 18px; color: var(--teal-deep); }
.chat-header small { color: var(--ink-mute); }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; max-height: 56vh; }
.chat-msg { display: flex; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.chat-msg.mine .chat-avatar { background: var(--gold); }
.chat-bubble { max-width: 75%; }
.chat-meta { font-size: 12px; color: var(--ink-mute); margin-bottom: 2px; }
.chat-meta b { color: var(--teal-deep); }
.chat-text { background: var(--mint-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.chat-msg.mine .chat-text { background: var(--mint); }
.chat-file img { max-width: 320px; border-radius: 10px; margin-top: 6px; display: block; }
.chat-file a { font-weight: 700; font-size: 13.5px; }
.chat-composer { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: flex-end; }
.chat-composer textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font-family: var(--font-body); font-size: 14.5px; resize: none; background: var(--mint-soft); }
.chat-composer textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.chat-attach { font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 880px) { .chat-layout { grid-template-columns: 1fr; } .chat-side { display: flex; overflow-x: auto; } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 70px auto; padding: 0 24px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.auth-card h1 { color: var(--teal-deep); font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-mute); font-size: 14.5px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 16px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-mute); }

/* ---------- Video / success ---------- */
.video-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-card video { width: 100%; display: block; max-height: 560px; }
.success-wrap { text-align: center; max-width: 560px; margin: 0 auto; padding: 110px 24px; }
.success-wrap h1 { color: var(--teal-deep); font-size: 38px; margin-bottom: 14px; }
.success-wrap p { color: var(--ink-soft); margin-bottom: 30px; }

/* ---------- Clinics map ---------- */
.clinics-map { height: 480px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); z-index: 1; }
.lds-pin { display: block; width: 20px; height: 20px; border-radius: 50% 50% 50% 0;
  background: var(--teal); transform: rotate(-45deg); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.lds-popup { font-family: var(--font-body); display: flex; flex-direction: column; gap: 6px; }
.lds-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.lds-popup b { font-size: 15px; color: var(--teal-deep); }
.lds-popup small { color: var(--ink-mute); line-height: 1.4; }
.lds-popup .btn { justify-content: center; margin-top: 4px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
@media (max-width: 640px) { .clinics-map { height: 340px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-visual { max-width: 520px; }
  .float-card.fc1 { left: 10px; }
  .float-card.fc2 { right: 10px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .founder, .clinic-hero, .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .celebrity-quotes { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .price-cats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { display: flex; overflow-x: auto; padding: 12px; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .dash-main { padding: 24px 18px; }
}
.mobile-extras { display: none; }

@media (max-width: 1100px) {
  /* header grows to fit its content instead of clipping */
  .nav { height: auto; min-height: 60px; flex-wrap: wrap; padding: 8px 0; row-gap: 4px; }
  /* menu drops right below the header, whatever its height */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 16px 24px 36px; gap: 4px;
    overflow-y: auto; max-height: calc(100vh - 60px); z-index: 99;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 13px 12px; font-size: 16px; }
  .dropdown, .dropdown.wide { position: static; box-shadow: none; border: none; min-width: 0; display: none; padding: 0 0 0 14px; max-height: none; }
  li.open > .dropdown, li.open > .dropdown.wide { display: block; }
  .burger { display: block; }
  /* header keeps only logo + CTA + burger; the rest moves into the menu */
  .nav-actions > .lang-switch, .nav-actions > .currency-select, .nav-actions > .cart-link { display: none; }
  .mobile-extras { display: flex; flex-direction: column; gap: 14px; margin-top: 16px;
    padding-top: 16px; border-top: 1px solid var(--line); }
  .mobile-extras .me-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .mobile-extras .cart-link { font-size: 15px; }
  .mobile-extras .lang-switch a { padding: 7px 13px; font-size: 13px; }
  .mobile-extras .currency-select { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 420px) {
  .nav-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Shop packages ---------- */
.pkg-card form { margin-top: auto; }
.pkg-badge {
  align-self: flex-start; margin-bottom: 10px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
}
.pkg-includes { list-style: none; padding: 0; margin: 4px 0 14px; }
.pkg-includes li { font-size: 13.5px; color: var(--ink-soft); padding: 3px 0 3px 22px; position: relative; }
.pkg-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.pkg-includes .pkg-includes-head {
  padding-left: 0; font-weight: 700; color: var(--teal-deep); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 11.5px; margin-bottom: 2px;
}
.pkg-includes .pkg-includes-head::before { content: none; }

/* ---------- Add-to-cart popup ---------- */
.cart-popup-overlay {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 42, 35, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: 20px; animation: cpFade 0.2s ease;
}
.cart-popup {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 540px; max-height: 90vh; overflow: auto;
  padding: 30px clamp(20px, 4vw, 38px); animation: cpPop 0.25s ease;
}
.cart-popup-close {
  position: absolute; top: 14px; right: 16px; font-size: 20px; line-height: 1;
  color: var(--ink-mute); width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%;
}
.cart-popup-close:hover { background: var(--mint); color: var(--teal-dark); }
.cart-popup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cart-popup-check {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--teal-dark); font-size: 24px; font-weight: 800;
}
.cart-popup-kicker {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal);
}
.cart-popup-head h3 { font-size: 20px; color: var(--teal-deep); margin: 2px 0 0; }
.cart-popup-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 14px;
}
.cart-popup-line b { color: var(--teal-deep); font-size: 17px; }
.pkg-includes-popup { margin: 14px 0 0; }
.cart-popup-actions { display: flex; gap: 10px; margin-top: 20px; }
.cart-popup-actions .btn { flex: 1; justify-content: center; }
.cart-popup-related { margin-top: 26px; }
.cart-popup-related-head { margin-bottom: 12px; }
.cart-popup-related-head strong { display: block; color: var(--teal-deep); font-size: 15.5px; }
.cart-popup-related-head small { color: var(--ink-mute); font-size: 13px; }
.related-grid { display: grid; gap: 10px; }
.related-card {
  display: flex; align-items: center; gap: 12px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.related-thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.related-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.related-price { color: var(--gold); font-weight: 800; font-size: 13.5px; }
.related-add { white-space: nowrap; }
@keyframes cpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Clinical cases lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; gap: clamp(6px, 2vw, 24px);
  background: rgba(12, 28, 24, 0.92); padding: clamp(14px, 4vw, 48px);
}
.lightbox.open { display: flex; animation: cpFade 0.2s ease; }
.lightbox-stage { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center; }
.lightbox-stage img {
  max-width: 100%; max-height: 80vh; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5); object-fit: contain;
}
.lightbox-stage figcaption { color: #e8efec; margin-top: 14px; font-size: 14px; font-weight: 600; }
.lightbox-arrow, .lightbox-close {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s ease;
}
.lightbox-arrow { width: 56px; height: 56px; font-size: 34px; flex: 0 0 auto; line-height: 1; }
.lightbox-arrow:hover, .lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 22px; }
@media (max-width: 640px) {
  .lightbox-arrow { width: 44px; height: 44px; font-size: 26px; }
}
