/* ================================================================
           Emotional Journey Timeline - Dedicated Styles
           ================================================================ */
        :root {
            --journey-accent: #6366f1;
            --journey-accent-soft: rgba(99, 102, 241, 0.15);
            --journey-green: #10b981;
            --journey-yellow: #f59e0b;
            --journey-red: #ef4444;
            --journey-surface: rgba(30, 32, 48, 0.65);
            --journey-surface-hover: rgba(40, 44, 66, 0.8);
            --journey-text: #f3f4f6;
            --journey-text-muted: #9ca3af;
            --journey-border: rgba(99, 102, 241, 0.12);
        }

        body {
            background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
            min-height: 100vh;
            color: var(--journey-text);
            font-family: 'Inter', system-ui, sans-serif;
        }

        .journey-page {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 1rem 4rem;
        }

        /* Navigation */
        .journey-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            border-bottom: 1px solid var(--journey-border);
            margin-bottom: 2rem;
        }
        .journey-nav a {
            color: var(--journey-text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        .journey-nav a:hover { color: var(--journey-text); }
        .journey-nav .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--journey-text);
            font-weight: 600;
            font-size: 1.1rem;
        }
        .journey-nav .nav-logo .logo-icon {
            color: var(--journey-accent);
            font-size: 1.3rem;
        }
        .journey-nav-links {
            display: flex;
            gap: 1.5rem;
        }
        .journey-nav-links a.active {
            color: var(--journey-accent);
        }

        /* Hero */
        .journey-hero {
            text-align: center;
            padding: 2.5rem 1rem 2rem;
            position: relative;
        }
        .journey-hero h1 {
            font-family: 'Crimson Pro', serif;
            font-size: 2.4rem;
            font-weight: 300;
            margin: 0 0 0.5rem;
            background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #818cf8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .journey-hero .hero-subtitle {
            color: var(--journey-text-muted);
            font-size: 1rem;
            font-weight: 300;
            margin: 0 0 1.5rem;
        }
        .journey-hero .hero-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }
        .hero-stat {
            text-align: center;
        }
        .hero-stat-value {
            display: block;
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--journey-text);
        }
        .hero-stat-label {
            display: block;
            font-size: 0.75rem;
            color: var(--journey-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Filter Bar */
        .journey-filters {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        .filter-btn {
            background: var(--journey-surface);
            border: 1px solid var(--journey-border);
            color: var(--journey-text-muted);
            padding: 0.4rem 0.9rem;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .filter-btn:hover {
            background: var(--journey-surface-hover);
            color: var(--journey-text);
        }
        .filter-btn.active {
            background: var(--journey-accent-soft);
            border-color: var(--journey-accent);
            color: var(--journey-accent);
        }

        /* Timeline Container */
        .journey-timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
            padding: 1rem 0 2rem;
        }

        /* Central flowing line */
        .journey-timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--journey-accent), rgba(99,102,241,0.2));
            border-radius: 3px;
        }

        /* Timeline entry */
        .journey-entry {
            position: relative;
            width: calc(50% - 2rem);
            margin-bottom: 2.5rem;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .journey-entry.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .journey-entry:nth-child(odd) {
            margin-left: 0;
            text-align: right;
        }
        .journey-entry:nth-child(even) {
            margin-left: calc(50% + 2rem);
            text-align: left;
        }

        /* Connection line from entry to center */
        .journey-entry::after {
            content: '';
            position: absolute;
            top: 1.5rem;
            width: 2rem;
            height: 2px;
            background: rgba(99, 102, 241, 0.25);
        }
        .journey-entry:nth-child(odd)::after {
            right: -2rem;
        }
        .journey-entry:nth-child(even)::after {
            left: -2rem;
        }

        /* Dot on the center line */
        .entry-dot {
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            top: 1.2rem;
            z-index: 2;
            border: 2px solid #1a1a2e;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .journey-entry:hover .entry-dot {
            transform: scale(1.3);
            box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.25);
        }
        .journey-entry:nth-child(odd) .entry-dot {
            right: calc(-2rem - 7px);
        }
        .journey-entry:nth-child(even) .entry-dot {
            left: calc(-2rem - 7px);
        }

        /* Dot colors by emotional state */
        .entry-dot.state-good { background: var(--journey-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
        .entry-dot.state-moderate { background: var(--journey-yellow); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
        .entry-dot.state-distressed { background: var(--journey-red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

        /* Milestone dot is larger */
        .entry-dot.milestone-dot {
            width: 22px;
            height: 22px;
            top: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            background: var(--journey-accent);
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
        }
        .journey-entry:nth-child(odd) .entry-dot.milestone-dot {
            right: calc(-2rem - 11px);
        }
        .journey-entry:nth-child(even) .entry-dot.milestone-dot {
            left: calc(-2rem - 11px);
        }

        /* Entry card */
        .entry-card {
            background: var(--journey-surface);
            border: 1px solid var(--journey-border);
            border-radius: 12px;
            padding: 1.1rem 1.2rem;
            backdrop-filter: blur(12px);
            transition: background 0.2s, border-color 0.2s, transform 0.2s;
        }
        .journey-entry:hover .entry-card {
            background: var(--journey-surface-hover);
            border-color: rgba(99, 102, 241, 0.25);
            transform: translateY(-2px);
        }

        /* Milestone card highlight */
        .entry-card.milestone-card {
            border-color: rgba(99, 102, 241, 0.3);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), var(--journey-surface));
        }

        .entry-date {
            font-size: 0.75rem;
            color: var(--journey-text-muted);
            margin-bottom: 0.4rem;
            font-weight: 500;
        }

        .entry-companion {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.8rem;
            color: var(--journey-accent);
            margin-bottom: 0.5rem;
        }
        .entry-companion-icon {
            font-size: 1rem;
        }

        .entry-summary {
            font-size: 0.88rem;
            line-height: 1.55;
            color: var(--journey-text);
            margin-bottom: 0.6rem;
        }

        .entry-insight {
            font-size: 0.82rem;
            color: #a5b4fc;
            font-style: italic;
            padding: 0.5rem 0.7rem;
            background: rgba(99, 102, 241, 0.06);
            border-radius: 8px;
            border-left: 3px solid var(--journey-accent);
            margin-bottom: 0.6rem;
        }

        .entry-domains {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-bottom: 0.4rem;
        }
        .journey-entry:nth-child(odd) .entry-domains {
            justify-content: flex-end;
        }
        .domain-tag {
            font-size: 0.68rem;
            padding: 0.15rem 0.5rem;
            border-radius: 10px;
            background: rgba(99, 102, 241, 0.1);
            color: var(--journey-text-muted);
            border: 1px solid rgba(99, 102, 241, 0.12);
        }

        .entry-emotion-shift {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.75rem;
            color: var(--journey-text-muted);
        }
        .journey-entry:nth-child(odd) .entry-emotion-shift {
            justify-content: flex-end;
        }
        .emotion-label { text-transform: capitalize; }
        .emotion-arrow { color: var(--journey-accent); font-size: 0.85rem; }

        /* Milestone badge entry */
        .entry-milestone-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.82rem;
            padding: 0.3rem 0.7rem;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
            border: 1px solid rgba(99, 102, 241, 0.25);
            border-radius: 8px;
            color: #c7d2fe;
            font-weight: 500;
            margin-bottom: 0.3rem;
        }
        .milestone-badge-icon {
            font-size: 1.1rem;
        }

        /* Assessment entry styling */
        .entry-card.assessment-card {
            border-color: rgba(16, 185, 129, 0.2);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), var(--journey-surface));
        }

        .entry-type-badge {
            display: inline-block;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.15rem 0.5rem;
            border-radius: 6px;
            margin-bottom: 0.4rem;
            font-weight: 600;
        }
        .type-session { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }
        .type-milestone { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
        .type-assessment { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }

        /* Score change */
        .entry-score-change {
            font-size: 0.78rem;
            margin-top: 0.3rem;
        }
        .score-up { color: var(--journey-green); }
        .score-down { color: var(--journey-red); }

        /* Loading state */
        .journey-loading {
            text-align: center;
            padding: 3rem;
            color: var(--journey-text-muted);
        }
        .journey-loading .spinner {
            display: inline-block;
            width: 32px;
            height: 32px;
            border: 3px solid rgba(99, 102, 241, 0.15);
            border-top-color: var(--journey-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 1rem;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* Empty state */
        .journey-empty {
            text-align: center;
            padding: 4rem 1.5rem;
            color: var(--journey-text-muted);
        }
        .journey-empty .empty-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        .journey-empty h3 {
            font-size: 1.2rem;
            font-weight: 400;
            margin: 0 0 0.5rem;
            color: var(--journey-text);
        }
        .journey-empty p {
            font-size: 0.9rem;
            max-width: 340px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Load more button */
        .load-more-wrap {
            text-align: center;
            padding: 1.5rem 0;
        }
        .load-more-btn {
            background: var(--journey-surface);
            border: 1px solid var(--journey-border);
            color: var(--journey-text-muted);
            padding: 0.6rem 1.8rem;
            border-radius: 24px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .load-more-btn:hover {
            background: var(--journey-surface-hover);
            color: var(--journey-text);
            border-color: var(--journey-accent);
        }

        /* Responsive */
        @media (max-width: 700px) {
            .journey-timeline::before {
                left: 1.5rem;
            }
            .journey-entry {
                width: calc(100% - 3.5rem);
                margin-left: 3.5rem !important;
                text-align: left !important;
            }
            .journey-entry::after {
                left: -2rem !important;
                right: auto !important;
            }
            .journey-entry .entry-dot {
                left: calc(-2rem - 7px) !important;
                right: auto !important;
            }
            .journey-entry .entry-dot.milestone-dot {
                left: calc(-2rem - 11px) !important;
                right: auto !important;
            }
            .journey-entry:nth-child(odd) .entry-domains,
            .journey-entry:nth-child(odd) .entry-emotion-shift {
                justify-content: flex-start;
            }
            .journey-hero h1 { font-size: 1.8rem; }
            .hero-stats { gap: 1rem; }
        }

        /* Subtle background pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
                        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
                        radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        .journey-page { position: relative; z-index: 1; }
