/**
 * ═══════════════════════════════════════════════════════════════════
 *  THE PATH — Journey CSS Stylesheet (v3 - Vivid Gradients & Clear UI)
 *  Pixel-Perfect SVG Cloud Silhouettes · Rich Cosmic Gradients
 *  Large High-Visibility Typography · 5-Resource Dropdowns · Owner Auth
 * ═══════════════════════════════════════════════════════════════════
 */

:root {
  --twilight-bg-top: #080A14;
  --twilight-bg-mid: #120D22;
  --twilight-bg-bot: #1A1030;
  
  --cloud-completed-glow: rgba(245, 158, 11, 0.55);
  --cloud-completed-border: #F59E0B;
  --cloud-completed-bg: linear-gradient(145deg, #2A152E 0%, #1B1028 50%, #291508 100%);
  --cloud-completed-text: #FDE68A;

  --cloud-current-glow: rgba(56, 189, 248, 0.65);
  --cloud-current-border: #38BDF8;
  --cloud-current-bg: linear-gradient(145deg, #0E274A 0%, #19183E 50%, #1A1138 100%);
  --cloud-current-text: #BAE6FD;

  --cloud-future-border: rgba(255, 255, 255, 0.16);
  --cloud-future-bg: linear-gradient(145deg, #18122E 0%, #110D24 100%);
  --cloud-future-text: rgba(255, 255, 255, 0.6);

  --path-lit-gradient-start: #F59E0B;
  --path-lit-gradient-end: #38BDF8;
  --path-unlit-stroke: rgba(255, 255, 255, 0.16);
}

/* ─── PAGE BACKGROUND & SHARP TEXT RENDERING ─────────────────── */
body.journey-page {
  background: linear-gradient(180deg, var(--twilight-bg-top) 0%, var(--twilight-bg-mid) 45%, var(--twilight-bg-bot) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Star Dust Atmosphere */
.journey-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 140px 180px, rgba(167, 139, 250, 0.35), transparent),
    radial-gradient(1px 1px at 280px 80px, rgba(56, 189, 248, 0.35), transparent),
    radial-gradient(2px 2px at 420px 320px, rgba(245, 158, 11, 0.25), transparent);
  background-size: 600px 600px;
  opacity: 0.6;
  z-index: 0;
}

/* ─── STICKY HUD BAR ─────────────────────────────────────────── */
.journey-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px var(--gutter);
  transition: all 0.3s ease;
}

.journey-hud-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.journey-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.journey-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--flutter);
}

.journey-hud-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.journey-progress-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cloud-current-text);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}

.journey-progress-bar-wrap {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.journey-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F59E0B, #38BDF8);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.journey-week-select {
  background: #191428;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.journey-week-select:focus {
  border-color: var(--cloud-current-border);
}

/* Owner Auth Status Badge */
.journey-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.journey-auth-badge:hover {
  background: rgba(255, 255, 255, 0.12);
}
.journey-auth-badge.is-owner {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
  color: #FDE68A;
}

/* ─── HERO HEADER ─────────────────────────────────────────────── */
.journey-hero-section {
  max-width: 860px;
  margin: 50px auto 30px;
  text-align: center;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.journey-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.journey-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 30%, #BAE6FD 70%, #FDE68A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.journey-hero-desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 26px;
}

/* View Controls & Week Filters */
.journey-view-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.btn-view-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-view-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-view-toggle.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #BAE6FD;
}

/* Legend */
.journey-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend-dot.completed {
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.legend-dot.current {
  background: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  border-radius: 50%;
  animation: legend-pulse 2s infinite;
}
.legend-dot.future {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

@keyframes legend-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ─── THE WINDING PATH CONTAINER ──────────────────────────────── */
.journey-track-container {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 120px;
  padding: 20px var(--gutter) 80px;
  z-index: 1;
}

/* SVG Path Overlay */
.journey-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.journey-svg-path-lit {
  fill: none;
  stroke: url(#journeyLitGradient);
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
  vector-effect: non-scaling-stroke;
}

.journey-svg-path-unlit {
  fill: none;
  stroke: var(--path-unlit-stroke);
  stroke-width: 2.5px;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* ─── WEEK GROUP & PERFORMANCE OPTIMIZATION ──────────────────── */
.journey-week-group {
  position: relative;
  margin-bottom: 60px;
  z-index: 2;
  content-visibility: auto;
  contain-intrinsic-size: 0 450px;
}

.journey-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #140E24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 36px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease;
}
.journey-week-header:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.journey-week-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}
.journey-week-num {
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

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

.journey-week-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.journey-week-toggle-icon {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.journey-week-group.collapsed .journey-week-toggle-icon {
  transform: rotate(-90deg);
}
.journey-week-group.collapsed .journey-nodes-list {
  display: none;
}

/* ─── NODES WRAPPER ───────────────────────────────────────────── */
.journey-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 52px;
  position: relative;
  z-index: 2;
}

.journey-node-row {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.journey-node-row.pos-left {
  justify-content: flex-start;
  padding-left: clamp(15px, 8vw, 100px);
}
.journey-node-row.pos-center {
  justify-content: center;
}
.journey-node-row.pos-right {
  justify-content: flex-end;
  padding-right: clamp(15px, 8vw, 100px);
}

/* ─── UNIVERSAL CLOUD CONTAINER UTILITY (.cloud-block / .shape-cloud) ─ */
.cloud-block,
.shape-cloud {
  position: relative;
  width: 100%;
  min-width: 320px;
  max-width: 440px;
  aspect-ratio: 5 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 26px 18px 26px;
  box-sizing: border-box;
  margin: 20px auto;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
  user-select: none;
  cursor: pointer;
}

/* Scaled duplicate ::before for crisp cloud-shaped outline border */
.cloud-block::before,
.shape-cloud::before {
  content: "";
  position: absolute;
  inset: -2.5px;
  clip-path: url(#cloud-clip);
  background: var(--cloud-border, rgba(255, 255, 255, 0.16));
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* Background gradient layer */
.cloud-block::after,
.shape-cloud::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: url(#cloud-clip);
  background: var(--cloud-bg, linear-gradient(145deg, #18122E 0%, #110D24 100%));
  z-index: 2;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* Content container */
.cloud-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 4px;
  gap: 5px;
  text-align: center;
}

/* Hover floating effect */
.cloud-block:hover,
.shape-cloud:hover {
  transform: translateY(-6px);
}

/* ── STATE: COMPLETED (Glowing Warm Amber Cosmic Lantern) ──────── */
.cloud-block.state-completed,
.journey-node-card.state-completed {
  --cloud-bg: linear-gradient(145deg, #2E1534 0%, #1B0E2A 50%, #2A1408 100%);
  --cloud-border: linear-gradient(135deg, #F59E0B, #FBBF24);
  --cloud-shadow: rgba(245, 158, 11, 0.45);
  filter: drop-shadow(0 0 3px #F59E0B) drop-shadow(0 16px 32px var(--cloud-shadow));
}
.cloud-block.state-completed:hover {
  filter: drop-shadow(0 0 6px #FDE68A) drop-shadow(0 20px 42px rgba(245, 158, 11, 0.7));
}

/* ── STATE: CURRENT (TODAY) — Active Cyan/Violet Breathing Halo ── */
.cloud-block.state-current,
.journey-node-card.state-current {
  --cloud-bg: linear-gradient(145deg, #0C2346 0%, #16173E 50%, #1C1138 100%);
  --cloud-border: linear-gradient(135deg, #38BDF8, #818CF8);
  --cloud-shadow: rgba(56, 189, 248, 0.55);
  filter: drop-shadow(0 0 4px #38BDF8) drop-shadow(0 16px 32px var(--cloud-shadow));
  animation: cloud-floating-pulse 2.8s ease-in-out infinite;
}

@keyframes cloud-floating-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px #38BDF8) drop-shadow(0 14px 28px rgba(56, 189, 248, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 6px #BAE6FD) drop-shadow(0 22px 45px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 20px rgba(129, 140, 248, 0.6));
  }
}

/* ── STATE: FUTURE (Deep Twilight Glass Cloud) ─────────────────── */
.cloud-block.state-future,
.journey-node-card.state-future {
  --cloud-bg: linear-gradient(145deg, #18112E 0%, #100C22 100%);
  --cloud-border: rgba(255, 255, 255, 0.16);
  --cloud-shadow: rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 0 1px var(--cloud-border)) drop-shadow(0 10px 22px var(--cloud-shadow));
  opacity: 0.92;
}
.cloud-block.state-future:hover {
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4)) drop-shadow(0 12px 26px var(--cloud-shadow));
}

/* ─── NODE HEADER & CONTENT ───────────────────────────────────── */
.node-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
}

.node-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.state-completed .node-icon-badge {
  background: rgba(245, 158, 11, 0.3);
  border-color: #F59E0B;
  color: #FDE68A;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.state-current .node-icon-badge {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38BDF8;
  color: #BAE6FD;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.node-day-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.state-completed .node-day-tag { color: #FDE68A; }
.state-current .node-day-tag { color: #BAE6FD; }

.node-date-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.node-state-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}
.state-completed .node-state-pill {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FDE68A;
}
.state-current .node-state-pill {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #BAE6FD;
}

/* Main Content Title — Big, Bold, and Prominent */
.node-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(16.5px, 2.5vw, 19.5px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 92%;
  margin: 3px auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.state-future .node-title {
  color: rgba(255, 255, 255, 0.9);
}

.node-deliverable-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #E9D5FF;
  background: rgba(192, 132, 252, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── TOP PICK RESOURCE PILL (HIGH VISIBILITY) ───────────────── */
.node-resources-dropdown-wrap {
  margin-top: 2px;
  width: 100%;
}

.top-pick-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 11.5px;
  font-weight: 600;
  color: #FDE68A;
  text-decoration: none;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.state-current .top-pick-pill {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(129, 140, 248, 0.18) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  color: #BAE6FD;
}
.state-future .top-pick-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
}
.top-pick-pill:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #F59E0B;
  transform: translateY(-1px);
}
.state-current .top-pick-pill:hover {
  background: rgba(56, 189, 248, 0.35);
  border-color: #38BDF8;
}

.top-pick-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: #F59E0B;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 4px;
}
.state-current .top-pick-badge {
  color: #38BDF8;
}
.state-future .top-pick-badge {
  color: #CBD5E1;
}

/* ─── MILESTONE CALLOUT BADGE ─────────────────────────────────── */
.node-milestone-flag {
  position: absolute;
  top: 14px;
  inset-inline-end: 22px;
  background: linear-gradient(135deg, #7F52FF, #13B9FD);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(127, 82, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

/* ─── DETAIL MODAL & OWNER PASSCODE MODAL ─────────────────────── */
.journey-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.journey-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.journey-modal-card {
  background: #140E24;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(127, 82, 255, 0.25);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.journey-modal-backdrop.open .journey-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.modal-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 10px;
}

.modal-resources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.modal-resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #BAE6FD;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.modal-resource-link.top-pick {
  background: rgba(245, 158, 11, 0.12);
  border-color: #F59E0B;
  color: #FDE68A;
}
.modal-resource-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.modal-deliverable-box {
  background: rgba(127, 82, 255, 0.12);
  border: 1px solid rgba(127, 82, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: #E0E7FF;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.btn-toggle-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-toggle-complete.is-done {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #F59E0B;
  color: #FDE68A;
}
.btn-toggle-complete.is-done:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #FCA5A5;
}
.btn-toggle-complete.not-done {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #BAE6FD;
}
.btn-toggle-complete.not-done:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #FFFFFF;
}

/* Owner Passcode Input Group */
.owner-passcode-input {
  width: 100%;
  background: #0B0818;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
}
.owner-passcode-input:focus {
  border-color: #F59E0B;
}

/* ─── REDUCED MOTION PREFERENCES ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .journey-node-card.state-current,
  .legend-dot.current {
    animation: none !important;
  }
  .journey-node-card {
    transition: none !important;
  }
}

/* ─── EMBEDDED LANDING WIDGET STYLING ─────────────────────────── */
#journey-widget-section {
  padding: 60px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.journey-widget-card {
  background: linear-gradient(135deg, rgba(20, 14, 36, 0.9) 0%, rgba(10, 12, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(127, 82, 255, 0.15);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  overflow: hidden;
}

.journey-widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.journey-widget-title-group h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.journey-widget-title-group p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
  line-height: 1.5;
}

.journey-widget-window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
}

.widget-node-card {
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.widget-node-card.state-completed {
  --cloud-bg: linear-gradient(145deg, #2E1632 0%, #1D112B 50%, #2C1608 100%);
  --cloud-border: #F59E0B;
  --cloud-shadow: rgba(245, 158, 11, 0.45);
  filter: drop-shadow(0 0 2.5px var(--cloud-border)) drop-shadow(0 14px 28px var(--cloud-shadow));
}
.widget-node-card.state-current {
  --cloud-bg: linear-gradient(145deg, #0D264D 0%, #191842 50%, #1E123C 100%);
  --cloud-border: #38BDF8;
  --cloud-shadow: rgba(56, 189, 248, 0.55);
  filter: drop-shadow(0 0 3px var(--cloud-border)) drop-shadow(0 16px 30px var(--cloud-shadow));
  animation: cloud-floating-pulse 2.8s infinite;
}
.widget-node-card.state-future {
  --cloud-bg: linear-gradient(145deg, #191230 0%, #110D25 100%);
  --cloud-border: rgba(255, 255, 255, 0.16);
  --cloud-shadow: rgba(0, 0, 0, 0.35);
  opacity: 0.9;
  filter: drop-shadow(0 0 1px var(--cloud-border)) drop-shadow(0 10px 20px var(--cloud-shadow));
}

.widget-node-badge {
  display: inline-flex;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.widget-node-card.state-completed .widget-node-badge { color: #FDE68A; }
.widget-node-card.state-current .widget-node-badge { color: #BAE6FD; }
.widget-node-card.state-future .widget-node-badge { color: var(--text-muted); }

.widget-node-title {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 2px 0;
}

.widget-node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Light Theme support for landing widget */
[data-theme="light"] .journey-widget-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .journey-widget-title-group h3 {
  color: #0F172A;
}
[data-theme="light"] .widget-node-card.cloud-block {
  --cloud-bg: linear-gradient(145deg, #FFFFFF 0%, #F1F5F9 100%);
  --cloud-border: rgba(0, 0, 0, 0.14);
  --cloud-shadow: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .widget-node-card.cloud-block .widget-node-title {
  color: #0F172A;
  text-shadow: none;
}
[data-theme="light"] .widget-node-card.cloud-block .widget-node-desc {
  color: #475569;
}
[data-theme="light"] .widget-node-card.cloud-block.state-completed {
  --cloud-bg: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  --cloud-border: #F59E0B;
  --cloud-shadow: rgba(245, 158, 11, 0.25);
}
[data-theme="light"] .widget-node-card.cloud-block.state-completed .widget-node-badge {
  color: #B45309;
}
[data-theme="light"] .widget-node-card.cloud-block.state-current {
  --cloud-bg: linear-gradient(145deg, #F0F9FF 0%, #E0F2FE 100%);
  --cloud-border: #0284C7;
  --cloud-shadow: rgba(2, 132, 199, 0.3);
}
[data-theme="light"] .widget-node-card.cloud-block.state-current .widget-node-badge {
  color: #0284C7;
}
[data-theme="light"] .widget-node-card.cloud-block.state-future .widget-node-badge {
  color: #64748B;
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────────── */
@media (max-width: 768px) {
  .journey-node-row.pos-left,
  .journey-node-row.pos-right {
    padding-left: 5px;
    padding-right: 5px;
    justify-content: center;
  }
  .cloud-block,
  .journey-node-card,
  .widget-node-card {
    max-width: 380px;
    min-width: 290px;
    aspect-ratio: 5 / 3;
    padding: 36px 26px 20px 26px;
    box-sizing: border-box;
  }
  .cloud-block::before,
  .journey-node-card::before,
  .widget-node-card::before {
    inset: -2px;
  }
  .cloud-block::after,
  .journey-node-card::after,
  .widget-node-card::after {
    inset: 0;
  }
  .node-title {
    font-size: 14.5px;
    line-height: 1.25;
  }
  .node-day-tag {
    font-size: 11.5px;
  }
  .node-icon-badge {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .journey-hud-stats {
    width: 100%;
    justify-content: space-between;
  }
  .journey-progress-bar-wrap {
    width: 90px;
  }
}
