/* ═══════════════════════════════════════
   DIAMO — Premium Cosmic Design System
   v2.0 — Cosmic Visual Overhaul
   ═══════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg-deep: #0a0a1a;
  --bg-surface: #0f0f20;
  --bg-card: #14142a;
  --bg-card-hover: #1a1a35;

  /* Text */
  --text-primary: #e8e4df;
  --text-secondary: #9d99b3;
  --text-muted: #6b6580;

  /* Accents */
  --accent-warm: #d4a574;
  --accent-gold: #c9a55c;
  --accent-rose: #c47d8e;
  --accent-violet: #8b7bc7;
  --accent-teal: #6db5a0;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.10);
  --border-focus: rgba(139,123,199,0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-warm), var(--accent-rose), var(--accent-violet));
  --gradient-card: linear-gradient(135deg, rgba(139,123,199,0.07), rgba(212,165,116,0.04));
  --gradient-gold: linear-gradient(135deg, #d4a574, #c9a55c, #a07840);

  /* Shadows & Glow */
  --shadow-glow: 0 0 40px rgba(139,123,199,0.10);
  --shadow-gold: 0 0 32px rgba(212,165,116,0.15);
  --shadow-deep: 0 16px 48px rgba(0,0,0,0.4);

  /* Layout */
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
  --transition-fast: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══ PAGE TRANSITION ═══ */
body {
  animation: pageEnter 0.5s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ AMBIENT BACKGROUND ═══ */
.ambient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,123,199,0.09) 0%, transparent 65%);
  animation: drift1 28s ease-in-out infinite;
}
.ambient::after {
  content: '';
  position: absolute;
  bottom: -15%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,165,116,0.07) 0%, transparent 65%);
  animation: drift2 35s ease-in-out infinite;
}
.ambient-mid {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(196,125,142,0.04) 0%, transparent 70%);
  animation: drift3 40s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.05); }
  66% { transform: translate(-40px, 30px) scale(0.98); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(1.03); }
  66% { transform: translate(30px, -20px) scale(0.97); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Stars particle effect */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 40%, rgba(255,255,255,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.07) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 80%, rgba(212,165,116,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 45%, rgba(139,123,199,0.15) 0%, transparent 100%);
  pointer-events: none;
}

.content { position: relative; z-index: 1; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 24px;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.35s; }
.reveal.delay-4 { transition-delay: 0.5s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ NAV ═══ */
.diamo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.logo-diamond {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gradient-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}
/* backward compat */
.logo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gradient-primary);
  transform: rotate(45deg);
  margin-left: 3px;
  vertical-align: middle;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Button click ripple/press animation */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s ease;
  border-radius: inherit;
}
.btn:active::after {
  background: rgba(255,255,255,0.08);
}
.btn:active {
  transform: scale(0.97) translateY(1px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(212,165,116,0.2), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 36px rgba(212,165,116,0.3), 0 0 20px rgba(139,123,199,0.2);
}
.btn-primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 2px 12px rgba(212,165,116,0.2);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 24px;
}
.btn-ghost:hover {
  color: var(--text-primary);
}

/* ═══ FORM ELEMENTS ═══ */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139,123,199,0.12), 0 0 12px rgba(139,123,199,0.08);
  background: var(--bg-card-hover);
}
.form-input::placeholder {
  color: var(--text-muted);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-violet);
}

/* ═══ AUTOCOMPLETE ═══ */
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-medium);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-deep);
}
.autocomplete-list.active { display: block; }
.autocomplete-item {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.autocomplete-item:hover {
  background: rgba(139,123,199,0.08);
  color: var(--text-primary);
}
.autocomplete-item:last-child { border-bottom: none; }

/* ═══ QUIZ OPTION CARDS ═══ */
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 12px;
  min-height: 44px;
}
.quiz-option:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--accent-violet);
}
.quiz-option.selected {
  border-color: var(--accent-violet);
  background: rgba(139,123,199,0.10);
  box-shadow: -3px 0 0 var(--accent-violet), 0 0 20px rgba(139,123,199,0.08);
}
.quiz-option-letter {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139,123,199,0.10);
  color: var(--accent-violet);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all var(--transition);
}
.quiz-option.selected .quiz-option-letter {
  background: var(--accent-violet);
  color: white;
  box-shadow: 0 0 12px rgba(139,123,199,0.4);
}
.quiz-option-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color var(--transition);
}
.quiz-option.selected .quiz-option-text {
  color: var(--text-primary);
}

/* Quiz question card transition */
@keyframes questionEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes questionExit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}
.question-enter {
  animation: questionEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ═══ PROGRESS BAR ═══ */
.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 52px;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212,165,116,0.4);
}

/* ═══ STEP INDICATOR ═══ */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all var(--transition);
}
.step-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--accent-violet);
  box-shadow: 0 0 8px rgba(139,123,199,0.4);
}
.step-dot.completed {
  background: var(--accent-teal);
}

/* ═══ ARCHETYPE CARD ═══ */
.archetype-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 52px 44px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 8px 48px rgba(0,0,0,0.3);
}

/* Top gradient line */
.archetype-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: var(--gradient-primary);
  border-radius: 0 0 4px 4px;
}

/* Shimmer sweep animation */
.archetype-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: cardShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cardShimmer {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}

/* Corner diamond ornaments */
.archetype-card .card-ornament {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent-warm);
  transform: rotate(45deg);
  opacity: 0.4;
}
.archetype-card .card-ornament-tl { top: 16px; left: 16px; }
.archetype-card .card-ornament-tr { top: 16px; right: 16px; }
.archetype-card .card-ornament-bl { bottom: 16px; left: 16px; }
.archetype-card .card-ornament-br { bottom: 16px; right: 16px; }

.archetype-animal {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 24px rgba(139,123,199,0.35));
  animation: animalFloat 4s ease-in-out infinite;
}
@keyframes animalFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.archetype-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.archetype-traits {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.archetype-trait {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}
.archetype-trait span {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  margin-top: 4px;
  font-weight: 500;
}

.archetype-phrase {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
}

/* Archetype image area */
.archetype-image-area {
  width: 300px;
  height: 300px;
  margin: 0 auto 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), var(--shadow-glow);
}
.archetype-image-area img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.archetype-image-area .fallback-icon {
  font-size: 96px;
  filter: drop-shadow(0 0 32px rgba(139,123,199,0.45));
  animation: animalFloat 4s ease-in-out infinite;
}

/* Diamo watermark */
.archetype-watermark {
  position: absolute;
  bottom: 12px; right: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232,228,223,0.3);
  pointer-events: none;
}

/* ═══ PROFILE PILLS ═══ */
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}
.profile-pill {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-pill:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}
.profile-pill strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Color-coded pills by system */
.profile-pill.astro { border-color: rgba(212,165,116,0.2); }
.profile-pill.astro:hover { border-color: rgba(212,165,116,0.5); }
.profile-pill.mbti { border-color: rgba(139,123,199,0.2); }
.profile-pill.mbti:hover { border-color: rgba(139,123,199,0.5); }
.profile-pill.num { border-color: rgba(196,125,142,0.2); }
.profile-pill.num:hover { border-color: rgba(196,125,142,0.5); }
.profile-pill.enn { border-color: rgba(109,181,160,0.2); }
.profile-pill.enn:hover { border-color: rgba(109,181,160,0.5); }

/* ═══ INSIGHT CARDS ═══ */
.insight-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.insight-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow), 4px 0 0 -2px var(--accent-violet);
  transform: translateX(3px);
}
.insight-card:hover::before {
  opacity: 1;
}
.insight-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.insight-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══ PAYWALL ═══ */
.paywall {
  margin-top: 56px;
  padding: 52px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
}
.paywall-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.paywall-sub {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 16px;
}
.paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 28px;
}
.plan-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.plan-card.popular {
  border-color: rgba(212,165,116,0.35);
  background: linear-gradient(135deg, rgba(212,165,116,0.04), rgba(139,123,199,0.04));
  box-shadow: 0 0 32px rgba(212,165,116,0.08);
}
.plan-card.popular:hover {
  border-color: rgba(212,165,116,0.55);
  box-shadow: 0 0 40px rgba(212,165,116,0.12), var(--shadow-deep);
}
.plan-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -11px; right: 20px;
  padding: 4px 14px;
  background: var(--gradient-gold);
  color: #1a0f00;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
}
.plan-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.plan-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -1px;
}
.plan-price .original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0;
}
.plan-features {
  list-style: none;
  margin: 18px 0 28px;
}
.plan-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✦';
  color: var(--accent-warm);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
}
.plan-btn {
  width: 100%;
}
.paywall-guarantee {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 20px;
}

/* ═══ BLURRED PREVIEW ═══ */
.blurred-preview {
  position: relative;
  overflow: hidden;
  margin: 36px 0;
  padding: 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
/* Shimmer sweep on the entire locked container */
.blurred-preview::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: cardShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
.blurred-preview-content {
  filter: blur(7px);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
}
.blurred-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,26,0.75) 100%);
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}
.blurred-preview-overlay span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(10,10,26,0.6);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(212,165,116,0.2);
}

/* ═══ SHARE BUTTONS ═══ */
.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 44px;
}
.share-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}
.share-btn:active {
  transform: scale(0.97);
}

/* ═══ SECTION DIVIDER ═══ */
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gradient-primary);
  margin: 52px auto;
  opacity: 0.6;
}

.diamond-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 52px 0;
  justify-content: center;
}
.diamond-divider::before,
.diamond-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--border-medium));
}
.diamond-divider::after {
  background: linear-gradient(90deg, var(--border-medium), transparent);
}
.diamond-divider-icon {
  width: 8px; height: 8px;
  background: var(--accent-warm);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* ═══ REPORT STYLES ═══ */
.report-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px;
}
.report-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}
.report-section:last-child {
  border-bottom: none;
}
.report-section h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-warm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-section h2::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-warm);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.report-section h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 14px;
  color: var(--text-primary);
}
.report-section p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Clickable technical terms — elegant glow hover */
.term {
  color: var(--accent-violet);
  cursor: pointer;
  position: relative;
  display: inline;
  border-bottom: 1px solid rgba(139,123,199,0.28);
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}
.term:hover {
  color: #c4b8f0;
  text-shadow: 0 0 16px rgba(139,123,199,0.5);
  border-bottom-color: rgba(180,160,240,0.65);
}
/* Tooltip — uses position:fixed, positioned via JS (viewport-clamped) */
.term-tooltip {
  position: fixed;
  padding: 10px 14px;
  background: #1e1e35;
  border: 1px solid rgba(139,123,199,0.3);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  width: 260px;
  white-space: normal;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  pointer-events: none;
  animation: tooltipEnter 0.18s ease forwards;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}
.term-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(139,123,199,0.3);
}
@keyframes tooltipEnter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ FEEDBACK WIDGET ═══ */
.feedback-widget {
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: 52px;
}
.feedback-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.feedback-star {
  font-size: 28px;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), filter var(--transition);
  opacity: 0.25;
}
/* Hover: highlight all stars to the left — less intense than selected */
.feedback-star.hover-lit {
  opacity: 0.6;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(212,165,116,0.25));
  color: var(--accent-warm);
}
/* Selected/confirmed: fully lit */
.feedback-star.active {
  opacity: 1;
  transform: scale(1.25);
  filter: drop-shadow(0 0 8px rgba(212,165,116,0.5));
  color: var(--accent-warm);
}
.feedback-textarea {
  width: 100%;
  min-height: 110px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  resize: vertical;
  outline: none;
  margin: 16px 0;
  line-height: 1.6;
}
.feedback-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139,123,199,0.08);
}
.feedback-incentive {
  font-size: 13px;
  color: var(--accent-teal);
  margin-bottom: 16px;
}

/* ═══ DIAMOND LOADING ANIMATION ═══ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Diamond spinner */
.loading-diamond {
  width: 44px;
  height: 44px;
  position: relative;
  margin-bottom: 32px;
}
.loading-diamond::before,
.loading-diamond::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  transform: rotate(45deg);
  border-radius: 4px;
}
.loading-diamond::before {
  animation: diamondSpin 2s linear infinite;
  opacity: 0.9;
}
.loading-diamond::after {
  animation: diamondPulse 2s ease-in-out infinite;
  opacity: 0.3;
  transform: rotate(45deg) scale(1.4);
}
@keyframes diamondSpin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes diamondPulse {
  0%, 100% { opacity: 0.1; transform: rotate(45deg) scale(1.4); }
  50% { opacity: 0.35; transform: rotate(45deg) scale(1.8); }
}

/* Legacy spinner - kept for compat */
.loading-spinner {
  width: 44px;
  height: 44px;
  position: relative;
  background: var(--gradient-primary);
  transform: rotate(45deg);
  border-radius: 4px;
  animation: diamondSpin 2s linear infinite;
  box-shadow: 0 0 20px rgba(212,165,116,0.25);
}

.loading-text {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  text-align: center;
}
.loading-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/* Loading dots animation */
.loading-dots::after {
  content: '...';
  animation: loadingDots 1.5s steps(4, end) infinite;
}
@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139,123,199,0.1); }
  50% { box-shadow: 0 0 40px rgba(139,123,199,0.2); }
}

/* ═══ SHAKE ANIMATION ═══ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ═══ REPORT HERO ═══ */
.report-hero {
  text-align: center;
  padding: 48px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}
.report-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(139,123,199,0.10);
  border: 1px solid rgba(139,123,199,0.2);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}
.report-badge.badge-free {
  background: rgba(109,181,160,0.10);
  border-color: rgba(109,181,160,0.2);
  color: var(--accent-teal);
}
.report-badge.badge-essential {
  background: rgba(139,123,199,0.10);
  border-color: rgba(139,123,199,0.2);
  color: var(--accent-violet);
}
.report-badge.badge-deep {
  background: rgba(212,165,116,0.10);
  border-color: rgba(212,165,116,0.3);
  color: var(--accent-warm);
  letter-spacing: 2px;
}
.report-meta {
  color: var(--text-muted);
  font-size: 13px;
}
.report-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.report-body section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(24px);
}
.report-body section.visible {
  animation: fadeInUp 0.7s ease forwards;
}
.report-body section:last-of-type {
  border-bottom: none;
}
.report-body h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-warm);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}
.report-body h2::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-warm);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.7;
}
.report-body h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.report-body p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
}
/* report-body .term inherits from global .term — no extra override needed */

/* Share section in report */
.share-section {
  text-align: center;
  padding: 44px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  margin: 52px 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .diamo-nav { padding: 20px 20px; }

  .archetype-card { padding: 36px 24px; }
  .archetype-name { font-size: 28px; }
  .archetype-traits { gap: 20px; }
  .archetype-image-area { width: 260px; height: 260px; }

  .paywall { padding: 36px 20px; }
  .paywall-title { font-size: 28px; }
  .paywall-plans {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .report-container { padding: 24px 20px; }
  .report-section h2, .report-body h2 { font-size: 22px; }
  .report-body p, .report-section p { font-size: 16px; }

  .share-buttons { gap: 8px; }
  .share-btn { padding: 9px 16px; font-size: 12px; }

  .insight-card { padding: 24px; }
  .feedback-widget { padding: 32px 20px; }

  .btn { padding: 15px 28px; }
}

@media (max-width: 480px) {
  .archetype-image-area { width: 240px; height: 240px; }
  .archetype-name { font-size: 24px; }
}
