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

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE6D6;
  --ink: #1A1614;
  --ink-soft: #4A4440;
  --ink-muted: #8A837A;
  --accent: #C4956A;
  --accent-light: #E8D5BE;
  --accent-pale: #F5EDE0;
  --white: #FFFFFF;
  --border: #D8D0C4;
  --font-d: 'Cormorant Garamond', serif;
  --font-b: 'DM Sans', sans-serif;
}

html, body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.screen.active { display: flex; animation: fadeUp 0.35s ease; }

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

/* ── SHARED COMPONENTS ── */
.logo, .logo-sm {
  font-family: var(--font-d);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.logo { font-size: 22px; }
.logo-sm { font-size: 17px; }
.logo em, .logo-sm em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-d);
  font-size: 38px; font-weight: 300;
  line-height: 1.05; margin-bottom: 10px;
}
.section-title em { font-style: italic; color: var(--accent); }

/* Perfume library: make the "love" feel deeper */
#s-screener .section-title em { color: #7A2A2A; }

#s-screener .section-desc { margin-bottom: 14px; }

.section-desc {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 28px; max-width: 340px;
}

.btn-primary {
  width: 100%; padding: 15px;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-b); font-size: 12px;
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: none; border-radius: 18px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #2E2926; }
.btn-primary:active { transform: scale(0.985); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.back-btn, .lib-back-btn {
  font-size: 11px; color: var(--ink-muted);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-b); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 5px;
  padding: 0;
}

.back-on-dark {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(245,240,232,0.7);
}

.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 0;
  flex-shrink: 0;
}

.screen-body {
  flex: 1; padding: 28px 24px 20px;
  overflow-y: auto;
}

.screen-footer {
  padding: 0 24px 40px;
  flex-shrink: 0;
}

.step-tag { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.1em; }

/* ── LANDING ── */
#s-landing { background: var(--cream); position: relative; overflow: hidden; }

/* Landing background animation */
.landing-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Soft gradient wash — two large blobs */
.landing-aura::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.28) 0%, transparent 55%);
  top: -160px; left: -160px;
  animation: blobDrift1 16s ease-in-out infinite;
}
.landing-aura::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.2) 0%, transparent 55%);
  bottom: -80px; right: -120px;
  animation: blobDrift2 20s ease-in-out infinite;
}

/* Floating rings — thin bordered circles */
.aura-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.75px solid rgba(196,149,106,0.35);
}
.aura-ring-1 {
  width: 320px; height: 320px;
  top: -100px; left: -80px;
  animation: ringDrift1 22s ease-in-out infinite;
}
.aura-ring-2 {
  width: 180px; height: 180px;
  bottom: 100px; right: -40px;
  animation: ringDrift2 18s ease-in-out infinite 4s;
}
.aura-ring-3 {
  width: 110px; height: 110px;
  top: 38%; left: 58%;
  animation: ringDrift1 14s ease-in-out infinite 8s;
}

/* Floating vertical accent lines */
.aura-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,149,106,0.5), transparent);
}
.aura-line-1 {
  height: 100px;
  left: 20%; top: 15%;
  animation: lineDrift 14s ease-in-out infinite;
}
.aura-line-2 {
  height: 70px;
  right: 25%; bottom: 25%;
  animation: lineDrift 18s ease-in-out infinite 6s;
}

/* Small floating dots */
.aura-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}
.aura-dot-1 {
  width: 4px; height: 4px;
  opacity: 0.4;
  top: 28%; left: 14%;
  animation: dotPulse 7s ease-in-out infinite;
}
.aura-dot-2 {
  width: 3px; height: 3px;
  opacity: 0.3;
  top: 65%; right: 18%;
  animation: dotPulse 9s ease-in-out infinite 2s;
}
.aura-dot-3 {
  width: 5px; height: 5px;
  opacity: 0.25;
  top: 50%; left: 72%;
  animation: dotPulse 11s ease-in-out infinite 5s;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(50px, 60px) scale(1.1); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-40px, -50px) scale(1.08); }
}
@keyframes ringDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33%       { transform: translate(25px, 35px) scale(1.06); opacity: 0.8; }
  66%       { transform: translate(-15px, 15px) scale(0.96); opacity: 0.55; }
}
@keyframes ringDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50%       { transform: translate(-30px, -35px) scale(1.1); opacity: 0.75; }
}
@keyframes lineDrift {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-20px); opacity: 0.85; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50%       { transform: scale(2); opacity: 0.55; }
}

.landing-hero { position: relative; z-index: 1; }
.top-nav { position: relative; z-index: 1; }

.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 24px 0;
  flex-shrink: 0;
}
.top-nav-right {
  display: flex; align-items: center; gap: 10px;
}

/* Logged-in dashboard chip in top nav */
.landing-nav-dash {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0.5px solid var(--border);
  border-radius: 20px; padding: 4px 10px 4px 4px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.landing-nav-dash:active { background: rgba(196,149,106,0.08); }
.landing-nav-dash span {
  font-family: var(--font-b); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.04em;
}
.landing-nav-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background-color: rgba(196,149,106,0.25);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196,149,106,0.4);
}

.lang-btn {
  font-size: 11px; color: var(--ink-muted);
  border: 0.5px solid var(--border); background: none;
  padding: 5px 13px; border-radius: 20px;
  cursor: pointer; font-family: var(--font-b);
  letter-spacing: 0.06em;
}

@keyframes lang-invite-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lang-invite-pulse {
  0%, 100% { box-shadow: 0 1px 6px rgba(0,0,0,0.06),  0 0 0 0px  rgba(196,149,106,0); }
  45%       { box-shadow: 0 4px 22px rgba(0,0,0,0.13), 0 0 0 10px rgba(196,149,106,0.24); }
  75%       { box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 4px  rgba(196,149,106,0.11); }
}
.socials-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.socials-eyebrow-row .eyebrow { margin-bottom: 0; }
.lang-invite-wrap {
  display: inline-flex;
  animation: lang-invite-enter 0.35s cubic-bezier(0.22,1,0.36,1) 0s both;
}
.lang-invite {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px;
  border: 0.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-b); font-size: 10.5px;
  font-style: italic; color: var(--ink-muted);
  letter-spacing: 0.01em; cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: lang-invite-pulse 1.1s ease-in-out 0.5s 3;
}
.lang-invite:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); color: var(--ink); }
.lang-invite-flag { font-size: 13px; line-height: 1; font-style: normal; }
.lang-invite-text { font-style: italic; }

.landing-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 24px 48px; text-align: center;
}

.landing-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 24px 28px;
  flex-shrink: 0;
}
.landing-footer p {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.landing-footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.deco-line {
  width: 1px; height: 44px;
  background: var(--accent); margin: 0 auto 18px; opacity: 0.4;
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(64px, 18vw, 86px);
  font-weight: 300; line-height: 0.9; margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-tagline {
  font-family: var(--font-d);
  font-style: italic; font-size: 20px; font-weight: 300;
  color: var(--ink-soft); margin-bottom: 22px; letter-spacing: 0.03em;
}

.hero-desc {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.75; max-width: 290px;
  margin: 0 auto 36px; font-weight: 300;
}

.btn-primary.landing-cta { max-width: 280px; }

/* ── SOCIALS INPUT ── */

/* Private account disclaimer */
.private-disclaimer {
  display: flex; gap: 10px; align-items: flex-start;
  background: #F0F4FA;
  border-left: 2px solid #4A7CB5;
  padding: 12px 14px; margin: 0 0 12px;
}
.private-disclaimer p { font-size: 11px; color: #2C4A6B; line-height: 1.6; font-weight: 300; }
.disclaimer-icon {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: #4A7CB5;
  opacity: 0.85;
}

.input-block { margin-bottom: 16px; }

.platform-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}

.badge-ig, .badge-tt {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; padding: 3px 9px;
  border-radius: 3px;
}
.badge-ig { background: #F5E6F0; color: #8B3A6B; }
.badge-tt { background: #E8F0F5; color: #1A4A6B; }

.optional-tag {
  font-size: 9px; color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.social-input-row {
  display: flex; border: 0.5px solid var(--border);
  background: var(--white); overflow: hidden;
}

.prefix {
  padding: 12px 10px 12px 14px;
  font-size: 12px; color: var(--ink-muted);
  background: var(--cream-dark);
  border-right: 0.5px solid var(--border);
  white-space: nowrap; flex-shrink: 0;
}

.social-input-row input {
  flex: 1; padding: 12px 14px;
  border: none; outline: none;
  font-family: var(--font-b); font-size: 13px; color: var(--ink);
  background: var(--white);
}
.social-input-row input::placeholder { color: #C0B8B0; }
.social-input-row input:focus { background: #FFFDF9; }

.privacy-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-pale);
  border-left: 2px solid var(--accent);
  padding: 12px 14px; margin: 18px 0 24px;
}
.privacy-note p { font-size: 11px; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }
.lock-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

.error-msg {
  background: #FEF0F0; border-left: 2px solid #E24B4A;
  padding: 12px 14px; font-size: 12px; color: #A32D2D;
  margin-top: 12px; line-height: 1.5;
}

/* ── LOADING ── */
#s-loading {
  background: var(--ink);
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
  position: relative; overflow: hidden;
}

/* ── Loading aura ─────────────────────────────────── */
.loading-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Deep nebula blobs — very muted on dark ground */
.loading-aura::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.10) 0%, transparent 60%);
  top: -200px; left: -180px;
  animation: lBlobA 22s ease-in-out infinite;
}
.loading-aura::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.07) 0%, transparent 60%);
  bottom: -120px; right: -140px;
  animation: lBlobB 28s ease-in-out infinite;
}

/* Thin orbital rings — scanning energy */
.l-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgba(196,149,106,0.18);
}
.l-ring-1 {
  width: 340px; height: 340px;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  animation: lRingExpand 18s ease-in-out infinite;
}
.l-ring-2 {
  width: 200px; height: 200px;
  bottom: 80px; left: -60px;
  animation: lRingDrift 14s ease-in-out infinite 5s;
}
.l-ring-3 {
  width: 120px; height: 120px;
  top: 40%; right: -30px;
  border-color: rgba(196,149,106,0.12);
  animation: lRingExpand 10s ease-in-out infinite 9s;
}

/* Horizontal scan beams — suggests reading / analysing */

/* Rising sparks — tiny drifting particles */
.l-spark {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}
.l-spark-1 {
  width: 3px; height: 3px; opacity: 0.35;
  left: 22%; bottom: 20%;
  animation: lSparkRise 9s ease-in-out infinite;
}
.l-spark-2 {
  width: 2px; height: 2px; opacity: 0.25;
  left: 55%; bottom: 35%;
  animation: lSparkRise 13s ease-in-out infinite 3s;
}
.l-spark-3 {
  width: 4px; height: 4px; opacity: 0.2;
  right: 20%; bottom: 50%;
  animation: lSparkRise 11s ease-in-out infinite 6s;
}
.l-spark-4 {
  width: 2px; height: 2px; opacity: 0.3;
  left: 72%; bottom: 15%;
  animation: lSparkRise 7s ease-in-out infinite 1.5s;
}

@keyframes lBlobA {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, 60px) scale(1.12); }
}
@keyframes lBlobB {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-50px,-40px) scale(1.1); }
}
@keyframes lRingExpand {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50%      { transform: translateX(-50%) scale(1.12); opacity: 0.9; }
}
@keyframes lRingDrift {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.45; }
  50%      { transform: translate(30px,-25px) scale(1.08); opacity: 0.75; }
}
@keyframes lSparkRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-140px) scale(0.5); opacity: 0; }
}

.dark-screen { background: var(--ink) !important; }

.loading-logo {
  font-family: var(--font-d);
  font-size: 17px; font-weight: 300;
  letter-spacing: 0.16em;
  color: rgba(245,240,232,0.35);
  margin-bottom: 52px;
  position: relative; z-index: 1;
}

.orb-wrap, .loading-title, .loading-sub, .loader-steps {
  position: relative; z-index: 1;
}
.loading-logo em { font-style: italic; color: rgba(196,149,106,0.6); }

.orb-wrap { margin: 0 auto 44px; }

.orb {
  width: 68px; height: 68px; border-radius: 50%;
  border: 0.5px solid var(--accent);
  position: relative; margin: 0 auto;
  animation: orbPulse 2.4s ease-in-out infinite;
}
.orb::before {
  content: ''; position: absolute; inset: 10px;
  border-radius: 50%; border: 0.5px solid rgba(196,149,106,0.35);
  animation: orbPulse 2.4s ease-in-out infinite 0.4s;
}
.orb::after {
  content: ''; position: absolute; inset: 22px;
  border-radius: 50%; background: var(--accent); opacity: 0.2;
  animation: orbPulse 2.4s ease-in-out infinite 0.8s;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: 0.55; }
}

.loading-title {
  font-family: var(--font-d); font-size: 28px; font-weight: 300;
  color: var(--cream); margin-bottom: 8px;
}
.loading-title em { font-style: italic; color: var(--accent); }

.loading-sub {
  font-size: 12px; color: rgba(245,240,232,0.38);
  font-weight: 300; letter-spacing: 0.06em; margin-bottom: 44px;
}

/* Loader steps — clean list, no numbers */
.loader-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 280px;
  text-align: left;
}

.loader-step {
  padding: 10px 0 10px 16px;
  border-left: 2px solid rgba(196,149,106,0.2);
  opacity: 0.4;
  transition: opacity 0.45s ease, border-color 0.45s ease;
}
.loader-step.on {
  opacity: 1;
  border-left-color: var(--accent);
}

.loader-step-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.35;
}

.trivia-wrap {
  margin-top: 26px;
  max-width: 300px;
  text-align: left;
}
.trivia-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  margin-bottom: 6px;
}
.trivia-text {
  font-size: 11px;
  color: rgba(245,240,232,0.8);
  line-height: 1.7;
}

/* ── ANALYSIS ── */
#s-analysis { background: var(--cream); overflow-y: auto; }

.analysis-hero {
  background: var(--ink);
  padding: 52px 24px 36px;
  text-align: center; position: relative; overflow: hidden;
  flex-shrink: 0;
}
.analysis-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 90px;
  background: radial-gradient(ellipse, rgba(196,149,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.analysis-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  position: relative; z-index: 1;
}

/* Avatar in analysis hero */
.analysis-avatar-wrap {
  width: 64px; height: 64px;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(196,149,106,0.4);
  margin: 0 auto 14px;
  background: rgba(196,149,106,0.07);
  position: relative; z-index: 1;
  box-shadow: 0 0 20px rgba(196,149,106,0.12);
}
.analysis-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.analysis-handle {
  font-family: var(--font-d);
  font-size: 32px; font-weight: 300;
  color: var(--cream); line-height: 1; margin-bottom: 6px;
  position: relative; z-index: 1;
}
.analysis-archetype {
  font-family: var(--font-d);
  font-style: italic; font-size: 18px; font-weight: 300;
  color: var(--accent); margin-bottom: 0;
  position: relative; z-index: 1;
}
.analysis-tagline {
  font-size: 11px; color: rgba(245,240,232,0.45);
  letter-spacing: 0.12em;
  position: relative; z-index: 1;
}

.analysis-body {
  padding: 28px 24px 0;
}

.opening-quote {
  font-family: var(--font-d);
  font-style: italic; font-size: 19px; font-weight: 300;
  color: var(--ink-soft); line-height: 1.75;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--border);
}
.opening-quote strong,
.story-para strong {
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
}

.story-section {
  margin-bottom: 28px;
}

.story-para {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.85; font-weight: 300;
  margin-bottom: 18px;
}
.story-para:last-child { margin-bottom: 0; }

.story-section-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.traits-header {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.trait-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 22px;
}

.trait-cell {
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 13px;
}
.trait-cell-lbl {
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.trait-cell-val {
  font-family: var(--font-d);
  font-size: 16px; font-weight: 400; color: var(--ink);
}

.vibe-wrap {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 24px;
}
.vibe-pill {
  padding: 6px 13px;
  background: var(--cream-dark);
  border: 0.5px solid var(--border);
  font-size: 10px; color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.scent-notes-card {
  background: var(--ink);
  padding: 20px 20px 18px;
  margin-bottom: 24px;
}
.snc-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.snc-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.snc-col { padding-right: 12px; }
.snc-col:not(:last-child) {
  border-right: 0.5px solid rgba(255,255,255,0.08);
  margin-right: 12px;
}
.snc-col-label {
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(196,149,106,0.7); margin-bottom: 5px;
}
.snc-col-val {
  font-size: 11px; color: rgba(245,240,232,0.8);
  font-weight: 300; line-height: 1.5;
}

.gate-card {
  background: var(--accent-pale);
  border: 0.5px solid var(--accent);
  padding: 18px; text-align: center;
  margin-bottom: 16px;
}
.gate-title {
  font-family: var(--font-d);
  font-size: 18px; font-weight: 400;
  color: var(--ink); margin-bottom: 6px;
}
.gate-desc {
  font-size: 12px; color: var(--ink-soft);
  font-weight: 300; line-height: 1.6;
}

.analysis-cta-wrap {
  padding: 8px 0 40px;
}

/* ── SIGN UP ── */
#s-signup { background: var(--cream); }
.center-screen { justify-content: center; align-items: center; }

.signup-wrap { width: 100%; padding: 40px 24px; max-width: 400px; }

.signup-logo {
  font-family: var(--font-d);
  font-size: 28px; font-weight: 300;
  letter-spacing: 0.12em; text-align: center; margin-bottom: 4px;
}
.signup-logo em { font-style: italic; color: var(--accent); }

.signup-tagline {
  font-family: var(--font-d);
  font-style: italic; font-size: 14px;
  color: var(--ink-muted); text-align: center;
  margin-bottom: 32px;
}

.social-auth-btn {
  width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  padding: 13px; border: 0.5px solid var(--border);
  background: var(--white); font-family: var(--font-b);
  font-size: 13px; color: var(--ink); cursor: pointer;
  margin-bottom: 9px; border-radius: 6px; transition: background 0.2s;
}
.social-auth-btn:hover { background: var(--cream-dark); }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 0.5px;
  background: var(--ink-muted); opacity: 0.2;
}
.or-divider span { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.1em; }

.text-input {
  width: 100%; padding: 13px 14px;
  border: 0.5px solid var(--border); background: var(--white);
  font-family: var(--font-b); font-size: 13px; color: var(--ink);
  outline: none;
}
.text-input:focus { border-color: var(--accent); }
.text-input::placeholder { color: var(--ink-muted); }

.btn-secondary{
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 0.5px solid var(--border);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.profile-card{
  background: rgba(255,255,255,0.82);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
}

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

.pc-title{
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.pc-list{
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pc-list li{ margin: 6px 0; }

.pc-body{
  color: var(--ink-soft);
  line-height: 1.55;
}

.pcard-img{
  width: 58px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.10));
}

/* ── PERFUME LIBRARY ── */
#s-screener{
  overflow: hidden;
  background: var(--cream);
}

.lib-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
  flex-shrink: 0;
}

.lib-title-row{
  padding: 18px 24px 0;
  flex-shrink: 0;
}

.lib-title{
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.05;
  margin-top: 6px;
}
.lib-title em{ font-style: italic; color: #7A2A2A; }

.lib-sticky{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  padding: 14px 24px 10px;
  flex-shrink: 0;
}

.lib-search-row{
  display: flex;
  align-items: center;
  gap: 10px;
}

.lib-search-wrap{
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.lib-search-icon{
  position: absolute;
  left: 14px;
  color: var(--ink-muted);
  pointer-events: none;
}

.lib-search{
  width: 100%;
  padding: 13px 14px 13px 38px;
  border: 0.5px solid var(--border);
  border-radius: 14px;
  background: transparent;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.lib-search:focus{ border-color: var(--ink); }
.lib-search::placeholder{ color: var(--ink-muted); }

.lib-filter-btn{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: transparent;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.lib-filter-btn.has-filters{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.lib-chip-row{
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 2px;
  -webkit-overflow-scrolling: touch;
}
.lib-chip-row::-webkit-scrollbar{ display: none; }
.lib-sticky .chip{ background: transparent; }

.chip{
  border: 0.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.active{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.lib-results-wrap{
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 0;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
}

.lib-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── PERFUME CARD ── */
.pitem{
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Top row: image + content side-by-side */
.pitem-top{
  display: flex;
  flex-direction: row;
  gap: 0;
}

.pitem-imgwrap{
  width: 108px;
  min-height: 120px;
  background: var(--white);
  border-right: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.pitem-img{
  width: 100%;
  height: 100%;
  max-height: 110px;
  object-fit: contain;
  object-position: center;
}
.pitem-img.ph{
  width: 60px;
  height: 80px;
  background: var(--cream-dark);
  border-radius: 8px;
}

.pitem-content{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  min-width: 0;
  gap: 0;
}

/* Row 1: brand + score */
.pitem-row1{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.pitem-brand{
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
  display: flex; align-items: center; gap: 5px;
}
.pitem-flag {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.pitem-score{
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
/* Match% pill variant — warm accent colour */
.pitem-score--match{
  background: #7A2A2A;
  font-size: 11px;
}

/* Row 2: perfume name */
.pitem-name{
  font-family: var(--font-d);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Row 3: family · gender */
.pitem-meta{
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

/* Row 4: notes */
.pitem-notes{
  font-family: var(--font-d);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Row 5: price + shop */
.pitem-footer{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
/* Save / unsave heart button */
.pitem-heart {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--ink-muted); border-radius: 50%;
  transition: color 0.15s, transform 0.12s;
}
.pitem-heart:hover { color: var(--accent); transform: scale(1.15); }
.pitem-heart--saved { color: var(--accent); }
.pitem-heart--saved:hover { color: #c0392b; }

.pitem-price{
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  line-height: 1;
  margin-right: auto;
}

.pitem-shopbtn{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

/* Details expand toggle */
/* Why-it-fits-you quote — top 3 matches only */
.pitem-reason {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 10px 16px 8px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--accent-pale);
  display: flex;
  gap: 4px;
  align-items: flex-start;
}
.pitem-reason-quote {
  font-family: var(--font-d);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
  flex-shrink: 0;
  margin-top: -1px;
}

.pitem-toggle{
  all: unset;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 8px 14px 8px 14px;
  border-top: 0.5px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}
.pitem-toggle-arrow{ transition: transform 0.2s ease; font-size: 9px; }
.pitem.open .pitem-toggle-arrow{ transform: rotate(180deg); }

/* Detail drawer */
.pitem-detail{
  display: none;
  padding: 12px 14px 14px;
  border-top: 0.5px solid var(--border);
  background: rgba(245,240,232,0.4);
}
.pitem.open .pitem-detail{ display: block; }

.detail-section-lbl{
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.stat-grid{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.stat-row{
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-lbl{
  width: 68px;
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.stat-bar{
  flex: 1;
  height: 5px;
  background: rgba(26,22,20,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.stat-fill{
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.stat-val{
  width: 24px;
  text-align: right;
  font-size: 11px;
  color: var(--ink);
  font-weight: 700;
  flex-shrink: 0;
}
.stat-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.stat-bars {
  flex: 1;
  min-width: 0;
}
.stat-bars .stat-grid {
  margin-bottom: 0;
}
.stat-hex {
  flex-shrink: 0;
}

.note-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.note-chip{
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 0.5px solid var(--border);
  font-size: 11px;
  color: var(--ink-soft);
}

/* Screener empty/loading states */
.lib-empty{
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Infinite scroll loader */
.scroll-loader{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px 0;
}
.scroll-loader-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: dotPulse 1.4s ease-in-out infinite both;
}
.scroll-loader-dot:nth-child(1){ animation-delay: 0s; }
.scroll-loader-dot:nth-child(2){ animation-delay: 0.22s; }
.scroll-loader-dot:nth-child(3){ animation-delay: 0.44s; }
@keyframes dotPulse{
  0%, 80%, 100%{ transform: scale(0.5); opacity: 0.3; }
  40%{ transform: scale(1); opacity: 1; }
}

/* Bottom drawer */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.drawer-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.drawer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78vh;
  background: var(--white);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 0.5px solid var(--border);
  box-shadow: 0 -18px 40px rgba(0,0,0,0.22);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  z-index: 60;
  display:flex;
  flex-direction: column;
}
.drawer.open{ transform: translateY(0); }

.drawer-handle{
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  margin: 10px auto 6px;
}

.drawer-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 18px 12px;
}
.drawer-title{
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 400;
}
.drawer-close{
  border:none;
  background: transparent;
  font-size: 16px;
  padding: 8px;
}

.drawer-body{
  padding: 0 18px 12px;
  overflow: auto;
}

.drawer-section{
  margin-top: 14px;
}
.drawer-label{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.drawer-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Brand list: scrollable if many brands */
.drawer-chips--scroll{
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}


.drawer-footer{
  padding: 10px 18px 16px;
  border-top: 0.5px solid var(--border);
  display:flex;
  gap: 10px;
}
.drawer-footer .btn-secondary{ width: 40%; }
.drawer-footer .btn-primary{ width: 60%; }

.srow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 0.5px solid var(--border);
  background: rgba(255,255,255,0.82);
  margin-top: 10px;
}

.srow-left{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.srow-img{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream-dark);
  border: 0.5px solid var(--border);
}
.srow-img.ph{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream-dark);
  border: 0.5px solid var(--border);
}

.srow-name{
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink);
}
.srow-meta{
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-muted);
}
.srow-notes{
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.srow-btn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-b);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.auth-switch {
  text-align: center; font-size: 12px;
  color: var(--ink-muted); margin-top: 16px;
}
.auth-switch a { color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ── PRE-LOGIN MATCH PREVIEW ── */
.feature-list {
  list-style: none;
  margin: 4px 0 20px;
  padding: 0;
}
.feature-list li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}
.feature-list li strong {
  font-weight: 600;
}
.free-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--accent);
  background: var(--accent-pale);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Pre-login: static YSL preview widget (one block with intro) */
.prelogin-body .section-desc.prelogin-desc,
.prelogin-body .prelogin-intro {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.preview-widget {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 20px;
  margin: 24px 0 20px;
  border-radius: 2px;
}
.preview-widget-visual {
  flex-shrink: 0;
  width: 140px;
}
.preview-bottle-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}
.preview-widget-info {
  flex: 1;
  min-width: 0;
}
.preview-widget-brand {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.preview-widget-name {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.preview-widget-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 12px;
}
.preview-widget-badge {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-top: 12px;
}
.preview-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.preview-widget-blurred .preview-widget-name.preview-blur,
.preview-widget-blurred .preview-widget-brand.preview-blur {
  filter: blur(3px);
}
.preview-why-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.preview-reviews,
.preview-buy {
  margin-top: 12px;
}
.preview-reviews-label,
.preview-buy-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 8px;
}
.preview-reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.preview-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.preview-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.preview-buy .preview-buy-label { margin-bottom: 0; margin-right: 4px; }
.preview-logo-link {
  display: inline-flex;
  align-items: center;
}
.preview-logo-link .preview-logo {
  width: 24px;
  height: 24px;
}
.preview-logo-link:hover { opacity: 0.85; }
.preview-intro-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 28px 0 10px;
}

/* Journey chart — pre-login flow */
.journey-chart {
  margin: 20px 0 0;
  padding: 20px 0 8px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
  padding-left: 20px;
}

.journey-step {
  position: relative;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.journey-step:last-child { padding-bottom: 0; }

.journey-marker {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.journey-step.journey-done .journey-marker {
  background: var(--accent);
  border-color: var(--accent);
}
.journey-step.journey-next .journey-marker {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--cream);
}

.journey-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  flex: 1;
  min-width: 0;
}
.journey-step.journey-done .journey-text {
  color: var(--ink-muted);
}
.journey-step.journey-next .journey-text {
  color: var(--ink);
  font-weight: 500;
}

.journey-done-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 400px) {
  .preview-widget { flex-direction: column; align-items: center; text-align: center; }
  .preview-widget-visual { width: 120px; }
  .journey-chart { padding-left: 18px; margin-left: 6px; }
  .journey-marker { left: -24px; }
}
.preview-section {
  margin: 20px 0 24px;
}
.preview-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.preview-match-card {
  display: flex;
  background: var(--white);
  border: 0.5px solid var(--border);
  overflow: hidden;
}
.preview-card-visual {
  width: 88px;
  min-height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-card-info {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.preview-card-brand {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.preview-card-name {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.preview-card-why {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 10px;
}
.preview-card-platforms,
.preview-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-logo {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 8px;
  border: 0.5px solid var(--border);
  background: var(--cream);
}
.drawer-section {
  margin: 24px 0 20px;
}
.drawer-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.prelogin-bottles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.prelogin-bottle {
  width: calc(20% - 8px);
  min-width: 56px;
  text-align: center;
}
.prelogin-bottle img {
  width: 100%;
  max-width: 70px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  background: var(--cream-dark);
  border-radius: 2px;
}
.prelogin-bottle-name {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  display: block;
}
.preview-pcard {
  opacity: 0.9;
}

/* ── VIBE TYPE ── */
#s-vibe { overflow-y: auto; }

.vibe-big-card {
  background: var(--ink);
  padding: 28px 24px; margin-bottom: 24px;
  text-align: center; position: relative; overflow: hidden;
}
.vibe-big-card::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 60px;
  background: radial-gradient(ellipse, rgba(196,149,106,0.12) 0%, transparent 70%);
}
.vibe-type-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.vibe-type-name {
  font-family: var(--font-d);
  font-size: 34px; font-weight: 300; color: var(--cream);
  line-height: 1.05; margin-bottom: 6px;
  position: relative; z-index: 1;
}
.vibe-type-sub {
  font-size: 11px; color: rgba(196,149,106,0.7);
  letter-spacing: 0.1em;
  position: relative; z-index: 1;
}

/* ── SCENT PREFERENCE PAGE (s-profile) ── */
.profile-hero {
  background: var(--ink);
  padding: 56px 28px 36px;
  flex-shrink: 0;
  position: relative;
}
.profile-hero-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.profile-hero-title {
  font-family: var(--font-d);
  font-size: 38px; font-weight: 300; color: var(--cream);
  line-height: 1.1; margin-bottom: 12px;
}
.profile-hero-oneliner {
  font-size: 13px; font-weight: 300; color: rgba(245,240,232,0.65);
  line-height: 1.7;
}

.profile-body {
  flex: 1;
  padding: 0 24px 8px;
  display: flex;
  flex-direction: column;
}

.profile-footer {
  padding: 16px 24px 28px;
  border-top: 0.5px solid var(--border);
  flex-shrink: 0;
}

/* Scent notes — three-column flat row, no card shell */
.pnotes-card {
  padding: 20px 0 18px;
  border-bottom: 0.5px solid var(--border);
}
.pnotes-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 13px;
}
.pnotes-row {
  display: flex; align-items: flex-start; gap: 0;
}
.pnotes-col {
  flex: 1; text-align: center;
}
.pnotes-tier {
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.pnotes-val {
  font-family: var(--font-d);
  font-size: 15px; font-weight: 400; color: var(--ink);
  line-height: 1.4;
}
.pnotes-divider {
  width: 0.5px; background: var(--border);
  align-self: stretch; margin: 0 2px;
}

/* Scent dimensions — flat section, no container card */
.pdim-wrap {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
}
.pdim-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.pdim-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdim-bars {
  flex: 1;
  min-width: 0;
}
.pdim-hex {
  flex-shrink: 0;
}
.pdim-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 7px;
}
.pdim-row:last-child { margin-bottom: 0; }
.pdim-row-left {
  width: 68px; flex-shrink: 0;
}
.pdim-emoji { display: none; }
.pdim-name {
  font-size: 10px; font-weight: 400;
  color: var(--ink-muted); letter-spacing: 0.05em;
}
.pdim-bar-track {
  flex: 1; height: 2px;
  background: var(--cream-dark);
  overflow: hidden;
}
.pdim-bar-fill {
  height: 100%; background: var(--accent);
  transition: width 0.9s ease;
}
.pdim-word {
  font-size: 10px; font-weight: 500;
  color: var(--ink); width: 52px; text-align: right;
  flex-shrink: 0;
}

/* Profile report sections — editorial stacked layout */
.preport-section {
  padding: 16px 0 14px;
  border-bottom: 0.5px solid var(--border);
}
.preport-section:last-child {
  border-bottom: none;
}
.preport-stack {
  display: flex;
  flex-direction: column;
}
.preport-stack .preport-section {
  padding: 18px 0 16px;
  border-bottom: 0.5px solid var(--border);
}
.preport-stack .preport-section:last-child {
  border-bottom: none;
}
.preport-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.preport-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.preport-chip {
  display: inline-block;
  padding: 5px 12px;
  background: var(--cream-dark);
  border: 0.5px solid var(--border);
  font-size: 11px; color: var(--ink-soft);
  line-height: 1.4;
  border-radius: 2px;
}

/* Legacy dim-* kept for safety */
.dimensions-wrap { margin-bottom: 22px; }
.dim-title {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.dim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dim-lbl { font-size: 10px; color: var(--ink-muted); width: 74px; flex-shrink: 0; }
.dim-bar-bg { flex: 1; height: 2px; background: var(--cream-dark); border-radius: 2px; overflow: hidden; }
.dim-bar-fill { height: 2px; background: var(--accent); border-radius: 2px; transition: width 0.8s ease; }
.dim-val { font-size: 11px; font-weight: 500; color: var(--ink); width: 26px; text-align: right; flex-shrink: 0; }

.scent-profile-card {
  background: var(--white); border: 0.5px solid var(--border);
  padding: 16px; margin-bottom: 24px;
}
.spc-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.spc-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.spc-col-lbl {
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 4px;
}
.spc-col-val {
  font-family: var(--font-d);
  font-size: 14px; font-weight: 400; color: var(--ink);
  line-height: 1.4;
}

/* ── RESULTS ── */
#s-results { /* natural flow — cards scroll with page */ }

.results-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: white;
}
.user-vibe {
  font-size: 11px; color: var(--ink-soft);
  font-weight: 300; font-style: italic;
  font-family: var(--font-d); font-size: 14px;
}

/* Ephemeral-results nudge — shown when user is logged out */
.results-unsaved-notice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px;
  background: rgba(180,120,60,0.08);
  border-bottom: 0.5px solid rgba(180,120,60,0.18);
  font-size: 12px; color: var(--ink-soft); font-weight: 300;
  letter-spacing: 0.02em;
}
.results-unsaved-notice span { opacity: 0.75; }
.results-unsaved-notice button {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: 12px;
  color: var(--accent); cursor: pointer; letter-spacing: 0.04em;
  font-weight: 400;
}
.results-unsaved-notice button:hover { opacity: 0.7; }

.results-intro { padding: 20px 24px 0; }
.results-title {
  font-family: var(--font-d);
  font-size: 26px; font-weight: 300; line-height: 1.2;
}
.results-title em { font-style: italic; color: var(--accent); }
.results-sub { font-size: 11px; color: var(--ink-muted); font-weight: 300; margin-top: 3px; margin-bottom: 16px; }

/* PERFUME CARDS */
.pcard {
  background: var(--white);
  border: 0.5px solid var(--border);
  margin: 0 16px 14px; overflow: hidden;
}
.pcard-top { display: flex; }
.pcard-visual {
  width: 92px; height: 126px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.match-badge {
  position: absolute; top: 8px; right: 8px; text-align: center;
}
.match-n {
  font-family: var(--font-d); font-size: 21px;
  font-weight: 400; color: var(--ink); line-height: 1;
}
.match-n-lbl {
  font-size: 7px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.pcard-info { flex: 1; padding: 14px 12px 10px; min-width: 0; }
.pcard-brand {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 3px;
}
.pcard-name {
  font-family: var(--font-d);
  font-size: 19px; font-weight: 400; color: var(--ink);
  line-height: 1.1; margin-bottom: 8px;
}
.pcard-occasions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.occ-tag {
  padding: 2px 8px;
  background: var(--cream); border: 0.5px solid var(--border);
  font-size: 9px; color: var(--ink-soft);
}
.pcard-why {
  font-size: 11px; color: var(--ink-muted);
  font-style: italic; line-height: 1.55;
}
.pcard-notes {
  border-top: 0.5px solid #EDE6D6; padding: 10px 12px;
  display: flex; gap: 10px;
}
.note-col { flex: 1; }
.note-col-lbl {
  font-size: 8px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.note-col-val { font-size: 10px; color: var(--ink-soft); font-weight: 300; line-height: 1.4; }

.pcard-price {
  border-top: 0.5px solid #EDE6D6; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.prices-strip { display: flex; gap: 5px; }
.price-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 7px; border: 0.5px solid var(--border);
  background: var(--cream); cursor: pointer; transition: all 0.2s;
}
.price-chip:hover { background: var(--ink); }
.price-chip:hover .pchip-lbl,
.price-chip:hover .pchip-val { color: var(--cream); }
.pchip-lbl {
  font-size: 7px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.pchip-val { font-size: 11px; font-weight: 500; color: var(--ink); }

.buy-btn {
  padding: 8px 14px; background: var(--ink); color: var(--cream);
  font-family: var(--font-b); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: 5px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.buy-btn:hover { background: var(--accent); }

.pcard-kol {
  border-top: 0.5px solid #EDE6D6; padding: 10px 12px;
  display: flex; gap: 9px; align-items: flex-start;
}
.kol-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 500; color: var(--accent); flex-shrink: 0;
}
.kol-quote { font-size: 10px; color: var(--ink-muted); font-style: italic; line-height: 1.5; }
.kol-by { font-size: 9px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; letter-spacing: 0.04em; }

/* Results — sticky actions bar */
.results-actions {
  position: sticky;
  bottom: 0;
  background: var(--cream);
  z-index: 5;
  padding: 14px 20px env(safe-area-inset-bottom, 32px);
  border-top: 0.5px solid var(--border);
}
.share-btn-main {
  width: 100%; padding: 14px;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-b); font-size: 12px;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; border: none;
  border-radius: 18px; cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.share-btn-main:hover { background: #2E2926; }
.results-nav-row {
  display: flex; gap: 10px;
}
.results-nav-btn {
  flex: 1; padding: 12px 8px;
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 18px;
  font-family: var(--font-b);
  font-size: 11px; font-weight: 400;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s;
}
.results-nav-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Share wrapped screen — carousel */
#s-share { background: var(--cream); overflow: hidden; }
.share-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 8px;
  flex-shrink: 0;
}
.share-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.share-header {
  flex-shrink: 0;
  padding: 0 20px 10px;
}
.share-pretitle {
  font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.06em; margin: 0 0 1px;
  font-weight: 300;
}
.share-main-title {
  font-family: var(--font-d);
  font-size: 36px; font-weight: 300;
  margin: 0 0 4px; line-height: 1;
}
.share-main-title em { font-style: italic; color: var(--accent); }
.share-desc {
  font-size: 11px; color: var(--ink-muted);
  line-height: 1.5; margin: 0; letter-spacing: 0.04em;
}
.share-carousel-outer {
  flex: 1; min-height: 0;
  padding: 0 16px;
  display: flex; align-items: stretch;
  overflow: hidden;
}
.share-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding-right: 44px; /* peek next slide */
}
.share-carousel::-webkit-scrollbar { display: none; }
.share-slide {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 9/16;
  scroll-snap-align: start;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196,149,106,0.22);
  background: #1A1614;
}
.share-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.share-gen-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,22,20,0.88);
  font-family: var(--font-d); font-size: 15px; font-style: italic;
  color: rgba(196,149,106,0.55); letter-spacing: 0.08em;
}
.share-carousel-meta {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 20px 6px;
}
.share-dots { display: flex; gap: 7px; align-items: center; }
.share-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(196,149,106,0.20);
  cursor: pointer;
  transition: all 0.22s ease;
  border: none; padding: 0;
  display: inline-block;
}
.share-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}
.share-btns {
  flex-shrink: 0;
  padding: 6px 20px 0;
}
/* .share-socials bottom padding — no clipping, safe-area aware */
.share-body { overflow-y: auto; } /* allow bottom items to show, not hidden */
/* Keep capture-offscreen for potential fallback */
.capture-offscreen {
  display: flex !important;
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 390px !important;
  height: 844px !important;
  overflow: hidden !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Responsive max-width wrapper for desktop */
@media (min-width: 500px) {
  body { background: #E8E2D8; display: flex; justify-content: center; }
  .screen { max-width: 430px; width: 100%; }
  #s-loading { min-height: 100vh; min-height: 100dvh; }
}

/* ──────────────────────────────────────────────────
   NEW SCREENS: VIBE VIDEO / ARCHETYPE / WHEEL
   ────────────────────────────────────────────────── */

/* ── s-vibe: full-screen vibe video ── */
.screen-fullvid {
  background: #000;
  position: relative;
  overflow: hidden;
}
.screen-fullvid video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.screen-fullvid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
/* ── s-archetype: classy dark reveal with aura animation ── */
#s-archetype {
  background: var(--ink);
  overflow: hidden;
}
.screen-archetype { position: relative; }

.arch-topbar {
  position: relative; z-index: 2;
  padding: 20px 20px 0;
}
.arch-back { color: rgba(245,240,232,0.65); }

/* Animated aura layer */
.arch-aura {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.arch-aura::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.09) 0%, transparent 68%);
  top: -160px; right: -140px;
  animation: blobDrift1 20s ease-in-out infinite;
}
.arch-aura::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.07) 0%, transparent 68%);
  bottom: 40px; left: -100px;
  animation: blobDrift2 25s ease-in-out infinite;
}
.arch-aura-ring {
  position: absolute; border-radius: 50%;
  border: 0.5px solid rgba(196,149,106,0.18);
}
.arch-aura-ring-1 { width: 400px; height: 400px; top: -150px; right: -130px; animation: ringDrift1 26s ease-in-out infinite; }
.arch-aura-ring-2 { width: 240px; height: 240px; bottom: 60px; left: -70px;  animation: ringDrift2 22s ease-in-out infinite 4s; }
.arch-aura-ring-3 { width: 140px; height: 140px; top: 42%; left: 62%;        animation: ringDrift1 17s ease-in-out infinite 9s; }
.arch-aura-line {
  position: absolute; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,149,106,0.32), transparent);
}
.arch-aura-line-1 { height: 110px; right: 16%; top: 14%; animation: lineDrift 17s ease-in-out infinite; }
.arch-aura-line-2 { height: 75px;  left: 20%; bottom: 24%; animation: lineDrift 21s ease-in-out infinite 6s; }
.arch-aura-dot {
  position: absolute; border-radius: 50%; background: var(--accent);
}
.arch-aura-dot-1 { width: 4px; height: 4px; opacity: 0.28; top: 32%; left: 11%; animation: dotPulse 9s ease-in-out infinite; }
.arch-aura-dot-2 { width: 3px; height: 3px; opacity: 0.22; bottom: 26%; right: 14%; animation: dotPulse 12s ease-in-out infinite 3s; }

/* Hero layout */
.arch-hero {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 32px 20px;
  text-align: center;
}

/* Big avatar with gold glow ring */
.avatar-ring-wrap {
  width: 190px; height: 190px;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(196,149,106,0.45);
  margin-bottom: 28px;
  flex-shrink: 0;
  background: rgba(196,149,106,0.05);
  box-shadow: 0 0 48px rgba(196,149,106,0.14), 0 0 0 6px rgba(196,149,106,0.06);
}
.avatar-ring-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Text — no card needed on solid dark bg */
.arch-name {
  font-family: var(--font-d);
  font-style: italic; font-size: 38px; font-weight: 300;
  color: var(--cream); margin: 0 0 12px;
  line-height: 1.1;
}
.arch-desc {
  font-size: 14px; color: rgba(245,240,232,0.58);
  margin: 0 0 3px; max-width: 286px; line-height: 1.6;
}
.perfume-type-pill {
  display: inline-block;
  border: 0.5px solid rgba(196,149,106,0.45);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 14px;
  background: rgba(196,149,106,0.07);
}

/* Pairings row — all labels single line */
.arch-pairings {
  display: flex; gap: 0;
  justify-content: center;
  margin-top: 28px;
  width: 100%; max-width: 320px;
}
.arch-pairing-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  text-align: center;
  flex: 1;
}
.arch-pair-img {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(196,149,106,0.28);
  background: rgba(196,149,106,0.06);
}
.arch-pair-label {
  font-size: 8px; letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.32); line-height: 1.2;
  white-space: nowrap;
}
.arch-pair-name {
  font-family: var(--font-d);
  font-size: 12px; color: rgba(245,240,232,0.68);
  line-height: 1.3; font-style: italic;
}
.arch-pairing-item--toxic .arch-pair-img { border-color: rgba(200,70,70,0.32); }
.arch-pairing-item--toxic .arch-pair-label { color: rgba(220,100,100,0.5); }

.arch-cta-wrap {
  position: relative; z-index: 1;
  padding: 0 24px 48px;
}

/* ── s-analysis hero: fix back button position (back-on-dark is absolute) ── */
#analysis-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.analysis-hero-overlay {
  position: absolute; inset: 0;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: rgba(0,0,0,0.62);
  pointer-events: none;
  z-index: 0;
}
/* Only lift non-absolute children — back button keeps its own position: absolute */
#analysis-hero .analysis-eyebrow,
#analysis-hero .analysis-handle,
#analysis-hero .analysis-archetype {
  position: relative; z-index: 1;
}
#analysis-hero .back-on-dark {
  z-index: 2; /* sits above overlay, keeps its absolute position from .back-on-dark */
}

/* ── s-wheel: clean layout with sticky footer ── */
#s-wheel {
  background: var(--cream);
  flex-direction: column;
  overflow: hidden; /* body scrolls, not the screen */
}

.wheel-header {
  background: var(--ink);
  padding: 56px 24px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.wheel-header-eyebrow {
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.wheel-identity {
  display: flex; align-items: center;
  justify-content: center; gap: 12px;
}
.wheel-avatar-mini {
  width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(196,149,106,0.45);
  flex-shrink: 0;
  background: rgba(196,149,106,0.07);
  box-shadow: 0 0 16px rgba(196,149,106,0.15);
}
.wheel-avatar-mini video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.wheel-arch-mini {
  font-family: var(--font-d);
  font-style: italic; font-size: 22px;
  color: rgba(255,255,255,0.85);
}

/* Scrollable middle section */
.wheel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px 8px;
  display: flex;
  flex-direction: column;
}

/* Footer sticks to bottom */
.wheel-footer {
  flex-shrink: 0;
  padding: 14px 24px 36px;
  background: var(--cream);
  border-top: 0.5px solid var(--border);
}
.wheel-chart-wrap {
  display: flex; justify-content: center; align-items: center;
  flex: 1;
  overflow: visible;
  min-height: 0;
  padding: 0 24px;
}
.wheel-chart-wrap svg { width: 100%; height: auto; display: block; max-width: 360px; }
.wheel-context {
  border-top: 0.5px solid var(--border);
  padding: 18px 0 8px;
  margin-top: 12px;
}
.wheel-context-head {
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px; font-weight: 500;
}
.wheel-context-body {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.65;
}

/* ── s-profile: avatar image in hero ── */
.ph-identity {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 10px;
}
.ph-avatar-img {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.ph-identity .profile-hero-title { margin-bottom: 0; }

/* ── s-results user chip: avatar image ── */
#r-user-dot {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Social icon links ── */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  opacity: 0.55;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.social-icon-link:hover { opacity: 1; }
.social-icon { width: 16px; height: 16px; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; display: block; flex-shrink: 0; }

/* Social row in app landing footer */
.landing-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

/* Social row in share screen */
.share-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
  align-items: center;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 24px);
  flex-shrink: 0;
}
.share-socials-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 4px;
}

/* ── AUTH MODAL ── */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 520px) {
  .auth-modal-overlay { align-items: center; padding: 24px; }
}
.auth-modal-card {
  background: #1a1a1a; width: 100%; max-width: 420px;
  border-radius: 16px 16px 0 0; padding: 32px 28px 40px;
  position: relative;
}
@media (min-width: 520px) {
  .auth-modal-card { border-radius: 12px; padding: 36px 32px; }
}
.auth-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 16px;
  color: var(--ink-muted); cursor: pointer; padding: 4px 8px;
}
.auth-modal-eyebrow {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.auth-modal-title {
  font-family: var(--font-d); font-size: 26px; font-weight: 300;
  line-height: 1.2; color: var(--cream); margin: 0 0 12px;
  white-space: nowrap;
}
.auth-brand-em { font-style: italic; font-weight: 700; color: var(--accent); }
.auth-modal-desc {
  font-size: 13px; color: var(--ink-muted); line-height: 1.6; margin: 0 0 24px;
}
.auth-email-error {
  font-size: 12px; color: #e07070; margin-bottom: 8px;
}

/* ── MATCH GATE (blurred preview + elegant CTA) ── */
.match-gate {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.match-gate-cards {
  padding: 16px 16px 0; /* top gap separates from last visible card */
}
.match-gate-cards .pitem--locked {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  transform: scale(1.01); /* prevent blur fringe at edges */
}
.match-gate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(245,240,232,0) 0%,
    rgba(245,240,232,0.5) 25%,
    rgba(245,240,232,1) 52%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 48px);
  padding-bottom: 48px;
}
.match-gate-inner {
  text-align: center;
  padding: 0 32px;
}
.match-gate-eyebrow {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.match-gate-title {
  font-family: var(--font-d); font-size: 30px; font-weight: 300;
  line-height: 1.2; color: var(--ink); margin: 0 0 28px;
}
.match-gate-title em { font-style: italic; color: var(--accent); }
.match-gate-cta {
  display: inline-block; background: var(--ink); color: var(--cream);
  border: none; cursor: pointer; font-family: var(--font-b);
  font-size: 13px; letter-spacing: 0.08em;
  padding: 15px 36px; border-radius: 2px;
  transition: opacity 0.15s;
}
.match-gate-cta:hover { opacity: 0.8; }
.match-gate-hint {
  font-size: 11px; color: var(--ink-muted); margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ── ACCOUNT DROPDOWN ── */
.account-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #1a1a1a; border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 200;
  overflow: hidden;
}
.user-chip { position: relative; }
.account-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; background: none; border: none;
  font-family: var(--font-b); font-size: 13px; color: var(--cream);
  cursor: pointer; transition: background 0.15s;
}
.account-dropdown-item:hover { background: rgba(255,255,255,0.08); }
.account-dropdown-signout { color: var(--ink-muted); }

/* ── HISTORY DRAWER items ── */
.history-item {
  padding: 14px 0; border-bottom: 0.5px solid var(--border);
  cursor: pointer; transition: opacity 0.15s;
}
.history-item:hover { opacity: 0.75; }
.history-item-top {
  display: flex; align-items: center; gap: 8px;
}
.history-item-handle {
  font-size: 14px; color: var(--ink); flex: 1;
}
.history-item-date {
  font-size: 11px; color: var(--ink-muted); flex-shrink: 0;
}
.history-item-arch {
  font-size: 12px; color: var(--ink-soft); font-style: italic;
  font-family: var(--font-d); margin-top: 4px; padding-left: 21px;
}

/* ── OTP INPUT ── */
.auth-otp-input {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 24px;
  font-family: var(--font-b);
}
.landing-signin-link {
  display: block; background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--ink-muted); font-family: var(--font-b);
  margin-top: 16px; padding: 4px 0; text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-back-link {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--ink-muted); text-decoration: underline;
  font-family: var(--font-b); padding: 4px 0;
}

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.screen-dashboard {
  background: var(--bg);
  overflow-y: auto;
  position: relative;
  min-height: 100vh;
}

/* Standalone fixed aura — own elements so fixed stacking works correctly */
.dash-bg-aura {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.dba-blob {
  position: absolute; border-radius: 50%;
}
.dba-blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196,149,106,0.34) 0%, transparent 55%);
  top: -180px; left: -150px;
  animation: blobDrift1 16s ease-in-out infinite;
}
.dba-blob-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(196,149,106,0.24) 0%, transparent 55%);
  bottom: -100px; right: -140px;
  animation: blobDrift2 20s ease-in-out infinite;
}
.dba-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(196,149,106,0.45);
}
.dba-ring-1 {
  width: 360px; height: 360px;
  top: -120px; left: -100px;
  animation: ringDrift1 22s ease-in-out infinite;
}
.dba-ring-2 {
  width: 210px; height: 210px;
  bottom: 60px; right: -60px;
  animation: ringDrift2 18s ease-in-out infinite 4s;
}
.dba-ring-3 {
  width: 130px; height: 130px;
  top: 40%; left: 62%;
  animation: ringDrift1 14s ease-in-out infinite 8s;
}
.dba-line {
  position: absolute; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,149,106,0.6), transparent);
}
.dba-line-1 { height: 110px; left: 18%; top: 12%; animation: lineDrift 14s ease-in-out infinite; }
.dba-line-2 { height: 75px; right: 22%; bottom: 22%; animation: lineDrift 18s ease-in-out infinite 6s; }
.dba-dot {
  position: absolute; border-radius: 50%; background: var(--accent);
}
.dba-dot-1 { width: 4px; height: 4px; opacity: 0.5; top: 26%; left: 12%; animation: dotPulse 7s ease-in-out infinite; }
.dba-dot-2 { width: 3px; height: 3px; opacity: 0.35; top: 62%; right: 16%; animation: dotPulse 9s ease-in-out infinite 2s; }
.dba-dot-3 { width: 5px; height: 5px; opacity: 0.30; top: 48%; left: 74%; animation: dotPulse 11s ease-in-out infinite 5s; }

/* Top nav */
.dash-topnav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 0;
}
.dash-signout-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-b); font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink-muted);
  padding: 0; transition: color 0.15s;
}
.dash-signout-btn:hover { color: var(--accent); }

/* Hero */
.dash-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 20px 24px 10px;
}
.dash-avatar-wrap {
  display: flex; justify-content: center; margin-bottom: 20px;
}
.dash-avatar-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background-color: rgba(196,149,106,0.3);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(196,149,106,0.13), 0 0 0 18px rgba(196,149,106,0.06);
  flex-shrink: 0;
}
.dash-avatar-vid {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.dash-hero-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 300; line-height: 1.15;
  color: var(--ink); margin: 0 0 8px;
}
.dash-hero-sub {
  font-size: 12px; color: var(--ink-muted);
  font-weight: 300; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0;
}

/* CTA row */
.dash-cta-row {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  padding: 28px 24px 0;
}

/* Sections */
.dash-section {
  position: relative; z-index: 1;
  margin-top: 48px;
}
.dash-section-hdr {
  padding: 0 20px 16px;
}
.dash-section-hdr::after {
  content: '';
  display: block;
  height: 0.5px;
  background: linear-gradient(to right, rgba(196,149,106,0.5), transparent 80%);
  margin-top: 14px;
}
.dash-section-eye {
  display: block;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent); margin-bottom: 5px;
}
.dash-section-title {
  font-family: var(--font-d);
  font-size: 24px; font-weight: 300;
  color: var(--ink); margin: 0;
}

/* History cards */
.dash-hist-list { padding: 0 20px; }
.dash-hist-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(196,149,106,0.12);
  cursor: pointer; transition: opacity 0.15s;
}
.dash-hist-card:last-child { border-bottom: none; }
.dash-hist-card:active { opacity: 0.65; }
.dash-hist-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background-color: rgba(196,149,106,0.18);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(196,149,106,0.22);
  margin-top: 2px;
}
.dash-hist-body { flex: 1; min-width: 0; }
.dash-hist-arch {
  font-family: var(--font-d);
  font-size: 22px; font-weight: 300;
  font-style: italic; color: var(--ink);
  line-height: 1.2; margin-bottom: 5px;
}
.dash-hist-meta {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.dash-hist-handle {
  font-size: 12px; font-weight: 400;
  color: var(--ink-muted); letter-spacing: 0.02em;
}
.dash-hist-date {
  font-size: 11px; color: var(--ink-muted);
  opacity: 0.65; margin-left: auto;
}
.dash-hist-cta {
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 500;
}

/* Empty states */
.dash-empty {
  font-size: 13px; color: var(--ink-muted);
  padding: 24px 0; font-weight: 300;
  font-style: italic;
}

/* Footer */
.dash-footer {
  position: relative; z-index: 1;
  padding: 48px 24px 56px;
  text-align: center;
  font-size: 12px; color: var(--ink-muted);
}
.dash-footer a { color: var(--ink-muted); }
