/* ==========================================================================
   NEW DAWN PSYCHIATRIC CARE - 5 RADICALLY DISTINCT DEMO STYLES & ANIMATIONS
   Authored by: UI Designer, Brand Guardian & UX Researcher
   Aesthetics:
     1. Serene Dawn: Mindful breathing orb, floating halo, organic pills, soft glowing lift
     2. Modern Bellevue: Radar sweep, live telemetry ping, sharp button snap, crisp tech HUD
     3. Integrative Care: Rotating sunburst aura, wavy SVG dividers, holistic balance wheel
     4. NextGen Portal: Dark cyber-clinical, neon scanlines, glowing HUD terminal, QbTest graph
     5. Editorial Compassion: Classical serif, narrative letters, delicate hairline draw, luxury linen
   ========================================================================== */

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

/* Demo 1: Mindful Breathing Orb & Halo */
@keyframes breatheAnimation {
  0%, 100% {
    transform: scale(0.92);
    box-shadow: 0 0 25px rgba(155, 83, 68, 0.25), inset 0 0 20px rgba(217, 119, 54, 0.2);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 60px rgba(155, 83, 68, 0.5), inset 0 0 35px rgba(217, 119, 54, 0.4);
  }
}

@keyframes rippleRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes dawnFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes gentleHalo {
  0%, 100% { opacity: 0.45; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1.08) rotate(10deg); }
}

/* Demo 2: Radar Sweep & Telemetry Status Ping */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes statusPing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes techScanline {
  0% { top: 0%; opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { top: 100%; opacity: 0.8; }
}

@keyframes countUpGlow {
  0% { color: #0f766e; }
  50% { color: #0d9488; text-shadow: 0 0 8px rgba(13, 148, 136, 0.4); }
  100% { color: #0f766e; }
}

/* Demo 3: Solar Rotation & Organic Float */
@keyframes sunRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sunCounterRotate {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes organicWiggle {
  0%, 100% { border-radius: 36px 10px 36px 10px; }
  50% { border-radius: 12px 36px 12px 36px; }
}

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

/* Demo 4: Cyber Glow, Soundwaves & Data Stream Pulse */
@keyframes neonBorderGlow {
  0%, 100% {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.3);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.85);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.55);
  }
}

@keyframes dataPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.35); }
}

@keyframes soundWave {
  0%, 100% { height: 12px; }
  50% { height: 48px; }
}

@keyframes qbTargetPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 8px #06b6d4); }
}

@keyframes brainPulse {
  0% { stroke-dashoffset: 100; opacity: 0.4; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px #38bdf8); }
  100% { stroke-dashoffset: 0; opacity: 0.4; }
}

/* Demo 5: Editorial Draw Line & Gentle Reveal */
@keyframes editorialFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes pageTurn {
  0% { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}


/* ==========================================================================
   STYLE DEFINITIONS FOR DEMO 1: SERENE DAWN
   ========================================================================== */
.demo1-theme {
  --theme-bg: #faf8f5;
  --theme-card: #ffffff;
  --theme-primary: #9b5344;
  --theme-secondary: #3d6a62;
  --theme-accent: #d97736;
  --theme-radius: 9999px;
  background-color: var(--theme-bg);
  color: #232220;
  font-family: 'Inter', sans-serif;
}

.demo1-theme .hero-halo {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(251, 238, 233, 0.8) 0%, rgba(250, 248, 245, 0) 70%);
  border-radius: 50%;
  animation: gentleHalo 8s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.demo1-theme .breathe-widget {
  background: #ffffff;
  border: 1px solid #f2e7de;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(155, 83, 68, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo1-theme .breathe-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbeee9 0%, #fef3eb 100%);
  border: 3px solid #9b5344;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #9b5344;
  animation: breatheAnimation 6s infinite ease-in-out;
  cursor: pointer;
  user-select: none;
}

.demo1-theme .stress-pill-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.demo1-theme .stress-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: #f4efe9;
  border: 1px solid #e8ded4;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5f5d58;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo1-theme .stress-pill.active,
.demo1-theme .stress-pill:hover {
  background: #9b5344;
  color: #ffffff;
  border-color: #9b5344;
  transform: translateY(-2px);
}

.demo1-theme .btn-pill {
  border-radius: 9999px !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  background: linear-gradient(135deg, #9b5344 0%, #d97736 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(155, 83, 68, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.demo1-theme .btn-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(155, 83, 68, 0.35);
}


/* ==========================================================================
   STYLE DEFINITIONS FOR DEMO 2: MODERN BELLEVUE
   ========================================================================== */
.demo2-theme {
  --theme-bg: #f8fafc;
  --theme-primary: #0f766e;
  --theme-navy: #0f172a;
  background-color: var(--theme-bg);
  color: #0f172a;
  font-family: 'Inter', sans-serif;
}

.demo2-theme .telemetry-bar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  margin-bottom: 24px;
  border: 1px solid #1e293b;
}

.demo2-theme .status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: statusPing 2s infinite ease-in-out;
}

.demo2-theme .triage-matrix-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 5px solid #0f766e;
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.demo2-theme .matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.demo2-theme .matrix-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
  transition: all 0.15s ease;
}

.demo2-theme .matrix-btn.active,
.demo2-theme .matrix-btn:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 2px 2px 0px #0f172a;
  transform: translate(-1px, -1px);
}

.demo2-theme .btn-tech {
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  padding: 14px 28px;
  background: #0f766e;
  color: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 3px 3px 0px #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo2-theme .btn-tech:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #0f172a;
}


/* ==========================================================================
   STYLE DEFINITIONS FOR DEMO 3: INTEGRATIVE CARE
   ========================================================================== */
.demo3-theme {
  --theme-bg: #f9fbfd;
  background-color: var(--theme-bg);
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.demo3-theme .sun-aura-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo3-theme .sun-aura-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(217, 119, 6, 0.4);
  animation: sunRotate 24s linear infinite;
}

.demo3-theme .sun-center-core {
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 100%);
  border: 3px solid #d97706;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
}

.demo3-theme .pillar-card-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.demo3-theme .pillar-petal {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 28px 8px 28px 8px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.demo3-theme .pillar-petal:hover,
.demo3-theme .pillar-petal.active {
  border-radius: 8px 28px 8px 28px;
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
  transform: translateY(-2px);
}

.demo3-theme .btn-wave {
  border-radius: 20px 4px 20px 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 14px 30px;
  background: linear-gradient(135deg, #0369a1 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.demo3-theme .btn-wave:hover {
  border-radius: 4px 20px 4px 20px;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(3, 105, 161, 0.35);
}


/* ==========================================================================
   STYLE DEFINITIONS FOR DEMO 4: NEXTGEN PATIENT PORTAL (CYBER-CLINICAL)
   ========================================================================== */
.demo4-theme {
  --theme-bg: #090d16;
  background-color: var(--theme-bg) !important;
  color: #f3f4f6 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.demo4-theme .portal-terminal-card {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  position: relative;
}

.demo4-theme .terminal-tab-bar {
  background: #111827;
  display: flex;
  border-bottom: 1px solid #1f2937;
}

.demo4-theme .terminal-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.demo4-theme .terminal-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.demo4-theme .cyber-stat-bar {
  display: flex;
  gap: 16px;
  background: #131d31;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 14px 20px;
  border-radius: 8px;
  margin: 16px 0;
  font-family: monospace;
}

.demo4-theme .graph-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding: 10px 0;
}

.demo4-theme .graph-col {
  flex: 1;
  background: linear-gradient(180deg, #06b6d4 0%, #4f46e5 100%);
  border-radius: 4px;
  transition: height 0.5s ease;
  animation: dataPulse 3s infinite ease-in-out;
}

.demo4-theme .btn-neon {
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.demo4-theme .btn-neon:hover {
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.8);
  transform: translateY(-2px);
}


/* ==========================================================================
   STYLE DEFINITIONS FOR DEMO 5: EDITORIAL COMPASSION (LUXURY SERIF)
   ========================================================================== */
.demo5-theme {
  --theme-bg: #f7f4ee;
  background-color: var(--theme-bg) !important;
  color: #2c1e15 !important;
  font-family: 'Playfair Display', Georgia, serif;
}

.demo5-theme .editorial-masthead {
  border-bottom: 3px double #d7cdbe;
  border-top: 1px solid #d7cdbe;
  padding: 14px 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #78350f;
  margin-bottom: 36px;
}

.demo5-theme .letter-frame-card {
  background: #fdfbf7;
  border: 3px double #d7cdbe;
  padding: 44px;
  box-shadow: 0 6px 20px rgba(44, 30, 21, 0.04);
  position: relative;
}

.demo5-theme .narrative-selector-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #d7cdbe;
  padding-bottom: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo5-theme .narrative-tab {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #78350f;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.demo5-theme .narrative-tab.active,
.demo5-theme .narrative-tab:hover {
  border: 1px solid #78350f;
  background: #fffbeb;
}

.demo5-theme .dropcap {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 4px;
  color: #78350f;
  font-family: 'Playfair Display', serif;
}

.demo5-theme .btn-editorial {
  border-radius: 0px;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 14px 32px;
  background: transparent;
  color: #78350f;
  border: 2px solid #78350f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo5-theme .btn-editorial:hover {
  background: #78350f;
  color: #ffffff;
}

/* ==========================================================================
   ADVANCED INTERACTIVE WIDGET STYLES FOR ALL 5 DEMOS
   ========================================================================== */

/* Demo 1: Breathing Ripple Rings & Calming Weather Slider */
.demo1-theme .breathe-circle-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo1-theme .ripple-ring-1,
.demo1-theme .ripple-ring-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(155, 83, 68, 0.4);
  animation: rippleRing 4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.demo1-theme .ripple-ring-2 {
  animation-delay: 2s;
}

.demo1-theme .tempo-btn-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.demo1-theme .tempo-btn {
  background: #fdf8f4;
  border: 1px solid #ebdacf;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7b3e32;
  cursor: pointer;
  transition: all 0.2s;
}

.demo1-theme .tempo-btn.active {
  background: #9b5344;
  color: #ffffff;
  border-color: #9b5344;
}

.demo1-theme .weather-slider-box {
  background: #ffffff;
  border: 1px solid #f2e7de;
  border-radius: 24px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(155, 83, 68, 0.05);
  text-align: left;
}

/* Demo 2: Radar Sweep, Digital Ticker & Insurance Copay Estimator */
.demo2-theme .radar-circle {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid #0f766e;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.15) 0%, rgba(15, 23, 42, 0.95) 80%);
  overflow: hidden;
}

.demo2-theme .radar-sweep-beam {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.45) 0deg, transparent 60deg, transparent 360deg);
  border-radius: 50%;
  animation: radarSweep 3s linear infinite;
}

.demo2-theme .copay-estimator-card {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 4px;
  box-shadow: 4px 4px 0px #0f172a;
  padding: 28px;
  margin-top: 28px;
}

.demo2-theme .copay-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #0f172a;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #0f172a;
  margin-bottom: 12px;
  cursor: pointer;
}

/* Demo 3: Sunburst Counter-Rotation & Equilibrium Balance Sliders */
.demo3-theme .sun-aura-ring-outer {
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 2px dotted rgba(2, 132, 199, 0.35);
  animation: sunCounterRotate 36s linear infinite;
}

.demo3-theme .holistic-slider-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
  text-align: left;
}

.demo3-theme .slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}

.demo3-theme .holistic-range-input {
  width: 100%;
  accent-color: #d97706;
  cursor: pointer;
}

/* 3D Flip Card for Demo 3 */
.demo3-theme .flip-card-wrapper {
  perspective: 1000px;
  min-height: 240px;
}
.demo3-theme .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.demo3-theme .flip-card-wrapper:hover .flip-card-inner,
.demo3-theme .flip-card-wrapper.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.demo3-theme .flip-card-front,
.demo3-theme .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 32px 8px 32px 8px;
  padding: 24px;
}
.demo3-theme .flip-card-front {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
}
.demo3-theme .flip-card-back {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Demo 4: Audio Soundwave, QbTest Canvas, & TMS Resonance Tuner */
.demo4-theme .soundwave-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 52px;
  margin: 16px 0;
}

.demo4-theme .soundwave-bar {
  width: 6px;
  background: linear-gradient(180deg, #06b6d4 0%, #6366f1 100%);
  border-radius: 3px;
  animation: soundWave 1.2s infinite ease-in-out;
}
.demo4-theme .soundwave-bar:nth-child(2) { animation-delay: 0.15s; }
.demo4-theme .soundwave-bar:nth-child(3) { animation-delay: 0.3s; }
.demo4-theme .soundwave-bar:nth-child(4) { animation-delay: 0.45s; }
.demo4-theme .soundwave-bar:nth-child(5) { animation-delay: 0.2s; }
.demo4-theme .soundwave-bar:nth-child(6) { animation-delay: 0.35s; }
.demo4-theme .soundwave-bar:nth-child(7) { animation-delay: 0.5s; }

.demo4-theme .qb-radar-box {
  background: #040711;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.demo4-theme .tms-coil-pulse {
  position: relative;
  height: 60px;
  background: #090d16;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Demo 5: Antique Reflection Journal & Transformation Stepper */
.demo5-theme .journal-prompt-card {
  background: #fdfbf7;
  border: 1px solid #d7cdbe;
  border-left: 4px solid #78350f;
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Playfair Display', serif;
}
.demo5-theme .journal-prompt-card:hover,
.demo5-theme .journal-prompt-card.active {
  background: #fbf5ea;
  transform: translateX(4px);
  border-left-width: 6px;
}

.demo5-theme .stepper-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
  position: relative;
}
.demo5-theme .stepper-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #d7cdbe;
  z-index: 0;
}

.demo5-theme .step-node {
  position: relative;
  z-index: 1;
  text-align: center;
  cursor: pointer;
}

.demo5-theme .step-pin {
  width: 48px;
  height: 48px;
  background: #fdfbf7;
  border: 2px solid #78350f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #78350f;
  transition: all 0.25s ease;
}
.demo5-theme .step-node.active .step-pin {
  background: #78350f;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.3);
}

