:root {
  --bg: #070604;
  --bg-2: #11100d;
  --panel: rgba(18, 16, 13, .60);
  --panel-strong: rgba(20, 17, 13, .78);
  --glass: rgba(255, 255, 255, .075);
  --stroke: rgba(229, 201, 139, .28);
  --stroke-soft: rgba(255,255,255,.11);
  --text: #fbf7ed;
  --muted: #cfc4ae;
  --muted-2: #928673;
  --gold: #d9b45c;
  --gold-2: #f5da9b;
  --shadow: 0 32px 95px rgba(0,0,0,.48);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 4%, rgba(217,180,92,.18), transparent 28rem),
    radial-gradient(circle at 90% 22%, rgba(244,65,165,.10), transparent 32rem),
    linear-gradient(145deg, #050403 0%, #11100d 46%, #070604 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(245,218,155,.42) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.24) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(217,180,92,.22) 0 1.4px, transparent 3px);
  background-size: 260px 260px, 390px 390px, 540px 540px;
  opacity: .38;
  animation: fireflyMove 24s linear infinite;
  z-index: 0;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px 0 54px;
}

.stage-section { padding-bottom: 48px; }

.top-nav {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  background: transparent;
  border: 0;
  padding: 0;
}
.brand-mini img {
  width: 76px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(217,180,92,.16));
}

.progress-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: start;
  justify-self: end;
  width: min(560px, 100%);
  padding: 2px 0;
}
.progress-axis::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,180,92,.58), transparent);
  z-index: -1;
}
.progress-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bottle-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.25);
  color: var(--muted);
}
.bottle-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 18px;
  height: 10px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(245,218,155,.72), rgba(217,180,92,.48));
  border: 1px solid rgba(245,218,155,.38);
}
.bottle-icon strong { font-size: 15px; font-weight: 700; }
.progress-step.active .bottle-icon {
  color: #17110b;
  background: radial-gradient(circle at 34% 24%, #fff7d3, #d9b45c 62%, #7c5a23);
  border-color: rgba(245,218,155,.88);
  box-shadow: 0 0 26px rgba(217,180,92,.30), 0 15px 30px rgba(0,0,0,.35);
}
.progress-step.active small { color: var(--gold-2); }

.hero-screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-top: -28px;
  padding: clamp(28px, 6vw, 72px) max(22px, calc((100vw - var(--max)) / 2 + 16px));
  display: grid;
  grid-template-columns: minmax(300px, 610px);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,3,3,.82), rgba(3,3,3,.48) 46%, rgba(3,3,3,.68)),
    linear-gradient(180deg, rgba(3,3,3,.22), rgba(3,3,3,.88)),
    url("assets/ui/molekuly_background.webp") center / cover no-repeat;
  transform: scale(1.02);
  z-index: -3;
}
.hero-screen::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(245,218,155,.50) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.25) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(217,180,92,.22) 0 1.4px, transparent 3px);
  background-size: 230px 230px, 370px 370px, 520px 520px;
  opacity: .42;
  mix-blend-mode: screen;
  animation: fireflyMove 22s linear infinite;
  z-index: -2;
}
.hero-overlay-card {
  width: min(610px, 100%);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(232,182,33,.22);
  background: linear-gradient(180deg, rgba(7,6,4,.70), rgba(10,5,15,.54));
  backdrop-filter: blur(22px);
  border-radius: clamp(24px, 4vw, 42px);
  box-shadow: 0 32px 90px rgba(0,0,0,.58);
  padding: clamp(28px, 4.6vw, 50px);
}
.logo-lockup {
  width: min(260px, 62vw);
  max-height: 245px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
  filter: drop-shadow(0 16px 34px rgba(232,182,33,.24));
}
.eyebrow, .screen-kicker, .base-index {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  margin: 0 0 18px;
}
.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.044em;
  line-height: .94;
  font-size: clamp(46px, 6.6vw, 88px);
  max-width: 100%;
}
.hero-title span { color: var(--gold-2); font-style: italic; }
.hero-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.68;
  max-width: 100%;
  margin: 22px 0 16px;
}
.algorithm-copy {
  margin: 0 0 28px;
  max-width: 100%;
  color: #e6d5b2;
  font-size: 14px;
  line-height: 1.68;
  border-left: 1px solid rgba(232,182,33,.38);
  padding-left: 14px;
}
.primary-btn, .ghost-btn, .mini-btn {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(185, 135, 220, .28);
  border-radius: .62em;
  background: linear-gradient(135deg, #050307 0%, #13091d 48%, #050307 100%);
  color: #fff6df;
  cursor: pointer;
  box-shadow: 2px 2px 3px #000000b4, inset 0 1px 0 rgba(255,255,255,.08);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.primary-btn::before, .ghost-btn::before, .mini-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: .72em;
  padding: 1px;
  background: linear-gradient(110deg, rgba(255,255,255,.16), rgba(116,60,152,.52), rgba(232,182,33,.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .72;
}
.primary-btn::after, .ghost-btn::after, .mini-btn::after { content: none; }
.primary-btn:hover, .ghost-btn:hover, .mini-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 186, 238, .45);
  background: linear-gradient(135deg, #07040a 0%, #211032 55%, #07040a 100%);
}
.primary-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; filter: grayscale(.45); }
.primary-btn { font-size: clamp(1rem, 1.35vw, 1.22em); padding: .72em 1.05em; min-height: 48px; }
.ghost-btn { font-size: 1rem; padding: .65em .95em; color: #eadab5; }
.mini-btn { font-size: .88rem; padding: .58em .78em; }
.cta-row { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }

.screen-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
  margin: 42px 0 28px;
}
.screen-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.045em;
}
.screen-desc { color: var(--muted); line-height: 1.7; max-width: 800px; margin: 18px 0 0; }

.base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.base-card, .question-card, .result-panel, .molecule-card, .summary-strip, .recipe-card, .base-detail-panel {
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.082), rgba(255,255,255,.038));
  box-shadow: 0 24px 64px rgba(0,0,0,.32);
  backdrop-filter: blur(22px);
}
.base-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 448px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.base-card:hover, .base-card.selected {
  transform: translateY(-4px);
  border-color: rgba(245,218,155,.54);
  box-shadow: 0 30px 76px rgba(0,0,0,.42), 0 0 0 1px rgba(217,180,92,.12);
}
.base-card.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(245,218,155,.10), transparent 38%);
}
.base-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.base-image-wrap::after {
  content: "";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,6,4,.82));
}
.base-image-wrap img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); }
.base-card:hover .base-image-wrap img { transform: scale(1.055); filter: saturate(1.08) contrast(1.06); }
.base-content { padding: 18px; display:flex; flex-direction:column; flex:1; }
.base-index { margin-bottom: 10px; font-size: 10px; line-height: 1.3; }
.base-content h3 { margin: 0 0 8px; font-family: Georgia, serif; font-weight: 500; font-size: 25px; line-height: 1.05; }
.base-content p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.base-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.base-detail-panel {
  margin-top: 22px;
  border-radius: 34px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, .55fr) 1fr;
  background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.04));
}
.base-detail-image { min-height: 100%; position:relative; }
.base-detail-image::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent 45%, rgba(7,6,4,.50)); }
.base-detail-image img { width:100%; height:100%; min-height: 420px; object-fit: cover; }
.base-detail-content { padding: clamp(22px, 3vw, 34px); }
.base-detail-content h3 { margin: 0 0 18px; font-family: Georgia, serif; font-weight: 500; font-size: clamp(32px, 4vw, 48px); }
.full-description {
  display: grid;
  gap: 12px;
  color: #e9dcc4;
  font-size: 14px;
  line-height: 1.68;
  max-height: 540px;
  overflow: auto;
  padding-right: 6px;
}
.full-description p { margin: 0; }
.detail-cta { margin-top: 22px; }

.quiz-layout {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 24px;
  align-items: start;
}
.sticky-selected {
  position: sticky;
  top: 18px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--stroke-soft);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.sticky-selected img { width:100%; height: 340px; object-fit: cover; }
.sticky-selected .content { padding: 20px; }
.sticky-selected h3 { margin: 0 0 8px; font-family: Georgia, serif; font-weight: 500; font-size: 30px; }
.sticky-selected p { margin:0; color:var(--muted); line-height:1.6; }
.questions { display:grid; gap: 16px; }
.question-card { border-radius: 26px; padding: 20px; }
.question-card h3 { margin: 0 0 8px; font-size: 20px; }
.question-card .hint { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.answers { display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.answer-btn {
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255,255,255,.055);
  color: var(--text);
  padding: 14px;
  line-height: 1.45;
  min-height: 74px;
  transition: all .25s var(--ease);
}
.answer-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(245,218,155,.32); }
.answer-btn.selected { background: rgba(245,218,155,.15); border-color: rgba(245,218,155,.64); color: #fff8df; box-shadow: 0 0 0 1px rgba(217,180,92,.14); }
.quiz-footer {
  margin-top: 18px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.counter { color: var(--muted); font-size: 14px; }

.result-grid {
  display:grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 22px;
  align-items: start;
}
.result-panel { border-radius: 34px; padding: 20px; overflow: hidden; }
.molecules-panel { margin-top: 22px; }
.result-panel h3, .recipe-card h3 { margin:0 0 12px; font-family: Georgia, serif; font-weight:500; font-size: 28px; }
.selected-base-card { display:grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; }
.selected-base-card img { border-radius: 24px; width:160px; height:160px; object-fit: cover; }
.selected-base-card p { color: var(--muted); line-height:1.55; margin:0; }
.molecule-list { display:grid; gap: 14px; margin-top: 14px; }
.molecule-card { border-radius: 26px; padding: 14px; display:grid; grid-template-columns: 116px 1fr; gap: 14px; }
.molecule-card img { width:116px; height:116px; border-radius: 20px; object-fit: cover; background:#0e0a12; }
.molecule-card h4 { margin: 0 0 6px; font-size: 18px; }
.molecule-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.52; }
.molecule-description { margin-top:8px !important; }
.dose-box {
  margin-top: 12px;
  border: 1px solid rgba(245,218,155,.28);
  background: linear-gradient(135deg, rgba(245,218,155,.12), rgba(255,255,255,.035));
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dose-box span { color: var(--muted); font-size: 12px; line-height:1.3; }
.dose-box strong { color: var(--gold-2); white-space: nowrap; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin: 10px 0 0; }
.tag { color: var(--gold-2); background: rgba(217,180,92,.12); border: 1px solid rgba(217,180,92,.20); padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.chart-card { border-radius: 34px; padding: 20px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.06); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.chart-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.chart-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.radar-wrap { width: 100%; min-height: 420px; display:grid; place-items:center; }
.radar-svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.legend { display:flex; gap: 12px; flex-wrap:wrap; color: var(--muted); font-size: 13px; margin-top: 8px; }
.legend i { width: 12px; height: 12px; border-radius:50%; display:inline-block; margin-right:6px; vertical-align:-1px; }
.legend-base { background:#b9975a; }
.legend-final { background:#f2d79e; }
.delta-bars { display:grid; gap: 9px; margin-top: 18px; }
.delta-row { display:grid; grid-template-columns: 120px 1fr 46px; gap: 10px; align-items:center; color: var(--muted); font-size: 13px; }
.delta-track { position: relative; height: 18px; border-radius: 999px; background: transparent; overflow: visible; }
.delta-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(235,224,202,.22); transform: translateY(-50%); }
.delta-fill { position: relative; height: 1px; top: calc(50% - .5px); border-radius: 999px; background: rgba(245,218,155,.78); }
.delta-fill::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 8px; border-radius: 999px; background: #eadab5; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 10px rgba(232,182,33,.18); transform: translateY(-50%); }
.recipe-card { border-radius: 34px; padding: 20px; margin-top: 22px; }
.recipe-steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.recipe-step { border: 1px solid var(--stroke-soft); border-radius: 20px; padding: 14px; background: rgba(255,255,255,.05); }
.recipe-step strong { color: var(--gold-2); display:block; margin-bottom: 7px; }
.recipe-step span { color:var(--muted); line-height:1.5; }
.result-cta { margin-top:20px; justify-content:flex-end; }

.loading-card {
  min-height: 80vh;
  display:grid;
  place-items:center;
  text-align:center;
  color: var(--muted);
}
.loading-orb {
  width: 68px; height: 68px; border-radius:50%;
  border: 1px solid rgba(217,180,92,.25);
  background: radial-gradient(circle at 30% 20%, var(--gold-2), rgba(217,180,92,.2) 42%, transparent 70%);
  box-shadow: 0 0 50px rgba(217,180,92,.28);
  animation: pulse 1.8s ease-in-out infinite alternate;
  margin-bottom: 18px;
}
.fade-in { animation: fadeIn .45s var(--ease) both; }

@keyframes pulse { to { transform: scale(1.08); filter: brightness(1.2); } }
@keyframes fadeIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes fireflyMove { from { transform: translate3d(-1.4%, -1%, 0); background-position: 0 0, 0 0, 0 0; } to { transform: translate3d(1.4%, 1%, 0); background-position: 240px 190px, -360px 260px, 510px -310px; } }

@media (max-width: 1040px) {
  .top-nav { grid-template-columns: 1fr; }
  .progress-axis { justify-self: stretch; }
  .hero-screen { grid-template-columns: 1fr; align-items: end; }
  .quiz-layout, .result-grid, .base-detail-panel { grid-template-columns: 1fr; }
  .base-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-selected { position: relative; top: 0; }
  .base-detail-image img { min-height: 320px; }
}
@media (max-width: 660px) {
  .app-shell { width: min(100% - 22px, var(--max)); padding-top: 18px; }
  .top-nav { align-items:flex-start; }
  .brand-mini span { display:none; }
  .brand-mini img { width:62px; }
  .progress-axis { gap: 2px; }
  .progress-axis::before { top: 19px; left: 13%; right: 13%; }
  .bottle-icon { width: 38px; height: 38px; }
  .bottle-icon::before { top:-7px; width:16px; height:9px; }
  .progress-step small { font-size: 8px; }
  .hero-screen { margin-top: -18px; padding: 28px 12px; min-height: 100svh; }
  .hero-overlay-card { padding: 22px; border-radius: 28px; }
  .logo-lockup { width: min(230px, 68vw); max-height: 218px; }
  .hero-title { font-size: clamp(42px, 13vw, 68px); }
  .screen-header { margin-top: 26px; }
  .base-grid, .answers, .recipe-steps { grid-template-columns: 1fr; }
  .base-card { min-height: 418px; }
  .base-image-wrap { height: 240px; }
  .full-description { max-height: none; }
  .selected-base-card, .molecule-card { grid-template-columns: 1fr; }
  .selected-base-card img, .molecule-card img { width:100%; height:230px; }
  .dose-box { align-items:flex-start; flex-direction:column; }
  .delta-row { grid-template-columns: 92px 1fr 36px; }
  .primary-btn { width: 100%; }
  .cta-row { width:100%; }
  .ghost-btn { flex: 1; }
}

#print-root { display:none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #18120d !important; }
  body::before, #app { display:none !important; }
  #print-root { display:block !important; padding: 0; }
  .print-page {
    width: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #18120d;
    background: #fff;
  }
  .print-cover {
    border-bottom: 2px solid #caa866;
    padding: 0 0 18px;
    margin-bottom: 18px;
    display:grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items:center;
  }
  .print-cover img { width: 86px; height: auto; }
  .print-cover h1 { font-family: Georgia, serif; font-size: 30px; margin: 0 0 6px; }
  .print-cover p { margin: 0; color:#5d5140; }
  .print-section { break-inside: avoid; margin: 18px 0; }
  .print-section h2 { font-family: Georgia, serif; font-size: 24px; margin: 0 0 10px; }
  .print-grid { display:grid; grid-template-columns: 150px 1fr; gap: 14px; align-items:start; }
  .print-grid img { width:150px; height:150px; object-fit:cover; border-radius: 16px; }
  .print-molecules { display:grid; grid-template-columns: 1fr; gap: 12px; }
  .print-molecule { display:grid; grid-template-columns: 115px 1fr; gap: 12px; border: 1px solid #ddd2bb; border-radius: 14px; padding: 10px; break-inside: avoid; }
  .print-molecule img { width:115px; height:115px; object-fit:cover; border-radius: 12px; }
  .print-molecule h3 { margin:0 0 4px; font-size: 16px; }
  .print-molecule p { margin:0 0 4px; color:#51483c; font-size: 12.5px; line-height: 1.45; }
  .print-chart svg { max-width: 570px; width: 100%; display:block; margin: 0 auto; }
  .no-break { break-inside: avoid; }
}

.minimal-scroll {
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 14px;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(218, 190, 120, 0.45) transparent;
}

/* Chrome / Edge / Safari */
.minimal-scroll::-webkit-scrollbar {
  width: 6px;
}

.minimal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  margin: 10px 0;
}

.minimal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(223, 199, 128, 0.75),
    rgba(92, 62, 132, 0.55)
  );
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.minimal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(240, 214, 148, 0.95),
    rgba(112, 74, 160, 0.75)
  );
}

.minimal-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.gateway-return-link{position:fixed;z-index:80;top:18px;left:18px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid rgba(245,218,155,.35);border-radius:999px;background:rgba(12,10,8,.45);backdrop-filter:blur(18px);color:#f8e6b6;text-decoration:none;text-transform:uppercase;letter-spacing:.18em;font-size:10px;box-shadow:0 18px 50px rgba(0,0,0,.25);transition:.28s var(--ease)}
.gateway-return-link:hover{transform:translateY(-1px);border-color:rgba(245,218,155,.68);background:rgba(24,18,12,.72)}
@media(max-width:720px){.gateway-return-link{top:10px;left:10px;font-size:9px;padding:8px 10px}}

/* ------------------------------------------------------------
   Personal Signature — soft blush / Carolina Herrera La Bomba inspired skin
   replaces the former black & gold visual language with a lighter,
   elegant perfume-beauty aesthetic aligned with SENSI GLORE.
------------------------------------------------------------ */
:root {
  --bg: #fff7fa;
  --bg-2: #fff0f6;
  --panel: rgba(255, 255, 255, .68);
  --panel-strong: rgba(255, 255, 255, .86);
  --glass: rgba(255, 255, 255, .50);
  --stroke: rgba(219, 76, 134, .24);
  --stroke-soft: rgba(92, 42, 70, .10);
  --text: #3b2435;
  --muted: #76596a;
  --muted-2: #a27b8d;
  --gold: #df3f82;
  --gold-2: #b40f5f;
  --rose: #f071a8;
  --petal: #ffe8f1;
  --cream: #fffaf7;
  --plum: #4b263e;
  --shadow: 0 30px 82px rgba(113, 55, 88, .16);
}

html { background: #fff6fa; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 202, 221, .72), transparent 25rem),
    radial-gradient(circle at 86% 13%, rgba(245, 85, 158, .20), transparent 30rem),
    radial-gradient(circle at 78% 82%, rgba(255, 232, 241, .86), transparent 32rem),
    linear-gradient(145deg, #fffaf7 0%, #fff1f7 46%, #fff7fb 100%);
}
body::before {
  background-image:
    radial-gradient(circle, rgba(226, 57, 128, .22) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .74) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(186, 28, 95, .10) 0 1.6px, transparent 3px);
  opacity: .44;
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.46) 42%, transparent 66%),
    radial-gradient(circle at 92% 4%, rgba(230, 44, 123, .12), transparent 20rem);
  opacity: .70;
}

.app-shell { z-index: 1; }
.gateway-return-link {
  border-color: rgba(219, 76, 134, .20);
  background: rgba(255, 255, 255, .72);
  color: #7c3156;
  box-shadow: 0 18px 48px rgba(135, 53, 92, .13);
}
.gateway-return-link:hover {
  border-color: rgba(219, 76, 134, .38);
  background: rgba(255, 255, 255, .94);
  color: #b40f5f;
}

.top-nav { margin-bottom: 30px; }
.brand-mini { color: #7c3156; }
.brand-mini img,
.logo-lockup {
  filter: drop-shadow(0 15px 30px rgba(209, 48, 117, .16));
}
.progress-axis::before {
  background: linear-gradient(90deg, transparent, rgba(223, 63, 130, .42), transparent);
}
.bottle-icon {
  color: #8c6377;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,232,241,.46));
  border-color: rgba(181, 77, 120, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 12px 28px rgba(145, 63, 102, .12);
}
.bottle-icon::before {
  background: linear-gradient(180deg, #fff, #ffc8dc);
  border-color: rgba(219, 76, 134, .18);
}
.progress-step.active .bottle-icon {
  color: #fff;
  background: radial-gradient(circle at 34% 24%, #ffd6e6, #df3f82 62%, #8b174e);
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 0 28px rgba(223, 63, 130, .22), 0 15px 30px rgba(145, 63, 102, .18);
}
.progress-step.active small { color: #b40f5f; }
.progress-step small { color: #a27b8d; }

.hero-screen {
  justify-content: start;
  grid-template-columns: minmax(300px, 590px);
}
.hero-screen::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 247, .92) 0%, rgba(255, 237, 245, .78) 42%, rgba(255, 247, 251, .52) 100%),
    linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,240,246,.74)),
    url("assets/ui/personal_signature_hero.webp") 68% center / cover no-repeat;
  transform: scale(1.01);
}
.hero-screen::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.76) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(223,63,130,.18) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,157,194,.18) 0 1.4px, transparent 3px);
  background-size: 210px 210px, 340px 340px, 520px 520px;
  opacity: .52;
  mix-blend-mode: normal;
}
.hero-overlay-card {
  border: 1px solid rgba(255,255,255,.86);
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,241,247,.62));
  color: var(--text);
  box-shadow: 0 38px 100px rgba(145, 63, 102, .18);
  backdrop-filter: blur(24px);
}
.eyebrow, .screen-kicker, .base-index {
  color: #b40f5f;
}
.hero-title,
.screen-title,
.base-content h3,
.base-detail-content h3,
.sticky-selected h3,
.result-panel h3,
.recipe-card h3,
.chart-card h3 {
  color: #3b2435;
}
.hero-title span {
  color: #df3f82;
}
.hero-lead,
.algorithm-copy,
.screen-desc,
.base-content p,
.full-description,
.sticky-selected p,
.question-card .hint,
.counter,
.selected-base-card p,
.molecule-card p,
.chart-card p,
.legend,
.delta-row,
.recipe-step span {
  color: #76596a;
}
.algorithm-copy {
  border-left-color: rgba(223,63,130,.36);
}

.primary-btn, .ghost-btn, .mini-btn {
  border-color: rgba(223, 63, 130, .22);
  color: #fff;
  background: linear-gradient(135deg, #ee6fa6 0%, #df3f82 50%, #b40f5f 100%);
  box-shadow: 0 18px 44px rgba(196, 44, 110, .22), inset 0 1px 0 rgba(255,255,255,.26);
}
.primary-btn::before, .ghost-btn::before, .mini-btn::before {
  background: linear-gradient(110deg, rgba(255,255,255,.42), rgba(240,113,168,.48), rgba(255,214,229,.72));
  opacity: .85;
}
.primary-btn:hover, .ghost-btn:hover, .mini-btn:hover {
  border-color: rgba(180, 15, 95, .30);
  background: linear-gradient(135deg, #f58ab8 0%, #e64289 54%, #a90e58 100%);
  box-shadow: 0 22px 52px rgba(196, 44, 110, .26), inset 0 1px 0 rgba(255,255,255,.32);
}
.ghost-btn, .mini-btn {
  color: #8d2758;
  background: rgba(255, 255, 255, .66);
}
.ghost-btn:hover, .mini-btn:hover {
  color: #fff;
}

.base-card,
.question-card,
.result-panel,
.molecule-card,
.summary-strip,
.recipe-card,
.base-detail-panel,
.chart-card,
.sticky-selected {
  border-color: rgba(92, 42, 70, .10);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,241,247,.52));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.base-card:hover, .base-card.selected {
  border-color: rgba(223,63,130,.34);
  box-shadow: 0 32px 82px rgba(185, 64, 118, .18), 0 0 0 1px rgba(255,255,255,.64);
}
.base-card.selected::after {
  background: linear-gradient(180deg, rgba(255, 196, 219, .20), transparent 40%);
}
.base-image-wrap::after {
  background: linear-gradient(180deg, transparent 38%, rgba(255, 240, 247, .86));
}
.base-detail-image::after {
  background: linear-gradient(90deg, transparent 42%, rgba(255, 241, 247, .66));
}
.question-card h3,
.molecule-card h4 {
  color: #4b263e;
}
.answer-btn,
.recipe-step {
  color: var(--text);
  border-color: rgba(92, 42, 70, .10);
  background: rgba(255,255,255,.70);
}
.answer-btn:hover {
  background: rgba(255,232,241,.72);
  border-color: rgba(223,63,130,.28);
}
.answer-btn.selected {
  background: linear-gradient(135deg, rgba(255,216,231,.86), rgba(255,255,255,.72));
  border-color: rgba(223,63,130,.48);
  color: #7c174e;
  box-shadow: 0 0 0 1px rgba(223,63,130,.10);
}

.dose-box {
  border-color: rgba(223,63,130,.22);
  background: linear-gradient(135deg, rgba(255,218,232,.72), rgba(255,255,255,.58));
}
.dose-box strong,
.tag,
.recipe-step strong {
  color: #b40f5f;
}
.tag {
  background: rgba(255,218,232,.62);
  border-color: rgba(223,63,130,.18);
}
.molecule-card img,
.selected-base-card img {
  background: #fff2f7;
  box-shadow: 0 16px 36px rgba(113,55,88,.12);
}
.chart-card {
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,244,249,.58));
}
.legend-base { background:#d94a84; }
.legend-final { background:#ef4891; }
.delta-track::before { background: rgba(151,72,108,.18); }
.delta-fill { background: rgba(223,63,130,.70); }
.delta-fill::after {
  background: #f071a8;
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 0 14px rgba(223,63,130,.22);
}
.loading-card { color: var(--muted); }
.loading-orb {
  border-color: rgba(223,63,130,.22);
  background: radial-gradient(circle at 30% 20%, #fff, rgba(240,113,168,.44) 42%, transparent 70%);
  box-shadow: 0 0 50px rgba(223,63,130,.20);
}

.minimal-scroll {
  scrollbar-color: rgba(223,63,130,.42) transparent;
}
.minimal-scroll::-webkit-scrollbar-track {
  background: rgba(223, 63, 130, .07);
}
.minimal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240,113,168,.82), rgba(180,15,95,.58));
  border-color: rgba(255,255,255,.55);
}
.minimal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(250,143,184,.95), rgba(180,15,95,.78));
}

@media (max-width: 1040px) {
  .hero-screen { justify-content: center; }
  .hero-screen::before { background-position: 62% center; }
}
@media (max-width: 660px) {
  .hero-screen::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, .62) 0%, rgba(255, 240, 247, .88) 58%, rgba(255, 247, 251, .96) 100%),
      url("assets/ui/personal_signature_hero.webp") 58% top / cover no-repeat;
  }
  .hero-overlay-card {
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,241,247,.76));
  }
}
