/* ==========================================================================
   MyColorSeason - Premium Styling Sheet (Vanilla CSS)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-sans: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Typography scale: use only these steps throughout the product. */
  --text-xxs: 10px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --heading-xs: 20px;
  --heading-sm: 24px;
  --heading-md: 28px;
  --heading-lg: 32px;
  --display-md: 40px;
  --display-lg: 48px;
  --fluid-caption: clamp(11px, 3.25vw, 12px);
  --fluid-body: clamp(18px, 5vw, 20px);
  --fluid-preview-body: clamp(16px, 2.2vw, 18px);
  --fluid-heading-sm: clamp(20px, 5.6vw, 28px);
  --fluid-heading-compact: clamp(20px, 5.7vw, 24px);
  --fluid-heading-md: clamp(30px, 5vw, 46px);
  --fluid-heading-lg: clamp(34px, 6vw, 54px);
  --fluid-mobile-display: clamp(32px, 9vw, 42px);
  
  /* Neutral Color Palette */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Border system: section frames, cards, controls and dividers. */
  --border-section: #fff;
  --border-card: var(--border-soft);
  --border-default: var(--neutral-200);
  --border-soft: var(--neutral-100);
  --border-divider: var(--neutral-100);
  
  /* Brand Accents */
  --primary: #ff82a5;
  --primary-hover: #ff5e8b;
  --primary-light: rgba(255, 130, 165, 0.1);
  --secondary: #221b20;
  --secondary-hover: #151013;
  --success: #10b981;
  --error: #ef4444;

  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --backdrop-blur: blur(16px);
  
  /* System Spacers */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  font-family: var(--font-sans);
  background-color: #f9faf9;
  color: var(--neutral-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

html {
  scrollbar-gutter: stable;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-chevron-left,
html[dir="rtl"] .fa-chevron-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .feature-story-content {
  left: auto;
  right: 25px;
}

html[dir="rtl"] .familiar-list li,
html[dir="rtl"] .sample-target-copy,
html[dir="rtl"] .season-info-col,
html[dir="rtl"] .card-panel {
  text-align: right;
}

/* 1. Animated Shift Mesh Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  background-color: #f6f8f5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 130, 165, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(130, 203, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 230, 150, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(197, 150, 255, 0.08) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: meshMove 20s ease infinite;
}

@keyframes meshMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* 2. Premium Navbar Styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 250, 249, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--heading-xs);
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-text .highlight {
  color: var(--primary);
}

.logo-sub {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--neutral-400);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-btn {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--neutral-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.nav-btn:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-300);
}

.login-btn {
  background: var(--secondary);
  color: white;
  border: none;
}

.login-btn:hover {
  background: var(--secondary-hover);
}

.user-profile-wrapper {
  position: relative;
  display: inline-block;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 4px 14px 4px 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-800);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.user-profile-pill:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-200);
}

.user-profile-pill > i {
  transition: transform 0.2s ease;
}

.user-profile-wrapper.open .user-profile-pill > i {
  transform: rotate(180deg);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
}

.profile-dropdown {
  position: fixed;
  top: 72px;
  left: auto;
  right: 24px;
  background: rgba(249, 250, 249, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 6px 0;
  width: 170px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.12);
  z-index: 220;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: top right;
  animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: scale(0.95) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-align: left;
}

.profile-dropdown a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--neutral-900);
}

.profile-dropdown hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin: 6px 0;
}

/* 3. Common Views Configuration */
.app-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 24px 24px 18px;
  min-height: calc(100vh - 150px);
}

body.results-view-active .app-container {
  padding-top: 14px;
}

.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* 4. Section 1: Landing Page Styles */
#section-landing {
  padding: 140px 0 12px;
  position: relative;
  isolation: isolate;
}

#section-landing::before,
#section-landing::after {
  --hero-photo-width: clamp(1280px, 100vw, 1942px);
  --hero-photo-height: clamp(506px, 39.55vw, 768px);
  content: "";
  position: absolute;
  z-index: 0;
  top: -64px;
  left: 50%;
  width: 100vw;
  height: 700px;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: opacity;
  transition: opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0 72%,
    rgba(0, 0, 0, 0.98) 76%,
    rgba(0, 0, 0, 0.86) 82%,
    rgba(0, 0, 0, 0.58) 88%,
    rgba(0, 0, 0, 0.28) 93%,
    rgba(0, 0, 0, 0.08) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0 72%,
    rgba(0, 0, 0, 0.98) 76%,
    rgba(0, 0, 0, 0.86) 82%,
    rgba(0, 0, 0, 0.58) 88%,
    rgba(0, 0, 0, 0.28) 93%,
    rgba(0, 0, 0, 0.08) 97%,
    transparent 100%
  );
  -webkit-mask-size: var(--hero-photo-width) var(--hero-photo-height);
  mask-size: var(--hero-photo-width) var(--hero-photo-height);
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-image: var(--hero-background-image);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: var(--hero-photo-width) var(--hero-photo-height);
}

#section-landing::before {
  --hero-background-image: var(--hero-background-before, url('assets/images/hero-happy-women.png'));
  opacity: 1;
}

#section-landing::after {
  --hero-background-image: var(--hero-background-after, url('assets/images/hero-happy-women-alt.png'));
  opacity: 0;
}

#section-landing.hero-bg-alt::before {
  opacity: 0;
}

#section-landing.hero-bg-alt::after {
  opacity: 1;
}

#section-landing > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 769px) {
  .hero-content {
    transform: translateY(-42px);
    margin-bottom: 28px;
  }
}

.hero-slogan {
  margin-bottom: -12px;
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.privacy-badge {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.privacy-badge i {
  color: var(--success);
}

.hero-title {
  font-size: var(--display-lg);
  line-height: 1.15;
  color: var(--secondary);
}

.hero-title .title-main {
  font-family: var(--font-sans);
  font-weight: 700;
  display: block;
}

.hero-title .title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  display: block;
  margin-top: 4px;
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--neutral-700);
  max-width: 600px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding-top: 10px;
  overflow: visible;
}

/* Premium Button Styling */
.btn {
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-spring);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-large {
  padding: 25px 48px;
  min-width: 240px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.btn-large .btn-text {
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

#start-analysis-btn {
  position: relative;
  overflow: visible;
}

.mobile-floating-cta {
  display: none;
}

@media (min-width: 769px) {
  #start-analysis-btn {
    min-width: 270px;
  }
}

.cta-free-badge {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 2;
  transform: translateY(-46%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--primary);
  color: #ffffff;
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(255, 94, 139, 0.38);
}

.hero-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -10px;
  color: var(--neutral-400);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.hero-privacy-note > i {
  color: var(--success);
}

.gdpr-badge {
  padding: 2px 6px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--neutral-700);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.7px;
}

.btn-large .btn-subtext {
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(34, 27, 32, 0.15);
}

.btn-secondary {
  background: white;
  color: var(--secondary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-300);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.btn-full {
  width: 100%;
  padding: 14px 20px;
  font-size: var(--text-sm);
  flex-direction: row;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-toggle {
  background: white;
  border: 1px solid var(--border-default);
  color: var(--neutral-700);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 8px 16px;
  flex-direction: row;
  gap: 6px;
}

.btn-toggle.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.btn.disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.hero-privacy-note + .trust-indicator {
  margin-top: -6px;
}

.avatar-stack-window {
  width: 84px;
  height: 40px;
  overflow: visible;
  flex: 0 0 84px;
}

.avatar-stack {
  display: flex;
  width: max-content;
  padding: 2px 0;
}

.stack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  background-size: cover;
  background-position: center;
  margin-left: -12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--neutral-200);
  flex: 0 0 36px;
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
  will-change: opacity, transform, filter;
}

.stack-avatar:first-child {
  margin-left: 0;
}

.stack-avatar:nth-child(1) { z-index: 3; }
.stack-avatar:nth-child(2) { z-index: 2; }
.stack-avatar:nth-child(3) { z-index: 1; }
.stack-avatar:nth-child(n + 4) { display: none; }

.stack-avatar.is-fading-out {
  opacity: 0;
  transform: translateY(3px) scale(0.92);
  filter: blur(1.5px);
}

.stack-avatar.is-fading-in {
  animation: avatarSoftReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes avatarSoftReveal {
  from {
    opacity: 0;
    transform: translateY(-2px) scale(0.94);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.stack-avatar.s1 {
  background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80&w=100');
}
.stack-avatar.s2 {
  background-image: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80&w=100');
}
.stack-avatar.s3 {
  background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=100');
}

.stack-avatar.s4 {
  background-image: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=100');
}

@media (prefers-reduced-motion: reduce) {
  .avatar-stack {
    transition-duration: 0.01ms;
  }

  .stack-avatar.is-new-left {
    animation-duration: 0.01ms;
  }
}

.trust-text {
  font-size: var(--text-sm);
  color: var(--neutral-700);
}

.trust-text strong {
  color: var(--secondary);
  font-weight: 700;
}

/* Feature grid items */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 32px auto 0;
}

@media (min-width: 769px) {
  .features-grid {
    margin-top: 20px;
  }
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.1);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--heading-xs);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  line-height: 1.5;
}

.feature-wide-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.feature-wide-card .icon-wrapper {
  grid-row: 1 / span 2;
  margin: 0;
}

.feature-wide-card h3 {
  margin: 2px 0 8px;
}

.feature-wide-card p {
  grid-column: 2;
  max-width: 720px;
  margin: 0;
}

.feature-story-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.55fr);
  gap: 40px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.feature-story-visual {
  --story-visual-extension: clamp(56px, 5vw, 96px);
  min-height: 320px;
  padding: 30px;
  background: #f7ece9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
}

.feature-story-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: calc(0px - var(--story-visual-extension));
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 20, 23, 0.08) 18%, rgba(28, 20, 23, 0) 48%, rgba(28, 20, 23, 0.52) 100%);
}

.feature-story-visual::before {
  content: none;
}

.feature-story-edge-mask {
  position: absolute;
  top: 0;
  right: calc(-1px - var(--story-visual-extension));
  bottom: 0;
  width: clamp(180px, 14vw, 240px);
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.52) 56%,
    #fff 78%
  );
}

.feature-story-edge-mask::after {
  content: '';
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 36px;
  background: #fff;
}

.feature-story-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  width: calc(100% + var(--story-visual-extension));
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 1.15s ease-in-out, transform 4.8s ease-out;
  will-change: opacity, transform;
}

.feature-story-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.feature-story-image:nth-of-type(2) {
  object-position: 42% center;
}

.feature-story-image:nth-of-type(3) {
  object-position: 47% center;
}

.feature-story-visual .icon-wrapper {
  width: 68px;
  height: 68px;
  margin: auto 0;
  border-radius: 22px;
  color: #e95f89;
  background: rgba(255, 255, 255, 0.72);
  font-size: var(--heading-sm);
  box-shadow: 0 12px 30px rgba(233, 95, 137, 0.12);
}

.feature-visual-caption,
.feature-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.feature-visual-caption {
  color: #fff;
  max-width: 170px;
  margin-top: auto;
  line-height: 1.45;
  position: relative;
  z-index: 11;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.feature-story-content {
  padding: 42px 42px 42px 0;
  align-self: center;
  position: relative;
  left: 25px;
  z-index: 2;
}

.feature-kicker {
  display: block;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-story-content h3 {
  font-family: var(--font-serif);
  font-size: var(--heading-lg);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
}

.familiar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.familiar-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  color: var(--neutral-700);
  font-size: var(--text-md);
  line-height: 1.55;
}

.familiar-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: var(--text-xxs);
  font-weight: 700;
}

.process-card {
  padding: 42px;
}

.feature-section-head {
  margin-bottom: 28px;
}

.feature-section-head h3,
.discover-copy h3 {
  font-family: var(--font-serif);
  font-size: var(--heading-lg);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  min-width: 0;
  padding: 0 22px 22px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.72));
}

.process-step-image {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  aspect-ratio: 3 / 2;
  margin: 0 -22px 18px;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 24px rgba(31, 38, 135, 0.08);
}

.process-step h4 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: var(--text-md);
  font-weight: 700;
}

.process-step p {
  margin: 0;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.discover-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  grid-template-areas: 'content visual';
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  height: 450px;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.discover-copy {
  grid-area: content;
  align-self: center;
  position: relative;
  z-index: 2;
  padding: 38px 10px 38px 42px;
}

.discover-copy > p {
  max-width: 620px;
  margin-top: 14px;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.discover-result-list {
  display: grid;
  gap: 30px;
  max-width: 650px;
  margin-top: 30px;
  list-style: none;
}

.discover-result-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.35;
}

.discover-result-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: var(--text-xs);
}

.discovery-preview {
  grid-area: visual;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.discovery-preview::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: clamp(84px, 9vw, 132px);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255, 255, 255, 0.92) 12%,
    rgba(255, 255, 255, 0.68) 30%,
    rgba(255, 255, 255, 0.34) 52%,
    rgba(255, 255, 255, 0.12) 70%,
    rgba(255, 255, 255, 0.03) 86%,
    rgba(255, 255, 255, 0) 100%
  );
}

.discovery-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Landing page: seasonal color before / after stories */
.transformation-stories {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 48px 42px 36px;
  overflow: hidden;
  border: 1px solid var(--border-section);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.transformation-heading {
  display: block;
  margin-bottom: 30px;
}

.transformation-heading h2 {
  max-width: none;
  margin: 0;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--heading-lg);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.transformation-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.comparison-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee7e5;
}

.comparison-visual::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 4px rgba(31, 24, 27, 0.08);
  pointer-events: none;
}

.comparison-side {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.comparison-side img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.comparison-before img {
  transform: none;
}

.comparison-after img {
  right: 0;
  left: auto;
  transform: none;
}

.comparison-side figcaption {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 24, 27, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--text-xxs);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

.comparison-before figcaption {
  left: 10px;
}

.comparison-after figcaption {
  right: 10px;
  background: rgba(222, 80, 124, 0.84);
}

.comparison-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  font-size: var(--text-xxs);
  box-shadow: 0 5px 16px rgba(31, 24, 27, 0.18);
}

.transformation-card-copy {
  padding: 20px 18px 14px;
  transform: translateY(-4px);
}

.transformation-card-copy > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.transformation-name {
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--heading-xs);
  font-weight: 600;
}

.transformation-season {
  color: var(--primary-hover);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.transformation-card-copy > p {
  min-height: 0;
  margin: 9px 0 0;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.transformation-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 22px auto 0;
  color: var(--neutral-400);
  font-size: var(--text-xs);
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.transformation-disclaimer i {
  margin-top: 2px;
  color: var(--neutral-300);
}

/* Landing page: customer voices carousel */
.customer-voices {
  position: relative;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 40px 42px 30px;
  border: 1px solid var(--border-section);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 130, 165, 0.12), transparent 30%),
    #fff;
  box-shadow: none;
}

.customer-voices-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.customer-voices-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--heading-lg);
  font-weight: 600;
  line-height: 1.2;
}

.customer-voices-rating {
  min-width: 180px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-section);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.customer-voices-rating > strong {
  grid-row: 1 / 3;
  color: var(--secondary);
  font-size: var(--heading-sm);
  line-height: 1;
}

.customer-rating-stars,
.customer-voice-stars {
  display: flex;
  gap: 3px;
  color: #f2ad40;
  font-size: var(--text-xs);
}

.customer-voices-rating small {
  color: var(--neutral-500);
  font-size: var(--text-xxs);
}

.customer-voice-stars .is-empty {
  color: var(--neutral-200);
}

.customer-voices-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.customer-voice-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 30px 24px;
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.customer-voice-card-top,
.customer-voice-author {
  display: flex;
  align-items: center;
}

.customer-voice-card-top {
  justify-content: space-between;
  gap: 16px;
}

.customer-voice-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 58%;
  overflow: hidden;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: #9c526b;
  background: #fff0f5;
  font-family: var(--font-sans);
  font-size: var(--text-xxs);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.customer-voice-status:hover:not(:disabled) {
  color: var(--primary-hover);
  background: #ffe3ec;
  transform: translateY(-1px);
}

.customer-voice-status.is-active {
  color: #fff;
  background: var(--primary);
}

.customer-voice-status.is-same-language {
  color: #9c526b;
  cursor: default;
}

.customer-voice-card blockquote {
  max-width: 880px;
  margin: 24px 0 12px;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--fluid-heading-sm);
  font-weight: 500;
  line-height: 1.45;
}

.customer-voice-highlight {
  margin: 0 0 22px;
  color: var(--neutral-600);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.customer-voice-author {
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-divider);
}

.customer-voice-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #9c526b;
  background: linear-gradient(145deg, #ffe2eb, #f4edf2);
  font-size: var(--text-sm);
  font-weight: 800;
}

.customer-voice-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-voice-identity strong {
  color: var(--neutral-800);
  font-size: var(--text-sm);
}

.customer-voice-identity small {
  color: var(--neutral-400);
  font-size: var(--text-xxs);
}

.customer-voice-season {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary-hover);
  background: var(--primary-light);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.customer-voice-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.customer-voice-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-200);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.customer-voice-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--primary);
}

.customer-voices-carousel,
.customer-voice-dots {
  display: none;
}

.customer-voice-desktop-row {
  display: block;
  overflow: hidden;
  padding: 2px;
  border-radius: 22px;
}

.customer-voice-desktop-track {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 2px 0 10px;
}

.customer-voice-desktop-card {
  min-width: 0;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.customer-voice-desktop-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.customer-voice-desktop-stars {
  display: flex;
  gap: 2px;
  color: #f2ad40;
  font-size: var(--text-xxs);
}

.customer-voice-desktop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-voice-language {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 56%;
  overflow: hidden;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: #9c526b;
  background: #fff0f5;
  font-family: var(--font-sans);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.18px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.customer-voice-language span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-voice-language:hover:not(:disabled) {
  color: var(--primary-hover);
  background: #ffe3ec;
  transform: translateY(-1px);
}

.customer-voice-language.is-active {
  color: #fff;
  background: var(--primary);
}

.customer-voice-language.is-same-language {
  cursor: default;
}

.customer-voice-language.is-same-language i,
.customer-voice-status.is-same-language i {
  display: none;
}

.customer-voice-desktop-stars .is-empty {
  color: var(--neutral-200);
}

.customer-voice-desktop-quote {
  display: -webkit-box;
  margin: 20px 0 14px;
  overflow: hidden;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.customer-voice-desktop-highlight {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: var(--text-xs);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customer-voice-desktop-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-divider);
}

.customer-voice-desktop-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #9c526b;
  background: #ffe8ef;
  font-size: var(--text-xxs);
  font-weight: 800;
}

.customer-voice-desktop-author-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.customer-voice-desktop-author-copy strong {
  color: var(--neutral-800);
  font-size: var(--text-xs);
}

.customer-voice-desktop-author-copy small {
  overflow: hidden;
  color: var(--neutral-400);
  font-size: var(--text-xxs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-voice-desktop-season {
  margin-left: auto;
  color: var(--primary-hover);
  font-size: var(--text-xxs);
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .customer-voices {
    margin-top: 14px;
    padding: 28px 16px 22px;
    border-radius: 20px;
  }

  .customer-voices-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  #customer-voices-kicker {
    display: none;
  }

  .customer-voices-heading h2 {
    margin-top: 0;
    font-size: var(--fluid-heading-sm);
  }

  .customer-voices-rating {
    position: static;
    order: -1;
    align-self: flex-start;
    width: auto;
    min-width: 148px;
    padding: 9px 11px;
    border-radius: 16px;
  }

  .customer-voice-desktop-row {
    display: none;
  }

  .customer-voice-desktop-dots {
    display: none;
  }

  .customer-voices-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .customer-voice-dots {
    display: flex;
  }

  .customer-voice-card {
    min-height: 320px;
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .customer-voice-card blockquote {
    margin-top: 20px;
    font-size: var(--heading-xs);
  }

  .customer-voice-highlight {
    margin-bottom: 18px;
  }

  .customer-voice-author {
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .customer-voice-season {
    align-self: center;
    margin-left: auto;
    text-align: right;
  }
}

/* 5. Glass Panel Common Structure */
.card-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glass-shadow);
}

/* 6. Section 2: Quiz Styles */
.quiz-container {
  max-width: 1000px;
  margin: 16px auto;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-photo-step {
  margin-top: 10px;
}

.photo-step-intro {
  margin-bottom: 24px;
}

.photo-step-intro h2 {
  font-size: var(--heading-xs);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.photo-step-intro p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

.panel-subtitle {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.panel-desc {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  margin-bottom: 16px;
}

.picker-navigation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.picker-navigation .btn-full {
  min-height: 54px;
  border-radius: 9999px;
}

.picker-navigation .btn-full:disabled,
.picker-navigation .btn-full.disabled {
  border-color: transparent;
  background: var(--neutral-200);
  color: var(--neutral-400);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.picker-navigation .btn-full:not(:disabled):not(.disabled) {
  border-color: transparent;
  background: var(--secondary);
  color: #fff;
  box-shadow: none;
}

.picker-navigation .btn-full:not(:disabled):not(.disabled):hover {
  border-color: transparent;
  background: var(--secondary-hover);
  color: #fff;
  box-shadow: none;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 20px;
}

.back-btn {
  background: none;
  border: none;
  font-size: var(--text-lg);
  color: var(--neutral-700);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  background: rgba(0,0,0,0.04);
  color: var(--neutral-900);
}

.progress-wrapper {
  flex-grow: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-400);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.progress-bar {
  background: var(--neutral-200);
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Quiz animation */
.animate-slide {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-container h2 {
  font-size: var(--heading-xs);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  margin-left: 12px;
}

.question-desc {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin-bottom: 24px;
  margin-left: 12px;
}

/* Quiz Selection Choices */
.quiz-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 769px) {
  .quiz-options.cols-4 {
    flex-wrap: nowrap;
  }

  .quiz-options.cols-4 .option-card {
    width: calc((100% - 60px) / 4);
  }
}

.option-card {
  width: calc((100% - 40px) / 3);
  box-sizing: border-box;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 130, 165, 0.08);
}

.option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.option-color-swatch {
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  overflow: hidden;
}

.color-bar {
  flex-grow: 1;
  height: 100%;
}

.option-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

.option-img.option-img--lipstick-warm {
  background-size: 138%;
  background-position: 50% 70%;
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-800);
  width: 100%;
}

.option-label i {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--primary);
  background: white;
  border-radius: 50%;
  font-size: var(--text-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition-smooth);
  z-index: 5;
}

.option-card.selected .option-label i {
  opacity: 1;
  transform: scale(1);
}

.option-desc {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  margin-top: -8px;
}

.quiz-action-bar {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.quiz-next-btn {
  display: inline-flex;
  width: 270px;
  min-width: 270px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 9999px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.quiz-next-btn:not(:disabled):hover {
  transform: translateY(-2px);
  background: var(--secondary-hover);
  box-shadow: none;
}

.quiz-next-btn:disabled,
.quiz-next-btn.disabled {
  background: var(--neutral-200);
  color: var(--neutral-400);
  cursor: not-allowed;
  box-shadow: none;
}

/* 7. Section 3: Photo Analyzer Grid Styles */
.photo-analyzer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 16px;
}

.panel-title {
  font-size: var(--heading-xs);
  font-weight: 700;
  color: var(--secondary);
}

.subtitle-desc {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin-bottom: 20px;
}

/* Dropzone Upload Box */
.upload-dropzone {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  box-sizing: border-box;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cloud-icon {
  font-size: var(--heading-md);
  color: var(--neutral-400);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.upload-dropzone:hover .cloud-icon {
  color: var(--primary);
  transform: translateY(-5px);
}

.upload-dropzone h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--neutral-800);
}

.upload-dropzone p {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  margin-bottom: 20px;
}

/* Canvas Area */
.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.canvas-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  background: #ebebeb;
  cursor: crosshair;
}

#photo-canvas {
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

/* Target pointers overlay */
.color-pointer {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

.pointer-circle {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  position: absolute;
  top: 8px;
  left: 8px;
}

.pointer-lines::before, .pointer-lines::after {
  content: '';
  position: absolute;
  background: white;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.pointer-lines::before {
  width: 32px;
  height: 1px;
  top: 15px;
  left: 0;
}

.pointer-lines::after {
  width: 1px;
  height: 32px;
  top: 0;
  left: 15px;
}

.canvas-tips {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-tips i {
  color: var(--primary);
}

/* Step 8: one photo, three sampling targets */
.single-photo-analyzer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 24px;
  align-items: stretch;
}

.single-photo-stage,
.single-photo-picker {
  min-width: 0;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.82);
}

.single-photo-stage {
  min-height: 430px;
  padding: 18px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.single-photo-dropzone {
  position: relative;
  width: 100%;
  min-height: 392px;
  border: 1.5px dashed var(--neutral-300);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.single-photo-dropzone:hover,
.single-photo-dropzone.is-dragging {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.single-photo-upload-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  margin-bottom: 8px;
}

.single-photo-upload-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.single-photo-dropzone strong {
  color: var(--neutral-800);
  font-size: var(--text-lg);
  font-weight: 700;
}

.single-photo-dropzone > span:not(.single-photo-upload-icon) {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 360px;
}

.single-photo-dropzone .single-photo-privacy {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--neutral-50);
  color: var(--neutral-400);
  font-size: var(--text-xs);
}

.single-photo-canvas-container {
  width: 100%;
  height: 392px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.single-photo-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #eef1f4;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09);
  line-height: 0;
}

.photo-scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, transparent 25%, rgba(7, 17, 31, 0.28) 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

.photo-scan-corners {
  position: absolute;
  inset: 7%;
  background:
    linear-gradient(#fff, #fff) left top / 44px 2px no-repeat,
    linear-gradient(#fff, #fff) left top / 2px 44px no-repeat,
    linear-gradient(#fff, #fff) right top / 44px 2px no-repeat,
    linear-gradient(#fff, #fff) right top / 2px 44px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 44px 2px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 2px 44px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 44px 2px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 2px 44px no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.72));
}

.photo-scan-reticle {
  position: absolute;
  top: 42%;
  left: 50%;
  width: clamp(88px, 25%, 136px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.07), inset 0 0 22px rgba(255, 255, 255, 0.18);
}

.photo-scan-reticle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 25%, #fff 31%, transparent 38% 72%, rgba(255, 255, 255, 0.88) 78%, transparent 85%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: photo-reticle-spin 2.2s linear infinite;
}

.photo-scan-reticle::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.9) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.9) 50%, transparent calc(50% + 0.5px));
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
}

.photo-scan-beam {
  position: absolute;
  top: -22%;
  right: 0;
  left: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 58%, rgba(255, 255, 255, 0.92) 95%, #fff 100%);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.36);
}

.single-photo-canvas-wrapper.is-scanning {
  animation: photo-scan-glow 4.5s ease-in-out both;
}

.single-photo-canvas-wrapper.is-scanning .photo-scan-overlay {
  opacity: 1;
  animation: photo-overlay-fade 4.5s ease-in-out both, photo-grid-drift 4.5s linear both;
}

.single-photo-canvas-wrapper.is-scanning .photo-scan-beam {
  animation: photo-scan-beam 4s cubic-bezier(0.42, 0, 0.25, 1) 0.22s both;
}

.single-photo-canvas-wrapper.is-scanning .photo-scan-corners {
  animation: photo-corners-breathe 1.4s ease-in-out infinite alternate;
}

.single-photo-canvas-wrapper.is-scanning .replace-photo-btn {
  opacity: 0;
  pointer-events: none;
}

@keyframes photo-scan-beam {
  from { top: -22%; }
  to { top: 106%; }
}

@keyframes photo-reticle-spin {
  to { transform: rotate(360deg); }
}

@keyframes photo-grid-drift {
  from { background-position: 0 0, 0 0, center; }
  to { background-position: 24px 24px, 24px 24px, center; }
}

@keyframes photo-corners-breathe {
  from { opacity: 0.62; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes photo-overlay-fade {
  0%, 100% { opacity: 0; }
  8%, 90% { opacity: 1; }
}

@keyframes photo-scan-glow {
  0%, 100% { box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09); }
  18%, 88% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.58), 0 0 32px rgba(255, 255, 255, 0.3), 0 0 64px rgba(255, 255, 255, 0.13); }
}

@media (prefers-reduced-motion: reduce) {
  .single-photo-canvas-wrapper.is-scanning,
  .single-photo-canvas-wrapper.is-scanning .photo-scan-overlay,
  .single-photo-canvas-wrapper.is-scanning .photo-scan-beam,
  .single-photo-canvas-wrapper.is-scanning .photo-scan-corners,
  .photo-scan-reticle::before {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

.single-photo-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: default;
  touch-action: auto;
}

/* The legacy canvas rule uses object-fit: contain. Override it here so the
   scan overlay and the visible photo share exactly the same rounded bounds. */
#single-photo-canvas-wrapper #photo-canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.option-img--contrast-low {
  background-size: 128% auto;
  background-position: 50% 42%;
}

.sample-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sample-marker.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.replace-photo-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 24, 30, 0.9);
  color: white;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.replace-photo-btn:hover {
  background: var(--primary);
  color: white;
}

.single-photo-picker {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-photo-picker-heading {
  margin-bottom: 6px;
}

.single-photo-picker-heading h3 {
  margin: 0 0 7px;
  color: var(--neutral-800);
  font-size: var(--text-lg);
  line-height: 1.35;
}

.single-photo-picker-heading p,
.single-photo-picker-tip {
  margin: 0;
  color: var(--neutral-500);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.sample-target {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--border-default);
  border-radius: 15px;
  background: white;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: var(--neutral-800);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sample-target:disabled {
  cursor: default;
  opacity: 0.58;
}

.sample-target:not(:disabled):hover {
  border-color: var(--neutral-300);
  transform: translateY(-1px);
}

.sample-target.is-active:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(255, 130, 165, 0.08);
}

.sample-target-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  font-size: var(--text-xs);
  font-weight: 800;
}

.sample-target-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sample-target-copy strong {
  color: var(--neutral-800);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.sample-target-copy small {
  color: var(--neutral-500);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.sample-target-result {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.sample-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--neutral-200), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.sample-hex {
  color: var(--neutral-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-xxs);
  font-weight: 700;
}

.sample-target.is-complete .sample-target-number {
  color: #17805c;
  background: #e9f8f1;
}

.single-photo-picker-tip {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border-soft);
}

.three-cols-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

.three-cols-nav .btn {
  flex: 1;
}

.picker-navigation.three-cols-nav {
  justify-content: center;
  align-items: center;
}

.picker-navigation.three-cols-nav .btn-full {
  flex: 0 0 270px;
  width: 270px;
  height: 54px;
  min-height: 54px;
  padding: 0 18px;
  font-size: var(--text-md);
}

/* 8. Section 4: Results Dashboard Layout - Single Column */
.results-single-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Unified section headings for all cards */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--heading-xs);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-desc {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Season banner */
.season-banner {
  background: white;
  position: relative;
  overflow: hidden;
}

.season-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--season-glow, rgba(255, 130, 165, 0.15));
  filter: blur(40px);
}

.season-banner-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Circle photo */
.season-photo-col {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--neutral-100);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.season-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.season-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
}

.season-title {
  font-size: var(--heading-md);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.season-desc {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  line-height: 1.6;
  margin-bottom: 16px;
}

.attributes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--neutral-50);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--neutral-700);
}

.pill strong {
  font-weight: 700;
  color: var(--neutral-900);
}

/* Profile Card */
.profile-card .profile-text {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  line-height: 1.8;
}

.profile-text p {
  margin-bottom: 12px;
}

.profile-text p:last-child {
  margin-bottom: 0;
}

/* Affirmation Card */
.affirmation-card {
  text-align: center;
  padding: 36px 28px;
}

.affirmation-text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--neutral-600);
  line-height: 1.8;
}




/* Color guidelines dos & donts */
.guidelines-card {
  padding: 24px;
}

.guide-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-col h4 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-col.dos h4 { color: var(--success); }
.guide-col.donts h4 { color: var(--error); }

.guide-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-col li {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  position: relative;
  padding-left: 14px;
}

.guide-col li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--neutral-400);
}

/* Worst Colors to Avoid Section */
.avoid-colors-section {
  margin-top: 18px;
  border-top: 1px solid var(--border-divider);
  padding-top: 20px;
}

.avoid-title-zh-en {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.avoid-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 14px;
}

.avoid-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.avoid-swatch-item:hover {
  transform: scale(1.06);
}

.avoid-color-block {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Red ban icon overlay on worst color block */
.avoid-color-block i {
  color: #ef4444;
  font-size: var(--text-md);
  background: #ffffff;
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  position: absolute;
  top: -4px;
  right: -4px;
}

.avoid-swatch-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-600);
  text-align: center;
  line-height: 1.3;
}

/* Palette Card Styles */

/* Category group */
.palette-category-group {
  margin-bottom: 32px;
}

.palette-category-group:last-child {
  margin-bottom: 0;
}

.palette-category-label {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

/* Palette Grid Items */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 16px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.swatch-item:hover {
  transform: scale(1.06);
}

.swatch-color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swatch-color i {
  color: white;
  font-size: var(--text-xs);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  transition: var(--transition-smooth);
}

.swatch-item:hover .swatch-color i {
  opacity: 0.8;
}

.swatch-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--neutral-600);
  text-align: center;
  line-height: 1.3;
}

.swatch-hex {
  font-size: var(--text-xxs);
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--neutral-400);
  text-transform: uppercase;
}

/* (Old report panel styles removed - now single column) */

.card-sub-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-sub-title i {
  color: var(--primary);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  margin-bottom: 20px;
}

/* (Sliders styles removed) */

/* 2. Makeup Recommendations - New Vertical Layout */
.makeup-category {
  margin-bottom: 28px;
}

.makeup-category:last-child {
  margin-bottom: 0;
}

.makeup-category-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.makeup-category-title i {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

.makeup-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
}

.makeup-category-desc {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.makeup-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.makeup-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.makeup-swatch-block {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border-radius: 16px;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.makeup-swatch-block:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.1);
}

.makeup-swatch-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--neutral-700);
  line-height: 1.3;
}

/* Pro Tip */
.makeup-pro-tip {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.makeup-pro-tip strong {
  font-size: var(--text-sm);
  color: var(--secondary);
  display: block;
  margin-bottom: 6px;
}

.makeup-pro-tip p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

/* 3. Hair Colors Swatch Cards - Sci/ART Upgrade */
.hair-shades-section {
  margin-bottom: 24px;
}

.hair-shades-summary {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.6;
  margin-top: -6px;
  margin-bottom: 18px;
}

.hair-details-section {
  border-top: 1px solid var(--border-divider);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hair-detail-item {
  display: flex;
  flex-direction: column;
}

.hair-desc, .hair-avoid {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

.celebrity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.celeb-badge {
  background: var(--neutral-50);
  border: 1px solid var(--border-default);
  color: var(--neutral-700);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.celebrity-desc {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  line-height: 1.5;
  margin: 0;
}

/* 4. OOTD Outfit Combinations - Street Style Photo Cards */
.ootd-combos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ootd-combo-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 0 0 16px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.ootd-combo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ootd-photo-frame {
  width: calc(100% + 2px);
  aspect-ratio: 4 / 5;
  border-radius: 20px 20px 0 0;
  margin: -1px -1px 0;
  background-color: #ffffff;
  background-image: var(--ootd-photo);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
}

.combo-header {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0 12px;
}

.combo-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
}

.combo-swatches {
  display: flex;
  margin: 0 12px;
  align-items: center;
  position: relative;
  padding-left: 1px;
}

.combo-color-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.2s ease, z-index 0.2s ease;
  cursor: pointer;
}

/* Overlapping effect (First circle on top, subsequent circles offset and behind) */
.combo-color-circle:nth-child(1) { z-index: 3; }
.combo-color-circle:nth-child(2) { z-index: 2; margin-left: -14px; }
.combo-color-circle:nth-child(3) { z-index: 1; margin-left: -14px; }

.combo-color-circle:hover {
  transform: scale(1.12) translateY(-2px);
  z-index: 10 !important;
}

/* Report Actions */
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.report-actions .report-action-btn {
  flex: 1 1 0;
  width: auto;
  min-height: 58px;
  border-radius: 9999px;
  box-shadow: none;
}

.report-actions .report-action-btn i {
  font-size: 1.05em;
}

/* 9. Footer & Toast */
.app-footer {
  border-top: 1px solid var(--border-default);
  background: white;
  padding: 24px 0;
  margin-top: 24px;
}

body.quiz-view-active .app-footer {
  display: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: var(--text-xs);
  color: var(--neutral-400);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--neutral-400);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--neutral-900);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* First-visit cookie consent */
.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 1000;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  box-shadow: 0 20px 60px rgba(31, 24, 27, 0.18);
  animation: cookieConsentIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-consent-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #d65f85;
  background: rgba(255, 226, 235, 0.78);
  font-size: var(--text-lg);
}

.cookie-consent-copy h2 {
  margin: 0 0 4px;
  color: var(--secondary);
  font-size: var(--text-md);
}

.cookie-consent-copy p {
  margin: 0;
  color: var(--neutral-600);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.cookie-consent-copy a {
  display: inline-block;
  margin-top: 5px;
  color: var(--primary-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
}

.cookie-consent-actions .btn {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 18px;
  flex-direction: row;
  font-size: var(--text-xs);
  white-space: nowrap;
}

.cookie-btn-secondary {
  border: 1px solid var(--border-default);
  color: var(--neutral-700);
  background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .cookie-consent-icon {
    width: 40px;
    height: 40px;
  }

  .cookie-consent-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent-actions .btn {
    min-width: 0;
  }
}

/* ==========================================================================
   Sci/ART Professional Color Analysis Styles
   ========================================================================== */
.sci-art-badges {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.sci-badge-item {
  flex: 1;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-150);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-400);
  letter-spacing: 0.5px;
}

.badge-value {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--secondary);
}

.sci-art-styling-guide {
  margin-top: 28px;
  border-top: 1px solid var(--border-divider);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.guide-sub-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.contrast-meter-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.meter-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-400);
}

.contrast-meter-bar {
  flex: 1;
  height: 8px;
  background: var(--neutral-100);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.contrast-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* Set dynamically */
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.contrast-desc {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

.fabric-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fabric-column {
  background: var(--neutral-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.fabric-column h6 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fabric-column h6 i {
  color: var(--neutral-400);
}

.fabric-column p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Responsive Adaptations (Mobile & Tablet)
   ========================================================================== */

/* Tablet & Smaller Devices (max-width: 992px) */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .transformation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .single-photo-analyzer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .three-cols-nav {
    flex-direction: column;
    gap: 12px;
  }

  .picker-navigation.three-cols-nav .btn-full {
    flex-basis: 54px;
  }
  .season-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .season-photo-col {
    width: 120px;
    height: 120px;
  }

  .season-info-col {
    align-items: center;
  }
  
  .attributes-pills {
    justify-content: center;
  }
}

/* Phone & Small Devices (max-width: 600px) */
@media (max-width: 600px) {
  .nav-container {
    padding: 0 16px;
  }

  .app-container {
    padding: 16px 16px 18px;
  }

  .hero-title {
    font-size: var(--heading-lg);
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-large {
    width: 100%;
  }

  .quiz-options {
    flex-direction: column;
  }

  .option-card {
    width: 100% !important;
  }



  .makeup-swatch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .ootd-combos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ootd-combo-card {
    border-radius: 16px;
    padding-bottom: 12px;
  }

  .ootd-photo-frame {
    border-radius: 16px 16px 0 0;
  }

  .combo-header,
  .combo-swatches {
    margin-inline: 10px;
  }

  .combo-title {
    font-size: var(--text-xs);
    overflow-wrap: anywhere;
  }

  .combo-color-circle {
    width: 28px;
    height: 28px;
  }

  .avoid-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .sci-art-badges {
    flex-direction: row;
    gap: 10px;
  }

  .sci-badge-item {
    min-width: 0;
    padding: 12px;
  }

  .badge-label,
  .badge-value {
    overflow-wrap: anywhere;
  }

  .fabric-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .palette-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .canvas-wrapper {
    max-height: 360px;
  }
  
  #photo-canvas {
    max-height: 360px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
  }
}

@media (max-width: 380px) {
  .palette-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================================================================
   10. Social Login Modal Overlay Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: var(--text-lg);
  color: var(--neutral-400);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(0,0,0,0.04);
  color: var(--neutral-800);
}

.modal-logo {
  margin-bottom: 16px;
}

.modal-title {
  font-size: var(--heading-sm);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin-bottom: 28px;
  line-height: 1.5;
}

.sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 100px;
  width: 100%;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-spring);
  outline: none;
  font-family: var(--font-sans);
}

.btn-google {
  background: white;
  color: var(--neutral-800);
  border: 1px solid var(--border-default);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-google:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-apple {
  background: #000000;
  color: #ffffff;
  border: none;
}

.btn-apple:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sso-icon {
  flex-shrink: 0;
}

.modal-footer {
  margin-top: 24px;
  font-size: var(--text-xs);
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Post-quiz access gate */
.result-gate-card {
  max-width: 520px;
  padding: 38px 40px 30px;
  text-align: left;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
}

.result-gate-card .modal-logo {
  text-align: center;
}

.result-gate-card .modal-title {
  max-width: 430px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--fluid-heading-md);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.result-gate-card .modal-desc {
  margin: 0 0 20px;
  color: var(--neutral-600);
  font-size: var(--text-md);
  line-height: 1.65;
}

.result-gate-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 22px;
  padding: 11px 14px;
  border: 1px solid #eadfca;
  border-radius: 999px;
  color: #554d43;
  background: #fffdf9;
  font-size: var(--text-sm);
}

.result-gate-trust i {
  color: #d4a942;
}

.result-gate-card .btn-sso {
  min-height: 52px;
  border-radius: 16px;
  font-size: var(--text-md);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 19px 0 16px;
  color: var(--neutral-400);
  font-size: var(--text-xs);
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--neutral-200);
}

.email-login-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.email-login-form label {
  color: var(--neutral-800);
  font-size: var(--text-sm);
  font-weight: 700;
}

.email-input-wrap {
  position: relative;
}

.email-input-wrap i {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--neutral-500);
}

.email-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  outline: none;
  color: var(--neutral-900);
  background: #fff;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.email-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.email-error {
  margin: 0;
  color: #b42318;
  font-size: var(--text-xs);
}

.email-continue-btn {
  min-height: 52px;
  margin-top: 3px;
  border-radius: 16px;
  justify-content: center;
}

.email-continue-btn:disabled {
  cursor: not-allowed;
  color: var(--neutral-400);
  background: var(--neutral-100);
  box-shadow: none;
  opacity: 1;
}

.result-gate-card .modal-footer {
  justify-content: center;
  margin-top: 18px;
}

.auth-provider-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7f9;
  color: #74515b;
  font-size: 13px;
  line-height: 1.55;
}

.report-email-card {
  width: min(92vw, 470px);
  text-align: left;
}

.report-email-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe4eb, #fff6e8);
  color: #a34e68;
  font-size: 22px;
}

.report-email-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #a34e68;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.report-email-card h2 {
  margin: 0 0 8px;
}

.report-email-card > p {
  margin: 0 0 20px;
  color: #6b5c61;
  line-height: 1.55;
}

.report-email-card form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #493b40;
}

.report-email-submit {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}

.report-email-privacy {
  margin: 14px 0 0 !important;
  font-size: 12px;
  text-align: center;
}

.daily-limit-notice {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #f1d6dd;
  border-radius: 14px;
  background: #fff9fa;
  color: #74515b;
  font-size: 14px;
}

/* Concise free result and full-report upgrade */
.result-preview-card {
  --preview-body-size: var(--fluid-preview-body);
  padding: clamp(26px, 5vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 4%, var(--season-glow, rgba(255,130,165,.15)), transparent 28%),
    linear-gradient(145deg, #fff 0%, #fffbf8 100%);
}

.result-preview-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.result-access-badge,
.paywall-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #8b5e34;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-preview-season {
  margin: 2px 0 10px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--fluid-heading-lg);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.result-preview-summary {
  max-width: 700px;
  margin: 0;
  color: var(--neutral-700);
  font-size: var(--preview-body-size);
  line-height: 1.65;
}

.result-preview-section {
  padding-top: 26px;
}

.result-preview-section + .result-preview-section {
  margin-top: 28px;
}

.result-preview-section > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: var(--text-lg);
}

.result-preview-section > h3::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #f8eadf;
  color: #99643a;
  font-family: "Font Awesome 6 Free";
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1;
}

.result-preview-dimensions > h3::before {
  content: "\f1de";
}

.result-preview-palette-section > h3::before {
  content: "\f53f";
}

.result-preview-tip-section > h3::before {
  content: "\f0eb";
}

.result-preview-section > p {
  margin: 0 0 20px;
  color: var(--neutral-500);
  font-size: var(--preview-body-size);
  line-height: 1.65;
}

.result-preview-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-insight {
  min-width: 0;
  padding: 17px 16px 15px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.preview-insight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.preview-insight-head span {
  color: var(--neutral-500);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.preview-insight-head strong {
  overflow: hidden;
  color: var(--neutral-800);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-axis {
  position: relative;
  width: 100%;
  height: 6px;
  margin: 0 0 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9d8eb, #f2e4d8 50%, #d9a66f);
}

.preview-axis::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--preview-position, 50%);
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 7px rgba(15,23,42,.18);
}

.result-preview-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.preview-color {
  aspect-ratio: 1;
  min-height: 52px;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.result-preview-palette-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background: rgba(255, 252, 249, .88);
}

.preview-lock-swatches {
  display: flex;
  align-items: center;
  width: 94px;
  height: 42px;
}

.preview-lock-swatches span {
  width: 28px;
  height: 36px;
  flex: 0 0 28px;
  margin-left: -13px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 9px;
  background: linear-gradient(145deg, #ead1bf, #ddd3e2);
  box-shadow: 0 3px 8px rgba(15,23,42,.08);
  filter: saturate(.65);
}

.preview-lock-swatches span:first-child { margin-left: 0; }
.preview-lock-swatches span:nth-child(2) { background: linear-gradient(145deg, #d7c9dd, #ead7cf); }
.preview-lock-swatches span:nth-child(3) { background: linear-gradient(145deg, #dfc2b8, #d7d9ca); }
.preview-lock-swatches span:nth-child(4) { background: linear-gradient(145deg, #cdd9d6, #ead2c7); }
.preview-lock-swatches span:nth-child(5) { background: linear-gradient(145deg, #e4d4bd, #d3cadd); }
.preview-lock-swatches span:nth-child(6) { background: linear-gradient(145deg, #d4c4c4, #d7ded5); }

.preview-lock-copy {
  min-width: 0;
}

.preview-lock-copy strong,
.preview-lock-copy span {
  display: block;
}

.preview-lock-copy strong {
  margin-bottom: 3px;
  color: var(--neutral-800);
  font-size: var(--text-sm);
}

.preview-lock-copy span {
  color: var(--neutral-500);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.preview-lock-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8c6b56;
  background: #f4e7de;
  font-size: var(--text-xs);
}

.result-preview-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-preview-tip {
  padding: 17px 18px;
  border-radius: 18px;
}

.result-preview-tip.is-best {
  border: 1px solid #d9eadf;
  background: #f6fbf7;
}

.result-preview-tip.is-avoid {
  border: 1px solid #f0dfdf;
  background: #fff9f8;
}

.result-preview-tip > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--neutral-700);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.result-preview-tip.is-best i {
  color: #3d8b5d;
}

.result-preview-tip.is-avoid i {
  color: #b95b5b;
}

.result-preview-tip p {
  margin: 0;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.paywall-stage {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: var(--radius-lg);
  background: #f6f3f1;
  box-shadow: var(--glass-shadow);
}

.paywall-result-backdrop {
  position: absolute;
  inset: -26px;
  z-index: 0;
  padding: 38px;
  filter: blur(9px);
  opacity: .58;
  transform: scale(1.035);
  pointer-events: none;
  user-select: none;
}

.paywall-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(247, 245, 243, .38);
  pointer-events: none;
}

.paywall-backdrop-sheet {
  min-height: 100%;
  padding: 38px;
  border: 1px solid rgba(214, 222, 230, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
}

.paywall-backdrop-kicker {
  color: #9a613e;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1px;
}

.paywall-backdrop-title {
  display: block;
  margin: 12px 0 20px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--display-md);
}

.paywall-backdrop-makeup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.paywall-backdrop-makeup-category {
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
}

.paywall-backdrop-makeup-category > strong,
.paywall-backdrop-makeup-tip > strong {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.paywall-backdrop-makeup-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.paywall-backdrop-makeup-swatches span {
  aspect-ratio: 1.08 / 1;
  border: 2px solid #fff;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(15,23,42,.1);
}

.paywall-backdrop-makeup-tip {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background: rgba(255,250,246,.94);
}

.paywall-backdrop-makeup-tip > span {
  display: block;
  width: 86%;
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  background: #dce3ea;
}

.paywall-backdrop-makeup-tip > span:nth-of-type(2) {
  width: 68%;
}

.report-paywall-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.paywall-lock-icon,
.payment-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #9a613e;
  background: #f7e7dc;
  font-size: var(--heading-xs);
}

.paywall-lock-icon {
  color: #ff82a5;
  background: rgba(255, 240, 245, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.paywall-eyebrow {
  color: #e85f87;
}

.paywall-copy h3 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--heading-sm);
}

.paywall-copy p {
  max-width: 580px;
  margin: 0 0 12px;
  color: var(--neutral-600);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.paywall-action {
  min-width: 270px;
  text-align: center;
}

.paywall-action .btn {
  width: 100%;
  flex-direction: row;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.paywall-button-separator {
  opacity: .55;
}

.paywall-button-price {
  color: inherit;
  font-size: var(--text-md);
  font-weight: 800;
}

.paywall-result-list {
  display: grid;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.paywall-result-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  color: var(--neutral-700);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.paywall-result-list i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #ff82a5;
  color: #fff;
  font-size: var(--text-xxs);
  -webkit-text-stroke: .65px #fff;
}

@media (min-width: 701px) {
  .report-paywall-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "icon benefits"
      "copy benefits"
      "button benefits";
    align-items: center;
    gap: 18px 42px;
  }

  .paywall-lock-icon {
    grid-area: icon;
    justify-self: center;
  }

  .paywall-copy {
    grid-area: copy;
    width: 100%;
    text-align: center;
  }

  .paywall-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .paywall-action {
    display: contents;
  }

  .paywall-action .btn {
    grid-area: button;
    width: min(100%, 430px);
    margin-top: 4px;
    justify-self: center;
  }

  .paywall-result-list {
    grid-area: benefits;
    align-self: center;
    justify-self: center;
    margin: 0;
  }
}

body.results-preview .palette-card,
body.results-preview .season-banner,
body.results-preview .guidelines-card,
body.results-preview .profile-card,
body.results-preview .makeup-card,
body.results-preview .hair-card,
body.results-preview .ootd-card,
body.results-preview .wardrobe-card,
body.results-preview .eyewear-card,
body.results-preview .nails-card,
body.results-preview .fragrance-card,
body.results-preview .affirmation-card {
  display: none;
}

body.results-full .result-preview-card,
body.results-full .report-paywall-card,
body.results-full .paywall-stage {
  display: none;
}

body.results-locked #section-results {
  visibility: hidden;
}

body.free-mvp [data-my-panel="subscription"],
body.free-mvp [data-mobile-my-panel="subscription"],
body.free-mvp [data-my-panel-content="subscription"],
body.free-mvp #payment-modal,
body.free-mvp #payment-success-modal {
  display: none !important;
}

/* Checkout */
.payment-card {
  max-width: 470px;
  align-items: stretch;
  text-align: left;
  background: rgba(255,255,255,.97);
}

.payment-icon {
  margin: 0 auto 16px;
}

.payment-eyebrow {
  margin-bottom: 8px;
  text-align: center;
}

.payment-title {
  margin: 0 0 10px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--heading-md);
  line-height: 1.12;
  text-align: center;
}

.payment-desc {
  margin: 0 0 20px;
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.55;
  text-align: center;
}

.payment-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: var(--neutral-50);
}

.payment-order-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-order-row span {
  color: var(--neutral-500);
  font-size: var(--text-xs);
}

.payment-feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: var(--neutral-700);
  font-size: var(--text-sm);
}

.payment-feature-list i {
  width: 20px;
  color: #a66f49;
}

.payment-submit-btn {
  width: 100%;
  justify-content: center;
}

.payment-security {
  margin: 12px 0 0;
  color: var(--neutral-500);
  font-size: var(--text-xxs);
  text-align: center;
}

/* Payment success and report email confirmation */
body.payment-success-open {
  overflow: hidden;
}

.payment-success-modal {
  background: rgba(28, 22, 25, 0.46);
}

.payment-success-card {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  padding: 40px 36px 30px;
  border-color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 250, 241, 0.92), rgba(255, 255, 255, 0) 42%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 70px rgba(38, 24, 29, 0.2);
}

.payment-success-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 17px;
  color: #1b9a6d;
}

.payment-success-icon svg {
  width: 100%;
  height: 100%;
  fill: #e7f8f1;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-success-eyebrow {
  margin-bottom: 8px;
  color: #25805f;
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.payment-success-card h2 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: var(--heading-md);
  line-height: 1.15;
}

.payment-success-card > p {
  margin: 0;
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.email-report-confirm {
  width: 100%;
  margin: 24px 0 20px;
  padding: 18px;
  border: 1px solid #eadfe3;
  border-radius: 18px;
  background: #fffafb;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  text-align: left;
  box-sizing: border-box;
}

.email-report-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
}

.email-report-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-report-copy {
  min-width: 0;
}

.email-report-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--neutral-800);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.email-report-copy p {
  margin: 0 0 8px;
  color: var(--neutral-500);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.email-report-copy span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: white;
  color: var(--neutral-700);
  font-size: var(--text-xs);
  font-weight: 700;
  word-break: break-all;
  box-shadow: inset 0 0 0 1px var(--neutral-200);
}

.payment-success-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
}

.payment-success-actions .btn {
  min-height: 50px;
  justify-content: center;
}

.payment-success-note {
  margin-top: 16px !important;
  color: var(--neutral-400) !important;
  font-size: var(--text-xxs) !important;
}

@media (max-width: 700px) {
  body.results-view-active .app-container {
    padding-top: 8px;
  }

  .result-preview-card {
    border-radius: 16px 16px 20px 20px;
    background-clip: border-box;
  }

  .result-gate-card {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 30px 22px 22px;
    overflow-y: auto;
  }

  .result-gate-card .modal-title {
    font-size: var(--heading-lg);
  }

  .result-preview-insights,
  .result-preview-tips {
    grid-template-columns: 1fr;
  }

  .result-preview-heading {
    margin-bottom: 16px;
  }

  .result-preview-section {
    padding-top: 20px;
  }

  .result-preview-section + .result-preview-section {
    margin-top: 20px;
  }

  .result-preview-palette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preview-color {
    min-height: 58px;
  }

  .result-preview-palette-lock {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 13px 14px;
  }

  .preview-lock-swatches {
    width: 72px;
  }

  .preview-lock-swatches span {
    width: 24px;
    height: 32px;
    flex-basis: 24px;
    margin-left: -14px;
  }

  .preview-lock-icon {
    display: none;
  }

  .report-paywall-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .paywall-copy {
    width: 100%;
    text-align: center;
  }

  .paywall-copy h3,
  .paywall-copy p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .paywall-stage {
    min-height: 700px;
    padding: 14px;
  }

  .paywall-stage::after {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 38%, rgba(255,255,255,.7) 72%, rgba(255,255,255,.98) 100%),
      rgba(247,245,243,.26);
  }

  .paywall-result-backdrop {
    inset: -18px;
    padding: 22px;
    filter: blur(8px);
  }

  .paywall-backdrop-sheet {
    padding: 24px;
  }

  .paywall-backdrop-makeup-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    transform: translateY(-12px);
  }

  .paywall-backdrop-makeup-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .paywall-backdrop-kicker,
  .paywall-backdrop-title,
  .paywall-backdrop-makeup-category > strong,
  .paywall-backdrop-makeup-tip {
    display: none;
  }

  .paywall-lock-icon {
    order: -1;
    margin: 0 auto;
  }

  .paywall-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .paywall-action .btn {
    position: relative;
    top: -12px;
    margin-right: auto;
    margin-left: auto;
  }

  .report-actions {
    width: calc(100% - 60px);
    margin-right: auto;
    margin-left: auto;
  }

  .paywall-result-list {
    gap: 17px;
    width: max-content;
    max-width: min(100%, 560px);
    margin: 26px auto 0;
  }

  .paywall-result-list li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    font-size: var(--text-sm);
  }

  .paywall-result-list i {
    width: 22px;
    height: 22px;
  }

  .payment-card {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 32px 22px 24px;
    overflow-y: auto;
  }

  .modal-card.payment-success-card {
    width: calc(100% - 8px);
    max-height: calc(100dvh - 24px);
    padding: 34px 20px 24px;
    overflow-y: auto;
  }

  .payment-success-icon {
    width: 64px;
    height: 64px;
  }

  .email-report-confirm {
    margin: 20px 0 16px;
    padding: 15px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .email-report-icon {
    width: 42px;
    height: 42px;
  }

  .payment-success-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 11. Visual Option Cards (Quiz Image Choices) */
.option-card.no-padding {
  padding: 0 !important;
  overflow: hidden;
}

.option-image-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.option-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover .option-card-img {
  transform: scale(1.05);
}

.option-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.option-image-overlay .option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: var(--text-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.option-image-overlay .option-label i {
  color: var(--primary);
  font-size: var(--text-md);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.invisible {
  visibility: hidden !important;
  pointer-events: none !important;
}

.back-btn.disabled {
  opacity: 0.12 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* 12. Navbar Language Selector Custom Dropdown */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-selector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  padding: 4px 14px 4px 6px;
  min-height: 38px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-800);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.lang-selector-pill:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-200);
}

.lang-selector-pill span#active-lang-flag {
  font-size: var(--text-md);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--neutral-100);
}

.lang-selector-pill span#active-lang-text {
  text-transform: uppercase;
}

.lang-selector-pill i {
  font-size: var(--text-sm);
  color: var(--neutral-800);
  transition: transform 0.2s ease;
}

.lang-selector-wrapper.open .lang-selector-pill i {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: fixed;
  top: 72px;
  left: auto;
  right: 24px;
  background: rgba(249, 250, 249, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.12);
  width: 190px;
  max-height: 350px;
  overflow-y: auto;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  z-index: 220;
  transform-origin: top right;
  animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lang-dropdown::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lang-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--neutral-800);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-dropdown a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--neutral-900);
}

.lang-dropdown a .active-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff82a5;
  color: transparent;
  font-size: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lang-dropdown a.active .active-dot {
  opacity: 1;
}

/* ==========================================================================
   11. New Sci/ART Addons Sections (Wardrobe, Eyewear, Nails, Fragrance)
   ========================================================================== */

/* Wardrobe Ratio Styles */
.wardrobe-ratio-container {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Eyewear Grid */
.eyewear-grid {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 24px;
  align-items: stretch;
}

.eyewear-col {
  background: var(--neutral-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyewear-col h6 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.eyewear-col h6 i {
  color: var(--neutral-400);
}

/* Fragrance Card Styles */
.fragrance-container {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  position: relative;
  overflow: visible;
}

.fragrance-container::after {
  content: none;
}

.fragrance-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.fragrance-meta {
  display: block;
}

.fragrance-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: none;
  justify-self: flex-start;
}

.fragrance-info-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.fragrance-notes {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-left: 5px;
  font-size: var(--text-sm);
  color: var(--neutral-700);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  line-height: 1.5;
  min-width: 240px;
}

.fragrance-desc {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.fragrance-note-panel {
  background: var(--neutral-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1fr);
  align-items: center;
  column-gap: 24px;
  flex: 1;
  min-width: 0;
}

.fragrance-note-grid {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.fragrance-note-card {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fragrance-note-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.fragrance-note-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile Responsive Adjustments for Addons */
@media (max-width: 600px) {
  .eyewear-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fragrance-container {
    display: block;
  }
  
  .fragrance-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fragrance-note-panel {
    grid-template-columns: 1fr;
    row-gap: 16px;
    width: 100%;
    align-items: flex-start;
  }

  .fragrance-note-grid {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 10px;
    grid-column: auto;
    grid-row: auto;
  }
}

/* ==========================================================================
   12. Lipstick Swatches Matte Texture Overlay (Matches Swatch Size & Naming)
   ========================================================================== */
.lipstick-swatch-block {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.eyeshadow-swatch-block {
  background-size: 115%;
  background-position: center;
  background-repeat: no-repeat;
}

.blush-swatch-block {
  background-size: 115%;
  background-position: center;
  background-repeat: no-repeat;
}

.hair-swatch-block {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.foundation-swatch-block {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.jewelry-swatch-block {
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
}

.jewelry-object-block {
  background-size: 75%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
}

.fabric-swatch-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  max-width: 480px;
}

/* Eyewear frames: 4 columns, fill available space */
#eyewear-frames-container {
  max-width: none;
}

/* Eyewear lenses: 3 columns, fill available space */
#eyewear-lenses-container {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: none;
}

.fabric-swatch-grid .makeup-swatch-block {
  aspect-ratio: 1 / 1 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.fabric-swatch-grid .eyewear-frame-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 66% 24%, rgba(255,255,255,0.88), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #fbfcfd 58%, #f4f7fa 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  --frame-color: #111827;
  --lens-color: rgba(203, 213, 225, 0.72);
  --lens-mid: rgba(226, 232, 240, 0.72);
  --lens-light: rgba(248, 250, 252, 0.72);
}

.fabric-swatch-grid .eyewear-frame-swatch:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.1);
}

.eyewear-frame-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 7px 10px rgba(15, 23, 42, 0.12));
  transform: scale(1.12);
}

.eyewear-lens-shape {
  fill: var(--lens-color);
  fill-opacity: 0.72;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
}

.frame-stroke {
  fill: none;
  stroke: var(--frame-color);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frame-main-stroke {
  stroke-width: 6;
}

.frame-bold-stroke {
  stroke-width: 10;
}

.frame-bridge {
  stroke-width: 5;
}

.frame-bold-bridge {
  stroke-width: 8;
}

.frame-brow {
  stroke-width: 4.5;
  opacity: 0.9;
}

.frame-temple {
  stroke-width: 5.5;
  opacity: 0.82;
}

.is-metal-frame .frame-stroke {
  stroke-width: 4.5;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

.is-metal-frame .frame-bold-stroke,
.is-metal-frame .frame-bold-bridge {
  stroke-width: 5.5;
}

.is-acetate-frame .frame-stroke {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.frame-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}

.fabric-swatch-grid .eyewear-frame-swatch.is-photo-frame {
  padding: 0;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.eyewear-frame-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #ffffff;
}

.eyewear-frame-lens-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(205deg, var(--lens-color) 0%, var(--lens-mid) 62%, var(--lens-light) 100%);
}

.eyewear-frame-photo-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.is-metal-frame .eyewear-frame-photo-img {
  transform: translateY(-11px) scale(1.18);
  transform-origin: left top;
}

/* Lens wrapper: matches frame swatch square dimensions */
.eyewear-lens-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fabric-swatch-grid .eyewear-lens-swatch {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 0 #ffffff;
}

.fabric-swatch-grid .eyewear-lens-swatch:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 0 #ffffff;
}

.eyewear-lens-item.is-active .eyewear-lens-swatch {
  outline: 3px solid rgba(15, 23, 42, 0.10);
  outline-offset: 5px;
}

.fabric-swatch-grid .eyewear-lens-swatch::after {
  content: '';
  position: absolute;
  top: 12%;
  right: 18%;
  width: 32%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.40) 0%, transparent 70%);
  border-radius: 50%;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Nail Polish Swatch Styles */
.nail-swatch-block {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nail-swatch-block:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Mobile experience pass
   Kept at the end of the file so it also covers later-added report modules.
   ========================================================================== */
@media (max-width: 768px) {
  body {
    min-width: 0;
  }

  button,
  .option-card,
  .upload-dropzone,
  .single-photo-dropzone,
  .sample-target,
  .swatch-item,
  .makeup-swatch-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    padding-inline: 16px;
    gap: 12px;
  }

  .logo-sub {
    display: none;
  }

  .nav-menu {
    gap: 8px;
    flex-shrink: 0;
  }

  .lang-selector-pill,
  .nav-btn,
  .user-profile-pill {
    min-height: 42px;
  }

  .lang-selector-pill,
  .user-profile-pill {
    padding: 5px 8px 5px 5px;
  }

  .user-profile-pill #user-name {
    display: none;
  }

  .lang-dropdown {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: auto;
    touch-action: pan-y;
  }

  .app-container {
    padding: 18px 16px 48px;
    min-height: calc(100svh - 120px);
  }

  body:not(.quiz-view-active):not(.results-view-active) .app-container {
    padding-bottom: 26px;
  }

  #section-landing {
    padding: clamp(44px, 10svh, 76px) 0 16px;
  }

  .hero-content {
    gap: 18px;
    margin-bottom: 44px;
  }

  .hero-title {
    font-size: var(--fluid-mobile-display);
    line-height: 1.08;
  }

  .hero-desc {
    font-size: var(--text-md);
    line-height: 1.65;
  }

  .cta-group {
    margin-top: 4px;
    padding-top: 9px;
  }

  .btn-large {
    min-width: 0;
    min-height: 58px;
    padding: 18px 24px;
  }

  .btn-large .btn-text {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mobile-floating-cta {
    position: fixed;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 140;
    display: inline-flex;
    width: auto;
    min-height: 62px;
    padding: 17px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 28px));
    box-shadow: 0 16px 36px rgba(34, 27, 32, 0.28);
    transition:
      opacity 0.24s ease,
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.36s;
  }

  .mobile-floating-cta-backdrop {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 139;
    height: calc(132px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.72) 40%,
      rgba(255, 255, 255, 0.96) 66%,
      #fff 100%
    );
    transition: opacity 0.24s ease, visibility 0s linear 0.24s;
  }

  .mobile-floating-cta.is-visible + .mobile-floating-cta-backdrop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .mobile-floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-floating-cta .btn-text {
    justify-content: center;
    flex-wrap: nowrap;
    font-size: var(--text-md);
  }

  .mobile-floating-cta .cta-free-badge {
    right: 18px;
  }

  body.quiz-view-active .mobile-floating-cta,
  body.results-view-active .mobile-floating-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 28px));
  }

  body.quiz-view-active .mobile-floating-cta-backdrop,
  body.results-view-active .mobile-floating-cta-backdrop {
    opacity: 0;
    visibility: hidden;
  }

  .cta-free-badge {
    right: 16px;
    min-height: 22px;
    padding: 4px 9px;
    font-size: var(--text-xxs);
  }

  .hero-privacy-note {
    max-width: 320px;
    margin-top: -6px;
  }

  .trust-indicator {
    gap: 12px;
    justify-content: center;
  }

  .features-grid {
    gap: 14px;
  }

  .feature-card {
    padding: 24px;
    border-radius: 20px;
  }

  .feature-card .icon-wrapper {
    margin-bottom: 16px;
  }

  .feature-story-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .feature-story-visual {
    --story-visual-extension: 0px;
    min-height: 190px;
    padding: 20px 22px;
    overflow: hidden;
  }

  .feature-visual-caption {
    display: none;
  }

  .feature-story-edge-mask {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 82px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 18%,
      rgba(255, 255, 255, 0.12) 36%,
      rgba(255, 255, 255, 0.34) 58%,
      rgba(255, 255, 255, 0.68) 78%,
      rgba(255, 255, 255, 0.92) 92%,
      #fff 100%
    );
  }

  .feature-story-edge-mask::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 1px;
  }

  .feature-story-visual .icon-wrapper {
    width: 54px;
    height: 54px;
    margin: 8px 0;
    border-radius: 18px;
    font-size: var(--heading-xs);
  }

  .feature-story-content {
    padding: 26px 22px;
    left: 0;
  }

  html[dir="rtl"] .feature-story-content {
    right: 0;
  }

  .feature-story-content h3 {
    font-size: var(--heading-md);
    margin-bottom: 18px;
  }

  .familiar-list li {
    font-size: var(--text-sm);
    padding: 13px 0;
  }

  .feature-wide-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
  }

  .feature-wide-card .icon-wrapper {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .process-card,
  .discover-card {
    padding: 26px 22px;
  }

  .feature-section-head h3,
  .discover-copy h3 {
    font-size: var(--heading-md);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step {
    padding: 0 18px 18px;
    overflow: hidden;
  }

  .process-step-image {
    width: calc(100% + 36px);
    max-width: none;
    margin: 0 -18px 18px;
    border-radius: 0;
  }

  .discover-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      'visual'
      'content';
    gap: 0;
    padding: 0;
    height: auto;
  }

  .discover-copy {
    padding: 26px 22px;
  }

  .discover-copy > p {
    max-width: none;
  }

  .discover-result-list {
    max-width: none;
    margin-top: 18px;
    gap: 24px;
  }

  .discover-result-list li {
    font-size: var(--text-sm);
  }

  .discovery-preview {
    min-height: 190px;
    border-radius: 0;
  }

  .discovery-preview-image {
    height: 190px;
  }

  .discovery-preview::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 82px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 18%,
      rgba(255, 255, 255, 0.12) 36%,
      rgba(255, 255, 255, 0.34) 58%,
      rgba(255, 255, 255, 0.68) 78%,
      rgba(255, 255, 255, 0.92) 92%,
      #fff 100%
    );
  }

  .transformation-stories {
    margin-top: 14px;
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .transformation-heading {
    margin-bottom: 22px;
  }

  .transformation-heading h2 {
    font-size: var(--fluid-heading-sm);
    white-space: nowrap;
  }

  .discover-copy h3 {
    font-size: var(--fluid-heading-sm);
  }

  .transformation-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .comparison-visual {
    height: auto;
    aspect-ratio: 3 / 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transformation-card-copy {
    padding: 12px 18px 14px;
  }

  .transformation-card-copy > p {
    min-height: 0;
  }

  .transformation-disclaimer {
    width: auto;
    text-align: left;
    white-space: normal;
  }

  .quiz-container {
    margin: 4px auto;
  }

  .quiz-header {
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .back-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .question-container h2 {
    margin-left: 0;
    font-size: var(--fluid-heading-compact);
    line-height: 1.35;
  }

  .question-desc {
    margin-left: 0;
    margin-bottom: 20px;
    line-height: 1.55;
  }

  .quiz-options {
    gap: 14px;
  }

  .option-card {
    border-width: 1.5px;
    padding: 14px;
    gap: 10px;
  }

  .option-img {
    aspect-ratio: 16 / 10;
  }

  .option-color-swatch {
    height: 92px;
  }

  .option-label {
    min-height: 28px;
  }

  .photo-step-intro {
    margin-bottom: 18px;
  }

  .photo-step-intro h2 {
    font-size: var(--text-lg);
    line-height: 1.35;
  }

  .single-photo-stage {
    min-height: 320px;
    padding: 12px;
    border-radius: 18px;
  }

  .single-photo-dropzone {
    min-height: 294px;
    padding: 28px 20px;
  }

  .single-photo-canvas-container {
    height: 294px;
  }

  .single-photo-canvas-wrapper,
  .single-photo-canvas-wrapper canvas {
    max-height: 430px;
  }

  .single-photo-picker {
    padding: 16px;
    border-radius: 18px;
  }

  .sample-target {
    min-height: 82px;
    padding: 12px;
  }

  .three-cols-nav .btn {
    min-height: 50px;
  }

  .results-single-col {
    gap: 14px;
  }

  /* Let report cards use more of the narrow viewport while preserving a
     small visual gutter. Other screens keep their original 16px spacing. */
  #section-results {
    margin-inline: -8px;
  }

  .card-panel,
  .guidelines-card,
  .affirmation-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .season-banner-inner {
    gap: 14px;
  }

  .season-title {
    font-size: var(--heading-sm);
  }

  .season-desc {
    line-height: 1.55;
  }

  .attributes-pills {
    gap: 6px;
  }

  .pill {
    padding: 5px 10px;
    font-size: var(--text-xs);
  }

  .section-heading {
    font-size: var(--heading-xs);
    line-height: 1.3;
  }

  .section-desc {
    margin-bottom: 16px;
    line-height: 1.55;
  }

  .palette-category-group {
    margin-bottom: 24px;
  }

  .palette-category-label {
    margin-bottom: 12px;
  }

  .palette-grid,
  .avoid-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .swatch-color,
  .avoid-color-block,
  .makeup-swatch-block,
  .nail-swatch-block {
    border-radius: 12px;
  }

  .swatch-name,
  .avoid-swatch-name,
  .makeup-swatch-name {
    font-size: var(--text-xxs);
    overflow-wrap: anywhere;
  }

  .makeup-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .fabric-swatch-grid,
  #eyewear-frames-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: none;
  }

  #eyewear-lenses-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .fragrance-note-panel {
    padding: 14px;
  }

  .fragrance-notes {
    min-width: 0;
    margin-left: 0;
    overflow-wrap: anywhere;
  }

  .fragrance-note-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-actions {
    flex-direction: column;
  }

  .report-actions .btn {
    width: 100%;
    min-height: 54px;
  }

  .app-footer {
    margin-top: 12px;
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  }

  .modal-overlay {
    width: 100%;
    height: 100dvh;
    padding: 16px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 36px 20px 24px;
  }

  .toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  #section-results {
    margin-inline: -10px;
  }

  .card-panel,
  .guidelines-card,
  .affirmation-card {
    padding-inline: 14px;
  }

  .logo-text {
    font-size: var(--text-lg);
  }

  .lang-selector-pill { gap: 8px; }

  .nav-btn {
    padding: 8px 12px;
  }

  #section-landing {
    padding-top: 40px;
  }

  .trust-indicator {
    align-items: center;
    gap: 10px;
  }

  .trust-text {
    max-width: none;
    font-size: var(--fluid-caption);
    line-height: 1.35;
    white-space: nowrap;
  }

  .option-img {
    aspect-ratio: 4 / 3;
  }

  .option-img.option-img--lipstick-warm {
    background-size: 136%;
    background-position: 50% 50%;
  }

  .single-photo-upload-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .single-photo-picker {
    padding: 13px;
  }

  .sample-target {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 10px;
  }

  .sample-target-number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .sample-target-result {
    min-width: 52px;
  }

  .sample-target-copy strong {
    font-size: var(--text-xs);
  }

  .sample-target-copy small {
    font-size: var(--text-xxs);
  }

  .guide-cols {
    gap: 16px;
  }

  .contrast-meter-wrapper {
    gap: 10px;
  }

  .fragrance-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 350px) {
  .logo-sub,
  #active-lang-text,
  .txt-login,
  .lang-selector-pill i {
    display: none;
  }

  .lang-selector-pill,
  .nav-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .palette-grid,
  .avoid-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Keep the full group visible on narrow screens instead of cropping to the empty centre. */
@media (max-width: 700px) {
  #section-landing::before,
  #section-landing::after {
    display: none;
  }

  .hero-content {
    padding-bottom: 0;
  }
}

/* Compact mobile quiz: keep every answer choice visible without scrolling. */
@media (max-width: 600px) {
  .app-container {
    padding-bottom: 18px;
  }

  html.quiz-scroll-locked,
  body.quiz-scroll-locked {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  #section-quiz .quiz-container {
    margin: 0 auto;
  }

  #section-quiz {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  #section-quiz .quiz-action-bar {
    position: fixed;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 130;
    margin: 0;
  }

  #section-quiz .quiz-next-btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    border-radius: 9999px !important;
    font-size: var(--text-md);
    box-shadow: none;
  }

  #section-quiz .quiz-next-btn:not(:disabled):hover {
    box-shadow: none;
  }

  #section-quiz .quiz-next-btn:disabled,
  #section-quiz .quiz-next-btn.disabled {
    border-radius: 9999px !important;
    box-shadow: none !important;
  }

  #section-quiz .picker-navigation .btn-full {
    flex: 0 0 56px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding-block: 0;
    border-radius: 9999px;
  }

  #section-quiz .quiz-header {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  #section-quiz .back-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  #section-quiz .progress-label {
    margin-bottom: 4px;
    font-size: var(--text-xs);
  }

  #section-quiz .progress-bar {
    height: 5px;
  }

  #section-quiz .question-container h2 {
    margin-bottom: 6px;
    font-size: var(--fluid-body);
    line-height: 1.2;
  }

  #section-quiz .question-desc {
    margin-bottom: 12px;
    font-size: var(--text-sm);
    line-height: 1.35;
  }

  #section-quiz .quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #section-quiz .option-card {
    display: grid;
    grid-template-columns: clamp(132px, 46%, 170px) minmax(0, 1fr);
    align-items: center;
    width: 100% !important;
    min-height: 0;
    padding: 6px;
    gap: 10px;
    border-radius: 14px;
  }

  #section-quiz .option-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  #section-quiz .option-color-swatch {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  #section-quiz .option-label {
    justify-content: flex-start;
    min-height: 0;
    padding-right: 6px;
    font-size: var(--text-xs);
    line-height: 1.25;
    text-align: left;
  }

  #section-quiz .option-label i {
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    font-size: var(--text-md);
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  #section-quiz .question-container h2 {
    font-size: var(--text-lg);
  }

  #section-quiz .question-desc {
    margin-bottom: 8px;
    font-size: var(--text-xs);
  }

  #section-quiz .quiz-options {
    gap: 6px;
  }

  #section-quiz .option-card {
    grid-template-columns: clamp(120px, 42vw, 148px) minmax(0, 1fr);
    padding: 5px;
    gap: 8px;
  }

  #section-quiz .option-img,
  #section-quiz .option-color-swatch {
    aspect-ratio: 4 / 3;
  }
}

/* Global button shape: every button uses the same pill silhouette. */
:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  [role="button"]
) {
  border-radius: 9999px !important;
}

/* My Page */
body.my-view-active .app-container {
  max-width: 1320px;
  padding-top: 36px;
}

#section-my {
  padding: 0 0 64px;
}

.my-content-heading h2 {
  margin: 0;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-weight: 600;
}

.my-content-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--neutral-500);
  font-size: var(--text-md);
  line-height: 1.55;
}

.my-page-eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1.4px;
}

.my-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.my-page-sidebar,
.my-page-content {
  border: 1px solid rgba(95, 77, 86, 0.09);
  background: #fff;
  box-shadow: 0 18px 46px rgba(59, 46, 52, 0.07);
}

.my-page-sidebar {
  position: sticky;
  top: 84px;
  padding: 18px;
  border-radius: 28px;
}

.my-sidebar-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 8px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.my-sidebar-profile img,
.my-account-identity img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--primary-light);
  object-fit: cover;
}

.my-sidebar-profile div,
.my-account-identity div {
  min-width: 0;
}

.my-sidebar-profile strong,
.my-sidebar-profile span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-sidebar-profile strong {
  color: var(--secondary);
  font-size: var(--text-sm);
}

.my-sidebar-profile span {
  margin-top: 3px;
  color: var(--neutral-400);
  font-size: var(--text-xs);
}

.my-page-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
}

.my-mobile-panel-trigger,
.my-mobile-panel-sheet {
  display: none;
}

.my-nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.my-nav-item i {
  width: 19px;
  color: var(--neutral-400);
  text-align: center;
}

.my-nav-item:hover {
  background: var(--neutral-50);
  color: var(--secondary);
}

.my-nav-item.active {
  background: var(--secondary);
  color: #fff;
}

.my-nav-item.active i {
  color: #fff;
}

.my-nav-group-title {
  margin: 18px 12px 4px;
  color: var(--neutral-300);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 1.3px;
}

.my-page-content {
  min-height: 660px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 32px;
}

.my-panel {
  display: none;
}

.my-panel.active {
  display: block;
  animation: myPanelIn 0.16s ease both;
}

@keyframes myPanelIn {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.my-content-heading {
  margin-bottom: 30px;
}

.my-content-heading h2 {
  font-size: var(--fluid-heading-md);
  line-height: 1.1;
}

/* My Page component scale: one type ramp and one action-control size. */
.my-page-content .btn {
  min-height: 44px;
  padding: 0 20px;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
}

.my-wide-card h3,
.my-setting-card h3,
.my-consent-heading h3,
.my-account-card h3,
.my-account-danger h3 {
  font-size: var(--heading-xs);
  font-weight: 700;
  line-height: 1.3;
}

.my-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.my-summary-card,
.my-wide-card,
.my-setting-card,
.my-document-card,
.my-account-card {
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
}

.my-summary-card {
  min-height: 292px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.my-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.my-summary-card > span,
.my-saved-result span {
  color: var(--neutral-400);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.my-summary-card h3,
.my-wide-card h3,
.my-setting-card h3,
.my-document-card h3,
.my-account-card h3 {
  margin: 10px 0 8px;
  color: var(--secondary);
}

.my-summary-card h3 {
  font-family: var(--font-serif);
  font-size: var(--heading-xs);
}

.my-summary-card > p,
.my-wide-card p,
.my-setting-card p,
.my-document-card p,
.my-account-card p {
  color: var(--neutral-500);
  line-height: 1.6;
}

.my-summary-card > p {
  margin: 0 0 22px;
}

.my-card-action {
  margin-top: auto;
}

.my-wide-card {
  margin-top: 18px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.my-wide-card p {
  margin: 4px 0 0;
}

.my-wide-card > .btn {
  flex: 0 0 auto;
  min-width: 160px;
}

.my-saved-result {
  margin-top: 0;
}

.my-saved-season-mark {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3c7, #e3bd9b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--heading-xs);
}

.my-saved-result > div:nth-child(2) {
  flex: 1;
}

.my-support-contact {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.my-support-contact .my-card-icon {
  margin: 0;
}

.my-support-contact h3,
.my-support-contact p {
  margin: 0;
}

.my-support-contact p {
  max-width: 620px;
  margin-top: 5px;
  color: var(--neutral-500);
  line-height: 1.55;
}

.my-support-contact .btn {
  flex-direction: row;
}

.my-faq-section {
  margin-top: 28px;
}

.my-faq-section > h3 {
  margin: 0 0 16px;
  color: var(--secondary);
  font-family: var(--font-serif);
  font-size: var(--heading-xs);
}

.my-faq-list {
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.my-faq-list details + details {
  border-top: 1px solid var(--border-soft);
}

.my-faq-list summary {
  position: relative;
  min-height: 68px;
  padding: 21px 54px 21px 24px;
  color: var(--secondary);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.my-faq-list summary::-webkit-details-marker {
  display: none;
}

.my-faq-list summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--neutral-400);
  font-size: var(--heading-xs);
  font-weight: 400;
}

.my-faq-list details[open] summary::after {
  content: '−';
}

.my-faq-list details p {
  margin: -5px 24px 22px;
  color: var(--neutral-500);
  line-height: 1.65;
}

.my-feedback-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.my-form-field {
  display: block;
}

.my-form-field + .my-form-field {
  margin-top: 24px;
}

.my-form-field > span {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--secondary);
}

.my-form-field small {
  color: var(--neutral-400);
  font-size: var(--text-xs);
  font-weight: 500;
}

.my-form-field input[type="text"],
.my-form-field textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.my-form-field input[type="text"] {
  min-height: 54px;
  padding: 0 17px;
}

.my-form-field textarea {
  min-height: 190px;
  padding: 16px 17px;
  line-height: 1.55;
  resize: vertical;
}

.my-form-field input[type="text"]:focus,
.my-form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 113, 153, 0.12);
}

.feedback-upload {
  min-height: 76px;
  border: 1px dashed var(--neutral-300);
  border-radius: 18px;
  background: var(--neutral-50);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.feedback-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feedback-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feedback-file-name {
  min-height: 18px;
  margin: 8px 4px 0;
  color: var(--neutral-500);
  font-size: var(--text-xs);
}

.feedback-privacy-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--neutral-500);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feedback-privacy-note i {
  margin-top: 3px;
  color: var(--success);
}

.feedback-privacy-note p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.55;
}

.feedback-submit {
  min-width: 190px;
  min-height: 52px;
  margin: 24px 0 0 auto;
  padding: 0 24px;
  flex-direction: row;
  gap: 9px;
}

.my-setting-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.my-setting-card + .my-setting-card {
  margin-top: 14px;
}

.my-consent-card {
  margin: 14px 0;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
}

.my-consent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.my-consent-heading h3,
.my-consent-heading p {
  margin: 0;
}

.my-consent-heading p,
.my-consent-row p {
  margin-top: 6px;
  color: var(--neutral-500);
  line-height: 1.55;
}

.my-consent-heading .btn {
  flex: 0 0 auto;
}

.my-consent-list {
  border-top: 1px solid var(--border-soft);
}

.my-consent-row {
  min-height: 82px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

label.my-consent-row {
  cursor: pointer;
}

.my-consent-row strong {
  color: var(--secondary);
}

.my-consent-row p {
  max-width: 610px;
  margin-bottom: 0;
  font-size: var(--text-sm);
}

.consent-required {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--neutral-50);
  color: var(--neutral-500);
  font-size: var(--text-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.privacy-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
}

.privacy-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--neutral-200);
  transition: 0.2s ease;
}

.privacy-switch > span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(20, 16, 18, 0.18);
  transition: 0.2s ease;
}

.privacy-switch input:focus-visible + span {
  outline: 3px solid rgba(255, 113, 153, 0.28);
  outline-offset: 2px;
}

.privacy-switch input:checked + span {
  background: var(--primary);
}

.privacy-switch input:checked + span::after {
  transform: translateX(20px);
}

.privacy-withdraw-link {
  margin-top: 16px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--neutral-500);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.my-setting-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.my-setting-copy .my-card-icon {
  flex: 0 0 46px;
  margin: 0;
}

.my-setting-card h3,
.my-setting-card p {
  margin: 0;
}

.my-setting-card p {
  max-width: 560px;
  margin-top: 6px;
}

.privacy-choice {
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--neutral-50);
  display: flex;
  gap: 4px;
}

.privacy-choice button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--neutral-500);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.privacy-choice button.active {
  background: var(--secondary);
  color: #fff;
}

.privacy-safe-badge {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(20, 184, 122, 0.1);
  color: var(--success);
  font-size: var(--text-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.my-inline-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.my-inline-actions .btn {
  flex-direction: row;
}

.my-danger-outline {
  border: 1px solid #f5a2a8;
  background: #fff;
  color: #c92634;
}

.my-document-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.my-document-card a {
  color: #a74364;
  text-underline-offset: 3px;
}

.my-document-card section {
  scroll-margin-top: 110px;
}

.my-document-card section + section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
}

.my-document-card h3 {
  margin-top: 0;
  font-size: var(--text-lg);
}

.my-document-card h3:not(:first-child) {
  margin-top: 28px;
}

.my-document-card p {
  margin: 0;
  font-size: var(--text-md);
}

.my-document-card p + p,
.my-document-card p + ul,
.my-document-card ul + p {
  margin-top: 14px;
}

.my-document-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--neutral-500);
}

.my-document-card li {
  padding-left: 5px;
  line-height: 1.65;
}

.my-document-card li + li {
  margin-top: 10px;
}

.policy-plain-summary {
  padding: 22px 24px;
  border: 1px solid rgba(255, 113, 153, 0.25);
  border-radius: 20px;
  background: #fff8fa;
}

.policy-plain-summary strong {
  color: var(--secondary);
  font-size: var(--text-md);
}

.policy-plain-summary p {
  margin-top: 8px;
}

.policy-toc {
  margin: 24px 0 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--neutral-50);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.policy-toc strong {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--secondary);
}

.policy-toc a {
  font-size: var(--text-sm);
  text-decoration: none;
}

.policy-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.policy-table th,
.policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--neutral-50);
  color: var(--secondary);
  font-weight: 700;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.my-account-card {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.my-account-danger {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid #f2b9bd;
  border-radius: 24px;
  background: #fffafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.my-account-danger h3,
.my-account-danger p {
  margin: 0;
}

.my-account-danger h3 {
  color: #b4232f;
}

.my-account-danger p {
  max-width: 650px;
  margin-top: 7px;
  color: var(--neutral-500);
  line-height: 1.55;
}

.my-account-danger .btn {
  flex: 0 0 auto;
  flex-direction: row;
}

.my-account-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.my-account-identity img {
  width: 58px;
  height: 58px;
}

.my-account-card h3,
.my-account-card p {
  margin: 0;
}

.my-account-card .btn {
  flex-direction: row;
}

.subscription-current-card {
  padding: 24px 26px;
  border: 1px solid rgba(255, 113, 153, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff7f9 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.subscription-label,
.subscription-plan-kicker {
  color: var(--primary);
  font-size: var(--text-xxs);
  font-weight: 800;
  letter-spacing: 1.15px;
}

.subscription-current-title {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subscription-current-title h3,
.subscription-plan-heading h3,
.subscription-plan-card h3 {
  margin: 0;
  color: var(--secondary);
}

.subscription-current-title h3,
.subscription-plan-card h3 {
  font-family: var(--font-serif);
  font-size: var(--heading-xs);
}

.subscription-current-card p {
  margin: 6px 0 0;
  color: var(--neutral-500);
  line-height: 1.55;
}

.subscription-status {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 122, 0.11);
  color: var(--success);
  font-size: var(--text-xs);
  font-weight: 750;
}

.subscription-status.inactive {
  background: var(--neutral-100);
  color: var(--neutral-400);
}

.subscription-plan-heading {
  margin: 34px 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.subscription-plan-heading h3 {
  font-size: var(--text-lg);
}

.subscription-plan-heading p {
  margin: 5px 0 0;
  color: var(--neutral-500);
}

.subscription-cycle-toggle {
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--neutral-50);
  display: flex;
}

.subscription-cycle-toggle button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--neutral-500);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 750;
  cursor: pointer;
}

.subscription-cycle-toggle button.active {
  background: var(--secondary);
  color: #fff;
}

.subscription-cycle-toggle small {
  margin-left: 5px;
  color: var(--primary);
  font-size: var(--text-xxs);
  font-weight: 800;
}

.subscription-cycle-toggle button.active small {
  color: #ffd1dd;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.subscription-plan-grid.single-plan {
  max-width: 680px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}

.subscription-plan-grid.single-plan .subscription-plan-card {
  min-height: 480px;
}

.subscription-plan-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.subscription-plan-card.featured {
  border-color: rgba(255, 113, 153, 0.5);
  background: linear-gradient(180deg, #fff8fa 0%, #fff 42%);
}

.subscription-plan-card.current {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.subscription-popular {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.subscription-plan-card h3 {
  margin-top: 8px;
}

.subscription-plan-card > div:first-of-type > p {
  min-height: 68px;
  margin: 8px 0 0;
  color: var(--neutral-500);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.subscription-price {
  min-height: 58px;
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.subscription-price strong {
  color: var(--secondary);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.subscription-price span {
  color: var(--neutral-400);
  font-size: var(--text-xs);
}

.subscription-plan-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--neutral-500);
  font-size: var(--text-sm);
}

.subscription-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}

.subscription-plan-card li + li {
  margin-top: 11px;
}

.subscription-plan-card li i {
  margin-top: 3px;
  color: var(--primary);
  font-size: 12px;
}

.subscription-select-btn {
  width: 100%;
  margin-top: auto;
}

.subscription-select-btn:disabled {
  border-color: var(--border-default);
  background: var(--neutral-100);
  box-shadow: none;
  color: var(--neutral-400);
  cursor: default;
}

.subscription-demo-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--neutral-50);
  color: var(--neutral-500);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.subscription-demo-note i {
  margin-top: 3px;
  color: var(--primary);
}

.subscription-demo-note p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.55;
}

@media (max-width: 900px) {
  body.my-view-active .app-container {
    padding: 14px 14px 40px;
  }

  #section-my {
    padding: 0 0 44px;
  }

  .my-page-layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .my-page-layout > *,
  .my-page-sidebar,
  .my-page-content {
    width: 100%;
    min-width: 0;
  }

  .my-page-sidebar {
    position: static;
    padding: 14px;
  }

  .my-page-nav {
    display: none;
  }

  .my-mobile-panel-trigger {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 0 16px;
    border: 1px solid var(--border-default);
    border-radius: 16px !important;
    background: var(--neutral-50);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
  }

  .my-mobile-panel-trigger > i:first-child {
    color: var(--primary);
  }

  .my-mobile-panel-trigger > span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .my-mobile-panel-trigger > i:last-child {
    color: var(--neutral-400);
    font-size: var(--text-xs);
  }

  .my-mobile-panel-trigger:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 113, 153, 0.12);
  }

  body.my-mobile-sheet-open {
    overflow: hidden;
  }

  .my-mobile-panel-sheet:not(.hidden) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
  }

  .my-mobile-panel-sheet-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 !important;
    background: rgba(34, 27, 32, 0.44);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: myMobileSheetFade 0.2s ease both;
  }

  .my-mobile-panel-sheet-card {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(78vh, 640px);
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 -18px 54px rgba(34, 27, 32, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: myMobileSheetIn 0.24s ease both;
  }

  .my-mobile-panel-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--neutral-200);
  }

  .my-mobile-panel-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .my-mobile-panel-sheet-header h2 {
    margin: 0;
    color: var(--secondary);
    font-size: var(--heading-xs);
    line-height: 1.2;
  }

  .my-mobile-panel-sheet-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-default);
    background: var(--neutral-50);
    color: var(--neutral-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .my-mobile-panel-sheet-groups {
    margin-top: 18px;
    display: grid;
    gap: 18px;
  }

  .my-mobile-panel-sheet-groups section > p {
    margin: 0 0 8px 4px;
    color: var(--neutral-400);
    font-size: var(--text-xxs);
    font-weight: 800;
    letter-spacing: 1.2px;
  }

  .my-mobile-panel-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .my-mobile-panel-sheet-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .my-mobile-panel-sheet-item {
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid var(--border-soft);
    border-radius: 16px !important;
    background: var(--neutral-50);
    color: var(--neutral-700);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .my-mobile-panel-sheet-item i {
    width: 18px;
    flex: 0 0 18px;
    color: var(--neutral-400);
    text-align: center;
  }

  .my-mobile-panel-sheet-item.active {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #fff;
  }

  .my-mobile-panel-sheet-item.active i {
    color: var(--primary);
  }

  @keyframes myMobileSheetFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

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

  .my-nav-group-title {
    display: none;
  }

  .my-page-content {
    min-height: 560px;
  }
}

@media (max-width: 650px) {
  body.my-view-active:not(.quiz-view-active):not(.results-view-active) .app-container {
    padding-bottom: 0;
  }

  #section-my {
    padding-bottom: 16px;
  }

  .my-content-heading > p:last-child {
    font-size: var(--text-sm);
  }

  .my-page-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    width: 100%;
    padding:
      10px max(14px, env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(132px, 40vw, 156px);
    align-items: center;
    gap: 10px;
  }

  body.my-view-active .app-footer {
    margin-top: 0;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .my-sidebar-profile {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    gap: 10px;
  }

  .my-sidebar-profile img {
    width: 42px;
    height: 42px;
  }

  .my-sidebar-profile strong {
    font-size: var(--text-sm);
  }

  .my-sidebar-profile span {
    margin-top: 0;
    font-size: var(--text-xxs);
  }

  .my-mobile-panel-trigger {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
    gap: 8px;
  }

  .my-page-content {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .my-overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .my-summary-card {
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
  }

  .my-summary-card .my-card-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .my-summary-card > span,
  .my-summary-card > h3,
  .my-summary-card > p,
  .my-summary-card > .my-card-action {
    grid-column: 2;
  }

  .my-summary-card > span {
    align-self: end;
  }

  .my-summary-card > h3 {
    margin: 0;
    line-height: 1.25;
  }

  .my-summary-card > p {
    margin: 4px 0 10px;
    font-size: var(--text-sm);
    line-height: 1.5;
  }

  .my-summary-card > .my-card-action {
    justify-self: start;
    margin: 0;
  }

  .my-wide-card,
  .my-setting-card,
  .my-account-card,
  .my-account-danger {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-wide-card > .btn,
  .my-setting-card > .btn,
  .my-account-card > .btn {
    width: 100%;
  }

  .my-account-danger .btn {
    width: 100%;
  }

  .my-saved-result {
    align-items: flex-start;
  }

  .my-saved-result > .btn {
    width: 100%;
  }

  .subscription-current-card,
  .subscription-plan-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-current-card .btn,
  .subscription-cycle-toggle {
    width: 100%;
  }

  .subscription-cycle-toggle button {
    flex: 1;
    padding: 0 12px;
  }

  .subscription-plan-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .subscription-plan-card > div:first-of-type > p {
    min-height: 0;
  }

  .privacy-choice {
    width: 100%;
  }

  .privacy-choice button {
    flex: 1;
  }

  .my-inline-actions {
    width: 100%;
    flex-direction: column;
  }

  .my-inline-actions .btn {
    width: 100%;
  }

  .my-support-contact {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .my-support-contact .btn {
    width: 100%;
    grid-column: 1 / -1;
  }

  .feedback-submit {
    width: 100%;
  }

  .my-consent-heading {
    flex-direction: column;
  }

  .my-consent-heading .btn {
    width: 100%;
  }

  .my-consent-row {
    align-items: flex-start;
  }

  .policy-toc {
    grid-template-columns: 1fr;
  }

  .my-document-card p {
    font-size: var(--text-sm);
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mesh-bg,
  .navbar,
  .app-footer,
  .report-actions,
  .mobile-floating-cta,
  .mobile-floating-cta-backdrop,
  .toast,
  .modal-overlay,
  .cookie-consent {
    display: none !important;
  }

  .view-section:not(#section-results) {
    display: none !important;
  }

  #section-results {
    display: block !important;
    opacity: 1 !important;
  }

  .app-container,
  .results-single-col {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .card-panel {
    break-inside: avoid;
    box-shadow: none !important;
  }
}
