/* =========================================================================
   Glimpse of Life — Timeline Styles (Emotionally Resonant Life Journey)
   ========================================================================= */

.journey-header {
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.98) 0%, rgba(6, 8, 19, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 24px 28px;
  position: relative;
}

.journey-container {
  max-width: 1240px;
  margin: 0 auto;
}

.journey-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.journey-user-info h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  letter-spacing: -0.5px;
}

.journey-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.journey-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Astrological Anchors Grid */
.astro-anchors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.anchor-card {
  background: rgba(19, 25, 56, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.anchor-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.anchor-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-serif);
}

.anchor-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* =========================================================================
   Current Life Station Hero Banner (Live Age Tracker)
   ========================================================================= */
.current-life-station-card {
  background: radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.14) 0%, rgba(19, 25, 56, 0.85) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.current-life-station-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.station-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.station-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #fbbf24; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.station-chapter-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.station-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.station-info h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}

.station-info p {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.5;
}

.life-eras-progress-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.era-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-fast);
}

.era-step:hover {
  background: rgba(255, 255, 255, 0.08);
}

.era-step.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.era-step.completed .era-dot {
  background: #10b981;
}

.era-step.active {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.era-step.active .era-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.era-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.era-label {
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active Alert Banner */
.active-transit-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.transit-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transit-icon {
  font-size: 1.5rem;
}

.transit-text h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.transit-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Macro Lifelong Dasha Ribbon */
.macro-ribbon-wrapper {
  background: rgba(6, 8, 19, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.ribbon-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.dasha-ribbon-bar {
  display: flex;
  height: 26px;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
}

.dasha-ribbon-segment {
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.dasha-ribbon-segment:hover {
  filter: brightness(1.3);
  z-index: 5;
}

.ribbon-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* =========================================================================
   Timeline Navigation & Filter Bar
   ========================================================================= */
.timeline-navigation-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 10px;
}

.nav-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.era-nav-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.era-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(19, 25, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.era-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.era-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #060813;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.tone-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tone-pill {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tone-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tone-pill.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}

/* =========================================================================
   Interactive Timeline Container & Pathway
   ========================================================================= */
.timeline-stream {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* Central Luminous Guideline */
.timeline-stream::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, 
    #38bdf8 0%, 
    #f59e0b 25%, 
    #ec4899 50%, 
    #10b981 75%, 
    #a855f7 100%
  );
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  z-index: 1;
}

/* =========================================================================
   Chapter Dividing Header Banner
   ========================================================================= */
.chapter-header-banner {
  position: relative;
  z-index: 2;
  margin: 48px 0 28px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(19, 25, 56, 0.95) 0%, rgba(10, 14, 30, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  scroll-margin-top: 100px;
}

.chapter-header-banner.active-chapter-banner {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(19, 25, 56, 0.95) 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.2);
}

.chapter-top-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chapter-num-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chapter-age-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.chapter-main-title {
  font-size: 1.5rem;
  color: #fff;
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.chapter-sub-title {
  font-size: 0.95rem;
  color: #fbbf24;
  margin-bottom: 10px;
  font-weight: 500;
}

.chapter-overview-text {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* =========================================================================
   Individual Milestone Item
   ========================================================================= */
.milestone-item {
  position: relative;
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  z-index: 2;
  transition: var(--transition-normal);
  scroll-margin-top: 120px;
}

/* Node indicator circle */
.milestone-node {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: var(--transition-fast);
  z-index: 3;
}

.milestone-item:hover .milestone-node {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Tone Specific Node Borders */
.tone-auspicious .milestone-node {
  border-color: #10b981;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, #0b1329 70%);
}

.tone-unfavourable .milestone-node {
  border-color: #ef4444;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, #0b1329 70%);
}

.tone-neutral .milestone-node {
  border-color: #6366f1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, #0b1329 70%);
}

/* Current Milestone Active Highlight */
.is-current-milestone .milestone-node {
  border-color: #fbbf24;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, #0b1329 70%);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6);
  animation: nodeGlow 2.5s infinite alternate;
}

@keyframes nodeGlow {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 26px rgba(245, 158, 11, 0.7); }
}

/* =========================================================================
   Milestone Card Body
   ========================================================================= */
.milestone-card {
  flex-grow: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.milestone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tone-auspicious .milestone-card {
  border-left: 4px solid #10b981;
}

.tone-unfavourable .milestone-card {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.tone-neutral .milestone-card {
  border-left: 4px solid #6366f1;
}

/* Current Milestone Card Aura */
.is-current-milestone .milestone-card {
  border: 1.5px solid #fbbf24;
  border-left: 5px solid #fbbf24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

/* Card Top Metadata */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.card-timeframe {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-tone-auspicious {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-tone-unfavourable {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-tone-neutral {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.status-current {
  background: #f59e0b;
  color: #060813;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-past {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.status-future {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

/* Card Titles */
.card-title {
  font-size: 1.25rem;
  color: #fff;
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 12px;
  font-style: italic;
}

/* Resonant Human Story */
.milestone-human-story {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(245, 158, 11, 0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.milestone-human-story p {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Thematic Tags */
.life-theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.theme-tag {
  font-size: 0.72rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Planetary Activation Strip */
.card-activation-strip {
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-action-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-action-btn:hover {
  text-decoration: underline;
  color: #fff;
}

.remedy-alert-btn {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.remedy-alert-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.remedy-alert-btn.remedy-unlocked-btn {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #6ee7b7 !important;
}

.remedy-alert-btn.remedy-unlocked-btn:hover {
  background: rgba(16, 185, 129, 0.32) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
}

/* Empty State */
.timeline-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-secondary);
}

.timeline-empty h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

/* Desktop vs Mobile Header Controls */
.desktop-journey-actions {
  display: flex;
}
.mobile-journey-header-controls {
  display: none;
}

/* Comprehensive Responsive Adjustments */
@media (max-width: 768px) {
  .desktop-journey-actions {
    display: none !important;
  }
  .mobile-journey-header-controls {
    display: flex !important;
  }

  .journey-header {
    padding: 16px 14px 18px;
  }
  .journey-topbar {
    gap: 10px;
    margin-bottom: 14px;
  }
  .journey-user-info h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
  .journey-meta {
    font-size: 0.82rem;
    gap: 8px;
  }

  .astro-anchors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .anchor-card {
    padding: 10px 12px;
  }
  .anchor-label {
    font-size: 0.68rem;
  }
  .anchor-value {
    font-size: 0.96rem;
  }
  .anchor-sub {
    font-size: 0.72rem;
  }

  .current-life-station-card {
    padding: 16px 14px;
    margin-bottom: 16px;
  }
  .station-badge-row {
    gap: 8px;
    margin-bottom: 8px;
  }
  .station-pulse-badge, .station-chapter-pill {
    font-size: 0.74rem;
    padding: 3px 9px;
  }
  .station-heading {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .station-subtext {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .life-eras-progress-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .era-step {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .dasha-macro-section {
    padding: 16px 14px;
    margin-bottom: 18px;
  }
  .dasha-ribbon-bar {
    height: 22px;
  }
  .dasha-ribbon-segment {
    font-size: 0.65rem;
  }
  .ribbon-legend {
    gap: 6px;
    margin-top: 10px;
  }
  .legend-item {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  .stream-filter-bar {
    padding: 12px 14px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-pills-row, .tone-filter-row {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .filter-pill, .tone-pill {
    font-size: 0.76rem;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .timeline-stream {
    padding: 10px 4px 40px;
  }
  .timeline-stream::before {
    left: 19px;
  }
  .chapter-header-banner {
    padding: 14px 14px;
    margin: 28px 0 16px;
    border-radius: var(--radius-md);
  }
  .chapter-main-title {
    font-size: 1.18rem;
  }
  .chapter-sub-title {
    font-size: 0.86rem;
  }
  .chapter-overview-text {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .milestone-item {
    gap: 12px;
    margin-bottom: 16px;
  }
  .milestone-node {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .milestone-card {
    padding: 14px 14px;
    border-radius: var(--radius-md);
  }
  .card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .milestone-title {
    font-size: 1.05rem;
  }
  .milestone-narrative {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .milestone-tags-row {
    gap: 6px;
    margin-top: 10px;
  }
  .milestone-tag {
    font-size: 0.72rem;
    padding: 2px 7px;
  }

  .future-journey-paywall-card {
    padding: 22px 14px;
    margin: 28px 0 20px;
    border-radius: var(--radius-md);
  }
  .paywall-pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .paywall-plan-card {
    padding: 18px 14px;
  }
  .paywall-main-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 420px) {
  .astro-anchors-grid {
    grid-template-columns: 1fr;
  }
  .milestone-node {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .timeline-stream::before {
    left: 17px;
  }
  .timeline-stream {
    padding: 6px 0 30px;
  }
}

/* =========================================================
   Future Horizons Paywall & Locked Milestones Gating
   ========================================================= */

.future-journey-paywall-card {
  margin: 40px 0 30px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.future-journey-paywall-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.paywall-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.future-journey-paywall-card h3.paywall-main-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.future-journey-paywall-card p.paywall-lead-desc {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Paywall 2-Tier Pricing Grid */
.paywall-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: left;
}

.paywall-plan-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.paywall-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.paywall-plan-card.plan-featured {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.95) 0%, rgba(20, 24, 45, 0.95) 100%);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.18);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060813;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.plan-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 16px;
}

.plan-price-row .curr {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
}

.plan-price-row .val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.plan-price-row .per {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 4px;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-feature-list li span.check {
  color: #34d399;
  font-weight: 700;
}

.paywall-security-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* Locked Milestone Preview Item */
.milestone-locked-preview {
  opacity: 0.85;
}

.milestone-locked-preview .milestone-node {
  background: rgba(30, 41, 59, 0.9);
  border: 1.5px dashed rgba(245, 158, 11, 0.5);
  box-shadow: none;
  font-size: 1.1rem;
}

.milestone-card-locked {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
  border-left: 4px solid rgba(245, 158, 11, 0.6) !important;
}

.milestone-card-locked:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

.locked-teaser-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 10px 0 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  border-left: 3px solid rgba(245, 158, 11, 0.4);
}

.btn-unlock-pill {
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060813;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-unlock-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Unlock Celebration Banner */
.unlock-celebration-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1.5px solid #34d399;
  border-radius: 14px;
  padding: 16px 22px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(52, 211, 153, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideInUp 0.4s ease-out;
}

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

