:root {
    --primary-orange: #ff8000;
    --primary-green: #2f6a00;
    --forest-dark: #1a2f1a;
    --forest-medium: #2d4a2d;
    --forest-light: #4a6b4a;
    --warm-white: #faf8f5;
    --soft-gray: #e8e5e0;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-soft: 24px;
    --radius-medium: 16px;
    --radius-small: 8px;
    
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f2ed 0%, #e8e5e0 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Forest Scene */
.forest-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.forest-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
}

.forest-back {
    background: linear-gradient(45deg, var(--forest-dark) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.forest-mid {
    background: radial-gradient(circle at 30% 70%, var(--forest-medium) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.forest-front {
    background: linear-gradient(135deg, transparent 0%, var(--forest-light) 100%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-5px); }
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 50%;
    opacity: 0;
    animation: firefly 8s ease-in-out infinite;
}

.firefly:nth-child(2) {
    left: 20%;
    top: 30%;
    animation-delay: 2s;
}

.firefly:nth-child(3) {
    left: 80%;
    top: 60%;
    animation-delay: 4s;
}

@keyframes firefly {
    0%, 100% { opacity: 0; transform: translateY(0) translateX(0); }
    50% { opacity: 0.8; transform: translateY(-20px) translateX(10px); }
}

/* Main Content */
.main-content {
    padding: 24px 20px 100px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

#themeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.app-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Daily Practice */
.daily-practice {
    margin-bottom: 40px;
}

.daily-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-soft);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.daily-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.daily-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.daily-content {
    flex: 1;
}

.daily-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.daily-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.duration {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Meditation Paths */
.meditation-paths {
    margin-bottom: 40px;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.path-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.path-length {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--soft-gray);
    padding: 4px 8px;
    border-radius: var(--radius-small);
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--primary-orange);
    font-weight: 500;
}

.progress {
    height: 4px;
    background: var(--soft-gray);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-green) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Gatherings */
.gatherings {
    margin-bottom: 40px;
}

.gathering-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.gathering-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.gathering-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.gathering-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.gathering-time {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: var(--radius-small);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-green);
}

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

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Left Edge Popup */
.left-popup {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(47, 106, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    z-index: 200;
    width: 280px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.left-popup-content {
    color: white;
}

.left-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.left-popup-header span {
    font-size: 0.9rem;
    font-weight: 600;
}

.left-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.left-popup-close:hover {
    opacity: 1;
}

.left-popup p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
    opacity: 0.9;
}

.left-popup-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.left-popup-btn:hover {
    background: #e67300;
    transform: translateY(-1px);
}

.left-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-popup-secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.left-popup-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.left-popup-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 12px 8px;
    cursor: pointer;
    z-index: 199;
    transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

.left-popup-tab:hover {
    background: #e67300;
    padding: 14px 10px;
}

.left-popup-tab span {
    font-size: 1.2rem;
    display: block;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
}

.left-popup.hide {
    animation: slideOutLeft 0.6s ease forwards;
}

/* Install prompt removed */

/* Responsive */
@media (max-width: 375px) {
    .app-title {
        font-size: 2rem;
    }
    
    .daily-card,
    .path-card,
    .gathering-card {
        padding: 16px;
    }
}

/* Profile Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 16px;
    border-radius: var(--radius-medium);
    text-align: left;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-soft);
}

.user-details {
    flex: 1;
}

.user-name-input {
    border: none;
    background: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    width: 100%;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
    padding-bottom: 2px;
}

.user-name-input:focus {
    outline: none;
    border-bottom-color: var(--primary-orange);
}

.user-level {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 500;
}

.stats-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 14px 16px;
    border-radius: var(--radius-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.activity-meta h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.activity-meta p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-emotion {
    font-size: 1.2rem;
}

/* Pills styles */
.daily-pill-featured {
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease;
}

.featured-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -12px;
    margin-left: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
}

.featured-pill-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.featured-pill-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 128, 0, 0.2);
}

.featured-emoji {
    font-size: 4rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.featured-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    line-height: 1.2;
}

.featured-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.pill-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pill-emoji {
    font-size: 2rem;
    background: var(--soft-gray);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pill-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pill-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pill-detail-view {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-medium);
    animation: fadeIn 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
}

.pill-section {
    margin-bottom: 24px;
}

.pill-section-title {
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.pill-reflection {
    margin-top: 32px;
    border-top: 1px solid var(--soft-gray);
    padding-top: 24px;
}

.reflection-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.reflection-btn {
    background: var(--soft-gray);
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reflection-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.pill-back-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.pill-nav-btn {
    background: white;
    border: 1px solid var(--soft-gray);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-nav-btn.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.pills-header-nav {
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 20px;
}

.pills-calendar-desc {
    font-size: 0.8rem; 
    color: var(--text-secondary); 
    margin-bottom: 20px;
}

.footer-credits {
    position: fixed; 
    bottom: 60px; 
    left: 0; 
    right: 0; 
    text-align: center; 
    padding: 12px 20px; 
    font-size: 0.7rem; 
    color: var(--text-secondary); 
    opacity: 0.7; 
    z-index: 1;
}

.footer-credits a {
    color: var(--primary-orange); 
    text-decoration: none; 
    font-weight: 500;
}

.pill-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: white;
    padding: 12px;
    border-radius: var(--radius-medium);
}

.full-year-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 40px;
}

.month-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-soft);
    padding: 16px 8px;
}

.month-name-header {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    padding-left: 12px;
}

.calendar-pill-day {
    aspect-ratio: 1;
    background: white;
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px;
}

.calendar-day-empty {
    aspect-ratio: 1;
}

.day-number-small {
    font-size: 0.6rem;
    color: var(--text-secondary);
    position: absolute;
    top: 2px;
    left: 4px;
}

.pill-emoji-small {
    font-size: 1.1rem;
}

.calendar-pill-day:hover {
    transform: scale(1.1);
    background: var(--primary-orange);
    z-index: 2;
}

.calendar-pill-day:hover .day-number-small {
    color: white;
}

.calendar-pill-day.today {
    border: 2px solid var(--primary-orange);
    background: rgba(255, 128, 0, 0.05);
}

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

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: white;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.toast-icon {
    background: var(--primary-orange);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

body.dark-mode .toast-notification {
    background: #2a3d2a;
    color: white;
    border-color: rgba(255,255,255,0.1);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Weekly Calendar */
.weekly-calendar {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 16px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.day-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.day-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.day-circle.active {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 128, 0, 0.3);
}

.day-circle.today {
    border: 2px solid var(--primary-green);
}

/* Secondary Button */
.secondary-btn-full {
    width: 100%;
    background: rgba(47, 106, 0, 0.1);
    border: 1px solid rgba(47, 106, 0, 0.2);
    color: var(--primary-green);
    padding: 14px;
    border-radius: var(--radius-medium);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn-full:hover {
    background: rgba(47, 106, 0, 0.2);
}

/* Full Modal */
.full-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header-sticky {
    background: white;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.modal-close-icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Toggle Switch */
.modal-controls-bar {
    display: flex;
    justify-content: flex-end;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.toggle-container input {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--primary-orange);
}

input:checked + .toggle-slider::after {
    left: 18px;
}

/* Compact Activity Item */
.activity-item.compact .activity-meta h4,
.activity-item.compact .activity-meta p:not(.activity-date) {
    display: none;
}

.activity-item.compact {
    padding: 8px 16px;
}

.activity-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dark-mode comprehensive fixes */
body.dark-mode {
    background: linear-gradient(135deg, #0d1a0d 0%, #1a2f1a 100%) !important;
    color: var(--warm-white) !important;
}

body.dark-mode .app-title {
    color: var(--primary-orange);
}

body.dark-mode .section-title,
body.dark-mode .modal-title,
body.dark-mode .month-name-header {
    color: var(--warm-white);
}

body.dark-mode .daily-card,
body.dark-mode .path-card,
body.dark-mode .gathering-card,
body.dark-mode .stat-card,
body.dark-mode .activity-item,
body.dark-mode .featured-pill-card,
body.dark-mode .pill-card,
body.dark-mode .pill-detail-view,
body.dark-mode .month-section,
body.dark-mode .user-info,
body.dark-mode .weekly-calendar {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--warm-white);
}

body.dark-mode .daily-content h3,
body.dark-mode .path-card h3,
body.dark-mode .gathering-content h3,
body.dark-mode .pill-info h3,
body.dark-mode .featured-content h2,
body.dark-mode .user-name-input,
body.dark-mode .stat-value,
body.dark-mode .activity-meta h4,
body.dark-mode .pill-title,
body.dark-mode .pill-text {
    color: var(--warm-white);
}

body.dark-mode .daily-content p,
body.dark-mode .path-card p,
body.dark-mode .gathering-content p,
body.dark-mode .pill-info p,
body.dark-mode .featured-content p,
body.dark-mode .activity-meta p,
body.dark-mode .user-level,
body.dark-mode .stat-label,
body.dark-mode .day-label,
body.dark-mode .pills-calendar-desc {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .bottom-nav {
    background: rgba(20, 30, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-item.active {
    color: var(--primary-orange);
}

body.dark-mode .forest-scene {
    opacity: 0.5;
    filter: brightness(0.7) contrast(1.2);
}

body.dark-mode .pill-nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

body.dark-mode .pill-nav-btn.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

body.dark-mode .reflection-btn {
    background: rgba(255,255,255,0.1);
    color: white;
}

body.dark-mode .reflection-btn:hover {
    background: var(--primary-orange);
}

body.dark-mode .full-modal {
    background: #1a2f1a;
}

body.dark-mode .modal-header-sticky {
    background: #0d1a0d;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}