/* Design: B-3-delta-III | font:outfit | palette:navy-copper-ink | extras:waves,chart,urgency | hash:tp24tr-v2 | hl:flat */
/* ============================================================
   TestosPrime [TR] — Monobrand Nutra Landing
   Mobile-first. 2 themes. 22 sections. Navy-copper masculine palette.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Brand (navy-copper masculine palette) */
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #60a5fa;
  --primary-rgb: 30, 64, 175;
  --accent: #c2410c;
  --accent-dark: #7c2d12;
  --accent-rgb: 194, 65, 12;

  /* Surfaces — light mode (cool tinted ink) */
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #e5eaf5;
  --dark-bg: #0c1a2e;
  --border: #d3dbe9;
  --text: #0f1729;
  --text-soft: #475467;
  --text-muted: #667085;

  /* States */
  --success: #17a85a;
  --success-bg: #e6f7ee;
  --danger: #d44040;
  --danger-bg: #fbeaea;
  --warning: #e6a23c;
  --star-color: #f4b740;

  /* Discount */
  --discount-bg: linear-gradient(135deg, #ff5a4a, #c62f1f);
  --discount-color: #ffffff;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,26,26,.06), 0 1px 2px rgba(15,26,26,.04);
  --shadow-md: 0 4px 14px rgba(15,26,26,.08), 0 2px 6px rgba(15,26,26,.05);
  --shadow-lg: 0 16px 40px rgba(15,26,26,.12), 0 6px 18px rgba(15,26,26,.06);

  /* Fonts */
  --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --section-py: 48px;
  --section-py-m: 36px;
}

[data-theme="dark"] {
  --bg: #0c1a2e;
  --bg-soft: #142943;
  --bg-card: #1a3257;
  --bg-muted: #243d68;
  --border: #2e4a78;
  --text: #e7eef9;
  --text-soft: #b6c2d9;
  --text-muted: #8b97b3;
  --primary-light: #93c5fd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);
}
[data-theme="light"] {
  /* explicit light mirrors root */
  --bg: #f4f6fb;
  --bg-card: #ffffff;
  --text: #0f1729;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 1.85rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
h2::after {
  content: ""; display: block; width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .6;
  border-radius: 2px; margin-top: 12px;
}
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: var(--section-py) 0; }
.section-head { text-align: center; margin-bottom: 2rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-soft); }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { top: 0; }

/* ---------- HIGHLIGHT (flat underline only) ---------- */
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(var(--primary-rgb), .35) 62%, rgba(var(--primary-rgb), .35) 100%);
  padding: 0 3px; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-weight: 600;
}
.hl-accent {
  background: linear-gradient(180deg, transparent 62%, rgba(var(--accent-rgb), .38) 62%, rgba(var(--accent-rgb), .38) 100%);
  padding: 0 3px; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-weight: 600;
}
.hl-strong { color: var(--primary-dark); font-weight: 700; }
[data-theme="dark"] .hl-strong { color: var(--primary-light); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem;
  border: none; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .45); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn-discount-pill { position: relative; padding-right: 58px; }
.btn-discount-pill::after {
  content: "-50%"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--discount-bg); color: var(--discount-color); padding: 3px 8px;
  border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.pulse-cta { animation: pulse-cta 2.2s ease-in-out infinite; }
@keyframes pulse-cta {
  0%, 100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); }
  50% { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(var(--primary-rgb), .55); }
}

/* ---------- PRICE ---------- */
.price-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price-row { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.price-new { font-size: 2.4rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -.02em; }
[data-theme="dark"] .price-new { color: var(--primary-light); }
.price-old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.price-badge {
  display: inline-block; background: var(--discount-bg); color: var(--discount-color);
  padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem;
  animation: badge-pulse 2s ease-in-out infinite;
}
.price-badge--sm { padding: 2px 8px; font-size: .72rem; }
@keyframes badge-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* SERP line mirror */
.serp-line { display: inline-flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--text-soft); margin: 8px 0; flex-wrap: wrap; }
.serp-line .dot { color: var(--text-muted); }
.serp-line .star { color: var(--star-color); }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- PROMO BAR ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
  color: #fff; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 600; letter-spacing: .02em; overflow: hidden; position: relative;
}
.promo-bar::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: shimmer 3s linear infinite; transform: translateX(-100%);
  pointer-events: none;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.promo-bar span { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; z-index: 1; position: relative; white-space: nowrap; }
.promo-bar .promo-track { display: flex; align-items: center; flex-wrap: nowrap; width: max-content; will-change: transform; }
@media (max-width: 768px) {
  .promo-bar .promo-track { animation: promo-marquee 22s linear infinite; }
}
@keyframes promo-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; height: 68px; backdrop-filter: blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  background: var(--bg-muted); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.theme-toggle svg { width: 18px; height: 18px; }
.hamburger {
  display: none; width: 40px; height: 40px; background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: var(--radius-sm); flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 18px; }
.hero-lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 20px; max-width: 540px; }
.hero-image-desktop { position: relative; text-align: center; }
.hero-image-desktop::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .25), transparent 65%); z-index: 0;
}
.hero-image-desktop img { position: relative; z-index: 1; max-height: 520px; width: auto; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.12)); }
.hero-image-mobile { display: none; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.trust-pill {
  background: var(--bg-muted); border: 1px solid var(--border); color: var(--text-soft);
  font-size: .82rem; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.trust-pill b { color: var(--primary-dark); }
[data-theme="dark"] .trust-pill b { color: var(--primary-light); }
.urgency-bar {
  background: linear-gradient(90deg, #ff6a3a, #e63946); color: #fff; padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; display: inline-flex;
  align-items: center; gap: 8px; animation: urgency-pulse 2s ease-in-out infinite; margin: 12px 0;
}
@keyframes urgency-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,.4); } 50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hero .price-block { align-items: flex-start; text-align: left; margin: 8px 0; }
.hero .price-row { justify-content: flex-start; }

.hero-badges { position: absolute; inset: 0; pointer-events: none; }
.hb {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 6px;
}
.hb-oficial { top: 10%; left: 4%; color: var(--success); border-color: var(--success); }
.hb-rating { top: 45%; right: 2%; }
.hb-delivery { bottom: 10%; left: 8%; color: var(--primary-dark); }

/* ---------- TRUST BAR ---------- */
.trustbar { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trustbar-item { padding: 8px; }
.trustbar-item .num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); display: block; }
[data-theme="dark"] .trustbar-item .num { color: var(--primary-light); }
.trustbar-item .lbl { font-size: .88rem; color: var(--text-soft); }

/* ---------- 2-COL GRID ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- BENEFITS CARDS ---------- */
.benefit-card { text-align: center; }
.benefit-card .emoji { display: block; font-size: 2.2rem; margin-bottom: 10px; text-align: center; }
.benefit-card h3 { color: var(--primary-dark); }
[data-theme="dark"] .benefit-card h3 { color: var(--primary-light); }

/* ---------- MECHANISM CARDS ---------- */
.mech-card { border-left: 4px solid var(--primary); padding-left: 18px; padding-top: 0; padding-bottom: 0; background: transparent; border-radius: 0; border-top: none; border-right: none; border-bottom: none; }
.mech-card h3 { margin-bottom: 4px; }

/* ---------- INGREDIENTS (V2 colored headers) ---------- */
.ing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ing-card { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.ing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ing-header { padding: 14px 18px; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.ing-body { padding: 16px 18px; font-size: .92rem; color: var(--text-soft); }
.ing-body b { color: var(--text); }
.ing-pmid { font-size: .75rem; color: var(--text-muted); margin-top: 6px; display: block; }
.ing-green { background: linear-gradient(135deg, #13a26a, #0d7f52); }
.ing-blue { background: linear-gradient(135deg, #2575d6, #1a5cad); }
.ing-purple { background: linear-gradient(135deg, #8a4bd6, #6a32b2); }
.ing-orange { background: linear-gradient(135deg, #e88a2a, #b86815); }
.ing-teal { background: linear-gradient(135deg, #0d9188, #075551); }
.ing-rose { background: linear-gradient(135deg, #d6486d, #a12b4e); }

/* ---------- COMPARISON TABLE ---------- */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: .93rem; }
.cmp-table th { background: var(--bg-muted); font-weight: 700; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; font-weight: 600; }
.cmp-table td.yes { color: var(--success); font-weight: 700; }
.cmp-table td.no { color: var(--danger); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr.highlight td { background: rgba(var(--primary-rgb), .08); }

/* ---------- QUIZ ---------- */
.quiz {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--accent-rgb), .06));
  border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border);
  max-width: 720px; margin: 0 auto;
}
[data-theme="dark"] .quiz {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .18), rgba(var(--accent-rgb), .14));
  border-color: rgba(var(--primary-rgb), .3);
}
.quiz-q { margin-bottom: 18px; display: none; }
.quiz-q.active { display: block; }
.quiz-q h3, .quiz-q h4 { margin-bottom: 14px; color: var(--text); font-size: 1.15rem; line-height: 1.4; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-opt {
  padding: 14px 16px; background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; text-align: left;
  font-size: .98rem; color: var(--text); line-height: 1.35;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  box-shadow: var(--shadow-sm);
}
.quiz-opt:hover { border-color: var(--primary); transform: translateY(-1px); background: rgba(var(--primary-rgb), .04); }
[data-theme="dark"] .quiz-opt {
  background: var(--bg-soft); border-color: var(--border); color: var(--text);
}
[data-theme="dark"] .quiz-opt:hover { background: rgba(var(--primary-rgb), .14); border-color: var(--primary-light); }
.quiz-opt.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.quiz-progress { height: 8px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .3s ease; width: 20%; }
.quiz-result { display: none; text-align: center; padding: 20px; }
.quiz-result.show { display: block; }
.quiz-meter { width: 100%; max-width: 320px; height: 18px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; margin: 16px auto; }
.quiz-meter-bar { height: 100%; background: linear-gradient(90deg, #d44040, #e6a23c, var(--primary)); width: 0%; transition: width 1.2s ease; }

/* ---------- PERSONAS ---------- */
.persona-card { text-align: center; }
.persona-card .icon { font-size: 2.4rem; margin-bottom: 8px; text-align: center; display: block; }
.persona-card h3 { color: var(--accent-dark); }

/* ---------- TIMELINE (comoActua) ---------- */
.timeline { position: relative; padding-left: 32px; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 2px; }
.tl-step { position: relative; padding: 12px 0 24px; }
.tl-step::before { content: ""; position: absolute; left: -28px; top: 14px; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--primary); }
.tl-step h3 { color: var(--primary-dark); margin-bottom: 4px; }
[data-theme="dark"] .tl-step h3 { color: var(--primary-light); }
.tl-step .day { font-size: .85rem; font-weight: 700; color: var(--accent-dark); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- HOW TO ORDER ---------- */
.howto-order { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; }
.howto-order h2 { color: #fff; }
.howto-order h2::after { background: rgba(255,255,255,.5); }
.howto-order .section-head p { color: rgba(255,255,255,.8); }
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.howto-step { position: relative; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-md); padding: 28px 22px; text-align: center; }
.howto-step .os-num { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.howto-tile { width: 84px; height: 84px; border-radius: var(--radius-md); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.howto-tile svg { width: 44px; height: 44px; color: #fff; }
.howto-step h4 { color: #fff; margin-bottom: 8px; font-size: 1.05rem; }
.howto-step p { color: rgba(255,255,255,.75); font-size: .92rem; margin: 0; }

/* ---------- MID CTA ---------- */
.midcta { background: linear-gradient(135deg, var(--dark-bg), var(--primary-dark)); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
.midcta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.midcta h2 { color: #fff; }
.midcta h2::after { background: rgba(255,255,255,.5); }
.midcta p { color: rgba(255,255,255,.85); }
.midcta img { max-height: 260px; margin: 0 auto; }
.midcta .price-new { color: #fff; }
.midcta .price-old { color: rgba(255,255,255,.55); }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card { position: relative; }
.testi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.testi-name { font-weight: 700; margin: 0; font-size: .95rem; }
.testi-city { font-size: .8rem; color: var(--text-muted); margin: 0; }
.testi-stars { color: var(--star-color); font-size: .9rem; margin-bottom: 6px; }
.testi-body { font-size: .93rem; color: var(--text-soft); }
.testi-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--success); margin-top: 8px; background: var(--success-bg); padding: 3px 8px; border-radius: 999px; }

/* ---------- DOCTOR ---------- */
.doctor-rec { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 3px; border-radius: var(--radius-lg); }
.doctor-rec-inner { background: var(--bg-card); border-radius: calc(var(--radius-lg) - 3px); padding: 28px; }
.doctor-rec-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.doctor-rec-badges span { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.doctor-rec-badges .bg-field { background: rgba(var(--primary-rgb), .12); color: var(--primary-dark); }
[data-theme="dark"] .doctor-rec-badges .bg-field { color: var(--primary-light); }
.doctor-rec-badges .bg-rec { background: linear-gradient(135deg, #f4b740, #c77c2a); color: #fff; }
.doctor-rec-quote { position: relative; font-size: 1.05rem; line-height: 1.7; color: var(--text); padding-left: 28px; margin: 14px 0 20px; font-style: italic; }
.doctor-rec-quote::before { content: "\201C"; position: absolute; left: 0; top: -8px; font-size: 3rem; color: var(--accent); line-height: 1; font-style: normal; }
.doctor-rec-profile { display: flex; gap: 16px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.doctor-rec-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.doctor-rec-info h4 { margin: 0 0 2px; font-size: 1.05rem; }
.doctor-rec-info p { margin: 0; font-size: .86rem; color: var(--text-soft); }
.doctor-rec-reg { display: inline-block; margin-top: 6px; background: var(--success-bg); color: var(--success); padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 700; }
.doctor-rec-org { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
[data-theme="dark"] .doctor-rec-inner { background: var(--bg-card); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 16px 56px 16px 20px;
  text-align: left; font-weight: 600; font-size: 1rem; color: var(--text);
  display: block; position: relative; line-height: 1.5;
}
.faq-q:hover { color: var(--primary); }
.faq-q .plus {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%);
  width: 22px; height: 22px; flex-shrink: 0; transition: transform .2s ease;
}
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--primary); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: opacity .2s ease; }
.faq-item.open .faq-q .plus::after { opacity: 0; }
/* Highlights inside FAQ questions: keep flat underline but no padding gap */
.faq-q .hl, .faq-q .hl-accent { padding: 0; border-radius: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--text-soft); }

/* ---------- FINAL CTA / FORM ---------- */
.final-cta { background: linear-gradient(135deg, rgba(var(--primary-rgb), .06), rgba(var(--accent-rgb), .05)); border-radius: var(--radius-lg); padding: 40px; }
.final-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.final-cta-checklist { list-style: none; padding: 0; margin: 16px 0; }
.final-cta-checklist li { padding: 8px 0 8px 28px; position: relative; }
.final-cta-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

.order-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-md); }
.order-form h3 { margin-bottom: 6px; }
.order-form .price-row { margin: 8px 0 16px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.form-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: var(--bg-soft); color: var(--text); transition: border-color .15s ease; }
.form-field input:focus { outline: none; border-color: var(--primary); }
.phone-group { display: flex; gap: 8px; }
.phone-prefix { flex-shrink: 0; padding: 12px 14px; background: var(--bg-muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; color: var(--text); min-width: 70px; text-align: center; }
.phone-group input { flex: 1; }
.form-submit { width: 100%; padding: 15px; font-size: 1.05rem; }
.md-icon { width: 20px; height: 20px; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.form-trust-row { display: flex; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); }
.form-trust-row span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- PHARMACIES / RETAILERS ---------- */
.pharma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pharma-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pharma-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.pharma-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.pharma-status { font-size: .8rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.status-yes { background: var(--success-bg); color: var(--success); }
.status-no { background: #fef2e0; color: var(--warning); }

/* ---------- STICKY CTA V3 (mobile) ---------- */
.sticky-cta {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 90; display: none;
  background: linear-gradient(135deg, var(--dark-bg), var(--primary-dark));
  color: #fff; border-radius: var(--radius-md); padding: 10px 12px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.25);
  align-items: center; gap: 10px;
}
.sticky-cta img { width: 48px; height: 48px; border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.sticky-cta-info { flex: 1; min-width: 0; }
.sticky-cta-name { font-weight: 700; font-size: .88rem; }
.sticky-cta-price { font-size: .88rem; display: flex; gap: 6px; align-items: baseline; }
.sticky-cta-price b { color: #fff; font-size: 1.05rem; }
.sticky-cta-price s { color: rgba(255,255,255,.55); font-size: .75rem; }
.sticky-cta .btn { padding: 10px 16px; font-size: .9rem; flex-shrink: 0; }
.sticky-cta.show { display: flex; }

/* ---------- POPUP B (modal) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 200;
  visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease;
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.modal-overlay.open { visibility: visible; opacity: 1; }
.modal-card {
  background: #0f1a1a; color: #fff; border-radius: var(--radius-lg);
  max-width: min(440px, calc(100vw - 20px)); max-height: calc(100dvh - 20px);
  width: 100%; overflow: hidden; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border: 1px solid rgba(var(--primary-rgb), .3);
}
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px;
  background: rgba(255,255,255,.1); border: none; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.modal-shimmer {
  background: linear-gradient(90deg, #f4b740, #ffd700, #c77c2a); color: #0f1a1a;
  padding: 7px 10px; text-align: center; font-weight: 800; font-size: .82rem; position: relative; overflow: hidden;
}
.modal-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 2.4s linear infinite; }
.modal-body { padding: 16px; }
.modal-body img.modal-product { max-height: 110px; margin: 4px auto 8px; display: block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.modal-brand { text-align: center; font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.modal-sub { text-align: center; font-size: .85rem; color: rgba(255,255,255,.7); margin: 0 0 10px; }
.modal-rating { display: flex; justify-content: center; gap: 6px; align-items: center; margin-bottom: 10px; font-size: .82rem; }
.modal-rating .stars { color: var(--star-color); }
.modal-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.modal-price .was { background: rgba(212,64,64,.15); border: 1px solid rgba(212,64,64,.35); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.modal-price .was s { color: #ff8a8a; font-size: 1.1rem; font-weight: 700; }
.modal-price .was .lbl { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.modal-price .now { background: rgba(23,168,90,.15); border: 1px solid rgba(23,168,90,.4); border-radius: var(--radius-sm); padding: 10px; text-align: center; box-shadow: 0 0 0 2px rgba(38,166,159,.3); position: relative; }
.modal-price .now b { color: #4fe37c; font-size: 1.4rem; font-weight: 800; }
.modal-price .now .lbl { font-size: .7rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .05em; }
.modal-discount-float { position: absolute; top: -8px; right: -8px; background: var(--discount-bg); color: #fff; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.modal-form .form-field { margin-bottom: 8px; }
.modal-form .form-field input { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); padding: 10px 12px; }
.modal-form .form-field input::placeholder { color: rgba(255,255,255,.5); }
.modal-form .phone-prefix { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; padding: 10px 12px; }
.modal-form .btn { width: 100%; padding: 13px; font-size: 1rem; }
.modal-trust { display: flex; justify-content: center; gap: 10px; margin-top: 8px; font-size: .68rem; color: rgba(255,255,255,.65); flex-wrap: wrap; }

/* ---------- GUARANTEE ---------- */
.guarantee { background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--accent-rgb), .06)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.guarantee-icon { font-size: 3rem; margin-bottom: 10px; }
.guarantee h3 { color: var(--primary-dark); font-size: 1.4rem; }
[data-theme="dark"] .guarantee h3 { color: var(--primary-light); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark-bg); color: #d0dcdb; padding: 40px 0 20px; margin-top: 48px; }
.site-footer .container { padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 24px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { color: #a5b4b3; display: block; padding: 4px 0; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .88rem; color: #a5b4b3; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: .82rem; color: #8ea09f; text-align: center; }
.footer-disclaimer { font-size: .75rem; color: #7a8a8a; margin-top: 12px; line-height: 1.5; }

/* ---------- PHARMACY PAGE (subpage) ---------- */
.subpage-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--bg-muted), var(--bg)); border-bottom: 1px solid var(--border); }
.subpage-hero .breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.subpage-hero .breadcrumb a { color: var(--text-muted); }
.subpage-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.subpage-hero .lead { font-size: 1.05rem; color: var(--text-soft); max-width: 720px; }
.availability-alert { border-radius: var(--radius-md); padding: 18px 20px; margin: 18px 0; font-weight: 600; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.av-yes { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.av-no { background: #fef4e8; border-color: var(--warning); color: #a85a15; }
.av-risk { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.sub-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.sub-sidebar { position: sticky; top: 88px; }
.sub-mini-product { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.sub-mini-product img { max-height: 180px; margin: 0 auto 10px; }
.reason-card { margin-bottom: 14px; }
.reason-card h3 { color: var(--primary-dark); font-size: 1.1rem; }
[data-theme="dark"] .reason-card h3 { color: var(--primary-light); }
.cross-links { background: var(--bg-muted); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; }
.cross-links h3 { font-size: 1.05rem; margin-bottom: 10px; }
.cross-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cross-links-grid a { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; color: var(--text); display: block; }
.cross-links-grid a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- STUDY / CHART SECTION ---------- */
.study-section { background: var(--dark-bg); color: #fff; border-radius: var(--radius-lg); padding: 36px 28px; }
.study-section h2 { color: #fff; }
.study-section h2::after { background: rgba(255,255,255,.5); }
.chart-bars { display: grid; gap: 14px; margin-top: 16px; }
.chart-bar { background: rgba(255,255,255,.08); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.chart-bar-fill { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 32px; padding: 0 12px; display: flex; align-items: center; color: #fff; font-weight: 700; font-size: .9rem; width: 0; transition: width 1.2s ease; }
.chart-bar-lbl { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.9); font-size: .82rem; }

/* ---------- SUBPAGE TOP OFFER BOX ---------- */
.subpage-offer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  border-radius: var(--radius-lg); padding: 28px;
  color: #fff; box-shadow: var(--shadow-lg);
  margin: 24px auto 8px;
  max-width: 1080px;
}
.subpage-offer-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 320px);
  gap: 28px; align-items: center;
}
.subpage-offer-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.subpage-offer-img img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.4));
  margin: 0 auto;
}
.subpage-offer-info { text-align: left; }
.subpage-offer-info h2 { color: #fff; margin: 0 0 10px; font-size: 1.55rem; line-height: 1.2; }
.subpage-offer-info h2::after { display: none; }
.subpage-offer-info p { color: rgba(255,255,255,.92); margin: 0 0 14px; font-size: 1rem; line-height: 1.5; }
.subpage-offer-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.subpage-offer-pills span {
  background: rgba(255,255,255,.18); color: #fff; padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.22);
}
.subpage-offer-price { display: flex; gap: 14px; align-items: baseline; margin: 14px 0; flex-wrap: wrap; }
.subpage-offer-price .now { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.subpage-offer-price .was { font-size: 1.15rem; color: rgba(255,255,255,.6); text-decoration: line-through; }
.subpage-offer-price .badge {
  background: linear-gradient(135deg, #ff5a4a, #c62f1f); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800;
}
.subpage-offer-urgency {
  background: rgba(255,255,255,.12);
  border-left: 3px solid #ffd166;
  padding: 8px 12px; border-radius: 8px;
  font-size: .88rem; color: #fff; margin: 4px 0 12px;
}
.subpage-offer-form {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(6px);
  width: 100%;
}
.subpage-offer-form h3 { color: #fff; text-align: center; margin: 0 0 12px; font-size: 1.05rem; }
.subpage-offer-form .form-field input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.subpage-offer-form .form-field input::placeholder { color: rgba(255,255,255,.65); }
.subpage-offer-form .form-field label { color: rgba(255,255,255,.85); }
.subpage-offer-form .phone-prefix { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.subpage-offer-form .btn-primary,
.subpage-offer-form .form-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  width: 100%;
}
.subpage-offer-form .btn-primary:hover,
.subpage-offer-form .form-submit:hover { background: linear-gradient(135deg, #e85518, var(--accent-dark)); }
@media (max-width: 980px) {
  .subpage-offer-grid {
    grid-template-columns: 160px minmax(0,1fr);
    grid-template-areas: "img info" "form form";
    gap: 22px;
  }
  .subpage-offer-img { grid-area: img; }
  .subpage-offer-info { grid-area: info; }
  .subpage-offer-form { grid-area: form; max-width: 520px; margin: 0 auto; }
  .subpage-offer-img img { max-width: 150px; }
}
@media (max-width: 640px) {
  .subpage-offer { padding: 20px; }
  .subpage-offer-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "info" "form";
    gap: 16px; justify-items: center; text-align: center;
  }
  .subpage-offer-info { text-align: center; }
  .subpage-offer-info h2 { font-size: 1.3rem; }
  .subpage-offer-img img { max-width: 130px; }
  .subpage-offer-pills { justify-content: center; }
  .subpage-offer-price { justify-content: center; }
  .subpage-offer-price .now { font-size: 2rem; }
  .subpage-offer-form { max-width: 460px; }
}

/* ---------- LEGAL PAGES ---------- */
.legal-content { max-width: 840px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin-top: 28px; }
.legal-content h3 { font-size: 1.15rem; margin-top: 20px; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 6px; color: var(--text-soft); }

/* ============================================================
   RESPONSIVE  (mobile-first override layer)
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: var(--section-py-m); }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 16px; gap: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .hamburger { display: flex; }
  .hero { padding: 28px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 1.8rem; margin-bottom: 10px; }
  .hero-image-desktop { display: none; }
  .hero-image-mobile { display: block; position: relative; margin: 12px auto; max-width: 320px; }
  .hero-image-mobile::before { content: ""; position: absolute; inset: 0; margin: auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), .25), transparent 65%); z-index: 0; }
  .hero-image-mobile img { position: relative; z-index: 1; max-height: 260px; margin: 0 auto; }
  .hero-badges { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .ing-grid { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .midcta-grid { grid-template-columns: 1fr; text-align: center; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 24px; }
  .pharma-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .sub-grid { grid-template-columns: 1fr; }
  .sub-sidebar { position: static; }
  .subpage-hero h1 { font-size: 1.65rem; }
  body { padding-bottom: 78px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 16px; }
  .price-new { font-size: 2rem; }
  .pharma-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; font-size: .95rem; }
  .ing-grid, .grid-3 { grid-template-columns: 1fr; }
}

/* Disable mobile sticky on desktop */
@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ============================================================
   POLISH PASS — items 2,3,4,5,6,7,8,11,12
   ============================================================ */

/* Item 2 — Encouraging breathing pulse on primary purchase CTAs */
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 8px 20px rgba(var(--accent-rgb), .25), 0 0 0 0 rgba(var(--accent-rgb), .55); }
  50%      { box-shadow: 0 12px 26px rgba(var(--accent-rgb), .35), 0 0 0 12px rgba(var(--accent-rgb), 0); }
}
@keyframes cta-shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  60%  { transform: translateX(220%)  skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}
.pulse-cta, .form-submit { position: relative; overflow: hidden; animation: cta-breathe 2.8s ease-in-out infinite; }
.pulse-cta::after, .form-submit::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.4) 50%, transparent 75%);
  transform: translateX(0) skewX(-20deg);
  animation: cta-shine 5s ease-in-out infinite; pointer-events: none;
}
.pulse-cta:hover, .form-submit:hover { animation-play-state: paused; }

/* Item 3 — Colorful card variants (rotate accents, stop monotone) */
.ing-grid > .card:nth-child(6n+1) { border-top: 4px solid #1e40af; }
.ing-grid > .card:nth-child(6n+2) { border-top: 4px solid #c2410c; }
.ing-grid > .card:nth-child(6n+3) { border-top: 4px solid #16a34a; }
.ing-grid > .card:nth-child(6n+4) { border-top: 4px solid #9333ea; }
.ing-grid > .card:nth-child(6n+5) { border-top: 4px solid #f59e0b; }
.ing-grid > .card:nth-child(6n)   { border-top: 4px solid #db2777; }

.benefit-card:nth-child(6n+1) { background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(30,64,175,.02)); border-left: 3px solid #1e40af; }
.benefit-card:nth-child(6n+2) { background: linear-gradient(135deg, rgba(194,65,12,.06), rgba(194,65,12,.02)); border-left: 3px solid #c2410c; }
.benefit-card:nth-child(6n+3) { background: linear-gradient(135deg, rgba(22,163,74,.06), rgba(22,163,74,.02)); border-left: 3px solid #16a34a; }
.benefit-card:nth-child(6n+4) { background: linear-gradient(135deg, rgba(147,51,234,.06), rgba(147,51,234,.02)); border-left: 3px solid #9333ea; }
.benefit-card:nth-child(6n+5) { background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(245,158,11,.02)); border-left: 3px solid #f59e0b; }
.benefit-card:nth-child(6n)   { background: linear-gradient(135deg, rgba(219,39,119,.06), rgba(219,39,119,.02)); border-left: 3px solid #db2777; }

.persona-card:nth-child(4n+1) { box-shadow: 0 6px 20px rgba(30,64,175,.12), inset 0 0 0 1px rgba(30,64,175,.18); }
.persona-card:nth-child(4n+2) { box-shadow: 0 6px 20px rgba(194,65,12,.12), inset 0 0 0 1px rgba(194,65,12,.18); }
.persona-card:nth-child(4n+3) { box-shadow: 0 6px 20px rgba(22,163,74,.12), inset 0 0 0 1px rgba(22,163,74,.18); }
.persona-card:nth-child(4n)   { box-shadow: 0 6px 20px rgba(147,51,234,.12), inset 0 0 0 1px rgba(147,51,234,.18); }

[data-theme="dark"] .benefit-card:nth-child(6n+1),
[data-theme="dark"] .benefit-card:nth-child(6n+2),
[data-theme="dark"] .benefit-card:nth-child(6n+3),
[data-theme="dark"] .benefit-card:nth-child(6n+4),
[data-theme="dark"] .benefit-card:nth-child(6n+5),
[data-theme="dark"] .benefit-card:nth-child(6n)   { background: var(--bg-card); }

/* Item 4 — Tables must NOT cause horizontal scroll on mobile */
table { width: 100% !important; max-width: 100%; border-collapse: collapse; table-layout: fixed; }
table th, table td { word-wrap: break-word; overflow-wrap: anywhere; }
.table-wrap, .compare-table-wrap, .price-table-wrap { overflow-x: visible !important; max-width: 100%; }
@media (max-width: 640px) {
  table, table thead, table tbody, table tr, table th, table td { font-size: .85rem; padding: 8px 6px; }
  .compare-table th:first-child, .compare-table td:first-child { width: 38%; }
}

/* Item 5 — Header hides on scroll-down, returns on scroll-up */
.site-header { transition: transform .25s ease; will-change: transform; }
.site-header.is-hidden { transform: translateY(-110%); }

/* Item 6 — Footer in 2 centered vertical rows */
.footer-grid { grid-template-columns: repeat(2, minmax(0, 240px)) !important; justify-content: center; max-width: 640px; margin-left: auto; margin-right: auto; gap: 32px 56px; }
.footer-col { text-align: center; }
.footer-col a { display: block; padding: 6px 0; }
.footer-col h4 { text-align: center; }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr !important; max-width: 320px; } }

/* Item 7 — SVG person icon in name fields (offer-box + popup) */
.subpage-offer-form input[name="name"],
.modal-form input[name="name"],
.order-form-dc input[name="name"],
.hero-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  padding-left: 40px !important;
}
[data-theme="dark"] .subpage-offer-form input[name="name"],
[data-theme="dark"] .modal-form input[name="name"],
[data-theme="dark"] .order-form-dc input[name="name"],
[data-theme="dark"] .hero-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b6c2d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>");
}
.subpage-offer-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.85'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>");
}

/* Item 8 — Premium font for sticky bar + discount badge */
.sticky-cta { font-family: 'Playfair Display', 'Outfit', Georgia, serif; letter-spacing: .01em; }
.sticky-cta-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: .95rem; letter-spacing: .015em; }
.sticky-cta-sub { font-family: 'Outfit', sans-serif; font-weight: 500; opacity: .8; font-size: .78rem; }
.sticky-cta-price { font-family: 'Outfit', sans-serif; }
.sticky-cta-badge {
  display: inline-flex; align-items: center;
  background: var(--discount-bg); color: #fff; font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: .72rem; padding: 2px 8px; border-radius: 999px;
  margin-left: 4px; letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(198,47,31,.4);
}
.sticky-cta img { box-shadow: 0 4px 10px rgba(0,0,0,.2); }

/* Item 12 — Visual polish: card centering, small typographic fixes */
.card, .ing-card, .benefit-card, .persona-card, .step-card { text-align: left; }
.ing-card h3, .benefit-card h3, .persona-card h3 { line-height: 1.35; }
.faq-q { word-break: normal; overflow-wrap: anywhere; }

/* Polite focus ring for accessibility (item 11) */
.btn:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-cta, .form-submit { animation: none; }
  .pulse-cta::after, .form-submit::after { animation: none; display: none; }
  .promo-bar .promo-track { animation: none !important; }
}

/* ============================================================
   READABILITY + FORM-VISIBILITY PASS
   - Make .hl/.hl-accent visible in dark theme
   - Make modal + offer-box inputs strongly visible
   - Strengthen text contrast where it was failing
   ============================================================ */

/* Highlights — much brighter on dark backgrounds (was invisible at .35 alpha) */
[data-theme="dark"] .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(96,165,250,.55) 60%, rgba(96,165,250,.55) 100%);
  color: #fff;
}
[data-theme="dark"] .hl-accent {
  background: linear-gradient(180deg, transparent 60%, rgba(251,146,60,.6) 60%, rgba(251,146,60,.6) 100%);
  color: #fff;
}

/* Highlights placed inside dark-bg blocks (subpage-offer, hero with dark gradient) */
.subpage-offer .hl, .subpage-offer .hl-accent,
.subpage-hero .hl, .subpage-hero .hl-accent,
.modal-card .hl, .modal-card .hl-accent {
  color: #fff;
}
.subpage-offer .hl, .subpage-hero .hl, .modal-card .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,.45) 60%, rgba(255,255,255,.45) 100%);
}
.subpage-offer .hl-accent, .subpage-hero .hl-accent, .modal-card .hl-accent {
  background: linear-gradient(180deg, transparent 60%, rgba(255,209,102,.7) 60%, rgba(255,209,102,.7) 100%);
}

/* Modal form — make name/phone fields strongly visible */
.modal-form .form-field input,
.modal-form .phone-group input {
  background-color: #ffffff !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  color: #0f1729 !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  font-size: 1rem; padding: 12px 14px;
}
.modal-form input[name="name"] { padding-left: 40px !important; }
.modal-form .form-field input::placeholder,
.modal-form .phone-group input::placeholder {
  color: #667085 !important;
}
.modal-form .form-field input:focus,
.modal-form .phone-group input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
  outline: none;
}
.modal-form .phone-prefix {
  background: #ffffff !important;
  color: #0f1729 !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  border-right: none !important;
  font-weight: 700;
}
.modal-form .form-field label {
  color: rgba(255,255,255,.92) !important;
  font-weight: 600;
}
/* SVG person icon override on white bg */
.modal-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
}

/* Subpage offer-box form — match modal: white bg for inputs, max readability */
.subpage-offer-form .form-field input,
.subpage-offer-form .phone-group input {
  background-color: #ffffff !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  color: #0f1729 !important;
  border: 2px solid rgba(255,255,255,.4) !important;
  font-size: 1rem; padding: 12px 14px;
}
.subpage-offer-form input[name="name"] {
  padding-left: 40px !important;
}
.subpage-offer-form .form-field input::placeholder,
.subpage-offer-form .phone-group input::placeholder {
  color: #667085 !important;
}
.subpage-offer-form .phone-prefix {
  background: #ffffff !important;
  color: #0f1729 !important;
  border: 2px solid rgba(255,255,255,.4) !important;
  border-right: none !important;
  font-weight: 700;
}
.subpage-offer-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>") !important;
}

/* Sub-page hero label readability + text-soft fix in dark mode */
[data-theme="dark"] .subpage-hero h1, [data-theme="dark"] .subpage-hero .lead { color: var(--text); }
[data-theme="dark"] p, [data-theme="dark"] li, [data-theme="dark"] td { color: var(--text); }
[data-theme="dark"] .text-soft, [data-theme="dark"] .lead { color: var(--text-soft); }

/* Body text on the homepage hero must read against dark bg if it lands there */
.hero p, .hero .hero-lead { color: inherit; }

/* Final-CTA contrast: ensure form labels readable inside light gradient */
.final-cta .form-field label { color: var(--text); font-weight: 600; }

/* Cursor on every CTA so popup-trigger feels right */
[data-open-modal] { cursor: pointer; }

/* ============================================================
   POPUP V2 — light card aesthetic (matches reference)
   White card · floating discount bubble · clean inputs · green CTA
   ============================================================ */
.modal-card.modal-light {
  background: #ffffff;
  color: #1a2436;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8, 22, 40, .35);
  max-width: min(440px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  width: 100%;
  overflow-y: auto;
  position: relative;
}
.modal-card.modal-light .modal-close {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  color: #1a2436;
  width: 36px; height: 36px;
  font-size: 1.4rem;
  font-weight: 400;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.modal-card.modal-light .modal-close:hover {
  background: #f5f7fb;
}
.modal-card.modal-light .modal-body { padding: 28px 24px 22px; }

/* Product image + floating -50% bubble */
.modal-product-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 14px;
  height: 150px;
}
.modal-card.modal-light .modal-product {
  max-height: 150px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(15, 30, 55, .18));
  margin: 0;
}
.modal-discount-bubble {
  position: absolute;
  top: 4px; right: calc(50% - 100px);
  width: 64px; height: 64px;
  background: radial-gradient(circle at 30% 30%, #ff6a4a, #d4321f);
  color: #fff;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(212, 50, 31, .5), inset 0 -6px 12px rgba(0,0,0,.15);
  transform: rotate(8deg);
}
.modal-discount-bubble small {
  display: block; font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; margin-top: 2px;
  opacity: .95;
}

/* Brand title */
.modal-card.modal-light .modal-brand {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem; font-weight: 800;
  color: #14213d;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

/* Rating row */
.modal-card.modal-light .modal-rating {
  display: flex; align-items: center; justify-content: center;
  gap: 7px;
  background: #fff8e6;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 auto 12px;
  width: fit-content;
  font-size: .88rem;
  color: #4a5568;
}
.modal-card.modal-light .modal-rating .stars { color: #f4b740; letter-spacing: 1px; font-size: .9rem; }
.modal-card.modal-light .modal-rating b { color: #1a2436; font-weight: 800; }
.modal-card.modal-light .modal-rating .dot { color: #b6c2d9; }

/* Price row — old strikethrough next to big new price */
.modal-price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  margin: 0 0 14px;
}
.modal-price-row .was {
  color: #98a2b3; font-size: 1.05rem; font-weight: 600;
  text-decoration: line-through;
}
.modal-price-row .now {
  color: #14213d;
  font-size: 2.1rem; font-weight: 800;
  letter-spacing: -.02em;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Savings pill bar */
.modal-savings {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: linear-gradient(135deg, #e6f7ee, #d8f2e3);
  border: 1px solid #b6e2c7;
  border-radius: 12px;
  padding: 10px 8px;
  margin: 0 0 16px;
}
.modal-savings > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .78rem; color: #1a4d3a; font-weight: 600; text-align: center;
  line-height: 1.2;
}
.modal-savings .emoji { font-size: 1.15rem; }

/* Form fields */
.modal-card.modal-light .modal-form .form-field { margin-bottom: 10px; }
.modal-card.modal-light .modal-form .form-field input {
  background: #ffffff !important;
  color: #14213d !important;
  border: 1.5px solid #e5e9f0 !important;
  padding: 14px 14px 14px 44px;
  font-size: 1rem; border-radius: 10px;
  width: 100%; height: 50px;
  box-shadow: 0 1px 2px rgba(15, 30, 55, .04);
}
.modal-card.modal-light .modal-form .form-field input::placeholder {
  color: #98a2b3 !important; font-weight: 500;
}
.modal-card.modal-light .modal-form .form-field input:focus {
  outline: none;
  border-color: #14a45c !important;
  box-shadow: 0 0 0 3px rgba(20,164,92,.18) !important;
}
.modal-card.modal-light .modal-form .phone-group {
  display: flex; gap: 0;
}
.modal-card.modal-light .modal-form .phone-prefix {
  background: #ffffff !important;
  color: #14213d !important;
  border: 1.5px solid #e5e9f0 !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px;
  padding: 0 16px;
  display: flex; align-items: center;
  font-weight: 800; font-size: 1rem;
  height: 50px; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 30, 55, .04);
}
.modal-card.modal-light .modal-form .phone-group input {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding-left: 14px !important;
  background-image: none !important;
}
.modal-card.modal-light .modal-form input[name="name"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  padding-left: 44px !important;
}

/* Green CTA — full width */
.modal-cta {
  width: 100%;
  background: linear-gradient(135deg, #14a45c 0%, #0d6e3f 100%);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 22px rgba(13, 110, 63, .35), inset 0 -3px 0 rgba(0,0,0,.12);
  margin: 6px 0 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.modal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 110, 63, .45), inset 0 -3px 0 rgba(0,0,0,.12);
  background: linear-gradient(135deg, #16b365 0%, #0e7a47 100%);
}
.modal-cta:active { transform: translateY(0); }

/* Trust grid 2x2 */
.modal-trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 0 0 12px;
}
.modal-trust-grid span {
  background: #f5f7fb;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: .78rem;
  color: #4a5568;
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.modal-trust-grid b { font-weight: 400; font-size: .95rem; }

/* Callback note */
.modal-callback {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .76rem; color: #6b7588;
  text-align: center; justify-content: center;
  margin: 0; line-height: 1.45;
  padding: 0 4px;
}
.modal-callback .ph { color: #d4321f; flex-shrink: 0; }

/* Hide old elements when light variant is in use */
.modal-card.modal-light .modal-shimmer,
.modal-card.modal-light .modal-sub,
.modal-card.modal-light .modal-price,
.modal-card.modal-light .modal-discount-float,
.modal-card.modal-light .modal-trust { display: none !important; }

/* Dark theme — keep popup light (overrides global dark) */
[data-theme="dark"] .modal-card.modal-light {
  background: #ffffff;
  color: #1a2436;
}
[data-theme="dark"] .modal-card.modal-light .modal-brand,
[data-theme="dark"] .modal-card.modal-light .modal-price-row .now { color: #14213d; }

/* Mobile fit */
@media (max-width: 420px) {
  .modal-card.modal-light .modal-body { padding: 22px 18px 18px; }
  .modal-discount-bubble { right: calc(50% - 90px); width: 56px; height: 56px; font-size: .95rem; }
  .modal-card.modal-light .modal-brand { font-size: 1.5rem; }
  .modal-price-row .now { font-size: 1.85rem; }
  .modal-savings { grid-template-columns: 1fr 1fr 1fr; }
  .modal-savings > div { font-size: .7rem; }
}

/* ============================================================
   FLEBOXIN-INSPIRED REDESIGN LAYER (unique navy-copper variant)
   ============================================================ */

/* --- Hero ambient: floating orbs + conic ring around product --- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(60px); opacity: .35;
  animation: tp-float-orb 14s ease-in-out infinite;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), .55), transparent 70%);
  top: -120px; left: -100px;
}
.hero::after {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 70%);
  bottom: -120px; right: -80px;
  animation-delay: -7s;
}
@keyframes tp-float-orb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px, -20px) scale(1.06); }
  66%      { transform: translate(-30px, 30px) scale(.96); }
}
.hero .container { position: relative; z-index: 1; }

/* Conic rotating ring behind hero product */
.hero-image-desktop { position: relative; }
.hero-image-desktop::before {
  content: ""; position: absolute; inset: -22px;
  margin: auto;
  width: calc(100% + 44px); height: calc(100% + 44px); max-width: 540px; max-height: 540px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(var(--primary-rgb), .0) 0deg,
    rgba(var(--primary-rgb), .55) 70deg,
    rgba(var(--accent-rgb), .55) 180deg,
    rgba(var(--primary-rgb), .55) 290deg,
    rgba(var(--primary-rgb), .0) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 49%, #000 52%, transparent 54%);
          mask: radial-gradient(circle, transparent 47%, #000 49%, #000 52%, transparent 54%);
  animation: tp-spin-ring 18s linear infinite;
  z-index: 0; pointer-events: none;
}
.hero-image-desktop > img,
.hero-image-desktop > video,
.hero-image-desktop > .hero-badges { position: relative; z-index: 1; }
@keyframes tp-spin-ring {
  to { transform: rotate(360deg); }
}
@media (max-width: 768px) { .hero-image-desktop::before { display: none; } }

/* H1 highlight shimmer sweep */
.hero h1 .hl,
.hero h1 .hl-accent { position: relative; overflow: hidden; }
.hero h1 .hl::after,
.hero h1 .hl-accent::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: tp-shimmer 4.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes tp-shimmer {
  0%        { transform: translateX(-100%); }
  35%, 100% { transform: translateX(120%); }
}

/* Hero floating "snippet" promo card (glass-morphism) */
.hero-snippet {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(var(--primary-rgb), .12));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb), .25);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,26,26,.08);
  margin: 14px 0 8px; max-width: 100%;
  font-size: .88rem; color: var(--text);
}
.hero-snippet .pill {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
}
.hero-snippet b { color: var(--accent); }
[data-theme="dark"] .hero-snippet {
  background: linear-gradient(135deg, rgba(20, 41, 67, .85), rgba(var(--primary-rgb), .25));
  border-color: rgba(96, 165, 250, .35);
  color: #e7eef9;
}

/* --- HowToOrder upgrade: dark gradient + glass cards --- */
#nasil-siparis {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), .55), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), .35), transparent 55%),
    linear-gradient(135deg, #0c1a2e 0%, #142943 60%, #1a3257 100%);
  isolation: isolate;
}
#nasil-siparis::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 0;
}
#nasil-siparis .container { position: relative; z-index: 1; }
#nasil-siparis .section-head h2 { color: #fff; }
#nasil-siparis .section-head h2 .hl,
#nasil-siparis .section-head p { color: rgba(255,255,255,.85); }
#nasil-siparis .section-head p b { color: #fff; }
#nasil-siparis .howto-step {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
#nasil-siparis .howto-step:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, .5);
}
#nasil-siparis .howto-step h4 { color: #fff; margin: 12px 0 6px; }
#nasil-siparis .howto-step p { color: rgba(255,255,255,.78); font-size: .92rem; }
#nasil-siparis .howto-step p b { color: #ffd089; }
#nasil-siparis .os-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7a2e);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15), 0 8px 24px rgba(var(--accent-rgb), .35);
  animation: tp-pulse-num 2.4s ease-in-out infinite;
}
@keyframes tp-pulse-num {
  0%, 100% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15), 0 8px 24px rgba(var(--accent-rgb), .35); }
  50%      { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .05), 0 8px 28px rgba(var(--accent-rgb), .55); }
}
#nasil-siparis .howto-tile {
  width: 64px; height: 64px; margin: 14px auto 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(var(--accent-rgb), .18));
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
}
#nasil-siparis .howto-tile svg { width: 30px; height: 30px; color: #fff; }

/* --- Snippet/callout in-text emphasis boxes --- */
.tp-snippet {
  display: block;
  padding: 14px 18px;
  margin: 14px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--accent-rgb), .06));
  border-left: 4px solid var(--primary);
  font-size: .94rem; line-height: 1.55;
  color: var(--text);
}
.tp-snippet.is-accent { border-left-color: var(--accent); }
.tp-snippet b { color: var(--primary); }
.tp-snippet.is-accent b { color: var(--accent); }
[data-theme="dark"] .tp-snippet {
  background: linear-gradient(135deg, rgba(96,165,250,.14), rgba(251,146,60,.10));
  color: #e7eef9;
}
[data-theme="dark"] .tp-snippet b { color: #93c5fd; }
[data-theme="dark"] .tp-snippet.is-accent b { color: #fdba74; }

/* --- Visual rating breakdown bars (testimonials) --- */
.rating-breakdown {
  max-width: 480px; margin: 28px auto 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.rating-breakdown-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.rating-breakdown-score {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--text);
}
.rating-breakdown-stars { color: var(--star-color); font-size: 1rem; letter-spacing: 1px; }
.rating-breakdown-count { font-size: .82rem; color: var(--text-soft); }
.rating-breakdown-row {
  display: grid; grid-template-columns: 28px 1fr 38px;
  align-items: center; gap: 10px;
  margin: 6px 0; font-size: .85rem; color: var(--text-soft);
}
.rating-breakdown-bar {
  height: 8px; background: var(--bg-muted); border-radius: 4px; overflow: hidden;
}
.rating-breakdown-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--star-color), #f59e0b);
  border-radius: 4px;
  animation: tp-rate-fill 1.4s ease-out both;
}
@keyframes tp-rate-fill {
  from { width: 0 !important; }
}

/* --- Mid-CTA shimmer top border --- */
.midcta { position: relative; overflow: hidden; }
.midcta::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: tp-shimmer-top 3.5s ease-in-out infinite;
}
@keyframes tp-shimmer-top {
  0%        { left: -100%; }
  60%, 100% { left: 100%; }
}

/* --- Doctor specialty badges polish --- */
.doctor-rec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doctor-rec-badges .bg-field,
.doctor-rec-badges .bg-rec {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.doctor-rec-badges .bg-field {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(var(--primary-rgb), .04));
  color: var(--primary); border: 1px solid rgba(var(--primary-rgb), .25);
}
.doctor-rec-badges .bg-rec {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04));
  color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3);
}

/* --- Trust pill polish in hero (subtle gradient borders) --- */
.trust-pills { gap: 8px; flex-wrap: wrap; }
.trust-pill {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(var(--primary-rgb), .04));
  border: 1px solid rgba(var(--primary-rgb), .2);
  box-shadow: 0 2px 6px rgba(15,26,26,.04);
}
[data-theme="dark"] .trust-pill {
  background: linear-gradient(135deg, rgba(26, 50, 87, .8), rgba(96,165,250, .12));
  border-color: rgba(96, 165, 250, .3);
  color: #e7eef9;
}

/* --- Mid-CTA dark gradient match --- */
.midcta {
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), .35), transparent 50%),
    linear-gradient(135deg, #0c1a2e 0%, #1e3a8a 100%);
}

/* --- Form trust row: pill style --- */
.form-trust-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-top: 12px;
}
.form-trust-row span {
  display: inline-flex; padding: 5px 10px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  font-size: .76rem; font-weight: 600;
  border: 1px solid rgba(23, 168, 90, .25);
}

/* --- Snippet pill (small inline badge) --- */
.snippet-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--accent-rgb), .14));
  color: var(--primary);
  font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(var(--primary-rgb), .2);
}
[data-theme="dark"] .snippet-pill {
  background: linear-gradient(135deg, rgba(96,165,250,.2), rgba(251,146,60,.2));
  color: #93c5fd; border-color: rgba(96,165,250,.35);
}

/* --- IMAGE SIZING FIX (mobile + general) --- */
.hero-image-mobile { display: none; }
@media (max-width: 768px) {
  .hero-image-mobile {
    display: flex; justify-content: center; align-items: center;
    margin: 6px auto 14px; max-width: 100%;
  }
  .hero-image-mobile img {
    max-width: 240px; max-height: 240px; width: auto; height: auto;
    object-fit: contain;
  }
  .hero-image-desktop { display: none; }
}
@media (min-width: 769px) {
  .hero-image-mobile { display: none !important; }
}

/* Mid-CTA image constrain on all viewports */
.midcta-grid img {
  max-width: 280px; max-height: 220px;
  width: auto; height: auto;
  object-fit: contain;
  margin: 0 auto; display: block;
}
@media (max-width: 640px) {
  .midcta-grid img { max-width: 200px; max-height: 170px; }
}

/* Final-CTA image constrain — visually inside form card on mobile */
.final-cta-grid img {
  max-width: 240px; max-height: 180px;
  width: auto; height: auto;
  object-fit: contain;
  margin: 16px auto 0; display: block;
}

/* --- MID-CTA: convert to full offer-box style with form --- */
.midcta-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), .35), transparent 50%),
    linear-gradient(135deg, #0c1a2e 0%, #1e3a8a 100%);
  border-radius: 22px;
  padding: 28px 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 22, 40, .25);
}
.midcta-offer::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: tp-shimmer-top 3.5s ease-in-out infinite;
}
.midcta-offer .midcta-info { color: #fff; }
.midcta-offer .midcta-info h2 { color: #fff; margin: 0 0 10px; font-size: 1.55rem; line-height: 1.2; }
.midcta-offer .midcta-info p { color: rgba(255,255,255,.88); margin: 0 0 14px; font-size: 1rem; }
.midcta-offer .midcta-img {
  display: flex; justify-content: center; align-items: center;
}
.midcta-offer .midcta-img img {
  max-width: 220px; max-height: 200px; width: auto; height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.4));
}
.midcta-offer .midcta-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.midcta-offer .midcta-form h3 {
  text-align: center; margin: 0 0 4px;
  font-size: 1.05rem; color: #14213d;
}
.midcta-offer .midcta-form .price-row { justify-content: center; margin: 0 0 4px; }
.midcta-offer .midcta-form .price-row .price-new { color: var(--primary); font-size: 1.7rem; }
.midcta-offer .midcta-form .price-row .price-old { color: #94a3b8; }
.midcta-offer .midcta-form input,
.midcta-offer .midcta-form .phone-prefix {
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  color: #0f1729 !important;
  border: 1.5px solid #e5e9f0 !important;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .98rem;
  width: 100%;
}
.midcta-offer .midcta-form input[name="name"] { padding-left: 40px !important; }
.midcta-offer .midcta-form .phone-group { display: flex; align-items: stretch; }
.midcta-offer .midcta-form .phone-prefix {
  width: auto; padding: 11px 12px; border-right: none !important;
  border-radius: 10px 0 0 10px;
  font-weight: 700;
}
.midcta-offer .midcta-form .phone-group input {
  border-radius: 0 10px 10px 0; border-left: none !important;
}
.midcta-offer .midcta-form .form-field { margin: 0; }
.midcta-offer .midcta-form .form-submit {
  background: linear-gradient(135deg, var(--accent), #ff7a2e) !important;
  color: #fff !important; border: none;
  padding: 13px 16px;
  font-size: 1rem; font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), .4);
}
@media (max-width: 860px) {
  .midcta-offer { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  .midcta-offer .midcta-img img { max-width: 170px; max-height: 160px; }
  .midcta-offer .midcta-info h2 { font-size: 1.3rem; text-align: center; }
  .midcta-offer .midcta-info p { text-align: center; }
}

/* --- FINAL-CTA: visually pull image into form column on mobile --- */
@media (max-width: 860px) {
  .final-cta-grid { display: flex; flex-direction: column; }
  .final-cta-grid > div { order: 2; }
  .final-cta-grid > form { order: 1; }
  .final-cta-grid img { display: none; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .hero-image-desktop::before,
  .hero h1 .hl::after, .hero h1 .hl-accent::after,
  #nasil-siparis .os-num,
  .midcta::before,
  .midcta-offer::before,
  .rating-breakdown-bar > i {
    animation: none !important;
  }
}
