/* 📈 SHINKOFA POC - DESIGN SYSTEM UNIVERSEL ⭐ */

/* ===== IMPORTS MODULES CSS ===== */
@import url('./css/components/buttons.css');
@import url('./css/components/modals.css');
@import url('./css/components/forms.css');
@import url('./css/components/navigation.css');
@import url('./css/layouts/responsive.css');
@import url('./css/layouts/dashboard.css');

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dashboard-card h3 {
    color: var(--shinkofa-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-center {
    display: flex;
    flex-direction: column;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tasks-highlight {
    background: linear-gradient(135deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    color: white;
    text-align: center;
    padding: 2rem;
}

.tasks-highlight h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 800;
}

.tasks-highlight p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.task-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-priority {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-priority.high { background: #fef3c7; color: #d97706; }
.task-priority.medium { background: #fce7f3; color: #be185d; }
.task-priority.low { background: #ecfdf5; color: #059669; }

.dashboard-btn {
    background: linear-gradient(45deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.dashboard-btn.secondary {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.dashboard-btn.secondary:hover {
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.4);
}

.dashboard-btn.primary {
    background: linear-gradient(45deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.task-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-action-btn.complete {
    background: linear-gradient(45deg, var(--shinkofa-secondary), #22c55e);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.task-action-btn.complete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.task-action-btn.edit {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.task-action-btn.edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.priority-task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.priority-task-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.task-content {
    flex: 1;
}

.task-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.task-content p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== TIMER PAGE FRIENDLY DESIGN (3 COLONNES) ===== */
.timer-page {
    padding: 2rem;
}

.timer-highlight {
    background: linear-gradient(135deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    color: white;
    text-align: center;
    padding: 2rem;
}

.timer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timer-header h2 {
    color: var(--shinkofa-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.timer-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
}

.timer-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--shinkofa-secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.timer-main {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.timer-circle {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}

.timer-circle .timer-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    z-index: 10;
}

.timer-highlight .timer-status {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timer-presets {
    margin: 3rem 0;
}

.timer-presets h3 {
    text-align: center;
    color: var(--shinkofa-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.preset-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preset-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preset-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.preset-btn:hover {
    border-color: var(--shinkofa-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.preset-btn.active {
    border-color: var(--shinkofa-primary);
    background: rgba(59, 130, 246, 0.05);
}

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

.preset-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--shinkofa-primary);
}

.preset-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.custom-duration {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.custom-duration h3 {
    text-align: center;
    color: var(--shinkofa-primary);
    margin-bottom: 1.5rem;
}

.duration-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.duration-control input[type="range"] {
    width: 200px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.duration-display {
    font-weight: 700;
    color: var(--shinkofa-primary);
    min-width: 60px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.timer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn.play {
    background: linear-gradient(45deg, var(--shinkofa-secondary), #22c55e);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.timer-btn.pause {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.timer-btn.stop {
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.timer-btn.reset {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.timer-btn:hover {
    transform: translateY(-2px);
}

.timer-options {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-item:last-child {
    margin-bottom: 0;
}

.timer-tips {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timer-tips h3 {
    color: var(--shinkofa-secondary);
    margin-bottom: 1rem;
}

.timer-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.timer-tips li {
    margin-bottom: 0.5rem;
    color: #374151;
}

@media (max-width: 768px) {
    .timer-page {
        padding: 1rem;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-circle .timer-display {
        font-size: 3rem;
    }
    
    .timer-stats {
        gap: 2rem;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timer-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .timer-btn {
        padding: 0.75rem 1.5rem;
    }
}

/* ===== NOUVEAU MODAL DASHBOARD SUPPRIMÉ POUR ÉVITER CONFLITS ===== */

.journal-entry {
    background: #f8fafc;
    border-left: 4px solid var(--shinkofa-secondary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}

.journal-entry h4 {
    color: var(--shinkofa-secondary);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.objective-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.objective-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.objective-progress {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shinkofa-primary);
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.objective-progress-bar-container {
    flex: 1;
    background: #f1f5f9;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

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

.pomodoro-timer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.pomodoro-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--shinkofa-primary);
    margin: 1rem 0;
}

.pomodoro-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pomodoro-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pomodoro-btn.play {
    background: var(--shinkofa-secondary);
    color: white;
}

.pomodoro-btn.pause {
    background: #f59e0b;
    color: white;
}

.pomodoro-btn.reset {
    background: #ef4444;
    color: white;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-label {
    font-weight: 600;
    color: #64748b;
}

.stat-value {
    font-weight: 800;
    color: var(--shinkofa-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .tasks-highlight {
        order: 1;
    }
    
    .dashboard-left {
        order: 2;
    }
    
    .dashboard-right {
        order: 3;
    }
}

/* OVERLAYS SYSTÈME - Hidden by default */
.achievement-overlay,
.levelup-celebration,
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.achievement-overlay.show,
.levelup-celebration.show,
.victory-overlay.show {
    display: flex;
    animation: overlayFadeIn 0.4s ease-in-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Logout button styles */
.logout-stat .logout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ff6b35;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    font-family: inherit;
}

.logout-stat .logout-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.logout-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logout-label {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Variables CSS Universelles */
:root {
    /* Couleurs principales Shinkofa */
    --shinkofa-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --shinkofa-bg-solid: #ffffff;
    --shinkofa-primary: #3b82f6;    /* Bleu professionnel */
    --shinkofa-secondary: #10b981;  /* Vert moderne */
    --shinkofa-accent: #f59e0b;     /* Orange doux */
    
    /* États système */
    --shinkofa-success: #10b981;    /* Vert succès */
    --shinkofa-danger: #ef4444;     /* Rouge erreur */
    --shinkofa-warning: #f59e0b;    /* Orange attention */
    --shinkofa-info: #3b82f6;       /* Bleu information */
    
    /* Progress colors */
    --progress-bar: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    --health-bar: linear-gradient(90deg, #f59e0b, #10b981);
    
    /* Couleurs transparentes */
    --glass-bg: rgba(59, 130, 246, 0.05);
    --glass-border: rgba(59, 130, 246, 0.2);
    --glass-hover: rgba(59, 130, 246, 0.1);
    
    /* Animations timing */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typographie moderne */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    
    /* Espacements */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Dimensions */
    --header-height: 80px;
    --bottom-nav-height: 70px;
    --border-radius: 8px;
    --border-radius-large: 12px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--shinkofa-bg);
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 15px;
}

/* Typographie moderne */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

/* ========================================
   HEADER MODERNE AVEC STATS
======================================== */

.gaming-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shinkofa-title {
    color: var(--shinkofa-primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.username {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.player-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
}

.player-level {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--shinkofa-primary);
    font-weight: 700;
}

/* Barres XP/HP */
.xp-container, .hp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 120px;
}

.xp-bar, .hp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-progress {
    height: 100%;
    background: var(--xp-bar);
    border-radius: 4px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.hp-progress {
    height: 100%;
    background: var(--hp-bar);
    border-radius: 4px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

.xp-text, .hp-text {
    font-size: 0.7rem;
    color: var(--shinkofa-primary);
    font-weight: 700;
    text-align: center;
}

/* ========================================
   NAVIGATION BOTTOM GAMING
======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--shinkofa-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--space-sm);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    color: rgba(0, 255, 255, 0.6);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
    min-width: 60px;
}

.nav-btn:hover {
    color: var(--shinkofa-primary);
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.nav-btn.active {
    color: var(--shinkofa-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

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

.nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background: var(--shinkofa-danger);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 700;
}

/* ========================================
   MAIN CONTENT ET TABS
======================================== */

.main-content {
    margin-top: var(--header-height);
    margin-bottom: var(--bottom-nav-height);
    padding: var(--space-md);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.tab-header h2 {
    color: var(--shinkofa-secondary);
    text-shadow: 0 0 8px var(--shinkofa-secondary);
}

/* ========================================
   COMPOSANTS GAMING UNIVERSELS
======================================== */

.gaming-btn {
    background: linear-gradient(45deg, var(--shinkofa-secondary), var(--shinkofa-accent));
    border: 2px solid var(--shinkofa-accent);
    color: var(--shinkofa-bg-solid);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.gaming-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shinkofa-accent);
    filter: brightness(1.1);
}

.gaming-btn:active {
    transform: scale(0.98);
}

.gaming-btn.secondary {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.3));
    color: var(--shinkofa-primary);
    border-color: var(--shinkofa-primary);
}

.gaming-btn.secondary:hover {
    box-shadow: 0 0 20px var(--shinkofa-primary);
}

.gaming-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}

/* ========================================
   SECTION QUÊTES
======================================== */

.quest-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--shinkofa-accent);
}

.quest-stat {
    background: var(--glass-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-weight: 600;
}

.quests-container {
    display: grid;
    gap: var(--space-md);
}

.quest-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--space-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.quest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shinkofa-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.quest-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

.quest-card:hover::before {
    opacity: 1;
}

.quest-card.completed {
    opacity: 0.7;
    border-color: var(--shinkofa-success);
}

.quest-card.completed::before {
    background: var(--shinkofa-success);
    opacity: 1;
}

.quest-card.main {
    border-left: 4px solid var(--shinkofa-danger);
}

.quest-card.side {
    border-left: 4px solid var(--shinkofa-accent);
}

.quest-card.daily {
    border-left: 4px solid var(--shinkofa-info);
}

.quest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.quest-type-icon {
    font-size: 1.5rem;
    margin-right: var(--space-sm);
}

.quest-priority {
    font-size: 1.2rem;
}

.quest-xp {
    background: var(--shinkofa-accent);
    color: var(--shinkofa-bg-solid);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quest-title {
    color: var(--shinkofa-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.quest-description {
    color: rgba(0, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.quest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--shinkofa-accent);
    margin-bottom: var(--space-md);
}

.quest-type-label {
    background: var(--glass-bg);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.quest-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--shinkofa-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.action-btn.complete {
    background: var(--shinkofa-success);
    color: white;
    border-color: var(--shinkofa-success);
}

.action-btn.complete:hover {
    box-shadow: 0 0 15px var(--shinkofa-success);
    transform: scale(1.05);
}

.action-btn.delete {
    background: var(--shinkofa-danger);
    color: white;
    border-color: var(--shinkofa-danger);
}

.action-btn.delete:hover {
    box-shadow: 0 0 15px var(--shinkofa-danger);
    transform: scale(1.05);
}

.action-btn:hover {
    background: var(--glass-hover);
    transform: scale(1.02);
}

.quest-status-label {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quest-status-label.status-completed {
    background: var(--shinkofa-success);
    color: white;
}

.quest-status-label.status-failed {
    background: var(--shinkofa-danger);
    color: white;
}

/* ========================================
   SECTION TIMER COMBAT
======================================== */

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
}

.timer-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.timer-display {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    color: var(--shinkofa-secondary);
    text-shadow: 0 0 20px var(--shinkofa-secondary);
    letter-spacing: 0.1em;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    min-width: 300px;
}

.timer-status {
    font-size: 1.2rem;
    color: var(--shinkofa-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.timer-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    max-width: 500px;
}

.mode-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--shinkofa-primary);
    padding: var(--space-md);
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.mode-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
}

.mode-btn.active {
    background: var(--shinkofa-secondary);
    color: var(--shinkofa-bg-solid);
    border-color: var(--shinkofa-secondary);
    box-shadow: 0 0 25px var(--shinkofa-secondary);
}

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

.mode-name {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.timer-controls {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.timer-progress-container {
    width: 100%;
    max-width: 400px;
}

.timer-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--shinkofa-secondary), var(--shinkofa-accent));
    border-radius: 6px;
    transition: width var(--transition-normal);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.combat-stats {
    font-size: 0.8rem;
    color: var(--shinkofa-accent);
    background: var(--glass-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

/* Sessions récentes */
.recent-sessions {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--space-md);
}

.recent-sessions h3 {
    color: var(--shinkofa-accent);
    margin-bottom: var(--space-md);
    text-align: center;
    font-size: 1rem;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.session-item.completed {
    border-left: 3px solid var(--shinkofa-success);
}

.session-item.incomplete {
    border-left: 3px solid var(--shinkofa-danger);
    opacity: 0.6;
}

.session-mode {
    font-weight: 700;
    color: var(--shinkofa-secondary);
}

.session-xp {
    color: var(--shinkofa-accent);
    font-weight: 600;
}

.session-date {
    color: rgba(0, 255, 255, 0.6);
    font-size: 0.7rem;
}

/* ========================================
   SECTION VALEURS SHINKOFA
======================================== */

.values-container {
    max-width: 800px;
    margin: 0 auto;
}

.shinkofa-philosophy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.philosophy-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.philosophy-item:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

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

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.philosophy-item h3 {
    color: var(--shinkofa-secondary);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 8px var(--shinkofa-secondary);
}

.philosophy-item p {
    color: rgba(0, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.philosophy-quote {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--shinkofa-secondary);
    font-family: serif;
}

.philosophy-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--shinkofa-accent);
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
}

/* ========================================
   COMING SOON SECTIONS
======================================== */

.coming-soon-container {
    text-align: center;
    padding: var(--space-xl);
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius-large);
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.coming-soon-container h3 {
    color: var(--shinkofa-secondary);
    margin-bottom: var(--space-md);
}

.coming-soon-container p {
    color: rgba(0, 255, 255, 0.8);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.coming-soon-note {
    color: var(--shinkofa-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* ========================================
   MODAL SYSTÈME
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--shinkofa-bg-solid);
    border: 2px solid var(--shinkofa-primary);
    border-radius: var(--border-radius-large);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 201;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Assurer que le modal est invisible par défaut */
#quest-modal {
    display: none;
}

#quest-modal.active {
    display: block;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    color: var(--shinkofa-secondary);
    text-shadow: 0 0 8px var(--shinkofa-secondary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--shinkofa-danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--space-xs);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: white;
    background: var(--shinkofa-danger);
    border-radius: 50%;
}

.modal-content {
    padding: 0;
}

/* Formulaires */
.quest-form {
    padding: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    color: var(--shinkofa-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--shinkofa-primary);
    padding: var(--space-sm);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--shinkofa-secondary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    background: var(--glass-hover);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

/* ========================================
   NOTIFICATIONS GAMING
======================================== */

.notifications-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 350px;
}

.notification {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--shinkofa-info);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
    position: relative;
}

.notification.success {
    border-left-color: var(--shinkofa-success);
}

.notification.error {
    border-left-color: var(--shinkofa-danger);
}

.notification.warning {
    border-left-color: var(--shinkofa-warning);
}

.notification.level-up {
    border-left-color: var(--shinkofa-secondary);
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.1), 
        rgba(255, 170, 0, 0.1));
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.3);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    color: var(--shinkofa-primary);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.notification-message {
    color: rgba(0, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: none;
    border: none;
    color: rgba(0, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--shinkofa-primary);
}

/* ========================================
   ANIMATIONS GAMING
======================================== */

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 10px var(--shinkofa-secondary);
    }
    50% { 
        box-shadow: 0 0 25px var(--shinkofa-secondary);
    }
}

@keyframes levelUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Classes utilitaires pour animations */
.animate-pulse { animation: pulse 2s infinite; }
.animate-glow { animation: glow 2s infinite; }
.animate-level-up { animation: levelUp 0.6s ease-out; }

/* ========================================
   FORM STYLES - AUTH
======================================== */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--shinkofa-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--shinkofa-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .header-content {
        padding: 0 var(--space-sm);
    }
    
    .player-stats {
        gap: var(--space-sm);
    }
    
    .xp-container, .hp-container {
        min-width: 80px;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .player-level {
        font-size: 1.2rem;
    }
    
    .timer-display {
        font-size: 3rem;
        min-width: 250px;
        padding: var(--space-md);
    }
    
    .timer-modes {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .shinkofa-philosophy {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quest-actions {
        justify-content: center;
    }
    
    .tab-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quest-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--space-sm);
    }
    
    .nav-label {
        display: none;
    }
    
    .nav-btn {
        min-width: auto;
    }
    
    .shinkofa-title {
        font-size: 1.2rem;
    }
    
    .username {
        font-size: 0.6rem;
    }
    
    .notifications-container {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none;
    }
    
    .modal {
        width: 95%;
    }
}

/* ========================================
   USER MENU DROPDOWN
======================================== */

.user-menu {
    position: relative;
}

.user-avatar-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--shinkofa-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.user-avatar-btn:hover {
    background: var(--shinkofa-primary);
    transform: scale(1.05);
}

.user-avatar-btn:hover .avatar-icon {
    color: white;
}

.avatar-icon {
    font-size: 1.2rem;
    color: var(--shinkofa-primary);
    transition: color 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shinkofa-primary), var(--shinkofa-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon-large {
    font-size: 1.5rem;
    color: white;
}

.user-details {
    flex: 1;
}

.username {
    font-weight: 700;
    color: var(--shinkofa-text);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.user-level {
    font-size: 0.85rem;
    color: var(--shinkofa-primary);
    font-weight: 600;
}

.user-progression {
    margin-top: 1rem;
}

.xp-container-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xp-bar-dropdown {
    height: 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

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

.xp-text-dropdown {
    font-size: 0.8rem;
    color: var(--shinkofa-text);
    text-align: center;
    font-weight: 600;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--shinkofa-text);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--shinkofa-primary);
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.5rem 0;
}

/* ========================================
   QUESTS TAB - 3 COLUMN LAYOUT
======================================== */

.quick-quest-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-quest-form .form-input,
.quick-quest-form .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-quest-form .form-input:focus,
.quick-quest-form .form-select:focus {
    outline: none;
    border-color: var(--shinkofa-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quest-stats-detailed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--shinkofa-text);
    opacity: 0.8;
}

.stat-value {
    font-weight: 700;
    color: var(--shinkofa-primary);
    font-size: 1rem;
}

.tasks-main {
    background: white;
    border: 2px solid var(--shinkofa-primary);
    color: var(--shinkofa-text);
}

.tasks-main .card-header h3 {
    color: var(--shinkofa-primary);
}

.tasks-main .card-header .badge {
    background: var(--shinkofa-primary);
    color: white;
}

.completed-quests {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.completed-quest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--shinkofa-primary);
}

.quest-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.quest-info {
    flex: 1;
}

.quest-title-small {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--shinkofa-text);
    margin-bottom: 0.25rem;
}

.quest-xp-small {
    font-size: 0.8rem;
    color: var(--shinkofa-primary);
    font-weight: 500;
}

.completion-time {
    font-size: 0.8rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
    font-weight: 500;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.daily-tip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.tip-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--shinkofa-primary);
    font-size: 1rem;
    font-weight: 600;
}

.tip-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--shinkofa-text);
    opacity: 0.8;
    line-height: 1.4;
}

.empty-state-small {
    text-align: center;
    padding: 1.5rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
}

.empty-state-small .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.empty-state-small p {
    margin: 0;
    font-size: 0.9rem;
}

.badge.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.full-width {
    width: 100%;
}

.section-subtitle {
    color: var(--shinkofa-text);
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

/* ========================================
   JOURNAL TAB - 3 COLUMN LAYOUT
======================================== */

.mood-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mood-faces {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.mood-face {
    background: none;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-face:hover {
    border-color: var(--shinkofa-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.mood-face.active {
    border-color: var(--shinkofa-primary);
    background: var(--shinkofa-primary);
    color: white;
    transform: scale(1.15);
}

.mood-scale {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mood-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mood-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--shinkofa-primary);
    cursor: pointer;
}

.mood-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--shinkofa-primary);
    cursor: pointer;
    border: none;
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
}

.gratitude-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gratitude-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gratitude-number {
    font-weight: 700;
    color: var(--shinkofa-primary);
    font-size: 1.1rem;
    min-width: 20px;
}

.gratitude-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gratitude-input:focus {
    outline: none;
    border-color: var(--shinkofa-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.journal-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journal-main {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1));
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.journal-main .card-header h3 {
    color: #8b4513;
}

.badge.wisdom {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
}

.daily-question {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.question-icon {
    font-size: 2rem;
    color: #8b4513;
}

.question-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--shinkofa-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.question-date {
    margin: 0;
    font-size: 0.9rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
}

.question-text {
    background: rgba(139, 69, 19, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--shinkofa-text);
    margin: 0;
    font-style: italic;
}

.journal-textarea-small,
.journal-textarea,
.journal-textarea-main {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

.journal-textarea-main {
    min-height: 120px;
    font-size: 1rem;
}

.journal-textarea-small:focus,
.journal-textarea:focus,
.journal-textarea-main:focus {
    outline: none;
    border-color: var(--shinkofa-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.journal-tabs {
    margin-top: 2rem;
}

.journal-tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.journal-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--shinkofa-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journal-tab-btn:hover {
    border-color: var(--shinkofa-primary);
    background: rgba(59, 130, 246, 0.05);
}

.journal-tab-btn.active {
    background: var(--shinkofa-primary);
    color: white;
    border-color: var(--shinkofa-primary);
}

.journal-tab-content {
    display: none;
}

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

.journal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journal-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--shinkofa-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(2px);
}

.history-date {
    font-size: 0.8rem;
    color: var(--shinkofa-primary);
    font-weight: 600;
    min-width: 60px;
}

.history-mood {
    font-size: 1.2rem;
    min-width: 30px;
}

.history-preview {
    flex: 1;
    font-size: 0.9rem;
    color: var(--shinkofa-text);
    opacity: 0.8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daily-quote {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.quote-icon {
    font-size: 2rem;
    color: #8b4513;
    flex-shrink: 0;
}

.quote-content blockquote {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    color: var(--shinkofa-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.quote-content cite {
    font-size: 0.8rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
    font-style: normal;
    font-weight: 500;
}

/* ========================================
   VALUES TAB - 3 COLUMN LAYOUT
======================================== */

.global-mastery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mastery-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#8b4513 0deg, #8b4513 var(--progress-angle, 248deg), rgba(139, 69, 19, 0.1) var(--progress-angle, 248deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
}

.mastery-percentage {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b4513;
}

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

.mastery-info h4 {
    margin: 0 0 0.5rem 0;
    color: #8b4513;
    font-size: 1.2rem;
    font-weight: 700;
}

.mastery-info p {
    margin: 0;
    color: var(--shinkofa-text);
    opacity: 0.8;
    font-size: 0.9rem;
}

.daily-focus-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.focus-value-icon {
    font-size: 2.5rem;
    color: #8b4513;
}

.focus-value-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--shinkofa-text);
    font-size: 1.1rem;
    font-weight: 700;
}

.focus-motto {
    margin: 0 0 1rem 0;
    color: var(--shinkofa-text);
    opacity: 0.8;
    font-size: 0.9rem;
    font-style: italic;
}

.focus-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.focus-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.focus-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b4513, #a0522d);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.focus-level {
    font-size: 0.8rem;
    color: #8b4513;
    font-weight: 600;
}

.daily-practice {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.daily-practice h5 {
    margin: 0 0 0.75rem 0;
    color: var(--shinkofa-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.daily-practice p {
    margin: 0 0 1rem 0;
    color: var(--shinkofa-text);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.values-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.values-main {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.1));
    border: 2px solid rgba(139, 69, 19, 0.3);
}

.values-main .card-header h3 {
    color: #8b4513;
}

.badge.values {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: white;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-card-compact {
    background: rgba(139, 69, 19, 0.05);
    border: 2px solid rgba(139, 69, 19, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.value-card-compact:hover {
    border-color: rgba(139, 69, 19, 0.3);
    background: rgba(139, 69, 19, 0.08);
    transform: translateY(-2px);
}

.value-compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.value-compact-icon {
    font-size: 2rem;
    color: #8b4513;
    min-width: 40px;
    text-align: center;
}

.value-compact-info {
    flex: 1;
}

.value-compact-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--shinkofa-text);
    font-size: 1rem;
    font-weight: 700;
}

.value-compact-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compact-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.compact-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b4513, #a0522d);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.compact-level {
    font-size: 0.8rem;
    color: #8b4513;
    font-weight: 500;
}

.value-expand-btn {
    background: none;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: #8b4513;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.value-expand-btn:hover {
    border-color: #8b4513;
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.1);
}

.value-details-container {
    margin-top: 1.5rem;
}

.value-detail {
    display: none;
    padding: 1.5rem;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 12px;
    border-left: 4px solid #8b4513;
    margin-bottom: 1rem;
}

.value-detail.active {
    display: block;
}

.value-quote {
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.08);
    border-radius: 8px;
    font-style: italic;
    color: var(--shinkofa-text);
    line-height: 1.5;
    border-left: 3px solid #8b4513;
}

.value-practices h5 {
    margin: 0 0 1rem 0;
    color: #8b4513;
    font-size: 1rem;
    font-weight: 600;
}

.value-practices ul {
    margin: 0;
    padding-left: 1.5rem;
}

.value-practices li {
    margin-bottom: 0.5rem;
    color: var(--shinkofa-text);
    line-height: 1.4;
}

.daily-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.personal-goals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-item {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--shinkofa-primary);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.goal-title {
    font-weight: 600;
    color: var(--shinkofa-text);
    font-size: 0.9rem;
}

.goal-progress {
    font-size: 0.8rem;
    color: var(--shinkofa-primary);
    font-weight: 500;
}

.goal-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: var(--shinkofa-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.daily-wisdom {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.wisdom-icon {
    font-size: 2rem;
    color: #8b4513;
    flex-shrink: 0;
}

.wisdom-content blockquote {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    color: var(--shinkofa-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wisdom-content cite {
    font-size: 0.8rem;
    color: var(--shinkofa-text);
    opacity: 0.7;
    font-style: normal;
    font-weight: 500;
}

/* ========================================
   UTILITIES ET HELPERS
======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* States pour debugging */
.debug-border { border: 2px dashed #ff0066 !important; }
.debug-bg { background: rgba(255, 0, 102, 0.1) !important; }

/* ========================================
   ANIMATIONS GAMING AVANCÉES - SPRINT 2
======================================== */

/* Animations XP et Level Up */
@keyframes floatingXPBasic {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -70px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(0.8);
    }
}

@keyframes floatingXPCombo {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -60px) scale(1.3) rotate(5deg);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -90px) scale(1.1) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -130px) scale(0.9) rotate(0deg);
    }
}

@keyframes levelUpPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes levelUpShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes levelUpAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.5);
        backdrop-filter: blur(0px);
    }
    20% { 
        opacity: 1; 
        transform: scale(1.1);
        backdrop-filter: blur(5px);
    }
    80% { 
        opacity: 1; 
        transform: scale(1);
        backdrop-filter: blur(10px);
    }
    100% { 
        opacity: 0; 
        transform: scale(1);
        backdrop-filter: blur(0px);
    }
}

/* Particules et effets visuels */
@keyframes particleExplosion {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateX(var(--random-x, 100px)) translateY(var(--random-y, -100px));
    }
}

@keyframes successParticle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) 
                  translateX(var(--random-x, 100px)) 
                  translateY(var(--random-y, -100px)) 
                  scale(0);
    }
}

/* Animations Timer Combat */
@keyframes timerCritical {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@keyframes timerComplete {
    0% { 
        transform: scale(1); 
        background-color: var(--shinkofa-secondary);
    }
    50% { 
        transform: scale(1.1); 
        background-color: var(--shinkofa-success);
        box-shadow: 0 0 30px var(--shinkofa-success);
    }
    100% { 
        transform: scale(1);
        background-color: var(--shinkofa-secondary);
    }
}

/* Animations Quêtes Avancées */
@keyframes questComplete {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { 
        transform: scale(1.02); 
        background: rgba(0, 255, 136, 0.3); 
        border-color: var(--shinkofa-success);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    100% { 
        transform: scale(1); 
        background: rgba(0, 255, 136, 0.2); 
        border-color: var(--shinkofa-success);
    }
}

@keyframes questCompleting {
    0% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* Navigation Tabs Transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.tab-slide-in {
    animation: slideIn 0.3s ease-out;
}

.tab-slide-out {
    animation: slideOut 0.3s ease-out;
}

/* Animations Notifications */
@keyframes notificationSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Shine Effect pour barres XP/HP */
@keyframes shine {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   CLASSES GAMING AVANCÉES
======================================== */

/* Level Up Epic Overlay */
.level-up-epic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
                rgba(255, 107, 53, 0.9) 0%, 
                rgba(255, 170, 0, 0.7) 30%, 
                rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: levelUpAppear 3s ease-out forwards;
    backdrop-filter: blur(10px);
}

.level-up-epic-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.level-up-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px #ffaa00;
    animation: levelUpPulse 1s infinite;
    font-family: var(--font-primary);
    background: linear-gradient(45deg, #ff6b35, #ffaa00, #00ffff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-up-level {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffaa00;
    text-shadow: 0 0 20px #ffaa00;
    font-family: var(--font-primary);
}

.level-up-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* XP Flottant Avancé */
.floating-xp-advanced {
    font-size: 1.2rem;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
    z-index: 10000;
    pointer-events: none;
}

.xp-amount {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.xp-combo {
    font-size: 0.9rem;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 8px #ff6b35;
    margin-bottom: 2px;
}

.xp-bonus {
    font-size: 0.8rem;
    color: #00ffff;
    font-style: italic;
    text-shadow: 0 0 5px #00ffff;
}

/* Notifications Gaming Avancées */
.gaming-notifications-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 350px;
    pointer-events: none;
}

.gaming-notification-advanced {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--notification-color, var(--shinkofa-info));
    border-radius: var(--border-radius);
    padding: var(--space-md);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gaming-notification-advanced.notification-show {
    transform: translateX(0);
    opacity: 1;
    animation: notificationSlideIn 0.5s ease-out;
}

.gaming-notification-advanced.notification-hide {
    animation: notificationSlideOut 0.3s ease-in forwards;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: var(--shinkofa-primary);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notification-subtitle {
    color: rgba(0, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: none;
    border: none;
    color: rgba(0, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
    transition: color var(--transition-fast);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--shinkofa-primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--notification-color, var(--shinkofa-info));
    width: 100%;
    transform-origin: left;
}

/* Achievement Notifications */
.gaming-notification-advanced.achievement {
    border-left-color: var(--shinkofa-accent);
    background: linear-gradient(45deg, 
        rgba(255, 170, 0, 0.1), 
        rgba(255, 107, 53, 0.1));
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.3);
}

.gaming-notification-advanced.achievement .notification-title {
    color: var(--shinkofa-accent);
    text-shadow: 0 0 5px var(--shinkofa-accent);
}

/* Quêtes Avancées */
.quest-card-advanced {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quest-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shinkofa-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.quest-card-advanced:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.quest-card-advanced:hover::before {
    opacity: 1;
}

.quest-card-advanced.main {
    border-left: 4px solid var(--shinkofa-danger);
}

.quest-card-advanced.side {
    border-left: 4px solid var(--shinkofa-accent);
}

.quest-card-advanced.daily {
    border-left: 4px solid var(--shinkofa-info);
}

.quest-card-advanced.quest-completing {
    animation: questCompleting 0.8s ease-in-out;
}

.quest-card-advanced.quest-completed-animation {
    animation: questComplete 0.6s ease-out;
}

.quest-glow-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, var(--shinkofa-primary), transparent);
    border-radius: var(--border-radius-large);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.quest-card-advanced:hover .quest-glow-border {
    opacity: 0.3;
}

.quest-header-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.quest-type-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--glass-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.quest-icon {
    font-size: 1.1rem;
}

.quest-type-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quest-xp-badge {
    background: var(--shinkofa-accent);
    color: var(--shinkofa-bg-solid);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
}

.quest-body-advanced {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.quest-checkbox-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.quest-checkbox-advanced {
    width: 100%;
    height: 100%;
    appearance: none;
    border: 2px solid var(--shinkofa-primary);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.quest-checkbox-advanced:checked {
    background: var(--shinkofa-success);
    border-color: var(--shinkofa-success);
}

.quest-checkbox-advanced:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.quest-checkbox-advanced:hover {
    border-color: var(--shinkofa-secondary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.quest-checkbox-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    background: radial-gradient(circle, var(--shinkofa-success), transparent);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-normal);
}

.quest-checkbox-advanced:checked + .quest-checkbox-animation {
    opacity: 0.3;
    transform: scale(1.5);
    animation: checkboxRipple 0.6s ease-out;
}

@keyframes checkboxRipple {
    0% {
        opacity: 0.5;
        transform: scale(0);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.quest-content-advanced {
    flex: 1;
}

.quest-title-advanced {
    color: var(--shinkofa-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.quest-description-advanced {
    color: rgba(0, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.quest-meta-advanced {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.7rem;
    color: var(--shinkofa-accent);
}

.quest-priority {
    font-size: 1rem;
}

.quest-completed-time {
    color: var(--shinkofa-success);
    font-weight: 600;
}

.quest-actions-advanced {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.quest-action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--shinkofa-primary);
    padding: var(--space-xs);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-action-btn:hover {
    background: var(--glass-hover);
    transform: scale(1.1);
}

.quest-action-btn.edit-btn:hover {
    border-color: var(--shinkofa-accent);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.quest-action-btn.delete-btn:hover {
    border-color: var(--shinkofa-danger);
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.quest-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    background: var(--shinkofa-primary);
    width: 0%;
    transition: width var(--transition-slow);
}

/* Combat Mode Visuel */
body.combat-active {
    background: radial-gradient(circle at center, 
                #1a0a0a 0%, 
                #2a0a0a 50%, 
                #1a0a2e 100%);
}

body.combat-active .timer-progress {
    background: linear-gradient(90deg, #ff0066, #ff6600, #ffaa00);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    position: relative;
    overflow: hidden;
}

body.combat-active .timer-progress::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: shine 2s infinite;
}

body.combat-active .timer-display {
    animation: combatPulse 2s infinite;
}

@keyframes combatPulse {
    0%, 100% { 
        text-shadow: 0 0 20px var(--shinkofa-secondary);
    }
    50% { 
        text-shadow: 0 0 30px var(--shinkofa-secondary), 0 0 40px var(--shinkofa-accent);
    }
}

/* Barres XP/HP améliorées */
.xp-progress, .hp-progress, .timer-progress {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.xp-progress::after,
.hp-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shine 3s infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.xp-progress.gaining-xp::after,
.hp-progress.gaining-hp::after {
    opacity: 1;
    animation: shine 1s ease-out;
}

/* Touch Feedback Mobile */
@media (max-width: 768px) {
    .gaming-btn:active,
    .quest-checkbox-advanced:active,
    .nav-btn:active,
    .quest-action-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .gaming-notification-advanced {
        right: var(--space-sm);
        left: var(--space-sm);
        max-width: none;
    }
    
    .gaming-notifications-container {
        right: var(--space-sm);
        left: var(--space-sm);
    }
    
    .level-up-title {
        font-size: 2.5rem;
    }
    
    .level-up-level {
        font-size: 2rem;
    }
    
    .quest-card-advanced {
        padding: var(--space-sm);
    }
    
    .quest-body-advanced {
        gap: var(--space-sm);
    }
    
    .floating-xp-advanced {
        font-size: 1rem;
    }
    
    .xp-amount {
        font-size: 1.2rem;
    }
}

/* Amélioration performances animations */
.quest-card-advanced,
.gaming-notification-advanced,
.xp-progress,
.hp-progress,
.timer-progress {
    will-change: transform, opacity;
}

.quest-card-advanced.quest-completing,
.quest-card-advanced.quest-completed-animation {
    will-change: transform, background-color, box-shadow;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-xp-advanced,
    .level-up-epic-overlay {
        display: none !important;
    }
}

/* ====== SPRINT 3 - SHINKOFA SPIRIT STYLES ====== */

/* OBLIGATOIRE : Styles Journal du Guerrier */
.journal-container {
    max-width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.journal-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.journal-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-streak {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streak-count {
    background: linear-gradient(45deg, #ff6b35, #ffaa00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: streakPulse 2s ease-in-out infinite;
}

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

/* Mood Selector */
.mood-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mood-faces {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.mood-face {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mood-face::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.mood-face:hover {
    transform: scale(1.1);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.mood-face:hover::before {
    width: 100%;
    height: 100%;
}

.mood-face.selected {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.2);
    transform: scale(1.2);
    animation: moodSelected 0.5s ease;
}

@keyframes moodSelected {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2); }
}

.mood-slider {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #ff0066, #ffaa00, #00ff88);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.mood-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.mood-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.mood-context {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.mood-context:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    outline: none;
}

/* Gratitudes */
.gratitude-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gratitude-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.gratitude-number {
    background: linear-gradient(45deg, #ff6b35, #ffaa00);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: gratitudeGlow 3s ease-in-out infinite;
}

@keyframes gratitudeGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5); }
}

.gratitude-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gratitude-input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    outline: none;
    background: rgba(0, 255, 255, 0.05);
}

.gratitude-input:not(:placeholder-shown) {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
}

/* Journal textarea */
.journal-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.journal-textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    outline: none;
    background: rgba(0, 255, 255, 0.02);
}

.journal-textarea:not(:placeholder-shown) {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.02);
}

/* Réflexion quotidienne */
.daily-reflection {
    border: 2px solid rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.05);
    position: relative;
}

.daily-reflection::after {
    content: '🥋';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: shinkoRotate 4s ease-in-out infinite;
}

@keyframes shinkoRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
}

.question-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #ffaa00;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffaa00;
    line-height: 1.4;
    position: relative;
}

.question-text::before {
    content: '“';
    font-size: 2rem;
    color: #ffaa00;
    position: absolute;
    left: 10px;
    top: 5px;
}

.question-text::after {
    content: '”';
    font-size: 2rem;
    color: #ffaa00;
    position: absolute;
    right: 10px;
    bottom: -10px;
}

.wisdom-reward {
    margin-top: 0.5rem;
    text-align: center;
}

.wisdom-points {
    background: linear-gradient(45deg, #ffaa00, #ff6b35);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
    animation: wisdomPulse 2s ease-in-out infinite;
}

@keyframes wisdomPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(255, 170, 0, 0.5); }
}

/* Actions Journal */
.journal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.gaming-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.gaming-btn.large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.gaming-btn.large:hover::before {
    width: 300px;
    height: 300px;
}

/* Voice memo button special styling */
#voice-memo {
    background: linear-gradient(45deg, #ff6b35, #ff0066);
    position: relative;
}

#voice-memo.recording {
    animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.8); }
}

/* Mobile adaptations Journal */
@media (max-width: 768px) {
    .journal-container {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .journal-card {
        padding: 1rem;
    }
    
    .journal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mood-faces {
        gap: 0.5rem;
    }
    
    .mood-face {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gratitude-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .gratitude-number {
        align-self: flex-start;
    }
    
    .journal-section-title {
        font-size: 1rem;
    }
    
    .question-text {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Scroll animations Journal */
.journal-card {
    opacity: 0;
    transform: translateY(20px);
    animation: journalReveal 0.6s ease forwards;
}

.journal-card:nth-child(1) { animation-delay: 0.1s; }
.journal-card:nth-child(2) { animation-delay: 0.2s; }
.journal-card:nth-child(3) { animation-delay: 0.3s; }
.journal-card:nth-child(4) { animation-delay: 0.4s; }
.journal-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes journalReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success states Journal */
.journal-card.completed {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.05);
}

.journal-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #00ff88;
    font-size: 1.2rem;
    font-weight: bold;
}

/* OBLIGATOIRE : Styles Valeurs Shinkofa Interactives */
.values-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ffaa00;
}

.value-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.value-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

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

.value-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.value-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.value-icon::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotate(5deg) scale(1.1);
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.value-card:hover .value-icon::before {
    width: 100%;
    height: 100%;
}

.value-info {
    flex: 1;
}

.value-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.value-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.value-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffaa00);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.value-progress-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: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.value-level {
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.3);
}

.value-motto {
    font-style: italic;
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
}

.value-quote {
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid #ffaa00;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
    line-height: 1.4;
}

.value-quote::before {
    content: '“';
    font-size: 2rem;
    color: #ffaa00;
    position: absolute;
    left: 10px;
    top: -5px;
}

.value-quote::after {
    content: '”';
    font-size: 2rem;
    color: #ffaa00;
    position: absolute;
    right: 10px;
    bottom: -15px;
}

.practice-btn {
    background: linear-gradient(45deg, #00ff88, #00ffff);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.practice-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.practice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.practice-btn:hover::before {
    width: 200px;
    height: 200px;
}

.practice-btn:active {
    transform: scale(0.98);
    animation: practiceActivated 0.6s ease;
}

@keyframes practiceActivated {
    0%, 100% { background: linear-gradient(45deg, #00ff88, #00ffff); }
    50% { background: linear-gradient(45deg, #ffaa00, #ff6b35); }
}

.value-examples {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-examples h4 {
    color: #ffaa00;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.value-examples ul {
    list-style: none;
    padding: 0;
}

.value-examples li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.value-examples li:hover {
    background: rgba(0, 255, 255, 0.05);
    padding-left: 2rem;
}

.value-examples li::before {
    content: '🥋';
    position: absolute;
    left: 0;
    animation: practiceGlow 3s ease-in-out infinite;
}

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

/* Sagesse du jour */
.daily-wisdom {
    background: radial-gradient(circle, rgba(255, 170, 0, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 170, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.daily-wisdom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 170, 0, 0.1), transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: wisdomRotate 10s linear infinite;
}

@keyframes wisdomRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.daily-wisdom h3 {
    color: #ffaa00;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.daily-wisdom blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #00ffff;
    margin: 1rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.daily-wisdom cite {
    color: #888;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Niveaux de maîtrise couleurs */
.value-card[data-value="adaptation"] .value-progress-fill {
    background: linear-gradient(90deg, #00ff88, #00ffff);
}

.value-card[data-value="evolution"] .value-progress-fill {
    background: linear-gradient(90deg, #ffaa00, #ff6b35);
}

.value-card[data-value="liberte"] .value-progress-fill {
    background: linear-gradient(90deg, #ff6b35, #ffaa00);
}

.value-card[data-value="authenticite"] .value-progress-fill {
    background: linear-gradient(90deg, #00ffff, #ff6b35);
}

.value-card[data-value="discipline"] .value-progress-fill {
    background: linear-gradient(90deg, #ff0066, #ffaa00);
}

/* Mobile adaptations Valeurs */
@media (max-width: 768px) {
    .value-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .value-name {
        font-size: 1.2rem;
    }
    
    .value-quote {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .practice-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .daily-wisdom {
        padding: 1.5rem;
    }
    
    .daily-wisdom blockquote {
        font-size: 1rem;
    }
}

/* Animations d'entrée pour les valeurs */
.value-card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: valueReveal 0.8s ease forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes valueReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* OBLIGATOIRE : Messages Quotidiens & Sensei Conversationnel */
.daily-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.daily-message-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sensei-message-container {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.daily-message-overlay.show .sensei-message-container {
    transform: scale(1) translateY(0);
}

.sensei-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.sensei-image {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.2), rgba(0, 255, 255, 0.1));
    border: 3px solid rgba(255, 170, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: senseiPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.sensei-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.3), transparent);
    border-radius: 50%;
    animation: senseiGlow 2s ease-in-out infinite alternate;
    z-index: 1;
}

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

@keyframes senseiGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0.3; }
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-header h2 {
    color: #00ffff;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.message-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.message-close:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.1);
}

.message-body {
    margin-bottom: 1.5rem;
}

.message-body > p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Valeur du jour spotlight */
.daily-value-spotlight {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.daily-value-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.2), transparent);
    animation: spotlightSweep 3s ease-in-out infinite;
}

@keyframes spotlightSweep {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.value-spotlight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.spotlight-icon {
    font-size: 1.5rem;
    animation: spotlightIconFloat 2s ease-in-out infinite alternate;
}

@keyframes spotlightIconFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

.spotlight-title {
    font-weight: bold;
    color: #ffaa00;
    font-size: 1.1rem;
}

.value-spotlight-motto {
    font-style: italic;
    color: #00ffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.value-spotlight-wisdom {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #ffaa00;
    font-style: italic;
    font-size: 0.85rem;
    color: #cccccc;
    margin: 0;
}

/* Défi du jour */
.daily-challenge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.daily-challenge h3 {
    color: #00ffff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.challenge-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-card h4 {
    color: #ffaa00;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.challenge-card p {
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.challenge-reward {
    text-align: center;
    font-size: 0.8rem;
    color: #00ff88;
}

/* Stats utilisateur */
.user-stats-summary {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Actions du message */
.message-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.message-actions .gaming-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Animations spéciales pour les messages */
.daily-message-overlay.show .sensei-message-container {
    animation: messageEntrance 0.6s ease forwards;
}

@keyframes messageEntrance {
    0% {
        transform: scale(0.5) rotate(-5deg) translateY(100px);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) rotate(2deg) translateY(-10px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }
}

/* Mobile adaptations Messages */
@media (max-width: 768px) {
    .sensei-message-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .sensei-image {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .sensei-glow {
        width: 100px;
        height: 100px;
    }
    
    .message-header h2 {
        font-size: 1.3rem;
    }
    
    .user-stats-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .message-actions {
        flex-direction: column;
    }
}

/* Mode sombre amélioré pour messages */
@media (prefers-color-scheme: dark) {
    .daily-message-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .sensei-message-container {
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, rgba(255, 107, 53, 0.08) 100%);
        border-color: rgba(0, 255, 255, 0.4);
    }
}

/* ====== SPRINT 3 - SYSTÈME ROUTINES & HABITUDES GAMIFIÉES ====== */

/* Progress Tab Header */
.progress-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-header h2 {
    color: #00ffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    font-style: italic;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

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

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 170, 0, 0.1);
    border: 2px solid rgba(255, 170, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: statIconPulse 3s ease-in-out infinite;
}

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

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffaa00;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.stat-content p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Routines Section */
.routines-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.routines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.routine-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.routine-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

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

.routine-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.routine-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 170, 0, 0.1);
    border: 2px solid rgba(255, 170, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: routineIconFloat 3s ease-in-out infinite alternate;
}

@keyframes routineIconFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(2deg); }
}

.routine-info {
    flex: 1;
}

.routine-info h4 {
    color: #ffaa00;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: bold;
}

.routine-info p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.routine-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.routine-streak .streak-count {
    background: linear-gradient(45deg, #ff6b35, #ffaa00);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    animation: streakPulse 2s ease-in-out infinite;
}

.streak-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dot.completed {
    background: linear-gradient(45deg, #00ff88, #00ffff);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    animation: dotGlow 2s ease-in-out infinite alternate;
}

@keyframes dotGlow {
    0% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
    100% { box-shadow: 0 0 12px rgba(0, 255, 136, 0.7); }
}

.dot.pending {
    background: rgba(255, 255, 255, 0.2);
    animation: dotPending 2s ease-in-out infinite;
}

@keyframes dotPending {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Routine Habits */
.routine-habits {
    margin: 1rem 0;
}

.habit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.habit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.habit-item.completed::before {
    background: linear-gradient(180deg, #00ff88, #00ffff);
    width: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.habit-item.pending::before {
    background: rgba(255, 170, 0, 0.5);
    animation: habitPending 2s ease-in-out infinite;
}

@keyframes habitPending {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.habit-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.habit-item.completed .habit-checkbox {
    background: linear-gradient(45deg, #00ff88, #00ffff);
    border-color: #00ff88;
    color: #000;
    animation: checkboxCompleted 0.5s ease;
}

@keyframes checkboxCompleted {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.habit-item span {
    flex: 1;
    color: #ffffff;
    font-size: 0.9rem;
}

.habit-item.completed span {
    color: #00ff88;
    text-decoration: line-through;
    opacity: 0.8;
}

.habit-xp {
    color: #ffaa00;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.habit-item.completed .habit-xp {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Routine Progress */
.routine-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffaa00);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-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: progressShine 2s infinite;
}

.progress-text {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}

/* Skill Tree Section */
.skill-tree-section {
    margin-bottom: 3rem;
}

.skill-tree-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.skill-branch {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-branch:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

.skill-branch h4 {
    color: #ffaa00;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
}

.skill-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.skill-node {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.skill-node.unlocked {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.1);
}

.skill-node.unlocked .skill-icon {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.skill-node.unlocked span {
    color: #00ff88;
}

.skill-node.available {
    border-color: rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.1);
    animation: skillAvailable 2s ease-in-out infinite;
}

@keyframes skillAvailable {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 170, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 170, 0, 0.6); }
}

.skill-node.available .skill-icon {
    color: #ffaa00;
    animation: skillIconGlow 2s ease-in-out infinite alternate;
}

@keyframes skillIconGlow {
    0% { text-shadow: 0 0 5px rgba(255, 170, 0, 0.5); }
    100% { text-shadow: 0 0 15px rgba(255, 170, 0, 0.8); }
}

.skill-node.available span {
    color: #ffaa00;
}

.skill-node.locked {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.5;
    cursor: not-allowed;
}

.skill-node.locked .skill-icon {
    color: #666;
}

.skill-node.locked span {
    color: #666;
}

.skill-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.skill-node span {
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-node:hover:not(.locked) {
    transform: scale(1.05);
}

.skill-points-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.skill-points-available {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.points-icon {
    font-size: 1.2rem;
    animation: pointsGlow 2s ease-in-out infinite alternate;
}

@keyframes pointsGlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.points-text {
    color: #ffaa00;
    font-weight: bold;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 3rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.achievement-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.05);
}

.achievement-card.unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    animation: achievementShine 3s ease-in-out infinite;
}

@keyframes achievementShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.achievement-card.available {
    border-color: rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.05);
    animation: achievementAvailable 2s ease-in-out infinite;
}

@keyframes achievementAvailable {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 170, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 170, 0, 0.4); }
}

.achievement-card.locked {
    opacity: 0.4;
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 170, 0, 0.1);
    border: 2px solid rgba(255, 170, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-card.unlocked .achievement-icon {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.1);
    animation: achievementIconPulse 2s ease-in-out infinite;
}

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

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    color: #ffaa00;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.achievement-card.unlocked .achievement-content h4 {
    color: #00ff88;
}

.achievement-content p {
    color: #888;
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.achievement-xp {
    color: #ffaa00;
    font-size: 0.75rem;
    font-weight: bold;
    background: rgba(255, 170, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.achievement-card.unlocked .achievement-xp {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.achievement-status {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.achievement-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    min-width: 80px;
}

.progress-bar.mini {
    height: 4px;
}

.achievement-progress .progress-text {
    font-size: 0.7rem;
    text-align: center;
}

.achievements-summary {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-label {
    font-weight: bold;
    color: #ffaa00;
    min-width: 120px;
}

.summary-text {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}

/* Combo System */
.combo-system {
    margin-bottom: 2rem;
}

.combo-display {
    background: rgba(255, 170, 0, 0.05);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.combo-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.combo-multiplier {
    position: relative;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.3), transparent);
    border: 3px solid rgba(255, 170, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: comboMultiplierPulse 2s ease-in-out infinite;
}

@keyframes comboMultiplierPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 170, 0, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 170, 0, 0.6); }
}

.multiplier-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.combo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.combo-particles::before,
.combo-particles::after {
    content: '✨';
    position: absolute;
    font-size: 0.8rem;
    color: #ffaa00;
    animation: comboParticles 3s ease-in-out infinite;
}

.combo-particles::before {
    top: -10px;
    right: -5px;
    animation-delay: 0s;
}

.combo-particles::after {
    bottom: -10px;
    left: -5px;
    animation-delay: 1.5s;
}

@keyframes comboParticles {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.combo-info h4 {
    color: #ffaa00;
    margin: 0 0 0.25rem 0;
}

.combo-info p {
    color: #888;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.combo-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0066, #ffaa00);
    transition: width 0.1s ease;
    animation: timerFillPulse 1s ease-in-out infinite;
}

@keyframes timerFillPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.timer-text {
    font-size: 0.8rem;
    color: #ffaa00;
    font-weight: bold;
}

.combo-thresholds {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.threshold {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.threshold.completed {
    opacity: 1;
}

.threshold.completed .threshold-dot {
    background: linear-gradient(45deg, #00ff88, #00ffff);
    border-color: #00ff88;
    animation: thresholdCompleted 2s ease-in-out infinite;
}

@keyframes thresholdCompleted {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); }
}

.threshold.pending .threshold-dot {
    background: rgba(255, 170, 0, 0.3);
    border-color: rgba(255, 170, 0, 0.5);
    animation: thresholdPending 1.5s ease-in-out infinite;
}

@keyframes thresholdPending {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.threshold.locked .threshold-dot {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.threshold-dot {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ffffff;
    transition: all 0.3s ease;
}

.threshold span {
    font-size: 0.7rem;
    color: #888;
    font-weight: bold;
}

.threshold.completed span {
    color: #00ff88;
}

.threshold.pending span {
    color: #ffaa00;
}

/* Mobile Responsiveness for Progress Tab */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .routines-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .routine-card {
        padding: 1rem;
    }
    
    .routine-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .routine-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .streak-dots {
        gap: 3px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .skill-tree-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-nodes {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .skill-node {
        padding: 0.5rem;
    }
    
    .skill-icon {
        font-size: 1.2rem;
    }
    
    .skill-node span {
        font-size: 0.7rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        padding: 0.75rem;
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .combo-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .combo-multiplier {
        width: 60px;
        height: 60px;
    }
    
    .multiplier-text {
        font-size: 1.2rem;
    }
    
    .combo-thresholds {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .threshold-dot {
        width: 25px;
        height: 25px;
    }
    
    .skill-points-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animation d'entrée pour les éléments du progress tab */
.progress-tab .stat-card,
.progress-tab .routine-card,
.progress-tab .skill-branch,
.progress-tab .achievement-card {
    opacity: 0;
    transform: translateY(20px);
    animation: progressElementReveal 0.6s ease forwards;
}

.progress-tab .stat-card:nth-child(1) { animation-delay: 0.1s; }
.progress-tab .stat-card:nth-child(2) { animation-delay: 0.2s; }
.progress-tab .stat-card:nth-child(3) { animation-delay: 0.3s; }
.progress-tab .stat-card:nth-child(4) { animation-delay: 0.4s; }

.progress-tab .routine-card:nth-child(1) { animation-delay: 0.1s; }
.progress-tab .routine-card:nth-child(2) { animation-delay: 0.2s; }
.progress-tab .routine-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes progressElementReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== SPRINT 3 - POLISH UX FINAL & ANALYTICS ====== */

/* =================================================================== */
/* ONBOARDING SYSTEM - VERSION ULTRA CLEAN - v2025.08.28 */
/* =================================================================== */

#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

#onboarding-overlay .onboarding-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    min-width: 340px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 1000002;
    animation: slideInScale 0.4s ease-out;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#onboarding-overlay .tooltip-title {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

#onboarding-overlay .tooltip-text {
    color: #374151;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}

#onboarding-overlay .tooltip-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

#onboarding-overlay .onboarding-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    border: none;
}

#onboarding-overlay .onboarding-btn.secondary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

#onboarding-overlay .onboarding-btn.secondary:hover {
    background: #f1f5f9;
    color: #475569;
}

#onboarding-overlay .onboarding-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

#onboarding-overlay .onboarding-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

#onboarding-overlay .tooltip-progress {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#onboarding-overlay .progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

#onboarding-overlay .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.5s ease;
    border-radius: 3px;
}

#onboarding-overlay .progress-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    min-width: 32px;
    text-align: right;
}

/* Spotlight avec effet de révélation */
#onboarding-overlay .onboarding-spotlight {
    position: absolute;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    z-index: 1000001;
    pointer-events: none;
    animation: spotlightPulse 2s ease-in-out infinite;
    background: transparent;
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(59, 130, 246, 0.8),
        0 0 40px rgba(59, 130, 246, 0.4);
}

/* Masque avec "trou" pour le spotlight */
#onboarding-overlay .onboarding-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 999997;
    pointer-events: none;
}

@keyframes spotlightPulse {
    0%, 100% {
        border-color: #3b82f6;
        box-shadow: 
            inset 0 0 0 2px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(59, 130, 246, 0.8),
            0 0 40px rgba(59, 130, 246, 0.4);
    }
    50% {
        border-color: #60a5fa;
        box-shadow: 
            inset 0 0 0 3px rgba(255, 255, 255, 0.3),
            0 0 35px rgba(59, 130, 246, 1),
            0 0 50px rgba(59, 130, 246, 0.6);
    }
}

/* MICRO-INTERACTIONS */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.micro-particle {
    position: absolute;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0.3;
    transition: all 2s ease;
    top: 10%;
    right: 10%;
    z-index: 1;
}

/* Enhanced button states */
.gaming-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gaming-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.gaming-btn:hover::after {
    width: 300px;
    height: 300px;
}

.gaming-btn:active {
    transform: scale(0.98);
}

/* Enhanced nav button states */
.nav-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-btn:hover::before {
    background: linear-gradient(90deg, #00ff88, #00ffff);
    height: 3px;
}

.nav-btn.active::before {
    background: linear-gradient(90deg, #ff6b35, #ffaa00);
    height: 4px;
}

/* Floating labels */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.25rem;
}

.form-group label.floating {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #00ffff;
    background: var(--bg-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Advanced animations */
.animate-in-view {
    animation: slideInView 0.6s ease forwards;
}

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

.progress-bar.animate-in .progress-fill {
    animation: progressFillIn 1s ease forwards;
}

@keyframes progressFillIn {
    from {
        width: 0 !important;
    }
    to {
        width: var(--target-width);
    }
}

/* Enhanced hover effects */
.journal-card,
.value-card,
.routine-card,
.achievement-card,
.stat-card {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.journal-card:hover,
.value-card:hover,
.routine-card:hover,
.achievement-card:hover,
.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Tab transition improvements */
.tab-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content:not(.active) {
    transform: translateX(-20px);
    opacity: 0;
}

.tab-content.active {
    transform: translateX(0);
    opacity: 1;
}

/* Scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced focus states */
*:focus {
    outline: 2px solid rgba(0, 255, 255, 0.5);
    outline-offset: 2px;
}

button:focus,
.gaming-btn:focus,
.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Loading states */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success states */
.success-flash {
    animation: successFlash 0.6s ease;
}

@keyframes successFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(0, 255, 136, 0.3); }
}

.error-flash {
    animation: errorFlash 0.6s ease;
}

@keyframes errorFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 107, 53, 0.3); }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ripple-effect,
    .micro-particle {
        display: none !important;
    }
    
    /* Enhanced touch targets */
    .gaming-btn,
    .nav-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved hover states for touch */
    .gaming-btn:active,
    .nav-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {    
    .form-group label.floating {
        background: #0a0a0a;
    }
}

/* Performance optimizations */
.gaming-btn,
.nav-btn,
.journal-card,
.value-card,
.routine-card,
.achievement-card,
.stat-card {
    will-change: transform, box-shadow;
}

/* Progress Page Specific Styles */
#progress-tab .quick-summary {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) !important;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    display: block !important;
}

.quick-summary h3 {
    color: var(--shinkofa-primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.summary-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

.summary-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.summary-content h4 {
    color: var(--shinkofa-primary);
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-content p {
    color: var(--shinkofa-accent);
    margin: 0;
    font-size: 0.8rem;
}

/* Compact Combo System for Left Column */
#progress-tab .dashboard-left .combo-system {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) !important;
    backdrop-filter: blur(10px);
    display: block !important;
}

.dashboard-left .combo-system h3 {
    color: var(--shinkofa-accent);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-left .combo-current {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-left .combo-multiplier {
    position: relative;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--shinkofa-accent), transparent 70%);
    border: 2px solid var(--shinkofa-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseCombo 2s infinite ease-in-out;
}

.dashboard-left .multiplier-text {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 0 10px var(--shinkofa-accent);
}

.dashboard-left .combo-info h4 {
    color: var(--shinkofa-primary);
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-left .combo-timer {
    margin-top: var(--space-xs);
}

.dashboard-left .timer-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.dashboard-left .timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--shinkofa-accent), var(--shinkofa-secondary));
    border-radius: 2px;
    transition: width 1s linear;
}

.dashboard-left .timer-text {
    color: var(--shinkofa-accent);
    font-size: 0.7rem;
    margin-top: 2px;
    display: block;
}

/* Quick Actions */
#progress-tab .quick-actions {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) !important;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    display: block !important;
}

.quick-actions h3 {
    color: var(--shinkofa-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.action-buttons .gaming-btn {
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    justify-content: flex-start;
}

/* Daily Tips */
#progress-tab .daily-tips {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) !important;
    backdrop-filter: blur(10px);
    display: block !important;
}

.daily-tips h3 {
    color: var(--shinkofa-accent);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tip-card {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-content p {
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

.tip-source {
    color: var(--shinkofa-accent);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Routines Section in Center Column */
.dashboard-center .routines-section {
    margin-bottom: var(--space-lg);
}

.dashboard-center .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--glass-border);
}

.dashboard-center .section-header h3 {
    color: var(--shinkofa-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Skill Tree Section in Center Column */
.dashboard-center .skill-tree-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.dashboard-center .skill-tree-section .section-header {
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.dashboard-center .skill-tree-section .section-header h3 {
    color: var(--shinkofa-primary);
    font-size: 1.4rem;
}

.dashboard-center .skill-tree-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Achievements Section in Right Column */
#progress-tab .dashboard-right .achievements-section {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) !important;
    margin-bottom: var(--space-lg) !important;
    backdrop-filter: blur(10px);
}

.dashboard-right .achievements-section .section-header h3 {
    color: var(--shinkofa-secondary);
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-right .achievements-section .section-subtitle {
    color: var(--text-secondary);
    margin: 0 0 var(--space-lg) 0;
    font-size: 0.9rem;
}

#progress-tab .dashboard-right .achievements-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
}

#progress-tab .dashboard-right .achievement-card {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: var(--space-md) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--space-md) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-sm) !important;
    width: 100%;
}

#progress-tab .dashboard-right .achievement-card.unlocked {
    border-color: rgba(0, 255, 136, 0.5) !important;
    background: rgba(0, 255, 136, 0.05) !important;
}

#progress-tab .dashboard-right .achievement-card.available {
    border-color: rgba(255, 170, 0, 0.5) !important;
    background: rgba(255, 170, 0, 0.05) !important;
}

#progress-tab .dashboard-right .achievement-card.locked {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#progress-tab .dashboard-right .achievement-icon {
    font-size: 1.5rem !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

#progress-tab .dashboard-right .achievement-content {
    flex: 1;
}

#progress-tab .dashboard-right .achievement-content h4 {
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    margin: 0 0 4px 0 !important;
    font-weight: 600;
}

#progress-tab .dashboard-right .achievement-content p {
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3;
}

#progress-tab .dashboard-right .achievement-xp {
    color: var(--shinkofa-accent) !important;
    font-size: 0.7rem !important;
    font-weight: 600;
}

#progress-tab .dashboard-right .achievement-status {
    font-size: 1.2rem !important;
    color: var(--shinkofa-success) !important;
    flex-shrink: 0;
}

/* Fix pour les barres de progression dans les achievements */
#progress-tab .dashboard-right .achievement-progress {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

#progress-tab .dashboard-right .progress-bar.mini {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

#progress-tab .dashboard-right .progress-bar.mini .progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--shinkofa-accent), var(--shinkofa-secondary)) !important;
    border-radius: 2px !important;
    transition: width 0.3s ease !important;
}

#progress-tab .dashboard-right .progress-text {
    color: var(--shinkofa-accent) !important;
    font-size: 0.7rem !important;
    text-align: right;
}


/* Stats Overview in Left Column */
#progress-tab .dashboard-left .stats-overview {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

#progress-tab .dashboard-left .stat-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius);
    padding: var(--space-md) !important;
    display: flex !important;
    align-items: center;
    gap: var(--space-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    min-height: 80px;
    width: 100%;
    margin-bottom: var(--space-sm);
}

#progress-tab .dashboard-left .stat-icon {
    font-size: 1.5rem !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 255, 255, 0.1) !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

#progress-tab .dashboard-left .stat-content {
    flex: 1;
}

#progress-tab .dashboard-left .stat-content h3 {
    color: var(--shinkofa-primary) !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

#progress-tab .dashboard-left .stat-content p {
    color: var(--text-secondary) !important;
    margin: 2px 0 0 0 !important;
    font-size: 0.8rem !important;
}

.dashboard-left .stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.dashboard-left .stat-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard-left .stat-content {
    flex: 1;
}

.dashboard-left .stat-content h3 {
    color: var(--shinkofa-primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-left .stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.8rem;
}

/* Disable problematic infinite animations on Progress page */
#progress-tab .stat-icon {
    animation: none !important;
}

#progress-tab .achievement-card.unlocked::before {
    animation: none !important;
}

#progress-tab .achievement-card.available {
    animation: none !important;
}

#progress-tab .achievement-icon {
    animation: none !important;
}

#progress-tab .combo-multiplier {
    animation: none !important;
}

#progress-tab .routine-icon {
    animation: none !important;
}

#progress-tab .skill-node.available {
    animation: none !important;
}

#progress-tab .skill-node.available .skill-icon {
    animation: none !important;
}

/* Responsive adjustments for Progress page */
@media (max-width: 768px) {
    .dashboard-left .stats-overview {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    
    .dashboard-left .stat-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    .dashboard-left .combo-current {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .action-buttons .gaming-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    #onboarding-overlay,
    .micro-particle,
    .ripple-effect {
        display: none !important;
    }
}