/* ============================================================
   Aminora Dream Journal — Visual System (Purple Palette)
   ============================================================ */

/* ---- Aminora Site Nav (included here so it loads reliably) ---- */
.aminora-site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 7, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 90, 143, 0.25);
}

.aminora-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aminora-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8c49a;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.3s;
}

.aminora-logo:hover { opacity: 0.8; }

.aminora-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.aminora-nav-link {
  color: #f5e6d3;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  transition: all 0.3s;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.aminora-nav-link:hover {
  color: #e8c49a;
  border-color: #8b5a8f;
}

.aminora-nav-link.aminora-active { color: #c084fc; }

/* User menu (hamburger dropdown) */
.aminora-user-menu-wrapper {
  position: relative;
  display: none;
}

.aminora-user-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 8px 10px;
  transition: all 0.3s;
  border-radius: 4px;
}

.aminora-user-menu-btn:hover { border-color: #8b5a8f; }

.aminora-user-menu-btn span {
  width: 20px;
  height: 2px;
  background: #f5e6d3;
  transition: all 0.3s;
  border-radius: 1px;
  display: block;
}

.aminora-user-menu-btn:hover span { background: #e8c49a; }

.aminora-user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: rgba(5, 7, 20, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid #8b5a8f;
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 1002;
}

.aminora-user-menu-dropdown.open { display: block; }

.aminora-user-menu-dropdown .aminora-nav-link {
  display: block;
  width: 100%;
  padding: 0.6rem 1.25rem;
  border: none;
  text-align: left;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.aminora-user-menu-dropdown .aminora-nav-link:hover {
  background: rgba(139, 90, 143, 0.15);
  border-color: transparent;
  color: #e8c49a;
}

/* Login / Logout */
.aminora-login-btn,
.aminora-logout-btn {
  background: rgba(232, 196, 154, 0.1) !important;
  color: #e8c49a !important;
  border: 1px solid rgba(232, 196, 154, 0.2) !important;
  font-weight: 600;
  padding: 0.4rem 1.1rem !important;
  border-radius: 4px;
}

.aminora-login-btn:hover,
.aminora-logout-btn:hover {
  background: rgba(232, 196, 154, 0.18) !important;
  color: #e8c49a !important;
  border-color: rgba(232, 196, 154, 0.35) !important;
}

/* Mobile menu button */
.aminora-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.aminora-mobile-menu-btn span {
  width: 26px;
  height: 2px;
  background: #e8c49a;
  transition: all 0.3s;
  border-radius: 2px;
  display: block;
}

.aminora-mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.aminora-mobile-menu-btn.active span:nth-child(2) { opacity: 0; }

.aminora-mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu panel — always hidden until .active */
.aminora-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(5, 7, 20, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid #8b5a8f;
  transition: right 0.3s ease;
  z-index: 1000;
  padding-top: 80px;
  overflow-y: auto;
}

.aminora-mobile-menu.active {
  right: 0;
  display: block;
}

.aminora-mobile-menu .aminora-nav-link {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-bottom: 1px solid rgba(139, 90, 143, 0.2);
  text-align: left;
}

.aminora-mobile-menu .aminora-nav-link:hover {
  background: rgba(139, 90, 143, 0.1);
}

.aminora-mobile-section {
  padding: 0.75rem 2rem 0.25rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: #c9a884;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid rgba(139, 90, 143, 0.3);
  margin-top: 0.5rem;
}

.aminora-mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.aminora-mobile-backdrop.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
  .aminora-nav-links { display: none; }
  .aminora-mobile-menu-btn { display: flex; }
  .aminora-nav-container { padding: 1rem 1.5rem; }
}

/* ---- CSS Variables ---- */
.dream-layout {
  --dream-bg:           #050714;
  --dream-surface:      #0c0e1f;
  --dream-elevated:     #131528;
  --dream-glass:        rgba(255, 255, 255, 0.03);

  --dream-text:         #e8e4f0;
  --dream-text-sec:     #9b93b8;
  --dream-text-muted:   #4a4568;

  --dream-accent:       #c084fc;
  --dream-accent-soft:  rgba(192, 132, 252, 0.08);
  --dream-accent-bdr:   rgba(192, 132, 252, 0.25);

  --dream-symbol:       #a78bfa;
  --dream-symbol-soft:  rgba(167, 139, 250, 0.10);
  --dream-symbol-bdr:   rgba(167, 139, 250, 0.22);

  --dream-archetype:    #818cf8;

  --dream-danger:       #ef4444;

  --dream-sep:          1px solid rgba(167, 139, 250, 0.08);
  --dream-radius:       8px;
}

/* ---- Base Layout ---- */
.dream-layout {
  position: relative;
  min-height: 100vh;
  background: var(--dream-bg);
  color: var(--dream-text);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  overflow-x: hidden;
}

/* ---- Grain Overlay ---- */
.dream-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ---- Ambient Glow ---- */
.dream-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.dream-glow::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 65%);
  animation: dreamAmbientDrift 18s ease-in-out infinite;
}

.dream-glow::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 76, 175, 0.08) 0%, transparent 65%);
  animation: dreamAmbientDrift 24s ease-in-out infinite reverse;
}

@keyframes dreamAmbientDrift {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -15px); }
}

/* ---- StarField ---- */
.dream-starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dream-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: dreamTwinkle var(--twinkle-duration, 3s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s);
}

@keyframes dreamTwinkle {
  0%, 100% { opacity: 0.05; }
  50%       { opacity: 0.5; }
}

/* ---- Nav ---- */
.dream-nav {
  position: relative;
  z-index: 10;
  padding: 20px 32px 0;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dream-nav-brand {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  text-decoration: none;
}

.dream-nav-brand span {
  color: var(--dream-text-sec);
}

.dream-nav-links {
  display: flex;
  gap: 24px;
}

.dream-nav-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dream-nav-link:hover,
.dream-nav-link.active {
  color: var(--dream-accent);
}

/* ---- Main Content ---- */
.dream-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 48px 100px;
}

@media (max-width: 768px) {
  .dream-content {
    padding: 80px 16px 60px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .dream-nav {
    padding: 16px 16px 0;
  }

  /* Cards must not overflow viewport */
  .dream-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Chips: stack vertically so each chip is constrained to card width */
  .dream-card-chips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    gap: 4px;
  }

  /* Each chip truncates with ellipsis */
  .dream-symbol-chip {
    display: block;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0;
  }

  /* Tabs get full width below title */
  .dream-module-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ---- Textarea Card ---- */
.dream-textarea-card {
  background: rgba(167, 139, 250, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 14px;
  padding: 28px 28px 20px;
  margin-bottom: 0;
  position: relative;
}

@media (max-width: 480px) {
  .dream-textarea-card {
    padding: 20px 18px 16px;
  }
}

/* ---- Module Header (The Dreaming) ---- */
.dream-module-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 0;
  width: 100%;
}

.dream-module-title {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dream-text);
  margin: 0 0 16px;
  line-height: 1;
}

.dream-module-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(100, 140, 220, 0.12);
  padding-bottom: 0;
}

.dream-module-tabs::-webkit-scrollbar {
  display: none;
}

.dream-module-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  padding: 0.4rem 1.2rem 0.6rem;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.dream-module-tab:hover {
  color: #c9a96e;
}

.dream-module-tab.active {
  color: #c084fc;
  border-bottom-color: rgba(192, 132, 252, 0.7);
}

.dream-module-tab.active::after {
  display: none;
}

/* ---- Separator ---- */
.dream-sep {
  border: none;
  border-top: var(--dream-sep);
  margin: 44px 0;
}

/* ---- Animations ---- */
@keyframes dreamFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dreamAnalysisPulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.45; }
}

.dream-fade-up {
  animation: dreamFadeUp 0.4s ease forwards;
  animation-delay: 150ms;
  opacity: 0;
}

/* ---- Heading ---- */
.dream-heading {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--dream-text);
  margin: 0 0 6px;
}

.dream-subheading {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin: 0 0 32px;
}

/* ---- Section Labels ---- */
.dream-section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin: 0 0 18px;
  display: block;
}

/* ---- Date/meta line ---- */
.dream-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin: 0 0 24px;
}

/* ---- Symbol Chip ---- */
.dream-symbol-chip {
  display: inline-block;
  background: var(--dream-symbol-soft);
  border: 1px solid var(--dream-symbol-bdr);
  border-radius: 20px;
  padding: 3px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dream-symbol);
  margin: 3px 4px 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---- Archetype Badge ---- */
.dream-archetype-badge {
  display: inline-block;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: var(--dream-archetype);
}

/* ---- Aminora Notice Block ---- */
.dream-notice-block {
  background: rgba(192, 132, 252, 0.04);
  border-left: 2px solid rgba(192, 132, 252, 0.25);
  padding: 16px 20px;
  margin: 0;
}

.dream-notice-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.45);
  margin-bottom: 10px;
}

.dream-notice-text {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.85;
  color: rgba(232, 228, 240, 0.75);
  margin: 0;
}

/* ---- Threshold Block ---- */
.dream-threshold-block {
  margin: 28px 0;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(192, 132, 252, 0.10);
  border-bottom: 1px solid rgba(192, 132, 252, 0.10);
  text-align: center;
}

.dream-threshold-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.35);
  margin-bottom: 14px;
}

.dream-threshold-text {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  color: rgba(232, 228, 240, 0.85);
  line-height: 1.65;
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

/* ---- Dream Reading Loader (full immersive loading screen) ---- */
.dream-rl-wrap {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  margin: 8px 0 32px;
}

/* Clouds */
.dream-rl-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.dream-rl-cloud--1 {
  width: 320px; height: 130px;
  top: 5%; left: -10%;
  background: rgba(192, 132, 252, 0.10);
  animation: dreamCloudDrift 9s ease-in-out infinite;
}
.dream-rl-cloud--2 {
  width: 280px; height: 120px;
  bottom: 8%; right: -8%;
  background: rgba(129, 140, 248, 0.09);
  animation: dreamCloudDrift 11s ease-in-out infinite reverse;
  animation-delay: -4s;
}
.dream-rl-cloud--3 {
  width: 200px; height: 90px;
  top: 50%; left: 55%;
  background: rgba(192, 132, 252, 0.07);
  animation: dreamCloudDrift 13s ease-in-out infinite;
  animation-delay: -7s;
}
.dream-rl-cloud--4 {
  width: 180px; height: 80px;
  top: 20%; right: 10%;
  background: rgba(139, 92, 246, 0.08);
  animation: dreamCloudDrift 10s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes dreamCloudDrift {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); opacity: 0.8; }
  33%       { transform: translateX(18px) translateY(-12px) scale(1.04); opacity: 1; }
  66%       { transform: translateX(-10px) translateY(8px) scale(0.97); opacity: 0.7; }
}

/* Stars */
.dream-rl-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dream-rl-star {
  position: absolute;
  border-radius: 50%;
  animation: dreamStarTwinkle 3s ease-in-out infinite;
}

@keyframes dreamStarTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* Center content */
.dream-rl-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 32px;
}

.dream-rl-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.18;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: dreamRlGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dreamRlGlowPulse {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.28; transform: translate(-50%, -50%) scale(1.2); }
}

.dream-rl-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: #050714;
  animation: dreamRlAvatarPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes dreamRlAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
  50%       { box-shadow: 0 0 0 12px rgba(192, 132, 252, 0.08); }
}

.dream-rl-reader-name {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin: 0;
}

.dream-rl-text {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: rgba(232, 228, 240, 0.75);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Three-dot pulse */
.dream-rl-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.dream-rl-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(192, 132, 252, 0.5);
  animation: dreamDotBounce 1.4s ease-in-out infinite;
}

.dream-rl-dots span:nth-child(2) { animation-delay: 0.2s; }
.dream-rl-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dreamDotBounce {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40%            { transform: scale(1.5); opacity: 1; }
}

/* Inline variant for DreamDetail */
.dream-rl-dots--inline {
  justify-content: center;
}

/* ---- Analysis Pending (inline, used in DreamDetail) ---- */
.dream-analysis-pending-wrap {
  position: relative;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.dream-analysis-pending-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.dream-analysis-pending-cloud--1 {
  width: 200px; height: 80px;
  top: 0; left: 5%;
  background: rgba(192, 132, 252, 0.08);
  animation: dreamCloudDrift 10s ease-in-out infinite;
}
.dream-analysis-pending-cloud--2 {
  width: 160px; height: 70px;
  bottom: 0; right: 5%;
  background: rgba(129, 140, 248, 0.07);
  animation: dreamCloudDrift 12s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.dream-analysis-pending {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--dream-text-muted);
  animation: dreamAnalysisPulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* ---- Card ---- */
.dream-card {
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.10);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
}

.dream-card:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.dream-card-date {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dream-card-reader {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dream-card-reader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dream-card-preview {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(232, 228, 240, 0.65);
  margin: 0 0 12px;
}

.dream-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dream-card-pending-chips {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--dream-text-muted);
  letter-spacing: 0.06em;
}

/* ---- Editor ---- */
.dream-editor-date {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin-bottom: 4px;
}

.dream-editor-title {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: var(--dream-text-sec);
  margin: 0 0 24px;
  font-weight: 300;
}

.dream-editor-textarea {
  width: 100%;
  min-height: 220px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 2.0;
  letter-spacing: 0.015em;
  color: var(--dream-text);
  caret-color: var(--dream-accent);
  padding: 0;
  box-sizing: border-box;
}

.dream-editor-textarea::placeholder {
  color: var(--dream-text-muted);
  font-style: italic;
}

/* Custom scrollbar — purple, rounded, matches dream palette */
.dream-editor-textarea::-webkit-scrollbar {
  width: 6px;
}
.dream-editor-textarea::-webkit-scrollbar-track {
  background: rgba(192, 132, 252, 0.04);
  border-radius: 10px;
}
.dream-editor-textarea::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.28);
  border-radius: 10px;
  transition: background 0.2s;
}
.dream-editor-textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 0.5);
}
/* Firefox */
.dream-editor-textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.28) rgba(192, 132, 252, 0.04);
}

.dream-editor-woke {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: var(--dream-sep);
  outline: none;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 16px;
  color: var(--dream-text);
  padding: 6px 0;
  margin-top: 8px;
}

.dream-editor-woke::placeholder {
  color: var(--dream-text-muted);
  font-style: italic;
}

.dream-editor-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin-bottom: 10px;
  display: block;
}

/* ---- Reader Grid ---- */
.dream-reader-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .dream-reader-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dream-reader-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.10);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.dream-reader-chip:hover {
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.05);
}

.dream-reader-chip.selected {
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(192, 132, 252, 0.08);
}

.dream-reader-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: #050714;
  flex-shrink: 0;
}

.dream-reader-name {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  line-height: 1;
}

.dream-reader-type {
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--dream-text-muted);
  opacity: 0.6;
  line-height: 1;
}

.dream-reader-chip.selected .dream-reader-name {
  color: var(--dream-text-sec);
}

/* ---- Motif Pills (multi-select) ---- */
.dream-motif-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.dream-motif-pill {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dream-motif-pill:hover {
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--dream-text-sec);
}

.dream-motif-pill.selected {
  border-color: rgba(192, 132, 252, 0.5);
  color: var(--dream-accent);
  background: rgba(192, 132, 252, 0.08);
}

/* ---- Quality Pills ---- */
.dream-quality-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dream-quality-pill {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dream-quality-pill:hover {
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--dream-text-sec);
}

.dream-quality-pill.selected {
  border-color: rgba(192, 132, 252, 0.5);
  color: var(--dream-accent);
  background: rgba(192, 132, 252, 0.08);
}

/* ---- Tags ---- */
.dream-tags-area {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dream-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dream-accent-soft);
  border: 1px solid var(--dream-accent-bdr);
  border-radius: 20px;
  padding: 3px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dream-text-sec);
}

.dream-tag-chip button {
  background: none;
  border: none;
  color: var(--dream-text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s;
}

.dream-tag-chip button:hover {
  color: var(--dream-text);
}

.dream-tag-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dream-text);
  min-width: 80px;
}

.dream-tag-input::placeholder {
  color: var(--dream-text-muted);
}

/* ---- Bottom bar ---- */
.dream-editor-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

/* ---- Buttons ---- */
.dream-save-btn {
  background: transparent;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 20px;
  padding: 11px 28px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dream-text);
  cursor: pointer;
  transition: all 0.3s;
}

.dream-save-btn:hover {
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.5);
}

.dream-save-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dream-save-btn--secondary {
  border-color: rgba(167, 139, 250, 0.18);
  color: var(--dream-text-muted);
}

.dream-save-btn--secondary:hover {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--dream-text-sec);
}

/* Post-save action buttons */
.dream-post-save-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.dream-analyze-btn {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  border-radius: 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 8px;
}

.dream-analyze-btn:hover {
  opacity: 0.85;
}

.dream-analyze-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dream-saved-flash {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  animation: dreamFadeUp 0.3s ease forwards;
}

/* ---- Glyph count ---- */
.dream-glyph-count {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
  margin-right: auto;
}

/* ---- Inline Analysis Result ---- */
.dream-analysis-result {
  margin-top: 32px;
  animation: dreamFadeUp 0.5s ease forwards;
}

.dream-analysis-reader-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dream-analysis-reader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #050714;
  flex-shrink: 0;
}

.dream-analysis-reader-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dream-analysis-reader-name {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dream-text-sec);
}

.dream-analysis-reader-type {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dream-text-muted);
  text-transform: uppercase;
}

/* ---- Archetype Card ---- */
.dream-archetype-card {
  background: linear-gradient(135deg, rgba(99, 76, 175, 0.15), rgba(79, 70, 229, 0.10));
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.dream-archetype-card-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(129, 140, 248, 0.6);
  margin-bottom: 6px;
  display: block;
}

.dream-archetype-card-name {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: #c4b5fd;
  margin: 0 0 6px;
}

.dream-archetype-card-emotion {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
}

/* ---- Emotional Intensity Bar ---- */
.dream-emotional-bar-wrap {
  margin-bottom: 20px;
}

.dream-emotional-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.dream-emotional-bar-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
}

.dream-emotional-bar-value {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--dream-symbol);
}

.dream-emotional-bar-track {
  height: 3px;
  background: rgba(167, 139, 250, 0.10);
  border-radius: 2px;
  overflow: hidden;
}

.dream-emotional-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ---- Pattern Cards ---- */
.dream-pattern-card {
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.10);
  border-left: 3px solid rgba(167, 139, 250, 0.35);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.dream-pattern-card-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin-bottom: 6px;
  display: block;
}

.dream-pattern-card-text {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--dream-text-sec);
  margin: 0;
}

/* ---- Analyzing Loading State ---- */
.dream-analyzing-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
}

.dream-analyzing-reader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dream-analyzing-text {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dream-text-muted);
  animation: dreamAnalysisPulse 2s ease-in-out infinite;
}

/* ---- Detail view ---- */
.dream-detail-narrative {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 2.0;
  letter-spacing: 0.015em;
  color: var(--dream-text);
  margin: 0 0 32px;
  white-space: pre-wrap;
}

.dream-detail-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.dream-detail-row-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  min-width: 72px;
  flex-shrink: 0;
}

.dream-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.dream-action-btn {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 20px;
  padding: 8px 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dream-text-sec);
  cursor: pointer;
  transition: all 0.2s;
}

.dream-action-btn:hover {
  border-color: var(--dream-accent-bdr);
  color: var(--dream-text);
}

.dream-action-btn.danger {
  border-color: rgba(239, 68, 68, 0.25);
  color: rgba(239, 68, 68, 0.6);
}

.dream-action-btn.danger:hover {
  border-color: var(--dream-danger);
  color: var(--dream-danger);
}

/* ---- Pattern Dashboard ---- */
.dream-pattern-gate {
  text-align: left;
  padding: 40px 0;
}

.dream-pattern-gate p {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0 0 8px;
}

.dream-pattern-gate .dream-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dream-text-muted);
  margin-bottom: 24px;
}

.dream-pattern-number {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--dream-text);
  line-height: 1;
  margin-bottom: 4px;
}

.dream-pattern-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  margin-bottom: 24px;
}

.dream-pattern-archetype {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 300;
  color: var(--dream-archetype);
  margin: 0 0 4px;
}

.dream-pattern-archetype-caption {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
  margin: 0 0 4px;
}

.dream-pattern-archetype-history {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dream-text-muted);
  opacity: 0.6;
  margin: 0 0 24px;
}

.dream-symbols-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.dream-symbol-freq {
  display: inline-block;
  background: var(--dream-symbol-soft);
  border: 1px solid var(--dream-symbol-bdr);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dream-symbol);
}

.dream-symbol-freq sup {
  font-size: 9px;
  color: var(--dream-text-muted);
  margin-left: 3px;
}

/* ---- Archetype Glossary ---- */
.dream-glossary-toggle {
  background: transparent;
  border: none;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  cursor: pointer;
  padding: 0;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.dream-glossary-toggle:hover {
  color: var(--dream-text-sec);
}

.dream-glossary-content {
  margin-top: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dream-text-muted);
  line-height: 2.0;
}

/* ---- Temporal Echo ---- */
.dream-temporal-echo {
  background: var(--dream-glass);
  border: var(--dream-sep);
  border-radius: var(--dream-radius);
  padding: 20px 24px;
}

.dream-temporal-echo p {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0 0 16px;
}

.dream-temporal-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.dream-temporal-link:hover {
  opacity: 0.7;
}

/* ---- Privacy Screen ---- */
.dream-privacy-block {
  margin-bottom: 40px;
}

.dream-privacy-block p {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0 0 16px;
}

.dream-privacy-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.dream-privacy-toggle label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
}

/* ---- Modal ---- */
.dream-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.dream-modal {
  background: var(--dream-surface);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 14px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
}

.dream-modal p {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0 0 20px;
}

.dream-modal input {
  width: 100%;
  background: var(--dream-elevated);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--dream-text);
  outline: none;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.dream-modal input:focus {
  border-color: var(--dream-accent-bdr);
}

.dream-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Empty State ---- */
.dream-empty {
  padding: 60px 0;
}

.dream-empty p {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 19px;
  line-height: 1.9;
  color: var(--dream-text-muted);
  margin: 0 0 8px;
}

/* ---- Load More ---- */
.dream-load-more {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.10);
  border-radius: 20px;
  padding: 12px 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  cursor: pointer;
  width: 100%;
  margin-top: 24px;
  transition: color 0.2s, border-color 0.2s;
}

.dream-load-more:hover {
  color: var(--dream-text-sec);
  border-color: var(--dream-accent-bdr);
}

/* ---- Auth overlay (dream theme) ---- */
.dream-layout .auth-gate-overlay {
  background: var(--dream-bg) !important;
}

.dream-layout .auth-gate-overlay p {
  color: var(--dream-accent) !important;
  font-family: 'Geist Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* ============================================================
   Pattern Dashboard — Extended Sections
   ============================================================ */

/* Frequency bars (symbols / figures) */
.dream-freq-bar-row {
  margin-bottom: 14px;
}

.dream-freq-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.dream-freq-bar-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.97rem;
  color: var(--dream-text);
  line-height: 1.4;
}

.dream-freq-bar-count {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--dream-text-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-left: 12px;
}

.dream-freq-bar-track {
  height: 3px;
  background: rgba(167, 139, 250, 0.10);
  border-radius: 2px;
}

.dream-freq-bar-fill {
  height: 3px;
  background: var(--dream-symbol);
  border-radius: 2px;
  min-width: 8px;
}

/* Emotional Journey */
.dream-emotion-state {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dream-emotion-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
}

.dream-emotion-value {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dream-text);
}

.dream-emotion-trend {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
}

.dream-emotion-trend--intensifying {
  background: rgba(192, 132, 252, 0.12);
  color: var(--dream-accent);
}

.dream-emotion-trend--softening {
  background: rgba(99, 225, 180, 0.09);
  color: #3fb891;
}

.dream-emotion-trend--shifting {
  background: rgba(251, 191, 36, 0.09);
  color: #e8a820;
}

.dream-emotion-trend--stable {
  background: rgba(167, 139, 250, 0.09);
  color: var(--dream-symbol);
}

.dream-arc-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0;
}

/* Subconscious message box */
.dream-subconscious-box {
  background: rgba(192, 132, 252, 0.05);
  border-left: 3px solid rgba(192, 132, 252, 0.28);
  padding: 18px 22px;
  border-radius: 0 var(--dream-radius) var(--dream-radius) 0;
}

.dream-subconscious-box p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--dream-text);
  margin: 0;
}

/* What's Shifting */
.dream-growth-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dream-text-sec);
  margin: 0;
}

/* Recurring motifs list */
.dream-motifs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dream-motif-item {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dream-text-sec);
  padding-left: 18px;
  position: relative;
}

.dream-motif-item::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--dream-symbol);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Questions to Sit With */
.dream-reflections-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dream-reflection-item {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.07rem;
  line-height: 1.7;
  color: var(--dream-text);
  padding-left: 22px;
  position: relative;
}

.dream-reflection-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--dream-accent);
  font-style: normal;
}

/* Refresh button */
.dream-refresh-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dream-text-muted);
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.18);
  padding: 8px 20px;
  border-radius: var(--dream-radius);
  cursor: pointer;
  transition: all 0.25s;
}

.dream-refresh-btn:hover:not(:disabled) {
  color: var(--dream-text-sec);
  border-color: rgba(167, 139, 250, 0.35);
}

.dream-refresh-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.dream-refresh-note {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--dream-text-muted);
  margin-top: 8px;
}

/* Archetype reason (specific evidence text) */
.dream-archetype-reason {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--dream-text-sec);
  margin: 10px 0 0;
}

/* Background upgrade notice strip */
.dream-upgrade-notice {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.45);
  margin: 12px 0 0;
}

/* General reading block */
.dream-general-reading-block {
  margin-bottom: 32px;
}

.dream-general-reading-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--dream-text);
  margin: 0;
}

/* Aminora recommendation block */
.dream-recommendation-block {
  margin-bottom: 32px;
}

.dream-recommendation-inner {
  background: rgba(99, 202, 183, 0.06);
  border-left: 3px solid rgba(99, 202, 183, 0.35);
  padding: 18px 22px;
  border-radius: 0 var(--dream-radius) var(--dream-radius) 0;
}

.dream-recommendation-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--dream-text);
  margin: 0;
}

/* Pattern page framing disclaimer */
.dream-pattern-frame {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
  margin: 16px 0 0;
  max-width: 560px;
}
