/* === BASE CSS EXTRACTED FROM ORIGINAL PWA === */

        :root {
            --bg-deep: #050505;
            --neon-primary: #6366f1; 
            --neon-core: #00f2fe;
            --neon-accent: #ec4899;
            --glass-surface: rgba(20, 20, 25, 0.85);
            --glass-border: rgba(255, 255, 255, 0.1);
            --radius-card: 24px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-deep); color: #fff; min-height: 100vh; overflow-x: hidden; padding-top: 80px; padding-bottom: 120px; }

        /* FX */
        .background-fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: radial-gradient(circle at 50% 50%, #0f1016 0%, #000 100%); overflow: hidden; }
        .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3; animation: orb-float 15s infinite ease-in-out; }
        .orb-1 { width: 350px; height: 350px; background: var(--neon-core); top: -10%; left: 20%; }
        .orb-2 { width: 300px; height: 300px; background: var(--neon-primary); bottom: -10%; right: -10%; animation-delay: -5s; }
        @keyframes orb-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 40px) scale(1.05); } }

        /* UI Components */
        h1, h2, h3, h4, .font-tech { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .glass-card { background: var(--glass-surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius-card); padding: 20px; margin-bottom: 20px; animation: fadeIn 0.4s ease-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .top-header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: rgba(5, 5, 10, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); z-index: 2000; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }

        /* Language Selector */
        .lang-selector { position: relative; }
        .lang-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 6px 10px; color: #fff; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s; }
        .lang-btn:hover { background: rgba(0, 242, 254, 0.1); border-color: var(--neon-core); }
        .lang-btn .flag { font-size: 1rem; }
        .lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: rgba(20, 20, 25, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.2s; min-width: 140px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 10001; }
        .lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
        .lang-selector.open { z-index: 10001; }
        .lang-option { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #999; font-size: 0.8rem; cursor: pointer; transition: 0.2s; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .lang-option:last-child { border-bottom: none; }
        .lang-option:hover { background: rgba(0, 242, 254, 0.1); color: #fff; }
        .lang-option.active { background: rgba(0, 242, 254, 0.15); color: var(--neon-core); font-weight: 600; }
        .lang-option .flag { font-size: 1.2rem; }

        .tab-system { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 30px); max-width: 500px; height: 70px; background: rgba(20, 20, 25, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.8); z-index: 2000; }
        .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; border: none; color: #667; transition: 0.3s; cursor: pointer; }
        .tab-item.active { color: #fff; }
        .tab-icon { font-size: 1.4rem; margin-bottom: 2px; transition: 0.3s; }
        .tab-item.active .tab-icon { transform: translateY(-2px); filter: drop-shadow(0 0 5px white); }
        .tab-label { font-size: 0.55rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; letter-spacing: 1px; }

        .fab-center { position: relative; top: -30px; width: 70px; height: 70px; background: linear-gradient(135deg, #00f2fe, #4facfe); border-radius: 50%; border: 6px solid var(--bg-deep); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); cursor: pointer; transition: 0.3s; animation: pulse-glow 3s infinite; }
        .fab-center:active { transform: scale(0.95); }
        @keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); } 50% { box-shadow: 0 0 35px rgba(0, 242, 254, 0.7); } }

        /* Form Styling */
        select, input, textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px; color: #fff; font-family: 'Montserrat', sans-serif; transition: 0.3s; outline: none; }
        select:focus, input:focus, textarea:focus { border-color: var(--neon-core); background: rgba(0, 243, 255, 0.05); }
        select option { background: #1a1a1f; color: #fff; padding: 10px; }
        select option:disabled { color: #666; }
        label { display: block; color: var(--neon-core); font-size: 0.75rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; font-family: 'Rajdhani', sans-serif; }
        .help-text { font-size: 0.65rem; color: #888; margin-top: 4px; font-style: italic; }

        /* Progress Bar */
        .progress-wrapper { padding: 0 0 14px 0; margin: 0 0 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
        .progress-container { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; height: 8px; overflow: hidden; position: relative; }
        .progress-bar { height: 100%; background: linear-gradient(90deg, var(--neon-core), var(--neon-primary)); transition: width 0.3s ease; border-radius: 20px; box-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
        .progress-text { text-align: center; font-size: 0.7rem; color: var(--neon-core); margin-bottom: 8px; font-weight: 600; }

        /* Badge hyper-personnalisé */
        .hyper-badge {
            text-align: center;
            font-size: 0.7rem;
            font-weight: 700;
            font-family: 'Rajdhani', sans-serif;
            color: #facc15;
            margin-top: 10px;
            padding: 6px 12px;
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(0, 242, 254, 0.1));
            border: 1px solid rgba(250, 204, 21, 0.4);
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
            /* Animation d'entrée depuis la gauche */
            animation: hyperBadgeSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, hyperBadgePulse 2s ease-in-out 0.6s infinite;
            opacity: 0;
            transform: translateX(-100px);
        }
        .hyper-badge.hidden {
            display: none;
        }
        @keyframes hyperBadgeSlideIn {
            0% {
                opacity: 0;
                transform: translateX(-100px) scale(0.8);
            }
            60% {
                opacity: 1;
                transform: translateX(10px) scale(1.05);
            }
            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }
        @keyframes hyperBadgePulse {
            0%, 100% {
                box-shadow: 0 0 10px rgba(250, 204, 21, 0.3), 0 0 20px rgba(0, 242, 254, 0.2);
                border-color: rgba(250, 204, 21, 0.4);
            }
            50% {
                box-shadow: 0 0 20px rgba(250, 204, 21, 0.5), 0 0 35px rgba(0, 242, 254, 0.3);
                border-color: rgba(250, 204, 21, 0.7);
            }
        }

        /* Progress bar à 100% - effet néon pulsant */
        .progress-container.complete {
            border-color: var(--neon-core);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.3);
            animation: progressNeonPulse 1.5s ease-in-out infinite;
        }
        .progress-container.complete .progress-bar {
            box-shadow: 0 0 20px rgba(0, 242, 254, 0.8), 0 0 40px rgba(99, 102, 241, 0.5);
        }
        @keyframes progressNeonPulse {
            0%, 100% {
                box-shadow: 0 0 15px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.3);
                border-color: var(--neon-core);
            }
            50% {
                box-shadow: 0 0 25px rgba(0, 242, 254, 0.8), 0 0 50px rgba(99, 102, 241, 0.5), 0 0 70px rgba(0, 242, 254, 0.3);
                border-color: #4facfe;
            }
        }

        /* Buttons & Sliders */
        .btn-primary { width: 100%; padding: 18px; border-radius: 16px; border: none; background: linear-gradient(135deg, var(--neon-core), #4facfe); color: #000; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4); display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
        .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; background: rgba(255,255,255,0.1); box-shadow: none; }
        .btn-primary.loading-rabbit {
            opacity: 1 !important;
            cursor: wait !important;
            background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.6) !important;
            animation: rabbitPulse 1s ease-in-out infinite;
        }
        .btn-primary.loading-rabbit .rabbit-icon {
            display: inline-block;
            animation: rabbitBounce 0.5s ease-in-out infinite;
        }
        @keyframes rabbitBounce {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            25% { transform: translateY(-4px) rotate(-5deg); }
            50% { transform: translateY(0) rotate(0deg); }
            75% { transform: translateY(-4px) rotate(5deg); }
        }
        @keyframes rabbitPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
            50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(99, 102, 241, 0.4); }
        }
        .btn-primary.success { animation: successPulse 0.8s ease-in-out infinite; }
        @keyframes successPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(134, 239, 172, 0.8), 0 0 50px rgba(134, 239, 172, 0.4); }
            50% { transform: scale(1.03); box-shadow: 0 0 40px rgba(134, 239, 172, 1), 0 0 80px rgba(134, 239, 172, 0.6); }
        }
        .btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.8rem; }
        .modern-slider { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; -webkit-appearance: none; outline: none; }
        .modern-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--neon-primary); cursor: pointer; margin-top: -7px; }
        .option-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px; color: #888; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
        .option-btn.selected { background: rgba(99, 102, 241, 0.2); border-color: var(--neon-primary); color: #fff; }

        /* Coach Cards */
        .coach-card {
            background: rgba(255,255,255,0.05);
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 12px;
            color: rgba(255,255,255,0.8);
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            text-align: left;
        }
        .coach-card:hover {
            background: rgba(0, 242, 254, 0.1);
            border-color: rgba(0, 242, 254, 0.3);
        }
        .coach-card.selected {
            background: rgba(0, 242, 254, 0.2);
            border-color: rgba(0, 242, 254, 0.6);
            box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
        }

        /* Images */
        .logo-main {
            width: 40px;
            height: 40px;
            object-fit: contain;
            filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
        }

        .fab-center img {
            width: 45px;
            height: 45px;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .coach-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(0, 242, 254, 0.3);
            flex-shrink: 0;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            backface-visibility: hidden;
            -webkit-font-smoothing: subpixel-antialiased;
        }

        .coach-card.selected .coach-avatar {
            border-color: rgba(0, 242, 254, 0.8);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
        }

        /* Responsive images & text */
        @media (max-width: 480px) {
            .logo-main {
                width: 35px;
                height: 35px;
            }
            .fab-center img {
                width: 40px;
                height: 40px;
            }
            .coach-avatar {
                width: 70px;
                height: 70px;
            }
            /* Header mobile */
            .top-header {
                height: 70px !important;
            }
            body {
                padding-top: 80px !important;
            }
            /* Réduire titre header sur mobile */
            .top-header h1 {
                font-size: 1.1rem !important;
            }
            .top-header p[data-i18n="tagline"] {
                display: none !important;
            }
            .top-header .leading-none.-my-1 {
                margin: 0 !important;
            }
            /* Ajuster boutons mode sur mobile */
            .mode-btn {
                padding: 14px 10px !important;
                font-size: 0.9rem !important; /* 14.4px pour meilleure lisibilité */
                letter-spacing: 0.5px !important;
            }
            /* Augmenter labels du questionnaire sur mobile */
            label {
                font-size: 0.85rem !important; /* 13.6px au lieu de 12px */
            }
            /* Réduire gap header sur mobile */
            .top-header .flex.items-center {
                gap: 0.5rem !important; /* 8px au lieu de 16px */
            }
            /* Descendre menu du bas sur mobile */
            .tab-system {
                bottom: 12px !important; /* 20px - 8px = 12px */
            }
            /* Réduire boutons sur mobile */
            .btn-primary {
                font-size: 0.85rem !important; /* Réduire de 1.1rem à 0.85rem */
                padding: 14px !important;
            }
            .btn-secondary {
                font-size: 0.65rem !important; /* Réduire de 0.8rem à 0.65rem */
                padding: 10px 8px !important;
            }
        }

        /* Responsive moyen (petits tablets/grands mobiles) */
        @media (min-width: 481px) and (max-width: 768px) {
            .top-header h1 {
                font-size: 1.5rem; /* 24px */
            }
            .top-header p {
                font-size: 0.75rem; /* 12px */
            }
            .mode-btn {
                padding: 16px 14px;
                font-size: 1rem; /* 16px */
            }
        }

        /* Tabs & Viewer */
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        .mode-switch { display: flex; background: rgba(0,0,0,0.3); border: 1px solid rgba(0, 242, 254, 0.2); border-radius: var(--radius-card); padding: 6px; margin-bottom: 20px; }
        .mode-btn { flex: 1; padding: 20px 24px; border-radius: calc(var(--radius-card) - 6px); border: 2px solid transparent; background: transparent; color: #888; font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
        .mode-btn.active { background: rgba(0, 242, 254, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 2px solid rgba(0, 242, 254, 0.5); color: #fff; box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3); }
        .mode-btn.active-coach { background: rgba(0, 242, 254, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 2px solid rgba(0, 242, 254, 0.5); color: #fff; box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3); }
        .sub-tab-content { display: none; }
        .sub-tab-content.active { display: block; animation: fadeIn 0.3s; }

        /* Sous-navigation MENTAL */
        .mental-sub-nav { display: flex; gap: 8px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 16px; padding: 6px; }
        .mental-sub-btn { flex: 1; padding: 12px 8px; border-radius: 12px; border: none; background: transparent; color: #888; font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 0.75rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
        .mental-sub-btn.active { background: rgba(139, 92, 246, 0.3); color: #fff; box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3); }
        .mental-sub-btn:hover:not(.active) { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
        .mental-sub-content { display: none; }
        .mental-sub-content.active { display: block; animation: fadeIn 0.3s; }

        /* Sous-navigation SÉANCE */
        .seance-sub-nav { display: flex; gap: 8px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 16px; padding: 6px; }
        .seance-sub-btn { flex: 1; padding: 12px 8px; border-radius: 12px; border: none; background: transparent; color: #888; font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px; }
        .seance-sub-btn.active { background: rgba(16, 185, 129, 0.3); color: #fff; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3); }
        .seance-sub-btn:hover:not(.active) { background: rgba(16, 185, 129, 0.15); color: #34d399; }
        .seance-sub-content { display: none; }
        .seance-sub-content.active { display: block; animation: fadeIn 0.3s; }
        /* Styles pour program-viewer - neutralisés pour affichage parfait React */
        .program-viewer {
            position: relative;
            min-height: 400px;
            overflow: auto;
            border-radius: 12px;
            /* Styles neutres - laisse le programme React gérer son apparence */
        }

        /* Quand un programme est chargé, sortir du container et afficher en plein largeur */
        .program-viewer.has-program {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 60px;
            width: 100vw;
            height: calc(100vh - 60px);
            max-width: none;
            margin: 0;
            padding: 0;
            background: transparent;
            border-radius: 0;
            z-index: 100;
            overflow-y: auto;
        }

        .program-viewer.has-program.fullscreen,
        .program-viewer.fullscreen {
            bottom: 0;
            height: 100vh;
            height: 100dvh; /* Dynamic viewport height pour mobile */
        }

        /* Fallback plein écran CSS pour iOS et navigateurs sans API Fullscreen */
        .program-viewer.fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            width: 100dvw !important;
            height: 100vh !important;
            height: 100dvh !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 !important;
            background: white;
            border-radius: 0 !important;
            z-index: 9999 !important;
            overflow-y: auto !important;
        }

        /* Bouton sortie plein écran */
        .exit-fullscreen-btn {
            display: none;
            position: fixed;
            top: 1rem;
            right: 1rem;
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(0, 242, 254, 0.5);
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 10000;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
        }

        .exit-fullscreen-btn:hover {
            background: rgba(0, 242, 254, 0.2);
            transform: scale(1.1);
        }

        .program-viewer.fullscreen .exit-fullscreen-btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Ancien style pour compatibilité */
        .exit-fullscreen { display: none; }

        /* Modal Styles */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 5000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s;
        }
        .modal-content {
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 242, 254, 0.3);
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 242, 254, 0.2);
            animation: slideUp 0.4s ease-out;
        }
        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal-close-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #9ca3af;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        .modal-close-btn:hover {
            background: rgba(239, 68, 68, 0.8);
            border-color: #ef4444;
            color: white;
        }

        /* === EFFET ÉLECTRIQUE SUR CHAMPS REMPLIS === */
        .field-wrapper {
            position: relative;
        }

        /* État rempli - bordure cyan lumineuse + fond bleuté */
        select.field-filled,
        input.field-filled,
        textarea.field-filled {
            border-color: var(--neon-core) !important;
            background: rgba(0, 242, 254, 0.08) !important;
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.3), inset 0 0 5px rgba(0, 242, 254, 0.1);
        }

        /* Preferences - effet spécial cyan + jaune avec pulse continu */
        #preferences.field-filled {
            border-color: var(--neon-core) !important;
            background: rgba(0, 242, 254, 0.08) !important;
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.3), 0 0 20px rgba(250, 204, 21, 0.3), inset 0 0 5px rgba(0, 242, 254, 0.1);
            animation: preferencesPulse 2s ease-in-out infinite;
        }

        @keyframes preferencesPulse {
            0%, 100% {
                box-shadow: 0 0 10px rgba(0, 242, 254, 0.4), 0 0 20px rgba(250, 204, 21, 0.2);
                border-color: var(--neon-core);
            }
            50% {
                box-shadow: 0 0 20px rgba(0, 242, 254, 0.6), 0 0 35px rgba(250, 204, 21, 0.5), 0 0 50px rgba(250, 204, 21, 0.2);
                border-color: #facc15;
            }
        }


        /* PWA Install Banner */
        .pwa-install-banner {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 30px);
            max-width: 450px;
            background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(20, 20, 35, 0.98));
            backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 242, 254, 0.3);
            border-radius: 20px;
            padding: 16px 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.15);
            z-index: 3000;
            animation: slideUpBanner 0.4s ease-out;
        }
        @keyframes slideUpBanner {
            from { opacity: 0; transform: translateX(-50%) translateY(30px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }
        .pwa-install-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .pwa-install-icon {
            font-size: 2.5rem;
            flex-shrink: 0;
            animation: bounce 2s infinite;
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .pwa-install-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .pwa-install-text strong {
            color: #fff;
            font-size: 0.95rem;
            font-family: 'Rajdhani', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .pwa-install-text span {
            color: #9ca3af;
            font-size: 0.75rem;
        }
        .pwa-install-buttons {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .pwa-btn-install {
            background: linear-gradient(135deg, #00f2fe, #4facfe);
            color: #000;
            font-weight: 700;
            font-size: 0.8rem;
            padding: 10px 18px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Rajdhani', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .pwa-btn-install:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
        }
        .pwa-btn-dismiss {
            background: rgba(255, 255, 255, 0.1);
            color: #9ca3af;
            font-size: 1rem;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pwa-btn-dismiss:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        /* PWA Banner - Mobile optimization */
        @media (max-width: 380px) {
            .pwa-install-banner {
                padding: 12px 14px;
            }
            .pwa-install-content {
                gap: 8px;
            }
            .pwa-install-icon {
                font-size: 2rem;
            }
            .pwa-install-text strong {
                font-size: 0.85rem;
            }
            .pwa-install-text span {
                font-size: 0.7rem;
            }
            .pwa-btn-install {
                font-size: 0.7rem;
                padding: 8px 12px;
            }
            .pwa-btn-dismiss {
                width: 32px;
                height: 32px;
            }
        }


        /* Tooltip onboarding */
        .onboarding-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            color: white;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            white-space: normal;
            max-width: 200px;
            min-width: 150px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
            z-index: 1000;
            animation: tooltipBounce 2s ease-in-out infinite;
            margin-bottom: 8px;
        }
        .onboarding-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 8px solid transparent;
            border-top-color: #a855f7;
        }
        .onboarding-tooltip .tooltip-close {
            margin-left: 10px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
        }
        .onboarding-tooltip .tooltip-close:hover {
            background: rgba(255,255,255,0.4);
        }
        @keyframes tooltipBounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-5px); }
        }
        .tab-item { position: relative; }

        /* Donation button */
        .fab-center-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
        .fab-donate-btn { position: absolute; bottom: -5px; background: linear-gradient(135deg, #ffdd00, #ff9500); border: none; border-radius: 12px; padding: 4px 10px; font-size: 0.9rem; cursor: pointer; box-shadow: 0 3px 10px rgba(255, 180, 0, 0.4); transition: all 0.3s; z-index: 10; }
        .fab-donate-btn:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(255, 180, 0, 0.6); }
        /* Donation tooltip */
        .donation-tooltip {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
            z-index: 1001;
            animation: tooltipBounce 2s ease-in-out infinite;
        }
        .donation-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 8px solid transparent;
            border-top-color: #059669;
        }
        .donation-tooltip .tooltip-close {
            margin-left: 8px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 10px;
        }

        /* ============ MOTIVATION SYSTEM STYLES ============ */

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column-reverse;
            gap: 8px;
            pointer-events: none;
            max-width: 90vw;
        }
        .toast {
            padding: 12px 20px;
            border-radius: 16px;
            color: white;
            font-weight: 700;
            font-size: 14px;
            text-align: center;
            animation: toastIn 0.4s ease-out, toastOut 0.4s ease-in 2.6s forwards;
            pointer-events: auto;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }
        .toast-badge {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(168, 85, 247, 0.92));
            border: 1px solid rgba(167, 139, 250, 0.5);
        }
        .toast-xp {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(34, 211, 238, 0.92));
            border: 1px solid rgba(6, 182, 212, 0.5);
        }
        .toast-levelup {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(109, 40, 217, 0.92));
            border: 1px solid rgba(167, 139, 250, 0.5);
        }
        .toast-streak {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(168, 85, 247, 0.92));
            border: 1px solid rgba(167, 139, 250, 0.5);
        }
        @keyframes toastIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes toastOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(-10px); }
        }

        /* XP Bar */
        .xp-bar-outer {
            background: rgba(255,255,255,0.08);
            border-radius: 999px;
            height: 12px;
            overflow: hidden;
            position: relative;
        }
        .xp-bar-inner {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #06b6d4, #8b5cf6);
            background-size: 200% 100%;
            animation: xpShimmer 2s ease-in-out infinite;
            transition: width 0.6s ease-out;
        }
        @keyframes xpShimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .xp-bar-mini {
            height: 4px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(255,255,255,0.1);
            width: 60px;
        }
        .xp-bar-mini-inner {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #06b6d4, #8b5cf6);
            transition: width 0.6s ease-out;
        }

        /* Badges Grid */
        .badges-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            overflow: hidden;
        }
        .badge-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 10px 2px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s ease;
            min-width: 0;
        }
        .badge-item.unlocked {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
        }
        .badge-item.unlocked .badge-icon {
            filter: none;
            color: #a78bfa;
            animation: badgeGlow 2s ease-in-out infinite alternate;
        }
        .badge-item.locked {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            opacity: 0.5;
        }
        .badge-item.locked .badge-icon {
            filter: grayscale(100%);
        }
        .badge-icon {
            font-size: 24px;
            line-height: 1;
        }
        .badge-name {
            font-size: 9px;
            font-weight: 700;
            color: rgba(255,255,255,0.7);
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            word-break: break-word;
        }
        @keyframes badgeGlow {
            from { filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.3)); }
            to { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6)); }
        }

        /* Level indicator */
        .level-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 999px;
            font-weight: 800;
            font-size: 13px;
            letter-spacing: 0.5px;
        }

        /* Weekly Summary */
        .weekly-stat {
            text-align: center;
            padding: 8px;
        }
        .weekly-stat-value {
            font-size: 20px;
            font-weight: 800;
            line-height: 1;
        }
        .weekly-stat-label {
            font-size: 10px;
            color: rgba(255,255,255,0.5);
            margin-top: 4px;
            text-transform: uppercase;
        }
        .trend-up { color: #10b981; }
        .trend-down { color: #ef4444; }
        .trend-same { color: #6b7280; }

        /* Streak record pulse */
        @keyframes recordPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }
        .streak-record {
            animation: recordPulse 0.6s ease-in-out 3;
        }
        /* Share Button */
        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: rgba(165, 180, 252, 0.9);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
            letter-spacing: 0.3px;
        }
        .share-btn:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
            border-color: rgba(99, 102, 241, 0.5);
            color: white;
            transform: translateY(-1px);
        }
        .share-btn:active {
            transform: translateY(0);
        }

        /* Share Prompt (post-checkin) */
        .share-prompt {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.1));
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: 16px;
            padding: 16px;
            margin-top: 12px;
            text-align: center;
            animation: sharePromptIn 0.4s ease-out 0.3s both;
        }
        @keyframes sharePromptIn {
            from { opacity: 0; transform: translateY(10px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .share-prompt-title {
            font-size: 14px;
            font-weight: 800;
            color: white;
            margin-bottom: 8px;
        }
        .share-prompt-text {
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 12px;
        }
        .share-prompt-buttons {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .share-prompt-btn {
            padding: 8px 16px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }
        .share-prompt-btn.primary {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
        }
        .share-prompt-btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
        }
        .share-prompt-btn.secondary {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.5);
            border: 1px solid rgba(255,255,255,0.1);
        }
        .share-prompt-btn.secondary:hover {
            background: rgba(255,255,255,0.12);
            color: rgba(255,255,255,0.7);
        }
        /* Lucide inline icons */
        .lu {
            display: inline-block;
            vertical-align: middle;
            width: 1em;
            height: 1em;
            flex-shrink: 0;
        }
        .lu svg {
            width: 100%;
            height: 100%;
        }
        .lu-lg { width: 1.25em; height: 1.25em; }
        .lu-xl { width: 1.5em; height: 1.5em; }
        .lu-2x { width: 2em; height: 2em; }
        .badge-icon .lu { width: 24px; height: 24px; }
        .toast .lu { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
        #share-rabbit-icon .lu { width: 2em; height: 2em; }
        #header-streak-icon .lu, #header-best-icon .lu { width: 0.9em; height: 0.9em; }
        #header-streak-icon .lu { color: #c4b5fd; }
        #header-best-icon .lu { color: #a78bfa; }
        .tab-icon .lu { width: 1.3em; height: 1.3em; }
        .fab-donate-btn .lu { width: 1em; height: 1em; }
        /* ============ END MOTIVATION SYSTEM STYLES ============ */
    </style>