*, *::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);
}
.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;
}

.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;
}

.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: 8px;
}
.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: 56px 24px 44px;
  text-align: center; position: relative; overflow: hidden;
  flex-shrink: 0;
}
.analysis-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 80px;
  background: radial-gradient(ellipse, rgba(196,149,106,0.13) 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: 14px;
  position: relative; z-index: 1;
}
.analysis-handle {
  font-family: var(--font-d);
  font-size: 38px; font-weight: 300;
  color: var(--cream); line-height: 1; margin-bottom: 5px;
  position: relative; z-index: 1;
}
.analysis-archetype {
  font-family: var(--font-d);
  font-style: italic; font-size: 20px; font-weight: 300;
  color: var(--accent); margin-bottom: 6px;
  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: 32px 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;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

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

.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 */
.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, no card borders */
.preport-section {
  padding: 16px 0 14px;
  border-bottom: 0.5px solid var(--border);
}
.preport-section:last-child {
  border-bottom: none;
}
.preport-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 0.5px solid var(--border);
}
.preport-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.preport-row .preport-section {
  border-bottom: none;
  padding: 16px 12px 14px 0;
}
.preport-row--3 .preport-section {
  padding: 16px 8px 14px 0;
}
.preport-row .preport-section + .preport-section {
  padding-left: 12px;
  border-left: 0.5px solid var(--border);
}
.preport-row--3 .preport-section + .preport-section {
  padding-left: 8px;
}
.preport-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px;
}
.preport-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.preport-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--cream-dark);
  border: 0.5px solid var(--border);
  font-size: 10.5px; color: var(--ink-soft);
  line-height: 1.4;
}

/* 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 { overflow-y: auto; }

.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;
}

.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 actions */
.results-actions {
  padding: 16px 20px 36px;
  border-top: 0.5px solid var(--border);
  margin-top: 8px;
}
.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 */
#s-share { background: var(--cream); }
.share-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px;
  flex-shrink: 0;
}
.share-body {
  flex: 1; padding: 0 20px 32px;
  display: flex; flex-direction: column;
}
.share-title {
  font-family: var(--font-d);
  font-size: 34px; font-weight: 300;
  margin: 4px 0 8px;
}
.share-desc {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.6; margin-bottom: 20px;
}
.share-canvas-wrap {
  flex: 1;
  overflow: hidden;
  border: 1.5px solid rgba(196,149,106,0.45);
  margin-bottom: 20px;
  background: #F5F0E8;
  position: relative;
}
.share-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}
.share-btns { flex-shrink: 0; }
.share-generating {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F5F0E8;
  font-family: var(--font-d); font-size: 15px;
  color: rgba(196,149,106,0.55); letter-spacing: 0.08em;
}

/* 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; }
}
