/* ADHD Focus Quest - Complete Styling System */

:root {
    /* Color Palette */
    --primary: 220 38% 56%;
    --primary-light: 220 38% 85%;
    --secondary: 280 39% 56%;
    --secondary-light: 280 39% 85%;
    --success: 142 76% 36%;
    --warning: 45 93% 47%;
    --danger: 0 84% 60%;
    --info: 204 94% 94%;
    
    /* Neutral Colors */
    --background: 0 0% 100%;
    --surface: 210 40% 98%;
    --border: 220 13% 91%;
    --text: 222 84% 5%;
    --text-light: 215 16% 47%;
    --shadow: 220 43% 11%;
    
    /* Spacing */
    --container-padding: 20px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    
    /* Animations */
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
.dark-mode {
    --background: 222 84% 5%;
    --surface: 220 13% 9%;
    --border: 215 28% 17%;
    --text: 210 40% 98%;
    --text-light: 217 19% 63%;
    --shadow: 0 0% 0%;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: hsl(var(--text));
    background: hsl(var(--background));
    transition: var(--transition);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Login Section */
.login-section {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 999;
    animation: gradientShift 8s ease-in-out infinite;
    box-sizing: border-box;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 420px;
    margin: auto;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.login-card:hover::before {
    left: 100%;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 100px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-card h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-card .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.login-card h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    font-size: var(--font-size-2xl);
}

.login-card p {
    color: hsl(var(--text-light));
    margin-bottom: 30px;
}

.login-card input {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login-card input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.login-card input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.auth-buttons .btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.auth-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #667eea;
    border: 2px solid #667eea;
}

.auth-buttons .btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Header */
.app-header {
    background: hsl(var(--surface));
    border-bottom: 1px solid hsl(var(--border));
    padding: 20px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px hsla(var(--shadow), 0.05);
}

.app-header h1 {
    color: hsl(var(--primary));
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.user-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: hsl(var(--text-light));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.stat-value {
    color: hsl(var(--primary));
    font-weight: 700;
    font-size: var(--font-size-lg);
}

/* Tab Navigation */
.tab-navigation {
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 0 var(--container-padding);
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: hsl(var(--text-light));
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.tab-btn.active {
    background: hsl(var(--surface));
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--surface));
    margin-bottom: -1px;
}

/* Tab Content */
.tab-content {
    flex: 1;
    background: hsl(var(--surface));
    padding: var(--container-padding);
}

.tab-pane {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane.active {
    display: block;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: hsl(var(--primary));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--primary), 0.3);
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--primary), 0.4);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--secondary), 0.3);
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--secondary), 0.4);
}

.btn-success {
    background: hsl(var(--success));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--success), 0.3);
}

.btn-success:hover {
    background: hsl(var(--success) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--success), 0.4);
}

.btn-warning {
    background: hsl(var(--warning));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--warning), 0.3);
}

.btn-warning:hover {
    background: hsl(var(--warning) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--warning), 0.4);
}

.btn-danger {
    background: hsl(var(--danger));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--danger), 0.3);
}

.btn-danger:hover {
    background: hsl(var(--danger) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--danger), 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
}

.btn-outline:hover {
    background: hsl(var(--primary));
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Dashboard Styles */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.welcome-section h2 {
    color: hsl(var(--primary));
    margin-bottom: 10px;
    font-size: var(--font-size-2xl);
}

.welcome-section p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-lg);
}

.mood-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
    text-align: center;
}

.mood-section h3 {
    color: hsl(var(--text));
    margin-bottom: 20px;
}

.mood-selector {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    margin-bottom: 15px;
    font-size: var(--font-size-base);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-info h4 {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: var(--font-size-lg);
}

.big-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: hsl(var(--primary));
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: hsl(var(--border));
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Challenge Styles */
.challenges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.challenges-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
}

.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.challenge-generator {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.generator-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.goal-selector {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-base);
}

/* Challenges Sections */
.challenges-section {
    margin-bottom: 40px;
    width: 100%;
}

.challenges-section .section-title {
    color: hsl(var(--primary));
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.generated-challenges .section-title::before {
    content: "🎯";
    font-size: 1.2rem;
}

.custom-challenges .section-title::before {
    content: "⭐";
    font-size: 1.2rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    width: 100%;
}

.challenges-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.generated-challenge {
    border-left: 4px solid hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--background)));
}

.custom-challenge {
    border-left: 4px solid hsl(var(--info));
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--background)));
}

.challenge-item {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
    position: relative;
    display: block;
}

.challenge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
    border-color: hsl(var(--primary));
}

.challenge-content {
    margin-bottom: 20px;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.challenge-title {
    color: hsl(var(--text));
    margin-bottom: 12px;
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

.challenge-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.challenge-xp {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.challenge-difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
}

.difficulty-easy {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
}

.difficulty-medium {
    background: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
}

.difficulty-hard {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
}

.challenge-category {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.challenge-description {
    color: hsl(var(--text-light));
    margin-top: 10px;
    font-style: italic;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.challenge-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Challenge Customization */
.challenge-customization {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.difficulty-selector {
    padding: 6px 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.difficulty-selector:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.xp-input {
    width: 70px;
    padding: 6px 8px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
}

.xp-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.xp-label {
    color: hsl(var(--text-light));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Challenge Timer Styles */
.challenge-timer-section {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
}

.timer-input {
    width: 80px;
    padding: 6px 8px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--background));
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
    text-align: center;
    margin-bottom: 10px;
}

.timer-display-small {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
    text-align: center;
    margin-bottom: 10px;
}

.timer-controls-small {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Good Habits Styles */
.good-habits-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.good-habits-section h3 {
    color: hsl(var(--success));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.today-good-habits-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.today-good-habits-section h3 {
    color: hsl(var(--success));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.good-habit {
    border-left: 4px solid hsl(var(--success));
}

.good-habit-daily {
    background: hsl(var(--success) / 0.05);
    border-color: hsl(var(--success));
}

.habit-reward {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-recurring {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-once {
    background: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-progress {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    color: hsl(var(--text-light));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.xp-reward {
    color: hsl(var(--success));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Reward Edit Styles */
.reward-edit-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.reward-xp-input {
    width: 80px;
    padding: 4px 8px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
    text-align: center;
}

.reward-xp-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

/* Profile Section Styles */
.completed-challenges {
    max-height: 200px;
    overflow-y: auto;
}

.completed-challenge-item {
    padding: 15px;
    border-bottom: 1px solid hsl(var(--border));
    background: linear-gradient(135deg, 
        hsl(var(--primary) / 0.06), 
        hsl(var(--warning) / 0.06));
    border-radius: var(--border-radius-lg);
    margin-bottom: 10px;
    border: 1px solid hsl(var(--primary) / 0.2);
    transition: all 0.3s ease;
}

.completed-challenge-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.15);
}

.completed-challenge-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.challenge-name {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 5px;
}

.challenge-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.completion-date {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

.day-planner {
    max-height: 200px;
    overflow-y: auto;
}

.day-planner-item {
    padding: 10px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--primary) / 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.day-planner-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.no-completed,
.no-planned {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 20px;
    font-style: italic;
}

/* ADHD Enhancement Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes floatUp {
    0% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-50px); 
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

/* Dopamine Booster Section */
.dopamine-booster {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    text-align: center;
}

.motivation-quote {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 15px;
    min-height: 30px;
}

.energy-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.energy-bar {
    width: 200px;
    height: 8px;
    background: hsl(var(--border));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.energy-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--energy-width, 100%);
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.energy-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    font-weight: 500;
}

/* Streak Card Enhancement */
.streak-card {
    position: relative;
    overflow: visible;
}

.streak-multiplier {
    font-size: var(--font-size-sm);
    color: hsl(var(--warning));
    font-weight: 600;
    margin-top: 5px;
}

.streak-card.multiplier-active {
    animation: glow 2s infinite;
}

/* Reward Achievements */
.reward-achievements {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 20px;
}

.reward-achievements h3 {
    color: hsl(var(--warning));
    margin-bottom: 15px;
}

.spending-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    min-width: 120px;
    transition: all 0.3s ease;
}

.badge-item.locked {
    opacity: 0.5;
    background: hsl(var(--surface));
}

.badge-item.unlocked {
    background: linear-gradient(135deg, 
        hsl(var(--primary) / 0.15), 
        hsl(var(--secondary) / 0.15), 
        hsl(var(--warning) / 0.10));
    border-color: hsl(var(--primary));
    animation: pulse 1s ease-in-out;
    box-shadow: 0 4px 15px hsl(var(--primary) / 0.2);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.badge-name {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 4px;
    text-align: center;
}

.badge-requirement {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    text-align: center;
}

/* User XP Display Enhancement */
.user-xp-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.xp-bonus-indicator {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    animation: pulse 1.5s infinite;
    margin-top: 5px;
}

/* Habit Stats Enhancement */
.habit-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.habit-streak-counter {
    text-align: center;
    padding: 15px;
    background: hsl(var(--success) / 0.1);
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--success));
}

.habit-streak-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--success));
}

.habit-streak-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
}

/* Habit Trackers */
.habit-tracker-container {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 2px solid hsl(var(--border));
    width: 100%;
}

.habit-tracker-container h4 {
    color: hsl(var(--primary));
    margin-bottom: 15px;
    text-align: center;
    font-size: var(--font-size-lg);
}

.habit-trackers {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.habit-tracker {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.habit-tracker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: hsl(var(--background));
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    min-width: 120px;
    transition: all 0.3s ease;
}

.habit-tracker-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--shadow), 0.1);
}

.habit-tracker-item.bad-habits {
    border-color: hsl(var(--danger));
    background: hsl(var(--danger) / 0.05);
}

.habit-tracker-item.avoided {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.05);
}

.habit-tracker-item.good-habits {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.tracker-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.tracker-info {
    text-align: center;
}

.tracker-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 4px;
}

.tracker-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    font-weight: 500;
}



/* Arena Enhancements */
.arena-rank-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
}

.rank-badge {
    background: linear-gradient(135deg, hsl(var(--warning)), hsl(var(--secondary)));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.battle-count {
    font-weight: 600;
    color: hsl(var(--text-light));
}

.combo-meter-section {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 20px;
}

.combo-meter-section h3 {
    color: hsl(var(--warning));
    margin-bottom: 15px;
}

.combo-meter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.combo-bar {
    flex: 1;
    height: 12px;
    background: hsl(var(--border));
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.combo-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--combo-width, 0%);
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--warning)));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.combo-multiplier {
    font-weight: bold;
    font-size: var(--font-size-lg);
    min-width: 50px;
    text-align: center;
}

.combo-benefits {
    text-align: center;
}

.combo-text {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    font-style: italic;
}

/* RPM System Styles */
.rpm-system-dashboard {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--warning) / 0.1));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 2px solid hsl(var(--primary) / 0.3);
}

.rpm-system-dashboard h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.rpm-quick-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rpm-card {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
}

.rpm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rpm-card h4 {
    margin-bottom: 10px;
    font-size: var(--font-size-lg);
}

.rpm-card p {
    color: hsl(var(--text-light));
    margin-bottom: 15px;
    min-height: 40px;
    font-size: var(--font-size-sm);
}

.result-card {
    border-color: hsl(var(--success));
}

.purpose-card {
    border-color: hsl(var(--warning));
}

.action-card {
    border-color: hsl(var(--primary));
}

.rpm-progress {
    text-align: center;
}

.rpm-progress .progress-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin-top: 8px;
}

/* RPM Modal Styles */
.rpm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid hsl(var(--border));
}

.rpm-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    font-weight: 600;
    color: hsl(var(--text-light));
    transition: all 0.3s ease;
}

.rpm-tab.active {
    background: hsl(var(--primary));
    color: white;
}

.rpm-tab-content {
    display: none;
    padding: 20px 0;
}

.rpm-tab-content.active {
    display: block;
}

.rpm-tab-content h4 {
    margin-bottom: 15px;
    color: hsl(var(--text));
}

.rpm-tab-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--font-size-base);
    resize: vertical;
}

.rpm-category-link {
    margin-top: 15px;
}

.rpm-category-link label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: hsl(var(--text));
}

.emotion-tags {
    margin-top: 20px;
}

.emotion-tags h5 {
    margin-bottom: 10px;
    color: hsl(var(--text));
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.tag-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-grid label:hover {
    background: hsl(var(--primary) / 0.1);
}

.action-planner {
    margin-top: 15px;
}

.action-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
}

.actions-list {
    max-height: 200px;
    overflow-y: auto;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.action-text {
    flex: 1;
    color: hsl(var(--text));
}

.rpm-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border));
}

/* ADHD Brain Hacks Styles */
.adhd-brain-hacks {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin: 20px 0;
}

.adhd-brain-hacks h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.brain-hack-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hack-card {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
}

.hack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hack-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.hack-card h4 {
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.hack-card p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 15px;
}

.dopamine-counter {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: hsl(var(--primary));
    margin-top: 10px;
}

.dopamine-card.completed {
    border-color: hsl(var(--success));
    animation: pulse 2s infinite;
}

/* Anti-Procrastination Toolkit */
.anti-procrastination-toolkit {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin: 20px 0;
}

.anti-procrastination-toolkit h3 {
    color: hsl(var(--warning));
    margin-bottom: 20px;
    text-align: center;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tool-card {
    background: hsl(var(--surface));
    padding: 15px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.tool-card h4 {
    margin-bottom: 8px;
    color: hsl(var(--text));
    font-size: var(--font-size-base);
}

.tool-card p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 12px;
}

/* Fear Quick Actions */
.fear-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.fear-quick-actions .btn {
    font-size: var(--font-size-sm);
    padding: 8px 16px;
}

/* Hyperfocus Modal Styles */
.focus-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.focus-option {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.focus-option:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}

.focus-option .time {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.focus-option .desc {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
}

.focus-challenge-picker {
    text-align: center;
}

.focus-challenge-picker h5 {
    margin-bottom: 10px;
    color: hsl(var(--text));
}

.focus-challenge-picker select,
.focus-challenge-picker input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.active-hyperfocus {
    text-align: center;
}

.focus-display {
    background: hsl(var(--surface));
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.focus-timer {
    font-size: 3rem;
    font-weight: bold;
    font-family: monospace;
    color: hsl(var(--primary));
    margin-bottom: 15px;
}

.focus-task {
    font-size: var(--font-size-lg);
    color: hsl(var(--text));
    margin-bottom: 20px;
}

.focus-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.focus-distractions {
    background: hsl(var(--warning) / 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.focus-distractions h5 {
    margin-bottom: 10px;
    color: hsl(var(--text));
}

#distractionCounter {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--warning));
    margin-bottom: 10px;
}

/* Fear Timer Modal */
.fear-timer-setup {
    text-align: center;
}

.fear-timer-setup h4 {
    margin-bottom: 10px;
    color: hsl(var(--text));
}

.fear-timer-setup p {
    color: hsl(var(--text-light));
    margin-bottom: 20px;
}

.timer-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.timer-option {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: hsl(var(--text));
}

.timer-option:hover {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.1);
}

.active-fear-timer {
    text-align: center;
}

.fear-timer-display {
    font-size: 4rem;
    font-weight: bold;
    font-family: monospace;
    color: hsl(var(--success));
    margin-bottom: 20px;
}

.fear-encouragement {
    font-size: var(--font-size-lg);
    color: hsl(var(--text));
    margin-bottom: 20px;
    font-style: italic;
    background: hsl(var(--success) / 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
}

.fear-timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ADHD Insights */
.adhd-insights {
    padding: 15px 0;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid hsl(var(--border));
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-label {
    font-weight: 600;
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
}

.insight-value {
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* RPM Goals List */
.rpm-goals-list {
    max-height: 200px;
    overflow-y: auto;
}

.rpm-goal-item {
    background: hsl(var(--surface));
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    margin-bottom: 10px;
}

.goal-result {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 5px;
}

.goal-category {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin-bottom: 8px;
}

.goal-progress {
    margin-top: 8px;
}

.goal-progress .progress-bar {
    height: 6px;
    background: hsl(var(--border));
    border-radius: 10px;
    overflow: hidden;
}

.goal-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--success)));
    transition: width 0.3s ease;
}

/* Enhanced Vision Tab Styles */
.visualization-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--warning) / 0.1));
    padding: 20px;
    border-radius: var(--border-radius-lg);
}

.visualization-header h2 {
    margin-bottom: 10px;
    color: hsl(var(--primary));
    font-size: 2rem;
}

.visualization-header p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-lg);
}

.vision-section.enhanced,
.affirmations-section.enhanced,
.goal-visions-section.enhanced {
    background: hsl(var(--surface));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 25px;
    border: 2px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.vision-section.enhanced:hover,
.affirmations-section.enhanced:hover,
.goal-visions-section.enhanced:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-input-container {
    position: relative;
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.btn-voice {
    background: linear-gradient(135deg, hsl(var(--success)), hsl(var(--primary)));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-voice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-voice:active {
    transform: translateY(0);
}

.recording-status {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.recording-status.recording {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    animation: pulse 2s infinite;
}

.recording-status.error {
    background: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
}

.vision-textarea.enhanced,
.affirmations-textarea.enhanced,
.goal-textarea.enhanced {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--font-size-base);
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: hsl(var(--background));
}

.vision-textarea.enhanced:focus,
.affirmations-textarea.enhanced:focus,
.goal-textarea.enhanced:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
    outline: none;
}

.input-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.goal-input.enhanced {
    width: 100%;
    padding: 15px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.goal-input.enhanced:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
    outline: none;
}

.affirmation-suggestions {
    margin-top: 20px;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.affirmation-suggestions h4 {
    margin-bottom: 15px;
    color: hsl(var(--text));
    font-size: var(--font-size-base);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--primary) / 0.3);
}

.suggestion-tag:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

.vision-stats {
    background: hsl(var(--surface));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 2px solid hsl(var(--border));
}

.vision-stats h3 {
    text-align: center;
    margin-bottom: 20px;
    color: hsl(var(--text));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-visions-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.no-visions {
    text-align: center;
    color: hsl(var(--text-light));
    font-style: italic;
    padding: 20px;
}

/* Pulse animation for recording */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rpm-quick-view {
        grid-template-columns: 1fr;
    }
    
    .brain-hack-cards {
        grid-template-columns: 1fr;
    }
    
    .toolkit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .focus-options {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-options {
        flex-direction: column;
        align-items: center;
    }
    
    .fear-quick-actions {
        justify-content: center;
    }
    
    .voice-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .input-actions {
        flex-direction: column;
    }
}

/* Redesigned Clean Dashboard */
.dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--success) / 0.1));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.energy-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.large-energy-meter {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
}

.energy-progress {
    width: 100%;
    height: 20px;
    background: hsl(var(--border));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.energy-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--danger)), hsl(var(--warning)), hsl(var(--success)));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.energy-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.energy-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
}

.energy-label {
    font-weight: 600;
    color: hsl(var(--text));
}

.stats-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-card {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
}

.stat-title {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Combined ADHD Productivity Toolkit */
.adhd-productivity-toolkit {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--warning) / 0.05));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 1px solid hsl(var(--border));
}

.adhd-productivity-toolkit h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.tool-card {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-card.featured {
    border: 2px solid hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--surface)));
}

.tool-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.tool-card h4 {
    margin: 10px 0;
    color: hsl(var(--text));
}

.tool-card p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 15px;
}

.adhd-insights-panel {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.adhd-insights-panel h4 {
    margin-bottom: 15px;
    color: hsl(var(--text));
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.insight-card {
    background: hsl(var(--background));
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    text-align: center;
}

.insight-label {
    display: block;
    font-size: var(--font-size-xs);
    color: hsl(var(--text-light));
    margin-bottom: 5px;
}

.insight-value {
    font-weight: bold;
    color: hsl(var(--primary));
}

/* Fear Games Section */
.fear-games-section {
    background: linear-gradient(135deg, hsl(var(--danger) / 0.1), hsl(var(--warning) / 0.1));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 1px solid hsl(var(--danger) / 0.3);
}

.fear-games-section h3 {
    color: hsl(var(--danger));
    margin-bottom: 20px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: hsl(var(--surface));
    padding: 25px;
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary));
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.game-card h4 {
    margin: 10px 0;
    color: hsl(var(--text));
}

.game-card p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 20px;
}

/* Badge System Dashboard Styles */
.badge-system-dashboard {
    background: linear-gradient(135deg, hsl(var(--warning) / 0.1), hsl(var(--success) / 0.1));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 2px solid hsl(var(--warning) / 0.3);
}

.badge-system-dashboard h3 {
    color: hsl(var(--warning));
    margin-bottom: 20px;
    text-align: center;
}

.badge-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.badge-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-stat {
    background: hsl(var(--surface));
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    min-width: 80px;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.badge-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--warning));
    margin-bottom: 5px;
}

.badge-stat .stat-label {
    font-size: var(--font-size-xs);
    color: hsl(var(--text-light));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-badges-section {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.recent-badges-section h4 {
    margin-bottom: 15px;
    color: hsl(var(--text));
    font-size: var(--font-size-base);
}

.recent-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-mini {
    font-size: 1.5rem;
    padding: 8px;
    background: hsl(var(--warning) / 0.1);
    border-radius: 50%;
    border: 2px solid hsl(var(--warning) / 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge-mini:hover {
    transform: scale(1.1);
    background: hsl(var(--warning) / 0.2);
}

.no-badges {
    color: hsl(var(--text-light));
    font-style: italic;
    font-size: var(--font-size-sm);
}

/* Energy Tracking Dashboard */
.energy-tracking-dashboard {
    background: linear-gradient(135deg, hsl(var(--success) / 0.1), hsl(var(--primary) / 0.1));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 2px solid hsl(var(--success) / 0.3);
}

.energy-tracking-dashboard h3 {
    color: hsl(var(--success));
    margin-bottom: 20px;
    text-align: center;
}

.energy-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.energy-meter-container {
    text-align: center;
}

.energy-meter {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: hsl(var(--border));
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.energy-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to top, hsl(var(--success)), hsl(var(--primary)));
    transition: width 0.3s ease;
    border-radius: 50%;
}

.energy-text {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.energy-status {
    font-weight: 600;
    color: hsl(var(--success));
    font-size: var(--font-size-base);
}

.performance-indicators {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator {
    background: hsl(var(--surface));
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicator-label {
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
}

.indicator-value {
    font-weight: bold;
    color: hsl(var(--primary));
    font-size: var(--font-size-lg);
}

/* Mood-based styling for dashboard */
#dashboard.mood-confident .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--warning) / 0.1));
    border: 2px solid hsl(var(--primary) / 0.3);
}

#dashboard.mood-happy .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--success) / 0.15), hsl(var(--warning) / 0.1));
    border: 2px solid hsl(var(--success) / 0.3);
}

#dashboard.mood-focused .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--info) / 0.1));
    border: 2px solid hsl(var(--primary) / 0.4);
}

#dashboard.mood-tired .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--muted) / 0.15), hsl(var(--border) / 0.1));
    border: 2px solid hsl(var(--muted) / 0.3);
}

#dashboard.mood-stressed .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--danger) / 0.1), hsl(var(--warning) / 0.05));
    border: 2px solid hsl(var(--danger) / 0.2);
}

#dashboard.mood-anxious .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--warning) / 0.1), hsl(var(--muted) / 0.05));
    border: 2px solid hsl(var(--warning) / 0.2);
}

#dashboard.mood-frustrated .dashboard-hero {
    background: linear-gradient(135deg, hsl(var(--danger) / 0.15), hsl(var(--muted) / 0.1));
    border: 2px solid hsl(var(--danger) / 0.3);
}

.mood-indicator {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Enhanced dashboard header */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mood-section {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    margin-bottom: 20px;
}

.mood-section h3 {
    margin-bottom: 15px;
    color: hsl(var(--text));
    font-size: 1.2rem;
}

.mood-selector {
    width: 100%;
    max-width: 300px;
    margin-right: 15px;
    padding: 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--background));
    color: hsl(var(--text));
    font-size: 1rem;
}

.mood-selector:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

/* Task Modal Styles */
.task-modal, .energy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.task-modal-content, .energy-modal-content {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.task-header, .energy-header {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--info)));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.task-icon, .energy-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.task-header h3, .energy-header h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: white;
}

.xp-reward {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.task-body, .energy-body {
    padding: 30px;
    text-align: center;
}

.task-category, .energy-category {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.task-text, .energy-text {
    font-size: 1.2rem;
    color: hsl(var(--text));
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.energy-benefits {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.benefit-tag {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 6px 12px;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: bold;
    border: 1px solid hsl(var(--success) / 0.3);
}

/* Systematic Progress Modal Styles */
.systematic-progress-modal, .measurable-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.systematic-progress-modal .modal-content,
.measurable-results-modal .modal-content {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.progress-dashboard, .results-dashboard {
    padding: 30px;
}

.progress-overview, .results-overview {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid hsl(var(--border));
}

.progress-overview h4, .results-overview h4 {
    color: hsl(var(--primary));
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.progress-overview p, .results-overview p {
    color: hsl(var(--text-light));
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.stat-label {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.program-timeline {
    margin-top: 30px;
    padding: 25px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
}

.program-timeline h4 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: hsl(var(--primary));
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 30px;
    margin-bottom: 15px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 3px solid hsl(var(--background));
}

.timeline-date {
    color: hsl(var(--text-light));
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.timeline-title {
    color: hsl(var(--text));
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-reward {
    color: hsl(var(--success));
    font-weight: bold;
    font-size: 0.9rem;
}

.milestone-tracker {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
}

.milestone-tracker h4 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.milestone-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
    transition: var(--transition);
}

.milestone-item.completed {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.1);
}

.milestone-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.milestone-text {
    font-weight: 600;
    color: hsl(var(--text));
}

.milestone-item.completed .milestone-text {
    color: hsl(var(--success));
}

/* Analytics Grid Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.analytics-card {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.analytics-card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.analytics-card h5 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.confidence-chart {
    text-align: center;
}

.confidence-meter {
    margin: 20px 0;
}

.confidence-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        hsl(var(--primary)) calc(var(--confidence) * 3.6deg),
        hsl(var(--border)) 0deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.confidence-fill {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: hsl(var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
}

.confidence-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
}

.confidence-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: hsl(var(--text-light));
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
    color: hsl(var(--text));
}

.stat-value.positive {
    color: hsl(var(--success));
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.metric-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85rem;
    color: hsl(var(--text-light));
    text-transform: uppercase;
    font-weight: 600;
}

/* Skills Grid Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.skill-item:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    color: hsl(var(--text));
    font-size: 1.1rem;
}

.skill-category {
    font-size: 0.8rem;
    color: hsl(var(--text-light));
    background: hsl(var(--surface));
    padding: 4px 8px;
    border-radius: 10px;
}

.skill-bar {
    height: 8px;
    background: hsl(var(--border));
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.skill-percent {
    text-align: right;
    font-weight: bold;
    color: hsl(var(--primary));
    font-size: 0.9rem;
}

/* Weekly Activity Chart */
.weekly-progress-chart {
    margin-top: 30px;
    padding: 25px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 2px solid hsl(var(--border));
}

.weekly-progress-chart h4 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
}

.weekly-bars {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 150px;
    padding: 20px 0;
    border-bottom: 2px solid hsl(var(--border));
}

.activity-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.activity-bar {
    width: 40px;
    background: linear-gradient(to top, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.activity-bar:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.bar-fill {
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
}

.activity-count {
    font-weight: bold;
    color: hsl(var(--primary));
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-day {
    font-size: 0.8rem;
    color: hsl(var(--text-light));
    font-weight: 600;
}

/* Weekly Progress Tracker */
.weekly-progress-tracker {
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    border: 2px solid hsl(var(--border));
}

.weekly-progress-tracker h4 {
    color: hsl(var(--primary));
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.day-column {
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.day-column.today {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}

.day-column.past {
    opacity: 0.8;
}

.day-column.future {
    opacity: 0.6;
}

.day-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid hsl(var(--border));
}

.day-name {
    font-weight: bold;
    color: hsl(var(--text));
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.day-date {
    color: hsl(var(--text-light));
    font-size: 0.8rem;
}

.completion-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.completion-label {
    font-size: 0.7rem;
    color: hsl(var(--text-light));
    margin-bottom: 10px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--border));
    transition: var(--transition);
}

.progress-dot.completed {
    background: hsl(var(--success));
}

.task-footer, .energy-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: hsl(var(--surface));
}

.task-footer .btn, .energy-footer .btn {
    flex: 1;
    max-width: 200px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Breathing Modal Styles */
#breathingModal .modal-content {
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

.breathing-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    justify-items: center;
}

.breathing-btn {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.breathing-btn:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breathing-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.breathing-name {
    font-weight: bold;
    color: hsl(var(--text));
    margin-bottom: 5px;
}

.breathing-desc {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
}

/* Breathing Exercise Animation */
.breathing-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 30px 0;
}

.breath-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 2s ease-in-out;
    position: relative;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

.breath-text {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breathing-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.breathing-progress {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

/* Enhanced tool cards */
.tool-card {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary) / 0.5);
}

.tool-card .tool-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.tool-card h4 {
    margin: 10px 0;
    color: hsl(var(--text));
    font-size: 1.1rem;
}

.tool-card p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: 15px;
    line-height: 1.4;
}

.tool-card .btn {
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tool-card .btn:hover {
    transform: scale(1.05);
}

/* Dopamine Detox Styles */
.dopamine-detox-section {
    background: linear-gradient(135deg, hsl(var(--warning) / 0.1), hsl(var(--info) / 0.1));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0;
    border: 1px solid hsl(var(--border));
}

.detox-header {
    text-align: center;
    margin-bottom: 30px;
}

.detox-header h3 {
    color: hsl(var(--primary));
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.detox-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detox-card {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detox-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary));
}

.detox-card[data-type="light"] {
    border-color: hsl(var(--success));
}

.detox-card[data-type="moderate"] {
    border-color: hsl(var(--warning));
}

.detox-card[data-type="intense"] {
    border-color: hsl(var(--danger));
}

.detox-card[data-type="extreme"] {
    border-color: hsl(var(--primary));
}

.detox-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.detox-card h4 {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.detox-card p {
    color: hsl(var(--text-light));
    margin-bottom: 15px;
    font-size: var(--font-size-sm);
}

.detox-rules {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.detox-rules li {
    padding: 5px 0;
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
}

.detox-rules li::before {
    content: "❌";
    margin-right: 8px;
}

.detox-start-btn {
    width: 100%;
    margin-top: 15px;
}

.active-detox-tracker {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--primary));
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    animation: pulse 2s infinite;
}

.detox-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: hsl(var(--primary));
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.detox-status {
    color: hsl(var(--text-light));
    margin: 15px 0;
    font-style: italic;
}

.detox-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Badge animations */
.badge-item.animate-on-unlock.unlocked {
    animation: badgeUnlock 0.6s ease;
}

@keyframes badgeUnlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: hsl(var(--success) / 0.2); }
    100% { transform: scale(1); }
}

/* Custom Steps Interface */
.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.steps-header h5 {
    margin: 0;
    color: var(--text-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.no-steps {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    background: var(--bg-color);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
    font-style: italic;
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.step-text {
    color: var(--text-color);
    line-height: 1.5;
    flex: 1;
    margin-right: 15px;
}

.step-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.step-complete-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 35px;
}

.step-complete-btn:hover {
    background: #218838;
}

.step-complete-btn:disabled,
.step-complete-btn.completed {
    background: #6c757d;
    cursor: not-allowed;
}

.step-remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
}

.step-remove-btn:hover {
    background: #c82333;
}

.spending-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* ADHD Focus Mode Styles */
.focus-enhancement {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--info) / 0.1));
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: center;
    border: 1px solid hsl(var(--border));
}

.focus-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.focus-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
}

.focus-toggle:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.focus-toggle.active {
    background: hsl(var(--primary));
    color: white;
    animation: focusPulse 2s infinite;
}

.focus-icon {
    font-size: 1.2rem;
}

.focus-info {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    font-style: italic;
}

@keyframes focusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ADHD Focus Mode Active Styles */
body.adhd-focus-mode {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.adhd-focus-mode .container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.adhd-focus-mode .tab-content {
    position: relative;
}

body.adhd-focus-mode .challenge-item:not(.highlighted) {
    opacity: 0.3;
    filter: blur(1px);
    transition: all 0.3s ease;
}

body.adhd-focus-mode .challenge-item:hover {
    opacity: 1;
    filter: blur(0);
}

body.adhd-focus-mode .challenge-item.highlighted {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--info) / 0.1));
    border: 2px solid hsl(var(--primary));
    transform: scale(1.02);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.3);
}

/* Enhanced breathing modal alignment */
#breathingModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

#breathingModal.show {
    display: flex;
}

#breathingModal .modal-content {
    margin: 0;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.breathing-exercise {
    text-align: center;
}

.breathing-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.breath-circle {
    margin: 0 auto;
}

/* Responsive adjustments for new dashboard elements */
@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .stats-overview {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 15px;
    }
    
    .toolkit-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-overview,
    .energy-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .badge-stats {
        justify-content: center;
    }
    
    .energy-meter {
        width: 100px;
        height: 100px;
    }
    
    .performance-indicators {
        gap: 10px;
    }
}

/* Section Styles */
.my-challenges-section,
.generated-challenges-section,
.habits-section,
.daily-habits-section,
.fears-section,
.schedule-section,
.timer-section,
.rewards-header,
.visualization-header,
.arena-header {
    margin-bottom: 30px;
}

.my-challenges-section h3,
.generated-challenges-section h3,
.habits-section h3,
.daily-habits-section h3,
.fears-section h3,
.schedule-section h3,
.timer-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.loading-message {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

/* Timer Styles */
.timer-container {
    background: hsl(var(--background));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    text-align: center;
}

.timer-display {
    margin-bottom: 25px;
}

.timer-display span {
    font-size: 4rem;
    font-weight: 700;
    color: hsl(var(--primary));
    font-family: monospace;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    background: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
    border: 2px solid hsl(var(--secondary));
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.preset-btn:hover {
    background: hsl(var(--secondary));
    color: white;
}

/* Schedule Styles */
.schedule-list {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid hsl(var(--border));
    transition: var(--transition);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: hsl(var(--primary) / 0.05);
}

.schedule-time {
    font-weight: 700;
    color: hsl(var(--primary));
    font-size: var(--font-size-lg);
    min-width: 100px;
}

.schedule-challenge {
    flex: 1;
}

.schedule-challenge h4 {
    color: hsl(var(--text));
    margin-bottom: 5px;
}

.schedule-xp {
    color: hsl(var(--success));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.schedule-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.no-schedule {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
}

/* Dashboard Schedule */
.today-schedule-dashboard {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.today-schedule-dashboard h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.schedule-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid hsl(var(--border));
}

.schedule-item-small:last-child {
    border-bottom: none;
}

.schedule-time-small {
    font-weight: 600;
    color: hsl(var(--primary));
    min-width: 80px;
    font-size: var(--font-size-sm);
}

.schedule-challenge-small {
    flex: 1;
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
}

/* Recent Activity */
.recent-activity {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.recent-activity h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.activity-list {
    list-style: none;
}

.activity-item {
    padding: 12px 0;
    color: hsl(var(--text-light));
    border-bottom: 1px solid hsl(var(--border));
}

.activity-item:last-child {
    border-bottom: none;
}

.no-activity {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 20px;
    font-style: italic;
}

/* Rewards Styles */
.rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.rewards-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
}

.reward-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    color: hsl(var(--text));
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.filter-btn.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.reward-item {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 2px solid hsl(var(--border));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: hsl(var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px hsl(var(--primary) / 0.15);
    border-color: hsl(var(--primary));
}

.reward-item:hover::before {
    opacity: 1;
}

.reward-item.claimed {
    background: hsl(var(--surface));
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 20px hsl(var(--primary) / 0.15);
}

.reward-item.claimed::before {
    background: hsl(var(--primary));
    opacity: 1;
}

.reward-content {
    flex: 1;
}

.reward-name {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: var(--font-size-lg);
}

.reward-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.reward-cost {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.reward-category {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.reward-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.claim-btn {
    min-width: 120px;
}

.claimed-badge {
    background: hsl(var(--primary));
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.claimed-rewards-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.claimed-rewards-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.claimed-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.claimed-reward-item {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.claimed-reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary));
}

.claimed-reward-name {
    color: hsl(var(--text));
    font-weight: 600;
}

.claimed-date {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

.no-claimed {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 20px;
    font-style: italic;
}

/* Habits Styles */
.habits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.habits-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
}

.habits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.habit-item {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.habit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
    border-color: hsl(var(--primary));
}

.habit-content {
    flex: 1;
}

.habit-name {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: var(--font-size-lg);
}

.habit-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.habit-penalty {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-bonus {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-habits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.daily-habit-item {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
}

.daily-habit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
}

.daily-habit-item.logged {
    background: hsl(var(--success) / 0.05);
    border-color: hsl(var(--success));
}

.habit-info h4 {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: var(--font-size-lg);
}

.habit-choices {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.penalty-info {
    color: hsl(var(--danger));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.bonus-info {
    color: hsl(var(--success));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.habit-buttons .btn {
    flex: 1;
}

.logged-status {
    text-align: center;
    color: hsl(var(--success));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.habit-count {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-top: 10px;
    text-align: center;
}

.avoided-status {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-top: 10px;
    text-align: center;
}

.no-habits {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

/* Fears Styles */
.fears-header {
    text-align: center;
    margin-bottom: 30px;
}

.fears-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
    margin-bottom: 10px;
}

.fears-header p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-lg);
}

.fear-input-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.fear-input-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.fear-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.fear-input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-base);
}

.fear-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.current-fears-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.current-fears-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.fears-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.fear-item {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
}

.fear-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
    border-color: hsl(var(--primary));
}

.fear-header {
    margin-bottom: 20px;
}

.fear-name {
    color: hsl(var(--text));
    margin-bottom: 15px;
    font-size: var(--font-size-lg);
}

.fear-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fear-progress .progress-bar {
    flex: 1;
    margin-bottom: 0;
}

.progress-text {
    color: hsl(var(--text-light));
    font-weight: 600;
    font-size: var(--font-size-sm);
    min-width: 80px;
}

.fear-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fear-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    transition: var(--transition);
}

.fear-step:hover {
    border-color: hsl(var(--primary));
}

.fear-step.completed {
    background: hsl(var(--success) / 0.05);
    border-color: hsl(var(--success));
}

.step-text {
    flex: 1;
    color: hsl(var(--text));
}

.step-complete-btn {
    min-width: 100px;
}

.no-fears {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

/* Focus Arena Styles */
.arena-header {
    text-align: center;
    margin-bottom: 30px;
}

.arena-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.arena-stat {
    background: hsl(var(--surface));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.stat-label {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

.arena-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.arena-mode {
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--primary-light)));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid hsl(var(--border));
    transition: all 0.3s ease;
    position: relative;
}

.arena-mode:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px hsla(var(--primary), 0.2);
    border-color: hsl(var(--primary));
}

.arena-mode h3 {
    color: hsl(var(--text));
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.arena-mode p {
    color: hsl(var(--text-light));
    margin-bottom: 20px;
    line-height: 1.5;
}

.records-list {
    background: hsl(var(--surface));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid hsl(var(--border));
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid hsl(var(--border));
}

.record-item:last-child {
    border-bottom: none;
}

.record-challenge {
    font-weight: 600;
    color: hsl(var(--text));
    flex: 1;
}

.record-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.record-mode {
    background: hsl(var(--secondary-light));
    color: hsl(var(--secondary));
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.record-time {
    color: hsl(var(--text-light));
    font-family: monospace;
    font-weight: bold;
}

.record-xp {
    color: hsl(var(--success));
    font-weight: bold;
}

.active-arena {
    background: linear-gradient(135deg, hsl(var(--primary-light)), hsl(var(--surface)));
    border-radius: 20px;
    padding: 30px;
    border: 3px solid hsl(var(--primary));
    margin-top: 30px;
}

.arena-challenge-display {
    text-align: center;
}

.arena-timer {
    font-size: 3rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin: 20px 0;
    font-family: monospace;
}

.focus-meter {
    background: hsl(var(--border));
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.focus-bar {
    background: linear-gradient(90deg, hsl(var(--success)), hsl(var(--primary)));
    height: 100%;
    width: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.arena-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.no-records {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
}

/* Visualization Styles */
.visualization-header {
    text-align: center;
    margin-bottom: 30px;
}

.visualization-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
    margin-bottom: 10px;
}

.visualization-header p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-lg);
}

.vision-section,
.affirmations-section,
.goal-visions-section {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.vision-section h3,
.affirmations-section h3,
.goal-visions-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.vision-textarea,
.affirmations-textarea,
.goal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 15px;
}

.vision-textarea:focus,
.affirmations-textarea:focus,
.goal-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.goal-vision-form {
    margin-bottom: 25px;
}

.goal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-size: var(--font-size-base);
    margin-bottom: 15px;
}

.goal-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.goal-visions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.vision-item {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
    border-color: hsl(var(--primary));
}

.vision-title {
    color: hsl(var(--primary));
    margin-bottom: 12px;
    font-size: var(--font-size-lg);
}

.vision-text {
    color: hsl(var(--text));
    line-height: 1.6;
    margin-bottom: 15px;
}

.vision-meta {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

.vision-date {
    font-weight: 600;
}

.no-visions {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 40px;
    font-style: italic;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

/* Profile Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-header h2 {
    color: hsl(var(--primary));
    font-size: var(--font-size-2xl);
}

.logout-btn {
    background: hsl(var(--danger));
    color: white;
}

.logout-btn:hover {
    background: hsl(var(--danger) / 0.9);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card.modern {
    background: hsl(var(--background));
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px hsla(var(--shadow), 0.05);
    transition: var(--transition);
    display: block;
}

.stat-card.modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.1);
}

.stat-header {
    margin-bottom: 20px;
}

.stat-header h4 {
    color: hsl(var(--primary));
    font-size: var(--font-size-xl);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-grid .stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-grid .stat-label {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.stat-grid .stat-value {
    color: hsl(var(--primary));
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.badge-item {
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.badge-item:hover {
    background: hsl(var(--primary) / 0.2);
    transform: scale(1.05);
}

.badge-name {
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.no-badges {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 20px;
    font-style: italic;
    grid-column: 1 / -1;
}

.profile-actions {
    background: hsl(var(--background));
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.profile-actions h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--shadow), 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: hsl(var(--surface));
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 20px 60px hsla(var(--shadow), 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--background));
    color: hsl(var(--text));
    font-size: var(--font-size-base);
    font-family: var(--font-family);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: hsl(var(--text-light));
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: hsl(var(--danger));
    transform: scale(1.2);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--shadow), 0.5);
    backdrop-filter: blur(5px);
}

.success-content {
    background: hsl(var(--surface));
    margin: 10% auto;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 20px 60px hsla(var(--shadow), 0.3);
    animation: successBounce 0.5s ease;
}

@keyframes successBounce {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-content h3 {
    color: hsl(var(--success));
    margin-bottom: 15px;
    font-size: var(--font-size-2xl);
}

.success-content p {
    color: hsl(var(--text));
    margin-bottom: 25px;
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

/* Challenge Detail Modal */
.challenge-detail-content {
    display: grid;
    gap: 25px;
}

.challenge-info {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.challenge-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.xp-display {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.difficulty-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
}

.challenge-steps {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.challenge-steps h4 {
    color: hsl(var(--primary));
    margin-bottom: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    margin-bottom: 10px;
    transition: var(--transition);
}

.step-item:hover {
    border-color: hsl(var(--primary));
}

.step-item.completed {
    background: hsl(var(--success) / 0.05);
    border-color: hsl(var(--success));
}

.step-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    color: hsl(var(--primary));
    font-weight: 700;
    min-width: 25px;
}

.step-text {
    color: hsl(var(--text));
}

.step-complete-btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.no-steps {
    text-align: center;
    color: hsl(var(--text-light));
    padding: 20px;
    font-style: italic;
}

.challenge-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.challenge-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Schedule Modal */
.schedule-form {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.time-selection {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-selection label {
    color: hsl(var(--text));
    font-weight: 600;
    min-width: 100px;
}

.time-selection input {
    flex: 1;
    margin-bottom: 0;
}

.quick-schedule h4 {
    color: hsl(var(--primary));
    margin-bottom: 15px;
}

.quick-time-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-time-btn {
    background: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
    border: 2px solid hsl(var(--secondary));
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.quick-time-btn:hover {
    background: hsl(var(--secondary));
    color: white;
}

/* Message Display */
.message-display {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 1002;
    box-shadow: 0 10px 30px hsla(var(--shadow), 0.2);
    animation: messageSlide 0.3s ease;
    max-width: 400px;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-display.success {
    background: hsl(var(--success));
    color: white;
}

.message-display.error {
    background: hsl(var(--danger));
    color: white;
}

.message-display.warning {
    background: hsl(var(--warning));
    color: white;
}

.message-display.info {
    background: hsl(var(--info));
    color: hsl(var(--text));
    border: 1px solid hsl(var(--border));
}

/* Enhanced Animations */
@keyframes tabGlow {
    0%, 100% { box-shadow: 0 4px 15px hsla(var(--primary), 0.2); }
    50% { box-shadow: 0 8px 25px hsla(var(--primary), 0.4); }
}

.tab-btn.active {
    animation: tabGlow 3s infinite;
}

@keyframes xpGain {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: hsl(var(--success)); }
    100% { transform: scale(1); }
}

.xp-gain-animation {
    animation: xpGain 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --font-size-2xl: 24px;
        --font-size-xl: 20px;
        --font-size-lg: 16px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .tab-navigation {
        padding: 0 10px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: var(--font-size-sm);
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .challenges-header,
    .rewards-header,
    .habits-header,
    .profile-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    .generator-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .goal-selector {
        min-width: auto;
    }
    
    .challenges-list,
    .rewards-grid,
    .habits-list,
    .daily-habits,
    .fears-list,
    .goal-visions-list {
        grid-template-columns: 1fr;
    }
    
    .challenge-actions,
    .habit-buttons,
    .arena-actions {
        flex-direction: column;
    }
    
    .challenge-meta,
    .reward-meta,
    .habit-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fear-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fear-input {
        min-width: auto;
    }
    
    .timer-display span {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .schedule-actions {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .challenge-actions {
        flex-direction: column;
    }
    
    .time-selection {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-selection label {
        min-width: auto;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .arena-modes {
        grid-template-columns: 1fr;
    }
    
    .arena-timer {
        font-size: 2rem;
    }
    
    .record-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .arena-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .message-display {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .success-content {
        padding: 25px;
    }
    
    .arena-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-time-buttons {
        grid-template-columns: 1fr;
    }
}

/* Fear Elimination System Styles */
.fear-elimination-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--success) / 0.1));
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
}

.fear-elimination-header h2 {
    color: hsl(var(--primary));
    margin-bottom: 10px;
    font-size: var(--font-size-xxl);
}

.fear-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fear-category {
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fear-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fear-category.active {
    border-color: hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--info) / 0.1));
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.fear-category h3 {
    color: hsl(var(--text));
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.fear-category p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

.active-fear-program {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid hsl(var(--border));
}

.program-header h3 {
    color: hsl(var(--primary));
    margin-bottom: 15px;
    font-size: var(--font-size-xl);
}

.program-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.program-stats .stat {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.program-stats .stat span {
    color: hsl(var(--primary));
    font-weight: bold;
}

.daily-challenge {
    background: linear-gradient(135deg, hsl(var(--warning) / 0.1), hsl(var(--success) / 0.1));
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid hsl(var(--border));
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.challenge-header h4 {
    color: hsl(var(--text));
    font-size: var(--font-size-lg);
}

.difficulty-badge {
    background: hsl(var(--warning));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: bold;
}

.challenge-description {
    color: hsl(var(--text));
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.challenge-steps {
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.challenge-steps .step {
    color: hsl(var(--text-light));
    padding: 8px 0;
    border-bottom: 1px solid hsl(var(--border));
    font-size: var(--font-size-sm);
}

.challenge-steps .step:last-child {
    border-bottom: none;
}

.challenge-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fear-tracking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.tracking-section h4 {
    color: hsl(var(--text));
    margin-bottom: 15px;
    font-size: var(--font-size-lg);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-cell {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 15px 8px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-cell:hover {
    background: hsl(var(--primary) / 0.1);
}

.day-cell.completed {
    background: hsl(var(--success));
    color: white;
}

.confidence-meter h4 {
    color: hsl(var(--text));
    margin-bottom: 15px;
    font-size: var(--font-size-lg);
}

.confidence-bar {
    height: 20px;
    background: hsl(var(--background));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--danger)), hsl(var(--warning)), hsl(var(--success)));
    transition: width 0.5s ease;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: hsl(var(--text-light));
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.insight-card {
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid hsl(var(--border));
    display: flex;
    gap: 15px;
    align-items: flex-start;
    position: relative;
}

.insight-card.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.insight-card.interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.15);
    border-color: hsl(var(--primary));
}

.insight-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: hsl(var(--primary));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.insight-card.interactive:hover .insight-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.insight-stats {
    margin-top: 8px;
    font-size: var(--font-size-sm);
    color: hsl(var(--primary));
    font-weight: 600;
}

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

.insight-content h5 {
    color: hsl(var(--text));
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.insight-content p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ADHD-Friendly Challenge Display Styles */
.challenge-preview {
    margin-bottom: 15px;
}

.challenge-preview-text {
    color: hsl(var(--text));
    font-size: var(--font-size-base);
    margin-bottom: 10px;
    line-height: 1.5;
}

.challenge-full-details {
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid hsl(var(--border));
}

.challenge-full-text {
    color: hsl(var(--text));
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

.challenge-goal-tag {
    background: hsl(var(--info) / 0.1);
    color: hsl(var(--info));
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.challenge-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

.primary-action {
    background: hsl(var(--success));
    color: white;
    font-size: 1rem;
}

.primary-action:hover {
    background: hsl(var(--success) / 0.9);
    transform: translateY(-1px);
}

.secondary-action {
    background: hsl(var(--surface));
    color: hsl(var(--text));
    border: 1px solid hsl(var(--border));
    font-size: 0.85rem;
}

.secondary-action:hover {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
}

.extra-action {
    background: hsl(var(--info) / 0.1);
    color: hsl(var(--info));
    border: 1px solid hsl(var(--info) / 0.3);
    font-size: 0.8rem;
    padding: 8px 12px;
}

.action-separator {
    order: 3;
    width: 100%;
    height: 1px;
    background: hsl(var(--border));
    margin: 5px 0;
}

/* Steps Grid Layout */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 2px solid hsl(var(--border));
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow), 0.15);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-number {
    background: hsl(var(--primary));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-text {
    color: hsl(var(--text));
    font-weight: 500;
    line-height: 1.4;
    margin: 10px 0;
}

.step-timer-section {
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid hsl(var(--border));
}

.step-timer-input {
    width: 60px;
    padding: 5px 8px;
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    color: hsl(var(--text));
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.step-timer-display {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-align: center;
    margin-bottom: 10px;
}

.step-timer-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-timer {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-timer.start {
    background: hsl(var(--success));
    color: white;
}

.btn-timer.pause {
    background: hsl(var(--warning));
    color: white;
}

.btn-timer.reset {
    background: hsl(var(--secondary));
    color: white;
}

.btn-timer:hover {
    transform: scale(1.1);
}

.btn-timer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.step-complete-btn {
    background: hsl(var(--success));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.step-complete-btn:hover {
    background: hsl(var(--success) / 0.9);
}

.step-complete-btn.completed {
    background: hsl(var(--success) / 0.3);
    color: hsl(var(--success));
    cursor: not-allowed;
}

.challenge-steps-modal .modal-content {
    max-width: 900px;
    width: 95%;
}

.preview-toggle {
    font-size: var(--font-size-sm);
    padding: 4px 8px;
}

/* Enhanced challenge cards for reduced overwhelm */
.challenge-item {
    border: 2px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.challenge-item:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.1);
}

.challenge-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 10px;
}

/* Loading state improvements */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: hsl(var(--text-light));
    font-style: italic;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 2px dashed hsl(var(--border));
}

/* Refresh button for challenge regeneration */
.refresh-button-container {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, hsl(var(--success) / 0.05), hsl(var(--primary) / 0.05));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.refresh-btn {
    font-size: 1.1rem;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.2);
}

.refresh-hint {
    margin-top: 10px;
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* Dopamine Booster Styles */
.dopamine-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background: linear-gradient(135deg, 
        hsl(var(--primary) / 0.15), 
        hsl(var(--warning) / 0.1), 
        hsl(var(--success) / 0.15));
    border-radius: var(--border-radius-lg);
    border: 2px solid hsl(var(--primary) / 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dopamine-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dopamine-header h2 {
    color: hsl(var(--primary));
    margin-bottom: 15px;
    font-size: var(--font-size-xxl);
}

.energy-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.energy-indicator {
    font-weight: 600;
    color: hsl(var(--primary));
}

.boost-counter {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
}

.boost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.boost-card {
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--background)));
    border: 2px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.boost-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.boost-card:hover::before {
    transform: translateX(100%);
}

.boost-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.boost-card.instant {
    border-color: hsl(var(--success));
}

.boost-card.instant:hover {
    border-color: hsl(var(--success));
    box-shadow: 0 15px 40px hsl(var(--success) / 0.3);
    background: linear-gradient(135deg, hsl(var(--success) / 0.1), hsl(var(--surface)));
}

.boost-card.medium {
    border-color: hsl(var(--warning));
}

.boost-card.medium:hover {
    border-color: hsl(var(--warning));
    box-shadow: 0 15px 40px hsl(var(--warning) / 0.3);
    background: linear-gradient(135deg, hsl(var(--warning) / 0.1), hsl(var(--surface)));
}

.boost-card.sustained {
    border-color: hsl(var(--primary));
}

.boost-card.sustained:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 15px 40px hsl(var(--primary) / 0.3);
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--surface)));
}

.boost-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.boost-card h4 {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.boost-card p {
    color: hsl(var(--text-light));
    margin-bottom: 20px;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.boost-card .btn {
    width: 100%;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boost-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.boost-card .btn:hover::before {
    left: 100%;
}

.quick-boost-section,
.medium-boost-section,
.sustained-boost-section {
    margin-bottom: 40px;
}

.quick-boost-section h3,
.medium-boost-section h3,
.sustained-boost-section h3 {
    color: hsl(var(--text));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
    text-align: center;
}

.active-boost-tracker {
    background: linear-gradient(135deg, 
        hsl(var(--primary) / 0.15), 
        hsl(var(--success) / 0.15), 
        hsl(var(--warning) / 0.1));
    border: 3px solid hsl(var(--primary));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    animation: energyPulse 2s infinite;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.active-boost-tracker::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        hsl(var(--primary)), 
        hsl(var(--success)), 
        hsl(var(--warning)), 
        hsl(var(--primary)));
    z-index: -1;
    border-radius: var(--border-radius-lg);
    animation: borderGlow 3s linear infinite;
}

@keyframes energyPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.boost-progress h4 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
}

.boost-timer {
    font-size: 3rem;
    font-weight: bold;
    color: hsl(var(--primary));
    font-family: 'Courier New', monospace;
    margin: 20px 0;
}

.boost-instructions {
    color: hsl(var(--text));
    font-size: var(--font-size-lg);
    margin: 20px 0;
    line-height: 1.6;
    font-weight: 500;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
}

.boost-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.boost-history {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid hsl(var(--border));
    margin-top: 40px;
}

.boost-history h3 {
    color: hsl(var(--text));
    margin-bottom: 25px;
    font-size: var(--font-size-xl);
    text-align: center;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.history-stats .stat-card {
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid hsl(var(--border));
}

.history-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--primary));
    margin-bottom: 8px;
}

.history-stats .stat-label {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Enhanced Interactive Boost Elements */
.boost-progress-section {
    margin: 20px 0;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.motivation-bar {
    width: 100%;
    height: 20px;
    background: hsl(var(--surface));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid hsl(var(--border));
}

.motivation-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--success)), hsl(var(--warning)), hsl(var(--primary)));
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.motivation-text {
    text-align: center;
    font-weight: bold;
    color: hsl(var(--primary));
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
}

.energy-meter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.energy-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

#energyGain {
    color: hsl(var(--success));
    font-size: var(--font-size-lg);
}

/* Step Progress System */
.step-progress-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--success) / 0.05));
    border-radius: var(--border-radius-lg);
    border: 2px solid hsl(var(--primary) / 0.2);
}

.step-progress-section h4 {
    color: hsl(var(--primary));
    margin-bottom: 20px;
    text-align: center;
    font-size: var(--font-size-lg);
}

.steps-list {
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-item:hover {
    background: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary) / 0.3);
}

.step-item.completed {
    background: hsl(var(--success) / 0.1);
    border-color: hsl(var(--success));
}

.step-checkbox {
    width: 30px;
    height: 30px;
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: hsl(var(--background));
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-item.completed .step-checkbox {
    background: hsl(var(--success));
    border-color: hsl(var(--success));
}

.checkmark {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item.completed .checkmark {
    opacity: 1;
}

.step-text {
    flex: 1;
    color: hsl(var(--text));
    font-weight: 500;
    line-height: 1.4;
}

.step-item.completed .step-text {
    color: hsl(var(--success));
}

.step-progress-bar {
    width: 100%;
    height: 15px;
    background: hsl(var(--surface));
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid hsl(var(--border));
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--success)), hsl(var(--primary)));
    border-radius: 8px;
    transition: width 0.5s ease;
    animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px hsl(var(--success) / 0.5); }
    50% { box-shadow: 0 0 15px hsl(var(--success) / 0.8); }
}

.step-counter {
    text-align: center;
    font-weight: bold;
    color: hsl(var(--primary));
    font-size: var(--font-size-lg);
}

/* Enhanced Button Styles */
.btn-success-glow {
    animation: successGlow 1.5s infinite;
    box-shadow: 0 0 20px hsl(var(--success) / 0.5);
}

@keyframes successGlow {
    0%, 100% {
        box-shadow: 0 0 20px hsl(var(--success) / 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px hsl(var(--success) / 0.8);
        transform: scale(1.02);
    }
}

/* Timer Enhancement */
.boost-timer {
    font-size: 3rem;
    font-weight: bold;
    color: hsl(var(--primary));
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    text-shadow: 0 0 10px hsl(var(--primary) / 0.3);
    animation: timerPulse 2s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Instructions */
.boost-instructions {
    color: hsl(var(--text));
    font-size: var(--font-size-lg);
    margin: 20px 0;
    line-height: 1.6;
    font-weight: 500;
    padding: 25px;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface)));
    border-radius: var(--border-radius-lg);
    border: 1px solid hsl(var(--border));
    text-align: left;
}

.boost-instructions strong {
    color: hsl(var(--primary));
    font-weight: 700;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .step-item {
        padding: 12px;
    }
    
    .step-checkbox {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }
    
    .boost-timer {
        font-size: 2.5rem;
    }
    
    .motivation-text {
        font-size: var(--font-size-base);
    }
    
    .step-progress-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .fear-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fear-tracking {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-separator {
        width: 100%;
        margin: 10px 0;
    }
    
    .extra-action {
        order: 3;
    }
    
    .boost-grid {
        grid-template-columns: 1fr;
    }
    
    .boost-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .energy-status {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .history-stats {
        grid-template-columns: 1fr;
    }
}

/* Weekly Category Scheduler */
.weekly-scheduler {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.weekly-scheduler h3 {
    color: hsl(var(--text));
    margin-bottom: 10px;
    font-size: var(--font-size-xl);
}

.scheduler-description {
    color: hsl(var(--text-light));
    margin-bottom: 25px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.weekly-grid .day-column:nth-child(n+5) {
    grid-column: span 1;
}

.weekly-grid .day-column:nth-child(5) {
    grid-column: 1;
}

.weekly-grid .day-column:nth-child(6) {
    grid-column: 2;
}

.weekly-grid .day-column:nth-child(7) {
    grid-column: 3;
}

.day-column {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 15px;
    min-height: 120px;
    transition: all 0.3s ease;
}

.day-column.today {
    border-color: hsl(var(--primary));
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--background)));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.day-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid hsl(var(--border));
}

.day-header h4 {
    color: hsl(var(--text));
    margin: 0 0 5px 0;
    font-size: var(--font-size-base);
    font-weight: 600;
}

.day-status {
    font-size: var(--font-size-xs);
    color: hsl(var(--text-light));
    font-weight: 500;
}

.day-status.planned {
    color: hsl(var(--success));
}

.today .day-status {
    color: hsl(var(--primary));
    font-weight: 600;
}

.category-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.category-card:hover {
    background: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary) / 0.3);
}

.category-name {
    color: hsl(var(--text));
    font-size: var(--font-size-xs);
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-category-btn {
    background: none;
    border: none;
    color: hsl(var(--text-light));
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-category-btn:hover {
    background: hsl(var(--danger));
    color: white;
}

.add-category-btn {
    background: hsl(var(--primary) / 0.1);
    border: 1px dashed hsl(var(--primary) / 0.3);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    color: hsl(var(--primary));
    font-size: var(--font-size-xs);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-category-btn:hover {
    background: hsl(var(--primary) / 0.15);
    border-color: hsl(var(--primary) / 0.5);
}

.scheduler-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border));
    gap: 20px;
}

.scheduler-controls .btn {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.today-focus {
    flex: 1;
    text-align: right;
}

.focus-label {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-right: 8px;
}

.focus-categories {
    color: hsl(var(--text));
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.focus-categories.active {
    color: hsl(var(--primary));
}

.focus-categories.empty {
    color: hsl(var(--text-light));
    font-style: italic;
}

/* Category Selection Modal */
.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.category-modal {
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-modal h3 {
    color: hsl(var(--text));
    margin-bottom: 20px;
    text-align: center;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.category-option {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    padding: 12px 16px;
    color: hsl(var(--text));
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
}

.category-option:hover {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.close-modal {
    width: 100%;
    margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .weekly-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }
    
    .weekly-grid .day-column:nth-child(n+5) {
        grid-column: 1;
    }
    
    .day-column {
        padding: 12px;
        min-height: auto;
    }
    
    .scheduler-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .today-focus {
        text-align: center;
    }
    
    .category-modal {
        padding: 20px;
        margin: 20px;
    }
}

/* Database Status Indicator */
.database-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
}

.status-icon {
    font-size: 1rem;
}

.status-text {
    color: hsl(var(--text-light));
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Advanced ADHD Motivation Features */
.momentum-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    animation: slideInRight 0.5s ease-out;
    max-width: 350px;
}

.momentum-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.momentum-icon {
    font-size: 2rem;
}

.momentum-text {
    font-weight: 600;
    line-height: 1.4;
}

.momentum-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.momentum-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.energy-indicator {
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.energy-state {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.energy-icon {
    font-size: 1.2rem;
}

.cascade-achievement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    animation: cascadeAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    min-width: 300px;
}

.cascade-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cascade-icon {
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.cascade-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cascade-desc {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cascade-xp {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cascadeAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Success Animations */
.challenge-item.completing {
    animation: completionGlow 0.6s ease-out;
}

@keyframes completionGlow {
    0% {
        box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
}

/* Loss Aversion and Perfectionism Features */
.loss-aversion-prompt {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    animation: slideInLeft 0.5s ease-out;
    max-width: 350px;
}

.loss-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.loss-icon {
    font-size: 2rem;
}

.loss-text {
    font-weight: 600;
    line-height: 1.4;
}

.loss-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.loss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.perfectionism-blocker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
    animation: perfectionism-appear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    min-width: 400px;
    max-width: 500px;
}

.perfectionism-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.perfectionism-icon {
    font-size: 3rem;
}

.perfectionism-text {
    text-align: center;
}

.perfectionism-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.perfectionism-message {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.perfectionism-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.perfectionism-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.perfectionism-btn.submit {
    background: #10b981;
    color: white;
}

.perfectionism-btn.submit:hover {
    background: #059669;
    transform: translateY(-2px);
}

.perfectionism-btn.switch {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.perfectionism-btn.switch:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes perfectionism-appear {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* FOMO Generator and Professional Development Features */
.fomo-generator {
    margin-top: 30px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    color: white;
}

.fomo-challenge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fomo-content {
    flex: 1;
}

.fomo-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.fomo-timer-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fomo-text h5 {
    margin-bottom: 5px;
    font-size: var(--font-size-lg);
}

.fomo-reward {
    font-weight: 600;
    margin-top: 10px;
}

/* Professional Development Modals */
.growth-mindset-modal,
.systematic-progress-modal,
.measurable-results-modal,
.fomo-challenge-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content.large {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 25px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: hsl(var(--text-light));
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: hsl(var(--background));
    color: hsl(var(--text));
}

/* Growth Mindset Tracker */
.mindset-tracker {
    display: grid;
    gap: 30px;
}

.add-breakthrough textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius);
    background: hsl(var(--background));
    color: hsl(var(--text));
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.breakthrough-item {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    margin-bottom: 15px;
}

.breakthrough-date {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin-bottom: 8px;
}

.breakthrough-text {
    color: hsl(var(--text));
    line-height: 1.5;
}

/* Progress Dashboard */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid hsl(var(--border));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 5px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: hsl(var(--border));
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: hsl(var(--background));
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(var(--primary));
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin-bottom: 5px;
}

.timeline-title {
    color: hsl(var(--text));
    margin-bottom: 5px;
}

.timeline-reward {
    font-size: var(--font-size-sm);
    color: hsl(var(--success));
    font-weight: 600;
}

/* Skills Progress */
.skills-grid {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.skill-name {
    font-weight: 600;
    color: hsl(var(--text));
}

.skill-bar {
    height: 8px;
    background: hsl(var(--background));
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--success)));
    transition: width 0.5s ease;
}

.skill-percent {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    font-weight: 600;
}

/* FOMO Challenge Modal */
.fomo-challenge-content {
    text-align: center;
}

.fomo-description {
    font-size: var(--font-size-lg);
    margin-bottom: 25px;
    color: hsl(var(--text));
    line-height: 1.5;
}

.fomo-challenge-steps {
    margin: 25px 0;
    text-align: left;
}

.fomo-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid hsl(var(--border));
}

.step-number {
    background: hsl(var(--primary));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: hsl(var(--text));
}

.fomo-rewards {
    margin: 25px 0;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
}

.reward-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}



.fomo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.no-data {
    text-align: center;
    color: hsl(var(--text-light));
    font-style: italic;
    padding: 20px;
}



.micro-challenge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: var(--border-radius);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.micro-challenge:hover {
    border-color: hsl(var(--primary));
}

.micro-number {
    background: hsl(var(--primary));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.micro-text {
    flex: 1;
    color: hsl(var(--text));
    line-height: 1.4;
}

.micro-btn {
    background: hsl(var(--success));
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.micro-btn:hover:not(:disabled) {
    background: hsl(var(--success-dark));
    transform: scale(1.1);
}

.micro-btn.completed {
    background: hsl(var(--success));
    cursor: default;
}

.micro-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.breaker-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-regenerate {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-regenerate:hover {
    background: linear-gradient(135deg, #ff5252, #ff9100);
    transform: translateY(-1px);
}

/* Challenge Steps Modal */
.challenge-steps-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.challenge-title-section {
    margin-bottom: 25px;
    text-align: center;
}

.challenge-title-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.challenge-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.xp-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.difficulty-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.difficulty-badge.easy {
    background: hsl(var(--primary));
}

.difficulty-badge.medium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.difficulty-badge.hard {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.steps-container {
    margin-bottom: 25px;
}

.steps-container h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.step-item-detailed {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-item-detailed:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.step-item-detailed.completed {
    background: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.step-text {
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.step-complete-btn {
    background: hsl(var(--primary));
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-complete-btn:hover:not(:disabled) {
    background: hsl(var(--primary) / 0.8);
    transform: scale(1.1);
}

.step-complete-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.adhd-tips-section {
    margin-bottom: 25px;
}

.adhd-tips-section h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.tip-item {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #fbbf24;
}

.steps-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Fear Challenge Timer */
.fear-challenge-timer {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.timer-icon {
    font-size: 1.2rem;
}

.timer-text {
    font-weight: 500;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Analytics Section - Redesigned */
.analytics-section {
    max-width: 1200px;
    margin: 0 auto;
}

.energy-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.energy-overview-card {
    background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--background)));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.energy-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--primary));
}

.energy-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--info)));
}

.card-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--info)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin: 0;
    line-height: 1;
}

.card-content p {
    margin: 5px 0 0 0;
    color: hsl(var(--text-light));
    font-weight: 500;
}

.daily-energy-section {
    background: hsl(var(--surface));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.daily-energy-section h3 {
    color: hsl(var(--primary));
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.energy-bars-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.energy-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: hsl(var(--background));
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
}

.energy-date {
    min-width: 100px;
    font-weight: 600;
    color: hsl(var(--text));
    font-size: 0.9rem;
}

.energy-bar-progress {
    flex: 1;
    height: 25px;
    background: hsl(var(--border));
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.energy-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
    position: relative;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #16a34a);
}

.energy-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: energyShimmer 2s infinite;
}

@keyframes energyShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.energy-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: hsl(var(--text));
}

.weekly-energy-chart {
    background: hsl(var(--surface));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid hsl(var(--border));
}

.weekly-energy-chart h3 {
    color: hsl(var(--primary));
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 2px solid hsl(var(--border));
    position: relative;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, hsl(var(--primary)), hsl(var(--info)));
    border-radius: 5px 5px 0 0;
    min-height: 10px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--text));
    color: hsl(var(--surface));
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: hsl(var(--text-light));
    font-weight: 500;
}

@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .energy-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }
    
    .calendar-day {
        font-size: 10px;
    }
}

