setShowResetConfirm(false)}
>
e.stopPropagation()}
>
β οΈ
Reset Your Journey?
Are you sure you want to reset your journey?
This will erase all your progress, streak, and level data.
setShowResetConfirm(false)}
className="flex-1 btn-secondary py-3 rounded-xl font-cinzel text-xs tracking-widest uppercase"
>
Cancel
Reset All
)}
{/* Feature Toast */}
{featureToast && (
{/* ================================ */}
{/* DASHBOARD SCREEN */}
{/* ================================ */}
{screen === 'dashboard' && (
{/* Background ambient particles */}
{/* Back button (to change name/sound) */}
{/* Header */}
β¨
Daily Wealth Alignment
Guided by Galaxy
{/* Welcome message */}
{welcomeMsg || `Welcome, ${userData.userName} β¨`}
Day {journeyDay} of your journey
{streakStatus === 'at_risk' && !completedToday && (
β οΈ Complete today's ritual to keep your streak alive!
)}
{streakStatus === 'broken' && !completedToday && userData.totalDays > 0 && (
Your previous streak ended. Start a new one today!
)}
{/* Stats cards */}
{/* Level */}
{levelInfo.icon}
Level {userData.level}
{levelInfo.name}
{/* Streak */}
π₯
{userData.streak} Day{userData.streak !== 1 ? 's' : ''}
Streak
{/* Sound β now shows current selection */}
{userData.selectedSound === 'binaural'
? 'π§'
: userData.selectedSound === 'calm'
? 'π'
: 'β‘'}
{getSoundLabel(userData.selectedSound)}
Sound
{/* Level Progress */}
{/* ======================================= */}
{/* START BUTTON β BELOW Progress Bar */}
{/* ======================================= */}
{completedToday ? (
β
Today's Ritual Complete
Return tomorrow to continue your streak, {userData.userName}
π₯ {userData.streak}-day streak
) : (
Start Today's Ritual
)}
{/* Timer Selector */}
{/* Step Navigation β Dashboard */}
Back
{!completedToday ? (
Next
) : (
Next
)}
{/* Secondary actions row */}
setShowInsights(!showInsights)}
className="btn-tertiary text-[11px] font-cinzel tracking-widest uppercase"
>
{showInsights ? 'β² Hide Insights' : 'βΌ View Your Journey'}
Β·
setShowBookmark(true)}
className="btn-tertiary text-[11px] font-cinzel tracking-widest uppercase"
>
π Save
Β·
π Report
{/* Insights Section */}
{showInsights && (
)}
{/* Level Map */}
YOUR PATH
{[1, 2, 3, 4].map((lvl) => {
const info = getLevelInfo(lvl);
const isActive = lvl === userData.level;
const isCompleted = lvl < userData.level;
return (
{isCompleted ? 'β' : info.icon}
Level {info.level}: {info.name}
{isActive && (
Current
)}
{info.dayRange} Β· {info.subtitle}
);
})}
)}
{/* ================================ */}
{/* RITUAL SCREEN */}
{/* ================================ */}
{screen === 'ritual' && (
{/* Level badge */}
{levelInfo.icon}
Level {userData.level} β {levelInfo.name}
{getTimerLabel(ritualDuration)} Session Β· {getSoundLabel(userData.selectedSound)}
{/* Timer */}
{/* Sound Visualizer */}
{/* Audio error / retry */}
{audioError && (
π Tap again to start sound
)}
{/* Volume Control */}
π
handleVolumeChange(Number(e.target.value) / 100)}
className="volume-slider"
/>
{Math.round(volume * 100)}%
{/* ======================================= */}
{/* SOUND SELECTION DROPDOWN β Session Control */}
{/* ======================================= */}
Select Your Sound
setShowSoundDropdown(!showSoundDropdown)}
className={`sound-dropdown-trigger w-full ${showSoundDropdown ? 'active' : ''}`}
>
{userData.selectedSound === 'binaural' ? 'π§' : userData.selectedSound === 'calm' ? 'π' : 'β‘'}
{getSoundLabel(userData.selectedSound)}
{userData.selectedSound === 'binaural'
? 'Om frequency Β· 136.1Hz'
: userData.selectedSound === 'calm'
? 'Brown noise Β· Theta waves'
: 'Beta waves Β· Focused'}
{/* Dropdown menu */}
{showSoundDropdown && (
{[
{ id: 'binaural', label: 'Focus (Binaural)', desc: 'Om frequency Β· 136.1Hz Β· Alpha waves', icon: 'π§' },
{ id: 'calm', label: 'Calm (Brown Noise)', desc: 'Warm bass-rich brown noise Β· Theta waves', icon: 'π' },
{ id: 'power', label: 'Power (Enhanced Tone)', desc: 'Energizing beta waves Β· Focused presence', icon: 'β‘' },
].map((s) => (
handleSoundChange(s.id)}
className={`sound-dropdown-item ${userData.selectedSound === s.id ? 'selected' : ''}`}
>
{s.icon}
{userData.selectedSound === s.id && (
β¦
)}
))}
)}
{/* Headphones notice */}
π§
Use headphones for best experience
{/* Guided instruction */}
Read this silently in your mind or softly aloudβ¦
{/* Affirmation */}
"{affirmations[currentAffirmation]}"
{/* Personal touch */}
Stay present, {userData.userName}β¦
{/* Breathing guide */}
Breathe Β· Focus Β· Align
{/* Step Navigation β Ritual (back only) */}
)}
{/* ================================ */}
{/* COMPLETE SCREEN */}
{/* ================================ */}
{screen === 'complete' && (
β¨
Beautiful work, {userData.userName}
{getRandomMessage(completionMessages, userData.userName)}
You are strengthening your alignment daily
{/* Results card */}
Current Streak
π₯ {userData.streak} Day{userData.streak !== 1 ? 's' : ''}
Level
{levelInfo.icon} {levelInfo.name}
Total Sessions
{userData.totalDays}
Duration
{getTimerLabel(ritualDuration)}
Sound Used
{getSoundLabel(userData.selectedSound)}
{/* Progress */}
{/* Galaxy message */}
β¨
{userData.streak >= 15
? `"${userData.userName}, you have achieved Wealth Consciousness. Your abundance is limitless."`
: userData.streak >= 8
? `"The flow of abundance moves through you, ${userData.userName}. Keep going."`
: userData.streak >= 4
? `"Your energy is aligning, ${userData.userName}. Powerful shifts are happening."`
: `"Every journey begins with the first step, ${userData.userName}. You have begun."`}
β Galaxy
{/* Primary action */}
{
transitionTo('dashboard', false);
setWelcomeMsg(`Welcome, ${userData.userName} β¨`);
}}
className="btn-gold btn-primary px-8 py-3 rounded-full font-cinzel text-sm tracking-widest uppercase mb-5"
>
Return to Dashboard
{/* Secondary actions */}
π Download Report
Β·
setShowBookmark(true)}
className="btn-tertiary text-[11px] font-cinzel tracking-widest uppercase"
>
π Save Ritual
{/* Step Navigation β Complete */}
{
transitionTo('dashboard', false);
setWelcomeMsg(`Welcome, ${userData.userName} β¨`);
}}
className="step-nav-btn"
>
Back
Next
)}
{/* Footer */}
{/* ============================================ */}
{/* GLOBAL CONTROL BAR β Fixed bottom */}
{/* ============================================ */}
{(screen === 'dashboard' || screen === 'ritual' || screen === 'complete') && (