:root {
    /* Light Theme Color Palette */
    --bg-main: #F7FAFC;       /* Soft light gray/blue background */
    --bg-card: #FFFFFF;       /* Crisp white cards */
    --text-main: #1A202C;     /* Deep slate for readability */
    --text-muted: #718096;    /* Secondary text */
    --border: rgba(0, 0, 0, 0.08); /* Subtle borders */
    
    /* Brand Colors */
    --primary: #1A202C;
    --accent: #D69E2E;        /* MentorLift Gold */
    --gradient: linear-gradient(135deg, #D69E2E 0%, #F6E05E 50%, #B7791F 100%);
    --border-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, sans-serif; }

/* 1. Base Setup */
html { background-color: var(--bg-card); overscroll-behavior-y: none; }

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    padding-top: 80px; 
    padding-bottom: calc(100px + env(safe-area-inset-bottom)); 
    min-height: 100dvh; 
    line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* 2. Top Bar (Glassmorphism Light) */
.top-bar { 
    position: fixed; top: 0; left: 0; width: 100%; height: 70px; 
    background: rgba(255, 255, 255, 0.90); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); 
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 1000; 
}
.top-bar img { height: 35px; } 
.top-bar-icons { display: flex; gap: 25px; font-size: 1.3rem; align-items: center; }
.top-bar-icons a { position: relative; color: var(--text-main); text-decoration: none; transition: 0.3s; display: inline-flex; }
.top-bar-icons a:hover { color: var(--accent); }
.icon-badge { 
    position: absolute; top: -6px; right: -8px; background: #e53e3e; color: #fff; 
    font-size: 0.6rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; padding: 0 4px; 
    border: 2px solid #fff; 
}

/* 3. Mobile Navigation */
.mobile-nav { 
    position: fixed; bottom: 0 !important; left: 0; width: 100%; 
    height: calc(70px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background-color: var(--bg-card); border-top: 1px solid var(--border); 
    display: flex; justify-content: space-around; align-items: center; z-index: 9999; 
}
/* Bulletproof iOS bottom curtain */
.mobile-nav::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 500px; background-color: var(--bg-card); z-index: 9998; }
.mobile-nav a { color: var(--text-muted); font-size: 1.4rem; text-decoration: none; display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--primary); }

/* The Elevated Center Button (Todo List) */
.mobile-nav .center-dash { 
    background: var(--gradient); color: #fff; width: 60px; height: 60px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; font-size: 1.6rem; 
    transform: translateY(-15px); box-shadow: 0 8px 20px rgba(214, 158, 46, 0.4); 
    border: 4px solid var(--bg-main); 
}
.mobile-nav .center-dash:hover { transform: translateY(-18px); color: #fff; box-shadow: 0 10px 25px rgba(214, 158, 46, 0.5); }

/* 4. Global Sliding Menu */
.menu-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2999; display: none; }
.global-slide-menu { 
    position: fixed; top: 0; left: -320px; width: 300px; max-width: 80%; height: 100dvh; 
    background: var(--bg-card); border-right: 1px solid var(--border); z-index: 3000; 
    transition: left 0.3s ease-in-out; display: flex; flex-direction: column; box-shadow: 5px 0 25px rgba(0,0,0,0.05);
}
.global-slide-menu.open { left: 0; }
.menu-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.menu-header h3 { color: var(--text-main); margin: 0; }
.menu-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.menu-close:hover { color: var(--e53e3e); }
.menu-body { padding: 20px; overflow-y: auto; flex-grow: 1; -webkit-overflow-scrolling: touch; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.menu-link { 
    display: flex; align-items: center; gap: 15px; color: var(--text-main); text-decoration: none; 
    font-size: 1rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); transition: 0.2s; 
}
.menu-link:hover { color: var(--accent); padding-left: 8px; }
.menu-link i { color: var(--accent); width: 24px; text-align: center; font-size: 1.1rem; }

/* 5. Cards & UI Elements */
.card { background: var(--bg-card); border-radius: var(--border-radius); border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.02); padding: 25px; margin-bottom: 20px; }
.btn { display: inline-block; padding: 14px 24px; border: none; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; text-align: center; text-decoration: none; }
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: #2D3748; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-accent { background: var(--gradient); color: #fff; }
.btn-accent:hover { box-shadow: 0 5px 15px rgba(214, 158, 46, 0.3); transform: translateY(-2px); }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--border-radius); padding: 1.2rem; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Day Accordion Elements */
.day-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--border-radius); padding: 1rem 1.2rem; margin-bottom: 12px; cursor: pointer; transition: 0.2s; }
.day-card:hover { border-color: #cbd5e0; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.day-card.open { border-color: var(--accent); box-shadow: 0 5px 15px rgba(214, 158, 46, 0.08); }
.day-card.locked { opacity: 0.5; cursor: not-allowed; background: var(--bg-main); border-color: transparent; }
.day-row { display: flex; align-items: center; gap: 12px; }
.day-num { font-size: 13px; font-weight: 700; color: var(--text-muted); min-width: 50px; }
.day-title { font-size: 15px; font-weight: 700; color: var(--text-main); flex: 1; }
.day-badge { font-size: 11px; padding: 4px 12px; border-radius: 99px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-mind { background: #EEEDFE; color: #3C3489; }
.badge-body { background: #E1F5EE; color: #085041; }
.badge-habit { background: #FAEEDA; color: #633806; }
.badge-social { background: #FBEAF0; color: #72243E; }
.badge-reset { background: #F1EFE8; color: #444441; }
.day-detail { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.day-card.open .day-detail { display: block; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; margin-top: 20px; }
.detail-label:first-child { margin-top: 0; }
.mission-box { background: var(--bg-main); border-radius: 8px; padding: 1rem; font-size: 14px; color: var(--text-main); border-left: 3px solid #cbd5e0; line-height: 1.6; }
.msg-box { background: rgba(214, 158, 46, 0.05); border-radius: 8px; padding: 1rem; font-size: 14px; color: var(--text-main); font-style: italic; border-left: 3px solid var(--accent); line-height: 1.6; }
.audio-player { width: 100%; margin-top: 5px; outline: none; border-radius: 50px; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 15px; }
.hidden { display: none !important; }

/* Utilities */
@media (min-width: 769px) {
    .mobile-nav { display: none; }
    body { padding-bottom: 0; }
    .top-bar { padding: 0 40px; }
}