        :root {
            --bg-color: #f8fafc;
            --card-bg: #ffffff;
            --card-border: #e2e8f0;
            --ov: 15, 23, 42;
            --primary-grad: linear-gradient(135deg, #0f766e 0%, #0f766e 100%);
            --accent-glow: rgba(15,118,110, 0.12);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --success: #059669;
            --warning: #d97706;
            --error: #dc2626;
            --expat-color: #ea580c;
            --coin-color: #0891b2;
            --scrollbar-thumb: rgba(15, 23, 42, 0.2);
            --scrollbar-track: rgba(15, 23, 42, 0.04);
        }

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

        body, .terminal-container, #veilleAgentsList {
            scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
            scrollbar-width: thin;
        }

        @supports not (scrollbar-color: auto) {
            body::-webkit-scrollbar, .terminal-container::-webkit-scrollbar, #veilleAgentsList::-webkit-scrollbar {
                width: 8px;
                height: 8px;
            }
            body::-webkit-scrollbar-thumb, .terminal-container::-webkit-scrollbar-thumb, #veilleAgentsList::-webkit-scrollbar-thumb {
                background: var(--scrollbar-thumb);
                border-radius: 4px;
            }
            body::-webkit-scrollbar-track, .terminal-container::-webkit-scrollbar-track, #veilleAgentsList::-webkit-scrollbar-track {
                background: var(--scrollbar-track);
            }
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            min-height: 100vh;
            overflow-x: hidden;
            
            background-attachment: fixed;
        }

        h1, h2, h3, h4 {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
        }

        /* Header Premium Styling */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(var(--ov), 0.05);
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            background: var(--primary-grad);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 20px rgba(15,118,110, 0.3);
            animation: pulse 3s infinite alternate;
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 8px 20px rgba(15,118,110, 0.3); }
            100% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5); }
        }

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

        .logo-title h1 {
            font-size: 1.5rem;
            letter-spacing: -0.5px;
            color: var(--text-main);
        }

        .logo-title span {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
            display: block;
        }

        .status-badge {
            background: rgba(13, 148, 136, 0.1);
            border: 1px solid rgba(13, 148, 136, 0.2);
            color: #0f766e;
            padding: 0.5rem 1rem;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: #14b8a6;
            border-radius: 50%;
            animation: blink 1.5s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

        /* Main Grid Layout */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        @media (min-width: 900px) {
            .main-grid {
                grid-template-columns: 420px 1fr;
            }
        }

        /* Glassmorphism Card base */
        .glass-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 2rem;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .glass-card:hover {
            border-color: rgba(var(--ov), 0.12);
            box-shadow: 0 2px 6px rgba(15,23,42,.08), 0 12px 28px rgba(15,23,42,.08);
        }

        .panel-title {
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-bottom: 1px solid rgba(var(--ov), 0.05);
            padding-bottom: 0.75rem;
        }

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

        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Glowing Textarea */
        .prompt-textarea {
            width: 100%;
            height: 120px;
            background: rgba(var(--ov), 0.03);
            border: 1px solid rgba(var(--ov), 0.08);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            color: var(--text-main);
            font-family: inherit;
            font-size: 0.9rem;
            line-height: 1.4;
            resize: none;
            transition: all 0.3s ease;
        }

        .prompt-textarea:focus {
            outline: none;
            border-color: #0f766e;
            background: rgba(var(--ov), 0.06);
            box-shadow: 0 0 15px rgba(15,118,110, 0.25);
        }

        /* Suggestions Pills */
        .suggestions-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .suggestion-pill {
            background: rgba(var(--ov), 0.05);
            border: 1px solid rgba(var(--ov), 0.08);
            border-radius: 20px;
            padding: 0.35rem 0.75rem;
            font-size: 0.75rem;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.2s ease;
        }

        .suggestion-pill:hover {
            background: rgba(15,118,110, 0.15);
            border-color: rgba(15,118,110, 0.3);
            color: var(--text-main);
            transform: translateY(-1px);
        }

        /* Site Select Checkboxes */
        .sites-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .site-checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(var(--ov), 0.02);
            border: 1px solid rgba(var(--ov), 0.05);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .site-checkbox-label:hover {
            background: rgba(var(--ov), 0.05);
        }

        .site-checkbox-label input {
            accent-color: #0f766e;
            width: 16px;
            height: 16px;
        }

        .site-checkbox-label.expat-select {
            border-left: 3px solid var(--expat-color);
        }
        .site-checkbox-label.coin-select {
            border-left: 3px solid var(--coin-color);
        }

        .form-input {
            width: 100%;
            background: rgba(var(--ov), 0.03);
            border: 1px solid rgba(var(--ov), 0.08);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            color: var(--text-main);
            font-family: inherit;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: #0d9488;
        }

        .btn-launch {
            width: 100%;
            background: var(--primary-grad);
            border: none;
            color: white;
            padding: 1rem;
            border-radius: 12px;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
            margin-top: 1.5rem;
        }

        .btn-launch:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
        }

        /* Country Filter Tabs */
        .country-tabs {
            display: flex;
            gap: 0.25rem;
            margin-top: 0.5rem;
            margin-bottom: 0.75rem;
            background: rgba(var(--ov), 0.05);
            padding: 0.25rem;
            border-radius: 12px;
            border: 1px solid rgba(var(--ov), 0.05);
        }
        .country-tab {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 0.4rem 0.2rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            white-space: nowrap;
        }
        .country-tab.active {
            background: rgba(15,118,110, 0.2);
            color: var(--text-main);
            border: 1px solid rgba(15,118,110, 0.3);
        }
        .country-tab:hover:not(.active) {
            background: rgba(var(--ov), 0.05);
            color: var(--text-main);
        }

        /* Quantity segment buttons & pricing cards */
        .quantity-card {
            background: rgba(var(--ov), 0.03);
            border: 1px solid rgba(var(--ov), 0.08);
            border-radius: 12px;
            padding: 0.75rem 0.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-muted);
            font-family: inherit;
        }
        .quantity-card.active {
            background: rgba(15,118,110, 0.15);
            border-color: rgba(15,118,110, 0.4);
            color: var(--text-main);
            box-shadow: 0 0 10px rgba(15,118,110, 0.1);
        }
        .quantity-card:hover:not(.active) {
            background: rgba(var(--ov), 0.07);
            border-color: rgba(var(--ov), 0.15);
        }
        .qty-num {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .qty-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-top: 0.15rem;
            opacity: 0.8;
        }
        .pricing-summary-card {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(13, 148, 136, 0.06) 100%);
            border: 1px solid rgba(245, 158, 11, 0.15);
            border-radius: 12px;
            padding: 0.85rem 1rem;
            font-family: inherit;
        }
        .pricing-label {
            font-size: 0.85rem;
            color: rgba(var(--ov), 0.7);
            font-weight: 500;
        }
        .pricing-value {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .pricing-helper {
            font-size: 0.72rem;
            color: rgba(var(--ov), 0.45);
            margin-top: 0.4rem;
            border-top: 1px solid rgba(var(--ov), 0.05);
            padding-top: 0.4rem;
        }

        /* Terminal Console */
        .terminal-container {
            --ov: 255, 255, 255;
            margin-top: 1.5rem;
            background: #05070c;
            border: 1px solid rgba(var(--ov), 0.05);
            border-radius: 10px;
            padding: 1rem;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.8rem;
            color: #2dd4bf;
            height: 350px;
            overflow-y: auto;
        }

        .terminal-header {
            display: flex;
            gap: 0.35rem;
            margin-bottom: 0.75rem;
        }

        .terminal-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .terminal-dot.r { background: var(--error); }
        .terminal-dot.y { background: var(--warning); }
        .terminal-dot.g { background: var(--success); }

        .terminal-log {
            line-height: 1.4;
            margin-bottom: 0.35rem;
        }

        .terminal-log.system { color: #84cc16; }
        .terminal-log.info { color: #f3f4f6; }
        .terminal-log.agent { color: #2dd4bf; }

        /* Leads Showcase Board */
        .leads-board {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .lead-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 1.5rem;
            backdrop-filter: blur(16px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        @media (min-width: 768px) {
            .lead-card {
                grid-template-columns: 240px 1fr;
            }
        }

        .lead-card:hover {
            border-color: rgba(15,118,110, 0.3);
            box-shadow: 0 10px 25px rgba(15,118,110, 0.08);
            transform: translateY(-2px);
        }

        /* Lead Visual */
        .lead-visual {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            height: 160px;
            border: 1px solid rgba(var(--ov), 0.05);
        }

        @media (min-width: 768px) {
            .lead-visual {
                height: 100%;
                min-height: 180px;
            }
        }

        .lead-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .lead-card:hover .lead-img {
            transform: scale(1.08);
        }

        .score-badge {
            color: #fff;
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(4px);
            padding: 0.35rem 0.65rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.75rem;
            font-weight: 700;
            z-index: 5;
        }

        .score-badge i {
            color: #fbbf24;
        }

        /* Brand Source Badges */
        .source-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 0.35rem 0.65rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            z-index: 5;
            color: white;
            backdrop-filter: blur(4px);
        }

        .source-badge.expat {
            background: rgba(249, 115, 22, 0.25);
            border: 1px solid rgba(249, 115, 22, 0.4);
            box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
        }

        .source-badge.coin {
            background: rgba(6, 182, 212, 0.25);
            border: 1px solid rgba(6, 182, 212, 0.4);
            box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
        }

        .source-badge.jiji {
            background: rgba(16, 185, 129, 0.25);
            border: 1px solid rgba(16, 185, 129, 0.4);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
        }

        .source-badge.google {
            background: rgba(15,118,110, 0.25);
            border: 1px solid rgba(15,118,110, 0.4);
            box-shadow: 0 0 10px rgba(15,118,110, 0.1);
        }

        .source-badge.lacentrale {
            background: rgba(59, 130, 246, 0.25);
            border: 1px solid rgba(59, 130, 246, 0.4);
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
        }

        .source-badge.seloger {
            background: rgba(239, 68, 68, 0.25);
            border: 1px solid rgba(239, 68, 68, 0.4);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
        }

        .source-badge.linkedin {
            background: rgba(14, 116, 144, 0.25);
            border: 1px solid rgba(14, 116, 144, 0.4);
            box-shadow: 0 0 10px rgba(14, 116, 144, 0.1);
        }

        .source-badge.seneweb {
            background: rgba(217, 119, 6, 0.25);
            border: 1px solid rgba(217, 119, 6, 0.4);
            box-shadow: 0 0 10px rgba(217, 119, 6, 0.1);
        }

        /* Lead Content */
        .lead-content {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .lead-header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .lead-title {
            font-size: 1.2rem;
            color: var(--text-main);
            line-height: 1.3;
            max-width: 75%;
        }

        .lead-price {
            font-size: 1.25rem;
            font-weight: 800;
            background: #0f766e;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .lead-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .lead-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .lead-analysis-block {
            background: rgba(var(--ov), 0.02);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-left: 3px solid #0d9488;
            font-size: 0.85rem;
            line-height: 1.4;
        }

        /* Pros / Cons */
        .accordions-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
            margin-bottom: 1.25rem;
        }

        @media (min-width: 600px) {
            .accordions-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        .pros-cons-box {
            background: rgba(var(--ov), 0.015);
            border: 1px solid rgba(var(--ov), 0.03);
            border-radius: 10px;
            padding: 0.75rem 1rem;
        }

        .box-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .box-title.pros { color: var(--success); }
        .box-title.cons { color: #e11d48; }

        .points-list {
            list-style: none;
            font-size: 0.8rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .point-item {
            display: flex;
            align-items: flex-start;
            gap: 0.35rem;
            line-height: 1.3;
        }

        /* Outreach script section */
        .outreach-box {
            border: 1px dashed rgba(var(--ov), 0.1);
            border-radius: 12px;
            padding: 1rem;
            background: rgba(var(--ov), 0.04);
            margin-top: 0.5rem;
        }

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

        .outreach-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: #0f766e;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .pitch-text {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 0.85rem;
            line-height: 1.45;
            resize: none;
            height: 100px;
            font-family: inherit;
        }

        .pitch-text:focus {
            outline: none;
        }

        .outreach-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            margin-top: 0.5rem;
            border-top: 1px solid rgba(var(--ov), 0.05);
            padding-top: 0.5rem;
        }

        .btn-action {
            background: rgba(var(--ov), 0.05);
            border: 1px solid rgba(var(--ov), 0.08);
            color: var(--text-main);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            transition: all 0.2s ease;
        }

        .btn-action:hover {
            background: rgba(var(--ov), 0.1);
        }

        .btn-action.wa {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.3);
            color: #059669;
        }

        .btn-action.wa:hover {
            background: rgba(16, 185, 129, 0.25);
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 5rem 2rem;
            background: rgba(var(--ov), 0.01);
            border: 1px dashed rgba(var(--ov), 0.08);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .empty-icon {
            width: 64px;
            height: 64px;
            background: rgba(15,118,110, 0.05);
            border: 1px solid rgba(15,118,110, 0.1);
            color: #0f766e;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empty-state h3 {
            font-size: 1.25rem;
            color: var(--text-main);
        }

        .empty-state p {
            font-size: 0.9rem;
            color: var(--text-muted);
            max-width: 400px;
            line-height: 1.4;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #0f172a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 1000;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .spinner {
            animation: spin 1s linear infinite;
        }

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

        /* Mode Tabs styles */
        .mode-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid rgba(var(--ov), 0.08);
            padding-bottom: 0.5rem;
        }

        .mode-tab {
            background: none;
            border: none;
            color: var(--text-muted);
            padding: 0.75rem 1.25rem;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: 10px;
            transition: all 0.2s;
        }

        .mode-tab:hover {
            color: var(--text-main);
            background: rgba(var(--ov), 0.03);
        }

        .mode-tab.active {
            color: var(--text-main);
            background: rgba(15,118,110, 0.15);
            border: 1px solid rgba(15,118,110, 0.3);
        }

        /* Chat Co-pilot styles */
        .chat-bubble {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            max-width: 85%;
            animation: fadeIn 0.25s ease-out;
        }
        
        .chat-bubble.user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }
        
        .chat-bubble.assistant {
            align-self: flex-start;
        }
        
        .chat-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            background: rgba(var(--ov), 0.05);
            border: 1px solid rgba(var(--ov), 0.1);
            flex-shrink: 0;
        }
        
        .chat-bubble.user .chat-avatar {
            background: rgba(15,118,110, 0.15);
            border-color: rgba(15,118,110, 0.3);
        }
        
        .chat-content {
            padding: 0.75rem 1rem;
            border-radius: 16px;
            font-size: 0.85rem;
            line-height: 1.5;
            color: var(--text-main);
        }
        
        .chat-bubble.user .chat-content {
            background: rgba(15,118,110, 0.15);
            border: 1px solid rgba(15,118,110, 0.25);
            border-top-right-radius: 4px;
        }
        
        .chat-bubble.assistant .chat-content {
            background: rgba(var(--ov), 0.02);
            border: 1px solid rgba(var(--ov), 0.05);
            border-top-left-radius: 4px;
        }
        
        .chat-content p {
            margin-bottom: 0.5rem;
        }
        .chat-content p:last-child {
            margin-bottom: 0;
        }
        .chat-content em {
            color: #0f766e;
            font-style: italic;
        }

        /* Suggestions chips */
        .suggestion-chip {
            background: rgba(var(--ov), 0.02);
            border: 1px solid rgba(var(--ov), 0.06);
            border-radius: 20px;
            padding: 0.35rem 0.75rem;
            font-size: 0.75rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            display: inline-block;
        }
        .suggestion-chip:hover {
            background: rgba(15,118,110, 0.1);
            border-color: rgba(15,118,110, 0.3);
            color: var(--text-main);
        }

        /* Custom Scrollbar for Chat Messages */
        #chatMessages::-webkit-scrollbar {
            width: 5px;
        }
        #chatMessages::-webkit-scrollbar-thumb {
            background: rgba(var(--ov), 0.1);
            border-radius: 4px;
        }
        #chatMessages::-webkit-scrollbar-thumb:hover {
            background: rgba(var(--ov), 0.2);
        }
        #chatMessages::-webkit-scrollbar-track {
            background: transparent;
        }

        /* Responsive Mobile Layout Toggles */
        @media (max-width: 1024px) {
            .main-grid {
                grid-template-columns: 1fr !important;
            }
            #dashboardPanel {
                display: none !important;
            }
            .mobile-tabs {
                display: flex !important;
            }
        }

        /* Scoping Card Container (Grid Item on Desktop, Drawer on Mobile) */
        .scoping-card-container {
            display: none;
            width: 320px;
            z-index: 50;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 25px -5px rgba(15,23,42,.18), 0 8px 10px -6px rgba(15,23,42,.12);
            border: 1px solid rgba(15,118,110, 0.3) !important;
            background: var(--card-bg) !important;
            backdrop-filter: blur(20px);
            height: 100%;
            overflow-y: auto;
        }
        
        .scoping-card-container.open {
            display: flex;
            flex-direction: column;
        }

        .scoping-backdrop {
            display: none;
        }

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

        /* Mobile specific style for Scoping Card Drawer */
        @media (max-width: 768px) {
            .scoping-card-container {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                height: 100vh;
                width: 85%;
                max-width: 320px;
                margin-bottom: 0 !important;
                display: flex !important;
                border-radius: 0 !important;
                border-left: 1px solid rgba(15,118,110, 0.3) !important;
                background: var(--card-bg) !important;
                transform: translateX(120%);
                opacity: 0;
                visibility: hidden;
                z-index: 100;
            }
            .scoping-card-container.open {
                transform: translateX(0);
                opacity: 1;
                visibility: visible;
            }
            .scoping-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(15, 23, 42, 0.5);
                backdrop-filter: blur(4px);
                z-index: 95;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }
            .scoping-backdrop.open {
                opacity: 1;
                visibility: visible;
            }
        }

        /* --- Animations et Styles pour la Rétraction du Panneau --- */
        .main-grid {
            transition: grid-template-columns 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .main-grid.chat-collapsed {
            grid-template-columns: 80px 1fr !important;
        }

        #chatPanel {
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .main-grid.chat-collapsed #chatPanel {
            cursor: pointer;
            padding: 1rem 0.5rem;
            align-items: center;
        }

        .main-grid.chat-collapsed #chatPanel:hover {
            background: rgba(var(--ov), 0.05);
        }

        /* Masquer le contenu quand réduit */
        .main-grid.chat-collapsed #chatPanel > *:not(#collapsedChatIndicator) {
            opacity: 0;
            pointer-events: none;
            position: absolute;
            visibility: hidden;
            transition: opacity 0.2s ease;
        }

        /* Indicateur de chat réduit (icône pour ré-ouvrir) */
        #collapsedChatIndicator {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #0f766e;
            gap: 1rem;
            opacity: 0;
            transition: opacity 0.3s delay 0.2s;
        }

        .main-grid.chat-collapsed #collapsedChatIndicator {
            display: flex;
            opacity: 1;
        }
        
        #collapsedChatIndicator span {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: rotate(180deg);
            font-weight: 600;
            letter-spacing: 2px;
            font-size: 0.85rem;
        }
