/* ═══════════════════════════════════════════════════════════════════════════
   QUANTUM TIMELINE - STUNNING VISUAL STYLES
   A journey through time, trauma, and transcendence
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VARIABLES - QUANTUM COLOR PALETTE
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Timeline Colors */
  --qt-alpha: #ff4757;
  --qt-alpha-glow: rgba(255, 71, 87, 0.6);
  --qt-beta: #ffa502;
  --qt-beta-glow: rgba(255, 165, 2, 0.6);
  --qt-gamma: #2ed573;
  --qt-gamma-glow: rgba(46, 213, 115, 0.6);
  --qt-delta: #70a1ff;
  --qt-delta-glow: rgba(112, 161, 255, 0.6);
  
  /* M-Field Integrity Colors */
  --mfield-critical: #ff4757;
  --mfield-fragmented: #ff7f50;
  --mfield-compromised: #ffa502;
  --mfield-moderate: #7bed9f;
  --mfield-strong: #2ed573;
  
  /* Disruption Type Colors */
  --disruption-voltage: #9b59b6;
  --disruption-cellular: var(--red-500);
  --disruption-nonlocal: var(--blue-500);
  --disruption-temporal: #1abc9c;
  
  /* Pathway Colors */
  --pathway-a: #2ed573;
  --pathway-b: #ffa502;
  --pathway-c: #747d8c;
  
  /* Trauma Type Colors */
  --trauma-sexual: #c0392b;
  --trauma-physical: #e67e22;
  --trauma-emotional: var(--blue-500);
  --trauma-abandonment: #9b59b6;
  --trauma-ancestral: #8e44ad;
  
  /* Background & Surface */
  --qt-bg-deep: #0a0a1a;
  --qt-bg-surface: rgba(15, 15, 35, 0.9);
  --qt-bg-card: rgba(30, 30, 60, 0.8);
  --qt-border: rgba(100, 100, 150, 0.3);
  --qt-border-glow: rgba(100, 200, 255, 0.5);
  
  /* Text */
  --qt-text-primary: #ffffff;
  --qt-text-secondary: #a0a0c0;
  --qt-text-muted: #606080;
  
  /* Spiritual Voice Colors */
  --voice-christian: #d4af37;
  --voice-catholic: #9b59b6;
  --voice-islamic: #27ae60;
  --voice-buddhist: #f39c12;
  --voice-hindu: var(--red-500);
  --voice-jewish: var(--blue-500);
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN CONTAINER
   ───────────────────────────────────────────────────────────────────────────── */
.quantum-timeline-container {
  background: linear-gradient(135deg, var(--qt-bg-deep) 0%, #1a0a2a 50%, #0a1a2a 100%);
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
  color: var(--qt-text-primary); /* Default white text */
}

/* Ensure all text inside is white by default */
.quantum-timeline-container,
.quantum-timeline-container p,
.quantum-timeline-container span,
.quantum-timeline-container div,
.quantum-timeline-container li,
.quantum-timeline-container td,
.quantum-timeline-container th,
.quantum-timeline-container label {
  color: var(--qt-text-primary);
}

.quantum-timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(100, 100, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.quantum-timeline-container > * {
  position: relative;
  z-index: 1;
}

/* Floating particles background - DISABLED for performance */
.quantum-particles {
  display: none; /* Disabled to prevent browser crashes */
}

.quantum-particle {
  display: none; /* Disabled to prevent browser crashes */
}

/* Original particle animation disabled
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
  50% { transform: translateY(-50px) translateX(-30px); opacity: 0.4; }
  75% { transform: translateY(-150px) translateX(20px); opacity: 0.5; }
}
*/

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────────────────── */
.qt-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--qt-bg-card);
  border-radius: 20px;
  border: 1px solid var(--qt-border);
  /* backdrop-filter removed for performance */
}

.qt-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #70a1ff, var(--purple-500), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.qt-header .subtitle {
  color: var(--qt-text-secondary);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.qt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.qt-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qt-btn-primary {
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--indigo-500) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.qt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6);
}

.qt-btn-secondary {
  background: var(--qt-bg-card);
  color: var(--qt-text-primary);
  border: 1px solid var(--qt-border);
}

.qt-btn-secondary:hover {
  border-color: var(--qt-border-glow);
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   M-FIELD INTEGRITY SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.qt-mfield-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
  /* backdrop-filter removed for performance */
}

.qt-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--qt-text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qt-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--purple-500), var(--cyan-400));
  border-radius: 2px;
}

/* M-Field Integrity Bar */
.mfield-integrity-container {
  margin-bottom: 2rem;
}

.mfield-integrity-bar {
  height: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--qt-border);
}

.mfield-integrity-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 1.5s ease-out;
  position: relative;
  overflow: hidden;
}

.mfield-integrity-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* DISABLED for performance - shimmer causes scroll flickering */
  display: none;
}

/* Shimmer animation disabled for performance
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
*/

.mfield-integrity-fill.critical { background: linear-gradient(90deg, var(--mfield-critical), #ff6b6b); }
.mfield-integrity-fill.fragmented { background: linear-gradient(90deg, var(--mfield-fragmented), #ffa07a); }
.mfield-integrity-fill.compromised { background: linear-gradient(90deg, var(--mfield-compromised), #ffd93d); }
.mfield-integrity-fill.moderate { background: linear-gradient(90deg, var(--mfield-moderate), #a8e6cf); }
.mfield-integrity-fill.strong { background: linear-gradient(90deg, var(--mfield-strong), #6bcb77); }

.mfield-integrity-label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.mfield-integrity-percentage {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #a0a0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mfield-integrity-status {
  color: var(--qt-text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Disruption Cards */
.mfield-disruptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.disruption-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--qt-border);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.disruption-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.disruption-card.voltage::before { background: var(--disruption-voltage); }
.disruption-card.cellular::before { background: var(--disruption-cellular); }
.disruption-card.nonlocal::before { background: var(--disruption-nonlocal); }
.disruption-card.temporal::before { background: var(--disruption-temporal); }

.disruption-card:hover {
  transform: translateY(-4px);
  border-color: var(--qt-border-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.disruption-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.disruption-name {
  font-weight: 600;
  color: var(--qt-text-primary);
  font-size: 0.9rem;
}

.disruption-percentage {
  font-size: 1.25rem;
  font-weight: 700;
}

.disruption-card.voltage .disruption-percentage { color: var(--disruption-voltage); }
.disruption-card.cellular .disruption-percentage { color: var(--disruption-cellular); }
.disruption-card.nonlocal .disruption-percentage { color: var(--disruption-nonlocal); }
.disruption-card.temporal .disruption-percentage { color: var(--disruption-temporal); }

.disruption-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.disruption-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.disruption-card.voltage .disruption-bar-fill { background: var(--disruption-voltage); }
.disruption-card.cellular .disruption-bar-fill { background: var(--disruption-cellular); }
.disruption-card.nonlocal .disruption-bar-fill { background: var(--disruption-nonlocal); }
.disruption-card.temporal .disruption-bar-fill { background: var(--disruption-temporal); }

.disruption-info-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--qt-text-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIMELINE VISUALIZATION - MAIN INTERACTIVE ELEMENT
   ───────────────────────────────────────────────────────────────────────────── */
.qt-timeline-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
}

/* Main Timeline Container */
.timeline-main-container {
  position: relative;
  padding: 3rem 2rem 6rem 2rem;
  margin: 2rem 0;
}

/* Age markers along top */
.timeline-age-markers {
  position: relative;
  height: 30px;
  margin-bottom: 1rem;
}

.age-marker {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  font-weight: 600;
}

.age-marker:first-child {
  transform: translateX(0);
}

.age-marker:last-child {
  transform: translateX(-100%);
}

/* The main timeline bar */
.timeline-bar {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, 
    rgba(100, 100, 150, 0.3) 0%,
    rgba(100, 150, 200, 0.3) 100%
  );
  border-radius: 6px;
  margin: 2rem 0;
}

.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,
    var(--qt-alpha) 0%,
    var(--qt-beta) 35%,
    var(--qt-gamma) 70%,
    var(--qt-delta) 100%
  );
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

/* NOW marker at end */
.timeline-now-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.now-label {
  display: block;
  background: var(--violet-500) !important;
  color: white !important;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  position: relative;
  top: -25px;
  text-shadow: none !important;
}

.timeline-now-marker::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--violet-500) !important;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* BIFURCATION MARKERS - The main interactive elements */
.bifurcation-marker {
  position: absolute;
  top: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.bifurcation-marker .marker-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
  border: 3px solid white;
  position: relative;
  top: -12px;
  box-shadow: 0 0 20px currentColor;
  transition: all 0.3s ease;
}

.bifurcation-marker .marker-line {
  width: 2px;
  height: 40px;
  background: currentColor;
  margin: 0 auto;
  opacity: 0.5;
}

.bifurcation-marker .marker-card {
  background: var(--qt-bg-surface);
  border: 2px solid currentColor;
  border-radius: 12px;
  padding: 1rem;
  min-width: 140px;
  text-align: center;
  margin-top: 0.5rem;
  transform: translateX(-50%);
  position: relative;
  left: 50%;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.bifurcation-marker:hover .marker-card,
.bifurcation-marker.selected .marker-card {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px currentColor;
}

.bifurcation-marker:hover .marker-dot,
.bifurcation-marker.selected .marker-dot {
  transform: scale(1.3);
  box-shadow: 0 0 30px currentColor;
}

.marker-age {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.marker-year {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  margin-bottom: 0.5rem;
}

.marker-chakra {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.marker-trauma-type {
  font-size: 0.75rem;
  color: currentColor;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.marker-click-hint {
  font-size: 0.7rem;
  color: var(--qt-text-muted);
  margin-top: 0.5rem;
}

.bifurcation-marker.selected .marker-click-hint {
  color: var(--qt-gamma);
}

/* Trauma type colors */
.bifurcation-marker.sexual { color: var(--trauma-sexual); }
.bifurcation-marker.physical { color: var(--trauma-physical); }
.bifurcation-marker.emotional { color: var(--trauma-emotional); }
.bifurcation-marker.abandonment { color: var(--trauma-abandonment); }
.bifurcation-marker.ancestral { color: var(--trauma-ancestral); }

/* Chakra development stages below timeline */
.timeline-chakra-stages {
  position: relative;
  height: 50px;
  margin-top: 1rem;
}

.chakra-stage {
  position: absolute;
  top: 0;
  height: 100%;
  border-left: 1px dashed var(--qt-border);
  padding-left: 0.5rem;
}

.chakra-stage:first-child {
  border-left: none;
}

.chakra-stage-label {
  font-size: 0.7rem;
  color: var(--qt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chakra-stage-label small {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Timeline Summary Stats */
.timeline-summary {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qt-border);
  flex-wrap: wrap;
}

.summary-stat {
  text-align: center;
}

.summary-stat .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.summary-stat .stat-label {
  font-size: 0.8rem;
  color: var(--qt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-stat.primary .stat-value {
  color: var(--qt-gamma);
}

/* OLD STYLES - Keep for backward compatibility but hidden */
.timeline-river-container,
.timeline-river,
.timeline-position-indicator,
.timeline-labels,
.bifurcation-node,
.bifurcation-tooltip,
.timeline-position-display {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BIFURCATION DETAIL PANEL
   ───────────────────────────────────────────────────────────────────────────── */
.qt-bifurcation-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .qt-bifurcation-section {
    grid-template-columns: 1fr;
  }
}

/* Bifurcation List */
.bifurcation-list {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--qt-border);
}

.bifurcation-list-item {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
}

.bifurcation-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 2px;
  opacity: 0;
  transition: all 0.3s ease;
}

.bifurcation-list-item.sexual::before { background: var(--trauma-sexual); }
.bifurcation-list-item.physical::before { background: var(--trauma-physical); }
.bifurcation-list-item.emotional::before { background: var(--trauma-emotional); }
.bifurcation-list-item.abandonment::before { background: var(--trauma-abandonment); }
.bifurcation-list-item.ancestral::before { background: var(--trauma-ancestral); }

.bifurcation-list-item:hover,
.bifurcation-list-item.selected {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--qt-border);
}

.bifurcation-list-item:hover::before,
.bifurcation-list-item.selected::before {
  opacity: 1;
}

.bifurcation-list-item.selected {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.bifurcation-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bifurcation-item-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bifurcation-list-item.sexual .bifurcation-item-icon { background: var(--trauma-sexual); }
.bifurcation-list-item.physical .bifurcation-item-icon { background: var(--trauma-physical); }
.bifurcation-list-item.emotional .bifurcation-item-icon { background: var(--trauma-emotional); }
.bifurcation-list-item.abandonment .bifurcation-item-icon { background: var(--trauma-abandonment); }
.bifurcation-list-item.ancestral .bifurcation-item-icon { background: var(--trauma-ancestral); }

.bifurcation-item-age {
  font-weight: 700;
  color: white;
}

.bifurcation-item-chakra {
  font-size: 0.8rem;
  color: var(--qt-text-secondary);
}

.bifurcation-item-trauma {
  font-size: 0.85rem;
  color: var(--qt-text-muted);
  margin-bottom: 0.5rem;
}

.bifurcation-item-ancestral {
  font-size: 0.75rem;
  color: var(--qt-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lineage-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lineage-badge.maternal {
  background: rgba(236, 72, 153, 0.2);
  color: var(--pink-500);
}

.lineage-badge.paternal {
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-500);
}

.lineage-badge.both {
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple-500);
}

/* Bifurcation Detail Panel */
.bifurcation-detail {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--qt-border);
  max-height: 600px;
  overflow-y: auto;
}

.bifurcation-detail::-webkit-scrollbar {
  width: 8px;
}

.bifurcation-detail::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.bifurcation-detail::-webkit-scrollbar-thumb {
  background: var(--qt-border);
  border-radius: 4px;
}

.bifurcation-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--qt-border);
}

.detail-age-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.detail-age-badge .age {
  font-size: 1.5rem;
  line-height: 1;
}

.detail-age-badge .year {
  font-size: 0.7rem;
  opacity: 0.7;
}

.detail-age-badge.sexual { background: var(--trauma-sexual); color: white; }
.detail-age-badge.physical { background: var(--trauma-physical); color: white; }
.detail-age-badge.emotional { background: var(--trauma-emotional); color: white; }
.detail-age-badge.abandonment { background: var(--trauma-abandonment); color: white; }
.detail-age-badge.ancestral { background: var(--trauma-ancestral); color: white; }

.detail-header-text h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}

.detail-header-text .trauma-type {
  font-size: 0.9rem;
  color: var(--qt-text-secondary);
}

.detail-header-text .perpetrator {
  font-size: 0.85rem;
  color: var(--qt-text-muted);
  margin-top: 0.25rem;
}

/* Narrative Section */
.narrative-section {
  margin-bottom: 2rem;
}

.narrative-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qt-text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.narrative-text {
  color: var(--qt-text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.narrative-text p {
  margin-bottom: 1rem;
}

/* Somatic Storage */
.somatic-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.somatic-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qt-text-secondary);
  margin-bottom: 1rem;
}

.somatic-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.somatic-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--qt-text-primary);
}

/* Pathway Split */
.pathway-split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pathway-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--qt-border);
}

.pathway-card.pathway-a {
  background: rgba(46, 213, 115, 0.1);
  border-color: rgba(46, 213, 115, 0.3);
}

.pathway-card.pathway-b {
  background: rgba(255, 165, 2, 0.1);
  border-color: rgba(255, 165, 2, 0.3);
}

.pathway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pathway-card-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.pathway-card.pathway-a .pathway-card-title { color: var(--pathway-a); }
.pathway-card.pathway-b .pathway-card-title { color: var(--pathway-b); }

.pathway-pull {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
}

.pathway-card.pathway-a .pathway-pull { background: var(--pathway-a); color: #000; }
.pathway-card.pathway-b .pathway-pull { background: var(--pathway-b); color: #000; }

.pathway-card-text {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANCESTRAL TRANSMISSION MAP
   ───────────────────────────────────────────────────────────────────────────── */
.qt-ancestral-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
}

.ancestral-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .ancestral-map {
    grid-template-columns: 1fr;
  }
}

/* Lineage Column */
.lineage-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lineage-header {
  text-align: center;
  margin-bottom: 1rem;
}

.lineage-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.lineage-curse-name {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  font-style: italic;
}

.maternal .lineage-title { color: var(--pink-500); }
.paternal .lineage-title { color: var(--blue-500); }

/* Generation Cards */
.generation-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--qt-border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.generation-card::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 2px;
  height: 12px;
  background: var(--qt-border);
}

.generation-card:last-of-type::before {
  display: none;
}

.generation-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.maternal .generation-card:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.paternal .generation-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.generation-card.expanded {
  background: rgba(255, 255, 255, 0.05);
}

.generation-title {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.generation-traumas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.generation-trauma-tag {
  font-size: 0.7rem;
  color: var(--qt-text-muted);
}

.generation-trauma-tag::before {
  content: '○ ';
}

.generation-expand-btn {
  font-size: 0.75rem;
  color: var(--qt-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.generation-full-story {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--qt-border);
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  line-height: 1.7;
  display: none;
}

.generation-card.expanded .generation-full-story {
  display: block;
}

/* Convergence Point */
.convergence-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

.convergence-lines {
  position: relative;
  width: 100px;
  height: 150px;
}

.convergence-lines::before,
.convergence-lines::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 100%;
  border-top: 2px solid var(--qt-border);
}

.convergence-lines::before {
  left: 0;
  border-left: 2px solid var(--qt-border);
  border-top-left-radius: 20px;
}

.convergence-lines::after {
  right: 0;
  border-right: 2px solid var(--qt-border);
  border-top-right-radius: 20px;
}

.convergence-point {
  background: linear-gradient(135deg, var(--pink-500), var(--blue-500));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  text-align: center;
  font-size: 0.8rem;
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 60px rgba(168, 85, 247, 0.3);
  animation: convergencePulse 3s infinite ease-in-out;
}

@keyframes convergencePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.8), 0 0 80px rgba(168, 85, 247, 0.4); }
}

/* Lineage Influence Bars */
.lineage-influence {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qt-border);
}

.influence-bars {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.influence-bar-container {
  text-align: center;
}

.influence-label {
  font-size: 0.8rem;
  color: var(--qt-text-secondary);
  margin-bottom: 0.5rem;
}

.influence-bar {
  width: 200px;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.influence-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.influence-bar-fill.maternal { background: linear-gradient(90deg, var(--pink-500), var(--pink-400)); }
.influence-bar-fill.paternal { background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); }

.influence-percentage {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.influence-percentage.maternal { color: var(--pink-500); }
.influence-percentage.paternal { color: var(--blue-500); }

/* ─────────────────────────────────────────────────────────────────────────────
   TRAJECTORY ANALYSIS
   ───────────────────────────────────────────────────────────────────────────── */
.qt-trajectory-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
}

.trajectory-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .trajectory-cards {
    grid-template-columns: 1fr;
  }
}

.trajectory-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.trajectory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.trajectory-card.pathway-a::before { background: var(--pathway-a); }
.trajectory-card.pathway-b::before { background: var(--pathway-b); }
.trajectory-card.pathway-c::before { background: var(--pathway-c); }

.trajectory-card:hover {
  transform: translateY(-4px);
}

.trajectory-card.pathway-a:hover { 
  border-color: rgba(46, 213, 115, 0.5);
  box-shadow: 0 10px 40px rgba(46, 213, 115, 0.2);
}

.trajectory-card.pathway-b:hover { 
  border-color: rgba(255, 165, 2, 0.5);
  box-shadow: 0 10px 40px rgba(255, 165, 2, 0.2);
}

.trajectory-card.pathway-c:hover { 
  border-color: rgba(116, 125, 140, 0.5);
  box-shadow: 0 10px 40px rgba(116, 125, 140, 0.2);
}

.trajectory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.trajectory-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.trajectory-card.pathway-a .trajectory-title { color: var(--pathway-a); }
.trajectory-card.pathway-b .trajectory-title { color: var(--pathway-b); }
.trajectory-card.pathway-c .trajectory-title { color: var(--pathway-c); }

.trajectory-subtitle {
  font-size: 0.8rem;
  color: var(--qt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trajectory-percentage {
  font-size: 2rem;
  font-weight: 700;
}

.trajectory-card.pathway-a .trajectory-percentage { color: var(--pathway-a); }
.trajectory-card.pathway-b .trajectory-percentage { color: var(--pathway-b); }
.trajectory-card.pathway-c .trajectory-percentage { color: var(--pathway-c); }

.trajectory-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.trajectory-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.trajectory-card.pathway-a .trajectory-bar-fill { background: var(--pathway-a); }
.trajectory-card.pathway-b .trajectory-bar-fill { background: var(--pathway-b); }
.trajectory-card.pathway-c .trajectory-bar-fill { background: var(--pathway-c); }

.trajectory-description {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.trajectory-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trajectory-outcomes li {
  font-size: 0.8rem;
  color: var(--qt-text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trajectory-outcomes li::before {
  content: '•';
  font-size: 1rem;
}

.trajectory-card.pathway-a .trajectory-outcomes li::before { color: var(--pathway-a); }
.trajectory-card.pathway-b .trajectory-outcomes li::before { color: var(--pathway-b); }
.trajectory-card.pathway-c .trajectory-outcomes li::before { color: var(--pathway-c); }

/* ─────────────────────────────────────────────────────────────────────────────
   CROSSROADS SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.qt-crossroads-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
  position: relative;
  overflow: hidden;
}

.qt-crossroads-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.crossroads-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}

.crossroads-center {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--purple-500), var(--indigo-500));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 40px rgba(168, 85, 247, 0.5),
    0 0 80px rgba(168, 85, 247, 0.3);
  z-index: 2;
  animation: crossroadsPulse 4s infinite ease-in-out;
}

@keyframes crossroadsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.crossroads-center-icon {
  font-size: 2rem;
}

.crossroads-center-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.crossroads-paths {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 10%;
}

.crossroads-path {
  text-align: center;
  max-width: 200px;
}

.crossroads-path.left {
  text-align: left;
}

.crossroads-path.right {
  text-align: right;
}

.crossroads-path-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.crossroads-path.left .crossroads-path-title { color: var(--pathway-a); }
.crossroads-path.right .crossroads-path-title { color: var(--pathway-b); }

.crossroads-path-description {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  font-style: italic;
}

/* Soul's Question */
.souls-question {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.souls-question-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--qt-text-muted);
  margin-bottom: 1rem;
}

.souls-question-text {
  font-size: 1.4rem;
  color: white;
  font-style: italic;
  line-height: 1.6;
  font-weight: 300;
}

/* Crossroads Narrative */
.crossroads-narrative {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--qt-border);
}

.crossroads-narrative-text {
  color: var(--qt-text-secondary);
  line-height: 1.9;
  font-size: 1rem;
}

.crossroads-narrative-text p {
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RETROCAUSAL MESSAGE
   ───────────────────────────────────────────────────────────────────────────── */
.qt-retrocausal-section {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(46, 213, 115, 0.3);
  position: relative;
  overflow: hidden;
}

.qt-retrocausal-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 213, 115, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.retrocausal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.retrocausal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--qt-gamma), var(--cyan-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(46, 213, 115, 0.5);
}

.retrocausal-title {
  font-size: 1.2rem;
  color: white;
}

.retrocausal-subtitle {
  font-size: 0.85rem;
  color: var(--qt-gamma);
}

.retrocausal-message {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--qt-gamma);
}

.retrocausal-message-text {
  color: var(--qt-text-primary);
  line-height: 1.9;
  font-size: 1.05rem;
  font-style: italic;
}

.retrocausal-message-text p {
  margin-bottom: 1.25rem;
}

.retrocausal-signature {
  text-align: right;
  margin-top: 1.5rem;
  color: var(--qt-gamma);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SPIRITUAL HEALING SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.qt-spiritual-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
}

/* Voice Selection */
.voice-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.voice-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.voice-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.voice-card.selected {
  border-color: var(--qt-border-glow);
  box-shadow: 0 0 30px rgba(100, 200, 255, 0.3);
}

.voice-card.christian.selected { border-color: var(--voice-christian); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); }
.voice-card.catholic.selected { border-color: var(--voice-catholic); box-shadow: 0 0 30px rgba(155, 89, 182, 0.3); }
.voice-card.islamic.selected { border-color: var(--voice-islamic); box-shadow: 0 0 30px rgba(39, 174, 96, 0.3); }
.voice-card.buddhist.selected { border-color: var(--voice-buddhist); box-shadow: 0 0 30px rgba(243, 156, 18, 0.3); }
.voice-card.hindu.selected { border-color: var(--voice-hindu); box-shadow: 0 0 30px rgba(231, 76, 60, 0.3); }
.voice-card.jewish.selected { border-color: var(--voice-jewish); box-shadow: 0 0 30px rgba(52, 152, 219, 0.3); }

.voice-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.voice-name {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.voice-description {
  font-size: 0.75rem;
  color: var(--qt-text-muted);
}

/* Prayer Sections */
.prayer-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--voice-christian);
}

.prayer-section.catholic { border-left-color: var(--voice-catholic); }
.prayer-section.islamic { border-left-color: var(--voice-islamic); }
.prayer-section.buddhist { border-left-color: var(--voice-buddhist); }
.prayer-section.hindu { border-left-color: var(--voice-hindu); }
.prayer-section.jewish { border-left-color: var(--voice-jewish); }

.prayer-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

.prayer-section-title {
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prayer-section-toggle {
  color: var(--qt-text-secondary);
  font-size: 0.8rem;
}

.prayer-content {
  color: var(--qt-text-primary);
  line-height: 1.9;
  font-size: 0.95rem;
}

.prayer-content p {
  margin-bottom: 1rem;
}

.prayer-content .scripture-reference {
  font-size: 0.8rem;
  color: var(--qt-text-muted);
  font-style: italic;
}

/* Sacred Texts */
.sacred-texts-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.sacred-texts-list h4 {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  margin-bottom: 0.75rem;
}

.sacred-texts-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sacred-texts-list li {
  font-size: 0.8rem;
  color: var(--qt-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CURSE COMPLETION STATEMENT
   ───────────────────────────────────────────────────────────────────────────── */
.qt-curse-completion-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.curse-completion-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--qt-text-secondary);
}

.curse-completion-statement {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.curse-completion-text {
  color: white;
  line-height: 2;
  font-size: 1.1rem;
}

.curse-completion-text p {
  margin-bottom: 1.25rem;
}

.curse-completion-text .emphasis {
  color: var(--purple-500);
  font-weight: 600;
}

.curse-completion-text .curse-name {
  font-style: italic;
  color: var(--pink-500);
}

.curse-completion-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEALING PROTOCOL SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.qt-healing-section {
  background: var(--qt-bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--qt-border);
}

.healing-protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.healing-protocol-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--qt-border);
  transition: all 0.3s ease;
}

.healing-protocol-card:hover {
  transform: translateY(-4px);
  border-color: var(--qt-border-glow);
}

.healing-protocol-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.healing-protocol-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.healing-protocol-card.voltage .healing-protocol-icon { background: rgba(155, 89, 182, 0.3); }
.healing-protocol-card.cellular .healing-protocol-icon { background: rgba(231, 76, 60, 0.3); }
.healing-protocol-card.nonlocal .healing-protocol-icon { background: rgba(52, 152, 219, 0.3); }
.healing-protocol-card.temporal .healing-protocol-icon { background: rgba(26, 188, 156, 0.3); }

.healing-protocol-title {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.healing-protocol-content {
  font-size: 0.85rem;
  color: var(--qt-text-secondary);
  line-height: 1.6;
}

.healing-protocol-content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.healing-protocol-content li {
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.healing-protocol-content li::before {
  content: '→';
  color: var(--qt-text-muted);
}

/* Herbal & Frequency Recommendations */
.healing-recommendations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qt-border);
}

@media (max-width: 600px) {
  .healing-recommendations {
    grid-template-columns: 1fr;
  }
}

.recommendation-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
}

.recommendation-box h4 {
  font-size: 0.9rem;
  color: var(--qt-text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recommendation-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--qt-text-primary);
}

.recommendation-tag.herb { border: 1px solid rgba(46, 213, 115, 0.3); }
.recommendation-tag.frequency { border: 1px solid rgba(168, 85, 247, 0.3); }

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING STATE
   ───────────────────────────────────────────────────────────────────────────── */
.qt-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.qt-loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--qt-border);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.qt-loading-text {
  margin-top: 1.5rem;
  color: var(--qt-text-secondary);
  font-size: 1rem;
}

.qt-loading-subtext {
  color: var(--qt-text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MODALS
   ───────────────────────────────────────────────────────────────────────────── */
.qt-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed for performance */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qt-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qt-modal {
  background: var(--qt-bg-surface);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--qt-border);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.qt-modal-overlay.active .qt-modal {
  transform: translateY(0);
}

.qt-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--qt-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qt-modal-title {
  font-size: 1.25rem;
  color: white;
}

.qt-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--qt-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qt-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.qt-modal-body {
  padding: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .quantum-timeline-container {
    padding: 1rem;
  }
  
  .qt-header h1 {
    font-size: 1.75rem;
    letter-spacing: 0.15em;
  }
  
  .qt-actions {
    flex-direction: column;
  }
  
  .mfield-disruptions-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .trajectory-cards {
    grid-template-columns: 1fr;
  }
  
  .voice-selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ancestral-map {
    grid-template-columns: 1fr;
  }
  
  .convergence-column {
    order: -1;
    padding-bottom: 0;
    margin-bottom: 2rem;
  }
  
  .convergence-lines {
    display: none;
  }
}

@media (max-width: 480px) {
  .mfield-disruptions-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .pathway-split-section {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────────────────────────────────────── */
@media print {
  .quantum-timeline-container {
    background: white;
    color: black;
  }
  
  .qt-btn,
  .qt-actions {
    display: none;
  }
  
  .qt-section-title,
  .narrative-text,
  .prayer-content,
  .crossroads-narrative-text {
    color: black;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIMELINE RESPONSIVE STYLES
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .timeline-main-container {
    padding: 2rem 1rem 5rem 1rem;
  }
  
  .bifurcation-marker .marker-card {
    min-width: 120px;
    padding: 0.75rem;
  }
  
  .marker-age {
    font-size: 1.2rem;
  }
  
  .timeline-summary {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .timeline-main-container {
    padding: 1.5rem 0.5rem 4rem 0.5rem;
  }
  
  .bifurcation-marker .marker-card {
    min-width: 100px;
    padding: 0.5rem;
  }
  
  .marker-age {
    font-size: 1rem;
  }
  
  .marker-year,
  .marker-chakra {
    font-size: 0.75rem;
  }
  
  .marker-trauma-type,
  .marker-click-hint {
    font-size: 0.65rem;
  }
  
  .bifurcation-marker .marker-line {
    height: 25px;
  }
  
  .timeline-chakra-stages {
    display: none;
  }
  
  .timeline-summary {
    flex-direction: column;
    gap: 1rem;
  }
  
  .summary-stat .stat-value {
    font-size: 1.2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERFORMANCE OVERRIDES - Disable all infinite animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* Disable all infinite animations to prevent browser crashes */
.mfield-integrity-fill::after {
  animation: none !important;
}

.convergence-core {
  animation: none !important;
}

.crossroads-core {
  animation: none !important;
}

/* Reduce transition durations */
* {
  transition-duration: 0.15s !important;
}

/* Disable backdrop-filter which is GPU intensive */
.quantum-timeline-container,
.quantum-timeline-container * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Simplify backgrounds */
.qt-section-title::after,
.qt-section-title::before {
  display: none !important;
}

/* Remove any transform animations on scroll */
.bifurcation-marker,
.marker-card,
.disruption-card {
  transform: none !important;
  transition: opacity 0.15s ease !important;
}

.bifurcation-marker:hover,
.marker-card:hover,
.disruption-card:hover {
  transform: none !important;
  opacity: 0.9;
}

/* Disable particle system completely */
.quantum-particles,
.particle {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL PERFORMANCE FIXES - Prevents browser crashes
   ═══════════════════════════════════════════════════════════════════════════ */

/* DISABLE ALL ANIMATIONS */
.quantum-timeline-container *,
.quantum-timeline-container *::before,
.quantum-timeline-container *::after {
  animation: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;
  transition: none !important;
}

/* Remove all pseudo-element decorations that cause repaints */
.qt-section-title::before,
.qt-section-title::after,
.mfield-integrity-fill::after,
.convergence-core,
.crossroads-core,
.quantum-particles,
.particle {
  display: none !important;
}

/* Disable backdrop-filter (GPU intensive) */
.quantum-timeline-container,
.quantum-timeline-container * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Simplify box-shadows (reduce layers) */
.qt-mfield-section,
.trajectory-card,
.generation-card,
.voice-card,
.healing-protocol-card,
.disruption-card,
.bifurcation-marker,
.marker-card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Remove transform effects that trigger repaints */
.bifurcation-marker:hover,
.marker-card:hover,
.trajectory-card:hover,
.generation-card:hover,
.voice-card:hover,
.disruption-card:hover {
  transform: none !important;
}

/* Simplify gradients */
.quantum-timeline-container {
  background: var(--surface-muted) !important;
}

/* Fix potential infinite reflow from percentage widths in bars */
.mfield-integrity-fill,
.disruption-bar-fill,
.trajectory-bar-fill,
.influence-bar-fill {
  transition: none !important;
}

/* Reduce paint complexity */
.qt-section-title {
  text-shadow: none !important;
}

/* Prevent layout thrashing from hover states */
.generation-card.expanded .generation-full-story {
  max-height: 500px !important;
  overflow-y: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NUCLEAR PERFORMANCE FIX - Maximum stability
   ═══════════════════════════════════════════════════════════════════════════ */

/* Force hardware acceleration off and disable ALL visual effects */
.quantum-timeline-container,
.quantum-timeline-container * {
  animation: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  perspective: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Remove ALL pseudo-elements that might trigger repaints */
.quantum-timeline-container *::before,
.quantum-timeline-container *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Simplify all gradients to solid colors */
.qt-mfield-section,
.qt-timeline-section,
.qt-bifurcation-section,
.qt-ancestral-section,
.qt-trajectory-section,
.qt-crossroads-section,
.qt-spiritual-section,
.qt-healing-section {
  background: rgba(20, 20, 40, 0.95) !important;
  border: 1px solid rgba(100, 100, 150, 0.3) !important;
}

/* Disable hover effects completely */
.quantum-timeline-container *:hover {
  transform: none !important;
  filter: none !important;
}

/* ===========================================
   CRITICAL: Fix nested scroll containers
   Only #content-quantum-timeline should scroll.
   All parent and child containers must NOT scroll.
   =========================================== */

/* Force parent .kairo-ui to NOT scroll when quantum timeline is visible */
.kairo-ui:has(#content-quantum-timeline.active),
.kairo-ui:has(#content-quantum-timeline[style*="display: block"]),
.kairo-ui:has(#content-quantum-timeline[style*="display:block"]) {
  overflow: visible !important;
  overflow-y: visible !important;
}

/* Fallback for browsers without :has() support - apply globally */
body.quantum-timeline-active .kairo-ui {
  overflow: visible !important;
  overflow-y: visible !important;
}

/* Inner container must NOT scroll */
.quantum-timeline-container {
  overflow: visible !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: auto !important;
  max-height: none !important;
  height: auto !important;
}

#quantum-timeline-container {
  overflow: visible !important;
  overflow-y: visible !important;
  max-height: none !important;
}

/* ONLY this container scrolls */
#content-quantum-timeline {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100vh - 60px) !important;
  -webkit-overflow-scrolling: touch;
}

/* Override any .tab-content.active generic scroll rules */
#content-quantum-timeline.tab-content.active {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Prevent any nested scrollable divs inside the timeline */
.quantum-timeline-container > div {
  overflow: visible !important;
}

/* Only fix header position, not all elements */
.quantum-timeline-container .qt-header {
  position: relative !important;
}

/* Ensure timeline elements can use absolute positioning */
.timeline-bar {
  position: relative !important;
}

.bifurcation-marker,
.timeline-now-marker,
.age-marker,
.chakra-stage {
  position: absolute !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPIRITUAL VOICE DROPDOWN STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.qt-voice-select {
  background: rgba(30, 30, 50, 0.9);
  color: var(--qt-text-primary, var(--gray-200));
  border: 1px solid rgba(100, 100, 150, 0.5);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 180px;
}

.qt-voice-select:hover {
  border-color: var(--qt-accent, var(--violet-500));
}

.qt-voice-select:focus {
  outline: none;
  border-color: var(--qt-accent, var(--violet-500));
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.qt-voice-select option {
  background: var(--surface-muted);
  color: var(--gray-200);
  padding: 0.5rem;
}

/* Update the actions row to accommodate the dropdown */
.qt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .qt-voice-select {
    width: 100%;
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   M-FIELD SECTION IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.mfield-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mfield-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.mfield-info-icon:hover {
  background: rgba(139, 92, 246, 0.6);
}

.mfield-description {
  background: rgba(30, 30, 50, 0.6);
  border: 1px solid rgba(100, 100, 150, 0.3);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.mfield-description p {
  color: var(--qt-text-secondary, var(--slate-400));
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.mfield-info-panel {
  background: rgba(20, 20, 40, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.mfield-info-content h3 {
  color: var(--qt-accent, var(--violet-500));
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
}

.mfield-info-content h3:first-child {
  margin-top: 0;
}

.mfield-info-content p {
  color: var(--qt-text-secondary, var(--slate-400));
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.mfield-info-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.mfield-info-content li {
  color: var(--qt-text-secondary, var(--slate-400));
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.mfield-info-content strong {
  color: var(--qt-text-primary, var(--gray-200));
}

.mfield-info-close {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 2rem;
  background: var(--qt-accent, var(--violet-500));
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.mfield-info-close:hover {
  background: var(--violet-600);
}

.disruptions-header {
  color: var(--qt-text-primary, var(--gray-200));
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
  text-align: center;
}

.disruptions-subtext {
  color: var(--qt-text-secondary, var(--slate-400));
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

.disruption-card-desc {
  color: var(--qt-text-secondary, var(--slate-400));
  font-size: 0.8rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.disruption-card.no-disruptions {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--qt-gamma, #2ed573);
}

.disruption-card.no-disruptions p:first-child {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIDE OTHER PANELS WHEN ON QUANTUM TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure the AI history panel doesn't appear over quantum timeline */
#content-quantum-timeline ~ .ai-history-panel,
#content-quantum-timeline ~ #ai-history-panel,
.quantum-timeline-container ~ .ai-history-panel {
  display: none !important;
}

/* When quantum timeline tab is active, hide floating panels */
#content-quantum-timeline:not([style*="display: none"]) ~ .ai-history-panel,
#content-quantum-timeline:not([style*="display:none"]) ~ .ai-history-panel {
  display: none !important;
}
