/* --- RESET & FULL WIDTH HACK --- */
#avision-dashboard-root {
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background-color: #f1f5f9; font-family: 'Inter', sans-serif; color: #0f172a; line-height: 1.6; font-size: 16px; box-sizing: border-box; overflow-x: hidden;
}
#avision-dashboard-root *, #avision-dashboard-root *::before, #avision-dashboard-root *::after { box-sizing: border-box; }

/* Variables CSS */
#avision-dashboard-root {
    --primary: #3b82f6; --primary-dark: #2563eb; --accent: #f59e0b; --bg-body: #f1f5f9; --bg-card: #ffffff;
    --text-main: #0f172a; --text-light: #f8fafc; --text-muted: #475569; --border: #e2e8f0;
    --success: #10b981; --danger: #ef4444;
    --gold: #d97706; --gold-bg: #fffbeb; --gold-border: #fcd34d;
    --purple: #7c3aed; --purple-bg: #f5f3ff; --purple-border: #ddd6fe;
    --max-width: 1200px;
}

/* --- STYLES GÉNÉRAUX --- */
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* Top Nav */
#avision-dashboard-root .top-nav { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0 20px; height: 80px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
body.admin-bar #avision-dashboard-root .top-nav { top: 32px; }
#avision-dashboard-root .nav-left, #avision-dashboard-root .nav-right { display: flex; align-items: center; gap: 20px; }
#avision-dashboard-root .logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; text-decoration: none; border: none; }
#avision-dashboard-root .top-nav .logo.logo-avision-img .avision-header-logo-img,
#avision-dashboard-root .top-nav .logo .avision-header-logo-img { display: block; width: 70px; height: 70px; object-fit: contain; aspect-ratio: 1 / 1; }
#avision-dashboard-root .header-flags { display: flex; gap: 5px; align-items: center; background: rgba(0,0,0,0.03); padding: 5px 10px; border-radius: 20px; }
#avision-dashboard-root .header-flag { font-size: 1.4rem; cursor: pointer; opacity: 0.4; transition: all 0.2s; filter: grayscale(100%); line-height: 1; padding: 8px; user-select: none; display: inline-block; }
#avision-dashboard-root .header-flag:hover, #avision-dashboard-root .header-flag.active { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }
#avision-dashboard-root .user-profile-trigger,
.user-profile-trigger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; min-width: 36px; min-height: 36px;
    border-radius: 50%; cursor: pointer; user-select: none;
    background: rgba(0,0,0,0.06); color: var(--text-main, #334155);
    font-size: 0.9rem; font-weight: 700; transition: background 0.2s, transform 0.2s;
}
#avision-dashboard-root .user-profile-trigger:hover,
.user-profile-trigger:hover { background: rgba(0,0,0,0.1); transform: scale(1.05); }
.user-profile-trigger .user-profile-trigger-initials { line-height: 1; }
.user-orbit-panel {
    position: fixed; top: 0; right: 0; width: 420px; max-width: 90vw; height: 100vh;
    background: rgba(15, 23, 42, 0.72); color: #e2e8f0;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3); z-index: 9999;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.user-orbit-panel.is-visible { transform: translateX(0); visibility: visible; }
.user-orbit-panel-inner { display: flex; flex-direction: column; height: 100%; }
.user-orbit-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.user-orbit-panel-title { font-size: 1.1rem; font-weight: 700; }
.user-orbit-panel-close {
    background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer;
    padding: 4px; line-height: 1; transition: color 0.2s;
}
.user-orbit-panel-close:hover { color: #fff; }
.user-orbit-panel-body { flex: 1; overflow: auto; padding: 20px; }
.user-orbit-section { margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.user-orbit-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.user-orbit-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin: 0 0 0.5rem 0; }
.user-orbit-email { font-size: 0.95rem; color: #e2e8f0; margin: 0; word-break: break-all; }
.user-orbit-message { font-size: 0.875rem; color: #94a3b8; margin: 0; }
.user-orbit-panel-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.user-orbit-btn { display: inline-block; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: opacity 0.2s; }
.user-orbit-btn-logout {
    display: block; width: 100%; padding: 0.5rem 1rem;
    background: transparent; color: #f87171; border: 1px solid rgba(185, 28, 28, 0.6);
    border-radius: 8px; font-size: 0.875rem; font-weight: 600; text-align: center;
    text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.user-orbit-btn-logout:hover { background: rgba(185, 28, 28, 0.9); color: #fff; border-color: rgba(185, 28, 28, 0.95); }

/* Hero Header */
#avision-dashboard-root .saas-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 60px 0 100px 0; margin-bottom: -80px; position: relative; overflow: hidden; z-index: 1; text-align: center; }
#avision-dashboard-root .saas-header::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; pointer-events: none; }
#avision-dashboard-root .header-content { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; z-index: 2; }
#avision-dashboard-root .business-info h1 { font-size: 3.2rem; font-weight: 800; margin: 20px 0; letter-spacing: -1.5px; line-height: 1.1; color: white; }
#avision-dashboard-root .certif-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); padding: 8px 16px; border-radius: 20px; font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; }
#avision-dashboard-root .premium-badge { display: inline-block; background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%); color: white; padding: 8px 16px; border-radius: 6px; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); margin-top: 15px; border: 1px solid rgba(255,255,255,0.3); }

/* Main Container */
#avision-dashboard-root .container { max-width: var(--max-width); margin: 0 auto 60px auto; padding: 0 20px; position: relative; z-index: 10; }
#avision-dashboard-root .score-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 25px; margin-bottom: 35px; }
#avision-dashboard-root .score-card { background: white; border-radius: 12px; padding: 35px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#avision-dashboard-root .score-card h4 { color: var(--text-muted); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
#avision-dashboard-root .circular-chart { display: block; margin: 10px auto; max-width: 60%; max-height: 200px; }
#avision-dashboard-root .circle-bg { fill: none; stroke: #eee; stroke-width: 3.8; }
#avision-dashboard-root .circle { fill: none; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dasharray 1s ease, stroke 0.5s ease; }
#avision-dashboard-root .percentage { fill: #475569; font-family: sans-serif; font-weight: 800; font-size: 0.35em; text-anchor: middle; transition: all 0.5s ease; }
#avision-dashboard-root .circle.initial { stroke: #ef4444; stroke-dasharray: 42, 100; }
#avision-dashboard-root .stat-row { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; border-bottom: 1px solid #f1f5f9; padding-bottom: 5px; }
#avision-dashboard-root .stat-label { color: var(--text-muted); font-size: 1.15rem; font-weight: 500; }
#avision-dashboard-root .stat-value { font-weight: 800; color: var(--text-main); font-size: 1.25rem; text-align: right; }
#avision-dashboard-root .stat-value.bad { color: var(--danger); }
#avision-dashboard-root .stat-value.good { color: var(--success); }
#avision-dashboard-root #user-rating-display,
#avision-dashboard-root #leader-rating-display { font-size: 1.35rem !important; }
#avision-dashboard-root #user-rating-display span,
#avision-dashboard-root #leader-rating-display span { font-size: 1.1rem !important; }
#avision-dashboard-root .motivation-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px; width: 100%; margin-top: 20px; }
#avision-dashboard-root .motivation-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 20px; border-radius: 10px; text-align: center; }
#avision-dashboard-root .motivation-val { font-size: 1.8rem; font-weight: 900; color: #166534; display: block; margin-bottom: 5px; }
#avision-dashboard-root .motivation-lbl { font-size: 1rem; color: #15803d; font-weight: 700; text-transform: uppercase; }

/* Phase 1 Card */
#avision-dashboard-root .card { background: var(--bg-card); border-radius: 12px; padding: 45px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 1px solid var(--border); margin-bottom: 35px; position: relative; overflow: hidden; }
#avision-dashboard-root .phase-header { display: flex; align-items: center; gap: 25px; margin-bottom: 35px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
#avision-dashboard-root .unlock-icon { font-size: 3rem; }
#avision-dashboard-root .phase-title { color: var(--danger); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
#avision-dashboard-root .phase-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-top: 5px; }
#avision-dashboard-root .ai-analysis-box { background: #f8fafc; border-left: 6px solid var(--primary-dark); padding: 30px; border-radius: 0 10px 10px 0; margin-bottom: 35px; font-size: 1.25rem; line-height: 1.7; position: relative; }
#avision-dashboard-root .tag { display: inline-block; background: white; border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; font-weight: 700; color: var(--text-main); margin: 12px 10px 0 0; font-size: 1.1rem; }

/* Levels */
#avision-dashboard-root .level-card { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 25px; background: white; overflow: hidden; transition: all 0.3s ease; }
#avision-dashboard-root .level-card.active { border-color: var(--primary-dark); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); background: white; opacity: 1; }
#avision-dashboard-root .level-card.locked { opacity: 0.8; background: #f8fafc; border-style: solid; }
#avision-dashboard-root .level-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px 10px 0 0;
}
#avision-dashboard-root .level-card .level-header:only-of-type,
#avision-dashboard-root .level-card .level-header.card-left { border-radius: 10px; }
#avision-dashboard-root .level-header:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    box-shadow: inset 3px 0 0 #2563eb, inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}
#avision-dashboard-root .level-badge { background: var(--text-main); color: white; padding: 6px 14px; border-radius: 6px; font-weight: 800; font-size: 1rem; margin-right: 15px; flex-shrink: 0; }
#avision-dashboard-root .level-card.active .level-badge { background: var(--primary-dark); }
#avision-dashboard-root .level-title { font-weight: 800; font-size: 1.4rem; color: var(--text-main); }
#avision-dashboard-root .level-actions { padding: 30px; }
#avision-dashboard-root .level-actions p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px; }
#avision-dashboard-root .accordion-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, opacity 0.4s ease; opacity: 0; }
#avision-dashboard-root .accordion-wrapper.open { max-height: 1500px; opacity: 1; }
#avision-dashboard-root .chevron { font-size: 1.5rem; color: var(--text-muted); transition: transform 0.3s ease; margin-left: 15px; }
#avision-dashboard-root .chevron.rotate { transform: rotate(180deg); }
#avision-dashboard-root .btn-group { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
#avision-dashboard-root .btn-outline, #avision-dashboard-root .btn-primary, #avision-dashboard-root .btn-verify { padding: 14px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1.1rem; border: none; display: flex; align-items: center; gap: 10px; text-decoration: none; justify-content: center; }
#avision-dashboard-root .btn-outline { background: white; border: 2px solid var(--border); color: var(--text-muted); }
#avision-dashboard-root .btn-primary { background: var(--primary-dark); color: white; }
#avision-dashboard-root .btn-verify { background: var(--text-main); color: white; margin-left: auto; transition: transform 0.1s; }
#avision-dashboard-root .btn-verify:active { transform: scale(0.95); }
#avision-dashboard-root .spinner { border: 3px solid rgba(37, 99, 235, 0.2); border-radius: 50%; border-top: 3px solid var(--primary-dark); width: 24px; height: 24px; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- STYLES SPÉCIAUX (OR & VIOLET) --- */
#avision-dashboard-root .level-card.gold-level { border-color: var(--gold-border); background: var(--gold-bg); }
#avision-dashboard-root .level-card.gold-level .level-badge { background: var(--gold); }
#avision-dashboard-root .level-card.gold-level .level-title { color: #92400e; }
#avision-dashboard-root .club-label { font-size: 0.9rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-left: 10px; display: inline-block; }

#avision-dashboard-root .level-card.purple-level { border-color: var(--purple-border); background: var(--purple-bg); }
#avision-dashboard-root .level-card.purple-level .level-badge { background: var(--purple); }
#avision-dashboard-root .level-card.purple-level .level-title { color: #5b21b6; }

/* --- FADE OUT ICEBERG --- */
#avision-dashboard-root .iceberg-fade {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, rgba(241,245,249,0) 0%, rgba(241,245,249,1) 100%);
    pointer-events: none; z-index: 20;
}
#avision-dashboard-root .iceberg-text {
    position: absolute; bottom: 20px; width: 100%; text-align: center;
    color: var(--text-muted); font-weight: 600; font-size: 0.9rem; z-index: 21;
}

/* Footer & Chat */
#avision-dashboard-root .app-footer { margin-top: auto; background: white; border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 1rem; }
#avision-dashboard-root .avi-widget-btn { position: fixed; bottom: 40px; right: 30px; width: 70px; height: 70px; background: var(--primary-dark); border-radius: 50%; box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4); cursor: pointer; z-index: 2000; transition: transform 0.2s; border: 4px solid white; overflow: hidden; }
#avision-dashboard-root .avi-widget-btn:hover { transform: scale(1.05); }
#avision-dashboard-root .avi-icon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#avision-dashboard-root .avi-icon .avi-chat-icon-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 65px; height: 65px; max-width: 85%; max-height: 85%; object-fit: contain; display: block; margin: 0; padding: 0; }
#avision-dashboard-root .avi-badge { position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: var(--danger); border-radius: 50%; border: 2px solid white; color: white; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; transform: scale(0.8); }
#avision-dashboard-root .avi-badge.visible { opacity: 1; transform: scale(1); }

/* Bouton chat demo : uniquement l'image AVI (pas de rond bleu ni bord blanc) */
#avision-dashboard-root .avi-widget-btn.avi-widget-btn-image-only,
#avision-dashboard-root .avi-widget-btn-image-only {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* CHAT FIXE */
#avision-dashboard-root .avi-chat-window { 
    position: fixed; bottom: 120px; right: 30px; width: 380px; 
    height: 600px; max-height: 80vh; 
    background: white; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid var(--border); 
    display: flex; flex-direction: column; z-index: 2100; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all 0.3s ease; 
}
#avision-dashboard-root .avi-chat-window.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
#avision-dashboard-root .chat-header { padding: 20px 25px; background: var(--primary-dark); color: white; display: flex; justify-content: space-between; align-items: center; border-radius: 16px 16px 0 0; font-size: 1.1rem; }
#avision-dashboard-root .chat-container { flex: 1; display: flex; flex-direction: column; background: #f8fafc; overflow: hidden; }
#avision-dashboard-root .chat-messages { flex: 1; overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 15px; }
#avision-dashboard-root .msg { padding: 12px 18px; border-radius: 12px; font-size: 1rem; max-width: 85%; line-height: 1.5; }
#avision-dashboard-root .msg.avi { background: white; border: 1px solid var(--border); color: var(--text-main); }
#avision-dashboard-root .msg.user { background: var(--primary-dark); color: white; align-self: flex-end; }
#avision-dashboard-root .chat-input-area { padding: 20px; background: white; border-top: 1px solid var(--border); display: flex; gap: 12px; }
#avision-dashboard-root .chat-input { flex: 1; padding: 12px 15px; border: 1px solid var(--border); border-radius: 25px; outline: none; background: #f8fafc; font-size: 1rem; }
#avision-dashboard-root .chat-send { background: var(--primary-dark); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }

/* --- NOUVEAUX STYLES (SALES & FRUSTRATION) --- */

/* Social Proof Ticker */
#avision-dashboard-root .social-proof-ticker {
    background: #0f172a; color: #94a3b8; font-size: 0.9rem; padding: 8px 0; text-align: center; border-bottom: 1px solid #1e293b;
}
#avision-dashboard-root .social-proof-ticker strong { color: #fff; }

/* Opportunity Gap Banner */
#avision-dashboard-root .opportunity-banner {
    background: #ef4444; color: white; text-align: center; padding: 12px; font-weight: 700; font-size: 1.1rem; animation: pulse-red 3s infinite;
}
@keyframes pulse-red { 0% { background: #ef4444; } 50% { background: #dc2626; } 100% { background: #ef4444; } }

/* Blur & Lock Overlays */
#avision-dashboard-root .premium-blur {
    filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.6;
}
#avision-dashboard-root .lock-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 50; background: rgba(255,255,255,0.4); backdrop-filter: blur(2px);
}
#avision-dashboard-root .lock-btn {
    background: #0f172a; color: white; padding: 12px 24px; border-radius: 30px; font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); cursor: pointer; border: none; font-size: 1rem;
    display: flex; align-items: center; gap: 10px; transition: transform 0.2s;
}
#avision-dashboard-root .lock-btn:hover { transform: scale(1.05); }

/* Sales Modal (Agency Killer) */
#avision-dashboard-root .sales-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px);
    z-index: 999999; display: none; align-items: center; justify-content: center;
}
#avision-dashboard-root .sales-modal {
    background: white; width: 90%; max-width: 500px; border-radius: 16px; padding: 40px; text-align: center; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: slideUp 0.4s ease-out;
    max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#avision-dashboard-root .sales-price { font-size: 3.5rem; font-weight: 900; color: var(--text-main); line-height: 1; margin: 20px 0; }
#avision-dashboard-root .sales-price span { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; vertical-align: top; }
#avision-dashboard-root .sales-price #price-display-main { text-decoration: none !important; }
#avision-dashboard-root .sales-timer { background: #fffbeb; color: #b45309; display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; }
#avision-dashboard-root .sales-check-wrapper { background: #f1f5f9; padding: 15px; border-radius: 8px; margin: 20px 0; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
#avision-dashboard-root .sales-cta { background: #10b981; color: white; width: 100%; padding: 18px; border-radius: 8px; font-size: 1.2rem; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; }
#avision-dashboard-root .sales-cta:disabled { background: #cbd5e1; cursor: not-allowed; }
#avision-dashboard-root .sales-cta:hover:not(:disabled) { background: #059669; transform: translateY(-2px); }
#avision-dashboard-root .close-sales { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #94a3b8; }

/* TESTIMONIALS SECTION */
#avision-dashboard-root .testimonials-section { margin-top: 60px; margin-bottom: 40px; }
#avision-dashboard-root .testi-title { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--text-muted); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
#avision-dashboard-root .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
#avision-dashboard-root .testi-card { background: white; padding: 20px; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
#avision-dashboard-root .testi-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#avision-dashboard-root .testi-avatar { width: 40px; height: 40px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
#avision-dashboard-root .testi-name { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
#avision-dashboard-root .testi-text { font-size: 0.95rem; color: var(--text-muted); font-style: italic; }
#avision-dashboard-root .testi-result { color: var(--success); font-weight: 700; display: block; margin-top: 8px; font-size: 0.9rem; }

/* --- CHAT INTERACTIVE FEATURES (V2.2) --- */
#avision-dashboard-root .chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#avision-dashboard-root .chat-chip { 
    background: #e2e8f0; color: #0f172a; padding: 8px 12px; border-radius: 16px; 
    font-size: 0.85rem; cursor: pointer; border: 1px solid #cbd5e1; transition: all 0.2s; font-weight: 600;
}
#avision-dashboard-root .chat-chip:hover { background: #cbd5e1; transform: translateY(-1px); }

/* Typing Indicator */
#avision-dashboard-root .typing-indicator { 
    padding: 12px 18px; background: white; border: 1px solid var(--border); border-radius: 12px; 
    width: fit-content; margin-bottom: 10px; display: none; gap: 4px; align-items: center;
}
#avision-dashboard-root .typing-indicator.active { display: flex; }
#avision-dashboard-root .dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }
#avision-dashboard-root .dot:nth-child(1) { animation-delay: -0.32s; }
#avision-dashboard-root .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Mobile Fixes */
@media (max-width: 900px) {
    #avision-dashboard-root .header-content { padding: 0 15px; }
    #avision-dashboard-root .business-info h1 { font-size: 2.2rem; }
    #avision-dashboard-root .score-grid { grid-template-columns: 1fr; }
    #avision-dashboard-root .motivation-grid { grid-template-columns: 1fr !important; }
    #avision-dashboard-root .avi-chat-window { width: 90%; left: 5%; bottom: 100px; }
    #avision-dashboard-root .btn-group { flex-direction: column; }
    #avision-dashboard-root .btn-outline, #avision-dashboard-root .btn-primary { width: 100%; }
    #avision-dashboard-root .nav-right .nav-link { display: none; }
}
