/* ==============================================
   🎨 ADVANCED-ANALYSIS.CSS - ULTRA MODERN 3D VERSION
   Glassmorphism • 3D Effects • Premium Animations
   VERSION CORRIGÉE FINALE
   ============================================== */

/* ============================================
   🌟 VARIABLES PERSONNALISÉES
   ============================================ */
:root {
    --ml-primary: #667eea;
    --ml-secondary: #764ba2;
    --ml-accent: #f093fb;
    --ml-success: #43e97b;
    --ml-danger: #f5576c;
    --ml-warning: #f6d365;
    
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(31, 38, 135, 0.37);
    
    --glow-primary: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-accent: 0 0 30px rgba(240, 147, 251, 0.6);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-mode {
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

/* ============================================
   ✅ CORRECTION 1 : TITRE DE LA PAGE - STYLE UNIFORME
   ============================================ */
.top-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.top-header h1 i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

/* ============================================
   🔍 SEARCH PANEL - GLASSMORPHISM PREMIUM
   ============================================ */
.search-panel {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.search-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.panel-title {
    margin: 0 0 30px 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.panel-title i {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* ============================================
   🎯 SMART SEARCH BAR - 3D EFFECT
   ============================================ */
.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 15px;
}

#symbolInput {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

#symbolInput:focus {
    outline: none;
    border-color: var(--ml-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        inset 0 2px 8px rgba(0, 0, 0, 0.05),
        var(--glow-primary);
    transform: translateY(-2px);
}

#symbolInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ============================================
   🚀 BUTTON ANALYZE - HOLOGRAPHIC
   ============================================ */
.btn-analyze {
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary), var(--ml-accent));
    background-size: 200% 200%;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(118, 75, 162, 0.3);
}

.btn-analyze::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.btn-analyze:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(118, 75, 162, 0.4);
    animation: gradientShift 3s ease infinite;
}

.btn-analyze:hover::before {
    left: 100%;
}

.btn-analyze:active {
    transform: translateY(-2px) scale(0.98);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   💡 SEARCH SUGGESTIONS - GLASSMORPHISM
   ============================================ */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(102, 126, 234, 0.15);
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: var(--transition-smooth);
}

body.dark-mode .search-suggestions {
    background: rgba(15, 23, 42, 0.95);
}

.search-suggestions.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    animation: slideDownBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    60% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestion-category {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ml-primary), transparent);
    transition: width 0.3s ease;
}

.suggestion-item:hover::before,
.suggestion-item.selected::before {
    width: 4px;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    transform: translateX(4px);
}

.suggestion-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    color: white;
    text-transform: uppercase;
}

.suggestion-item:hover .suggestion-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.suggestion-icon.tech {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.suggestion-icon.finance {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.suggestion-icon.crypto {
    background: linear-gradient(135deg, #FF9800, #FFC107);
}

.suggestion-icon.etf {
    background: linear-gradient(135deg, #8E7DE3, #9D5CE6);
}

.suggestion-icon.industrial {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.suggestion-symbol {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.suggestion-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.suggestion-match {
    background: var(--ml-warning);
    color: #333;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.suggestion-exchange {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 12px;
}

.suggestion-info {
    flex: 1;
}

.no-results,
.suggestion-loading {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.no-results i,
.suggestion-loading i {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   🎪 POPULAR STOCKS - ANIMATED CHIPS
   ============================================ */
.popular-stocks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid var(--glass-border);
}

.quick-label {
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
    font-size: 1.05rem;
}

.symbol-chip {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.symbol-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ml-primary), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.symbol-chip:hover {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        var(--glow-primary);
}

.symbol-chip:hover::before {
    width: 300px;
    height: 300px;
}

.symbol-chip i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.symbol-chip:hover i {
    transform: scale(1.2) rotate(10deg);
    color: white !important;
}

/* Icons spécifiques (gardés pour compatibilité) */
.symbol-chip .fa-apple { color: #000; }
.symbol-chip:hover .fa-apple { color: white; }
.symbol-chip .fa-microsoft { color: #00A4EF; }
.symbol-chip:hover .fa-microsoft { color: white; }
.symbol-chip .fa-google { color: #4285F4; }
.symbol-chip:hover .fa-google { color: white; }
.symbol-chip .fa-amazon { color: #FF9900; }
.symbol-chip:hover .fa-amazon { color: white; }
.symbol-chip .fa-car { color: #E82127; }
.symbol-chip:hover .fa-car { color: white; }
.symbol-chip .fa-microchip { color: #76B900; }
.symbol-chip:hover .fa-microchip { color: white; }
.symbol-chip .fa-meta { color: #0668E1; }
.symbol-chip:hover .fa-meta { color: white; }
.symbol-chip .fa-film { color: #E50914; }
.symbol-chip:hover .fa-film { color: white; }

/* ============================================
   ⚙️ PREDICTION SETTINGS - 3D BUTTONS
   ============================================ */
.prediction-settings {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 2px solid var(--glass-border);
}

.setting-group {
    flex: 1;
    min-width: 280px;
}

.setting-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.05rem;
}

.horizon-btn {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.4);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 700;
    margin-right: 10px;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.horizon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.horizon-btn:hover::before {
    left: 100%;
}

.horizon-btn:hover {
    border-color: var(--ml-primary);
    color: var(--ml-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.horizon-btn.active {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        var(--glow-primary);
    transform: scale(1.05);
}

/* ============================================
   ⏳ LOADING INDICATOR - ANIMATED
   ============================================ */
.loading-indicator {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(118, 75, 162, 0.03) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.loading-indicator i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: inline-block;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingText {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   📊 STOCK HEADER - PREMIUM GLASS
   ============================================ */
.stock-header {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(118, 75, 162, 0.3);
    position: relative;
    overflow: hidden;
}

.stock-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(240, 147, 251, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 25s linear infinite reverse;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.stock-info h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.stock-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 8px;
    display: block;
}

.stock-price {
    text-align: right;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.change {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
}

.change.positive {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    color: white;
    box-shadow: 0 4px 20px rgba(67, 233, 123, 0.4);
}

.change.negative {
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
}

/* ============================================
   📈 RESULTS PANEL
   ============================================ */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.results-panel.hidden {
    display: none;
}

.section-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 2rem;
}

/* ============================================
   🎯 CONSOLIDATED SIGNALS - GLASSMORPHISM
   ============================================ */
.signals-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.signal-gauge {
    margin-bottom: 35px;
}

.gauge-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 20px 0;
}

.gauge-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
}

.gauge-bar {
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.gauge-value {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gauge-value.strong-buy { 
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}

.gauge-value.buy { 
    color: #20c997;
}

.gauge-value.neutral { 
    background: linear-gradient(135deg, var(--ml-warning), #fda085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gauge-value.sell { 
    color: #fd7e14;
}

.gauge-value.strong-sell { 
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.signals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    border-left: 4px solid var(--ml-primary);
    transition: var(--transition-smooth);
}

.signal-row:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.signal-indicator-name {
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    font-size: 1.05rem;
}

.signal-indicator-value {
    color: var(--text-secondary);
    margin: 0 20px;
    font-family: monospace;
    font-weight: 600;
    font-size: 1rem;
}

.signal-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signal-badge.buy {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    color: white;
}

.signal-badge.sell {
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
    color: white;
}

.signal-badge.neutral {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

/* ============================================
   📊 CHART SECTIONS - GLASSMORPHISM
   ============================================ */
.chart-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chart {
    min-height: 450px;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============================================
   🎛️ OSCILLATORS GRID - 3D CARDS
   ============================================ */
.oscillators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 28px;
}

.oscillator-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.oscillator-card:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: 
        0 24px 60px rgba(102, 126, 234, 0.25),
        0 0 80px rgba(118, 75, 162, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.signal-box {
    margin-top: 25px;
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signal-box.bullish {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2), rgba(56, 249, 215, 0.1));
    color: #155724;
    border-left: 6px solid var(--ml-success);
    backdrop-filter: blur(10px);
}

.signal-box.bearish {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.2), rgba(253, 126, 20, 0.1));
    color: #721c24;
    border-left: 6px solid var(--ml-danger);
    backdrop-filter: blur(10px);
}

.signal-box.neutral {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(253, 160, 133, 0.1));
    color: #856404;
    border-left: 6px solid var(--ml-warning);
    backdrop-filter: blur(10px);
}

/* ============================================
   📊 FIBONACCI TABLE - PREMIUM STYLE
   ============================================ */
.fibonacci-table {
    margin-top: 25px;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fibonacci-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.fibonacci-table th,
.fibonacci-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.fibonacci-table th {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fibonacci-table tr {
    transition: var(--transition-smooth);
}

.fibonacci-table tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.fibonacci-table tr:last-child td {
    border-bottom: none;
}

.level-name {
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.05rem;
}

.level-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================================
   📍 PIVOT POINTS - 3D CARDS
   ============================================ */
.pivot-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.pivot-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.pivot-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 40px rgba(118, 75, 162, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.pivot-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--ml-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pivot-card h4::before {
    content: '⚡';
    font-size: 1.6rem;
}

.pivot-values {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pivot-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.pivot-level:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pivot-level.resistance {
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.15), rgba(253, 126, 20, 0.05));
    color: #721c24;
    border-left: 5px solid var(--ml-danger);
}

.pivot-level.support {
    background: linear-gradient(90deg, rgba(67, 233, 123, 0.15), rgba(56, 249, 215, 0.05));
    color: #155724;
    border-left: 5px solid var(--ml-success);
}

.pivot-level.pivot {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.05));
    color: #0c5460;
    border-left: 5px solid var(--ml-primary);
}

.pivot-label {
    font-weight: 800;
    font-size: 1.05rem;
    min-width: 50px;
}

.pivot-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pivot-value strong {
    font-size: 1.2rem;
}

.pivot-value small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   ✅ CORRECTION 3 : MODALS - STYLE ORIGINAL (PAS DE CHANGEMENT)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white; /* ✅ Blanc simple */
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

body.dark-mode .modal-content {
    background: #1e293b; /* ✅ Dark mode simple */
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #2649B2, #4A74F3); /* ✅ Style original */
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    color: #333;
}

body.dark-mode .modal-body {
    color: #e2e8f0;
}

.modal-body h3 {
    color: #2649B2;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .modal-body h3 {
    color: #60a5fa;
}

.modal-body h3::before {
    content: '📊';
    font-size: 1.5rem;
}

.modal-body p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

body.dark-mode .modal-body p {
    color: #cbd5e1;
}

.modal-body ul,
.modal-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-body strong {
    color: #2649B2;
    font-weight: 600;
}

body.dark-mode .modal-body strong {
    color: #60a5fa;
}

.key-term {
    background: linear-gradient(135deg, #2649B2, #4A74F3);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 600;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.tip-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.formula-box {
    background: #f8f9fa;
    border: 2px solid #2649B2;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: monospace;
    text-align: center;
}

body.dark-mode .formula-box {
    background: #334155;
    border-color: #60a5fa;
}

/* ============================================
   ✅ CORRECTION 2 : HELP ICON - POINT D'INTERROGATION VISIBLE
   ============================================ */
.help-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    transition: var(--transition-bounce);
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: none; /* ✅ Pas de bordure */
    line-height: 1; /* ✅ Centrage vertical */
}

/* ✅ S'assurer que le ? est affiché */
.help-icon::after {
    content: '?'; /* ✅ Forcer l'affichage du ? */
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
}

.help-icon:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.5),
        var(--glow-primary);
}

/* ============================================
   ✨ UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   📱 FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 35px 20px;
    color: var(--text-secondary);
    margin-top: 60px;
}

footer p {
    margin: 8px 0;
    font-weight: 600;
}

.data-source {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ============================================
   🎨 SCROLLBAR CUSTOM - PREMIUM
   ============================================ */
.search-suggestions::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.search-suggestions::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.search-suggestions::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--ml-secondary), var(--ml-accent));
}

/* ============================================
   🌙 DARK MODE ENHANCEMENTS
   ============================================ */
body.dark-mode .search-panel,
body.dark-mode .stock-header,
body.dark-mode .signals-section,
body.dark-mode .chart-section,
body.dark-mode .pivot-section {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(15, 23, 42, 0.5) 100%
    );
}

body.dark-mode .oscillator-card,
body.dark-mode .pivot-card {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

body.dark-mode .suggestion-item:hover,
body.dark-mode .suggestion-item.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), transparent);
}

body.dark-mode .signal-row,
body.dark-mode .gauge-container {
    background: rgba(15, 23, 42, 0.4);
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-suggestions {
        right: 0;
        max-height: 300px;
    }
    
    .btn-analyze {
        width: 100%;
        justify-content: center;
    }
    
    .popular-stocks {
        justify-content: center;
    }
    
    .prediction-settings {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stock-price {
        text-align: center;
    }
    
    .symbol-chip {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
    
    .oscillators-grid,
    .pivot-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .gauge-value {
        font-size: 1.6rem;
    }
    
    .signal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .signal-indicator-value {
        margin: 0;
    }
    
    .search-panel,
    .signals-section,
    .chart-section,
    .pivot-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .symbol-chip {
        flex: 1 1 100%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .stock-info h2 {
        font-size: 2rem;
    }
}

/* ============================================
   🎬 GLOBAL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-panel > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.results-panel > *:nth-child(1) { animation-delay: 0.1s; }
.results-panel > *:nth-child(2) { animation-delay: 0.2s; }
.results-panel > *:nth-child(3) { animation-delay: 0.3s; }
.results-panel > *:nth-child(4) { animation-delay: 0.4s; }
.results-panel > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ============================================
   🆕 PORTFOLIO MANAGEMENT SECTION
   ============================================ */
.portfolio-management-section {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-management-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.08) 0%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

.portfolio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.portfolio-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 280px;
}

.portfolio-selector label {
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 1.05rem;
}

.portfolio-dropdown {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.portfolio-dropdown:hover {
    border-color: var(--ml-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.portfolio-dropdown:focus {
    outline: none;
    border-color: var(--ml-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.portfolio-actions {
    display: flex;
    gap: 12px;
}

.btn-portfolio-action {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-portfolio-action:hover {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ============================================
   🆕 WATCHLIST SECTION
   ============================================ */
.watchlist-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.watchlist-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.watchlist-search {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

#watchlistSearchInput {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

#watchlistSearchInput:focus {
    outline: none;
    border-color: var(--ml-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-add-watchlist {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
}

.btn-add-watchlist:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(67, 233, 123, 0.5);
}

.watchlist-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--ml-primary);
    color: var(--ml-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.watchlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.watchlist-empty,
.alerts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    color: var(--text-secondary);
}

.watchlist-empty i,
.alerts-empty i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.watchlist-empty p,
.alerts-empty p {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.watchlist-empty small,
.alerts-empty small {
    font-size: 1rem;
    opacity: 0.7;
}

.watchlist-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.watchlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.watchlist-card:hover::before {
    left: 100%;
}

.watchlist-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 40px rgba(118, 75, 162, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.watchlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.watchlist-symbol {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.watchlist-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(245, 87, 108, 0.1);
    color: var(--ml-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.watchlist-remove:hover {
    background: var(--ml-danger);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.watchlist-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.watchlist-change {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
}

.watchlist-change.positive {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2), rgba(56, 249, 215, 0.1));
    color: var(--ml-success);
}

.watchlist-change.negative {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.2), rgba(253, 126, 20, 0.1));
    color: var(--ml-danger);
}

.watchlist-loading {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   🆕 PRICE ALERTS SECTION
   ============================================ */
.price-alerts-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.alerts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-create-alert {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-create-alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.alerts-stats {
    display: flex;
    gap: 16px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
}

.stat-badge span {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-badge small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 150px;
}

.alert-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.alert-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.alert-card.triggered {
    border-left: 6px solid var(--ml-success);
    background: linear-gradient(
        90deg,
        rgba(67, 233, 123, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    animation: pulse 2s ease-in-out infinite;
}

.alert-card.triggered::before {
    content: '🔔';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-15deg); }
    75% { transform: translateY(-50%) rotate(15deg); }
}

.alert-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-symbol {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 80px;
}

.alert-condition {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.alert-condition .condition-type {
    font-weight: 700;
    color: var(--ml-primary);
}

.alert-condition .target-price {
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.alert-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.alert-toggle {
    width: 60px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.alert-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.alert-toggle.active {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    border-color: transparent;
}

.alert-toggle.active::before {
    left: calc(100% - 26px);
}

.alert-delete {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(245, 87, 108, 0.1);
    color: var(--ml-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.alert-delete:hover {
    background: var(--ml-danger);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   🆕 MODALS POUR NOUVELLES FONCTIONNALITÉS
   ============================================ */
.modal-small {
    max-width: 500px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.05rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

body.dark-mode .form-input {
    background: rgba(15, 23, 42, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--ml-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--glass-border);
}

.btn-cancel,
.btn-confirm {
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cancel {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-primary);
    border: 2px solid rgba(108, 117, 125, 0.4);
}

.btn-cancel:hover {
    background: rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.portfolios-manage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-manage-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.portfolio-manage-item:hover {
    transform: translateX(8px);
    border-color: rgba(102, 126, 234, 0.4);
}

.portfolio-manage-name {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
}

.portfolio-manage-actions {
    display: flex;
    gap: 10px;
}

.btn-rename,
.btn-delete-portfolio {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-rename {
    background: rgba(102, 126, 234, 0.1);
    color: var(--ml-primary);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.btn-rename:hover {
    background: var(--ml-primary);
    color: white;
    border-color: transparent;
}

.btn-delete-portfolio {
    background: rgba(245, 87, 108, 0.1);
    color: var(--ml-danger);
    border: 2px solid rgba(245, 87, 108, 0.3);
}

.btn-delete-portfolio:hover {
    background: var(--ml-danger);
    color: white;
    border-color: transparent;
}

/* ============================================
   📱 RESPONSIVE DESIGN POUR NOUVELLES SECTIONS
   ============================================ */
@media (max-width: 768px) {
    .portfolio-toolbar,
    .watchlist-toolbar,
    .alerts-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portfolio-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portfolio-actions {
        width: 100%;
    }
    
    .btn-portfolio-action {
        flex: 1;
        justify-content: center;
    }
    
    .watchlist-search {
        flex-direction: column;
    }
    
    .watchlist-filters {
        justify-content: center;
    }
    
    .watchlist-container {
        grid-template-columns: 1fr;
    }
    
    .alerts-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .alert-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .alert-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .alert-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .portfolio-management-section,
    .watchlist-section,
    .price-alerts-section {
        padding: 25px 20px;
    }
    
    .portfolio-dropdown {
        font-size: 1rem;
    }
    
    .watchlist-card {
        padding: 16px;
    }
    
    .alert-card {
        padding: 16px 18px;
    }
    
    .modal-small {
        margin: 10px;
    }
}

/* ============================================
   🌙 DARK MODE POUR NOUVELLES SECTIONS
   ============================================ */
body.dark-mode .portfolio-management-section,
body.dark-mode .watchlist-section,
body.dark-mode .price-alerts-section {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(15, 23, 42, 0.5) 100%
    );
}

body.dark-mode .watchlist-card,
body.dark-mode .alert-card,
body.dark-mode .stat-badge,
body.dark-mode .portfolio-manage-item {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

/* ============================================
   ✨ ANIMATIONS ADDITIONNELLES
   ============================================ */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.watchlist-card,
.alert-card {
    animation: fadeInScale 0.5s ease-out backwards;
}

.watchlist-card:nth-child(1) { animation-delay: 0.05s; }
.watchlist-card:nth-child(2) { animation-delay: 0.1s; }
.watchlist-card:nth-child(3) { animation-delay: 0.15s; }
.watchlist-card:nth-child(4) { animation-delay: 0.2s; }
.watchlist-card:nth-child(5) { animation-delay: 0.25s; }
.watchlist-card:nth-child(6) { animation-delay: 0.3s; }

.alert-card:nth-child(1) { animation-delay: 0.05s; }
.alert-card:nth-child(2) { animation-delay: 0.1s; }
.alert-card:nth-child(3) { animation-delay: 0.15s; }

/* ============================================
   🎯 FIN DU FICHIER - ULTRA MODERN 3D CSS
   ============================================ */

/* ============================================
   🆕 WALL STREET EDITION - NOUVEAUX STYLES
   Styles pour les 40+ indicateurs techniques
   ============================================ */

/* ============================================
   📊 CATEGORY TITLES - SÉPARATEURS DE SECTIONS
   ============================================ */
.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin: 3.5rem 0 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary), var(--ml-accent));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
}

.category-title i {
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.category-title span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   📐 FORMULA BOX - AMÉLIORATIONS
   ============================================ */
.formula-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 6px solid var(--ml-primary);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 2;
    overflow-x: auto;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

body.dark-mode .formula-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    border-left-color: var(--ml-secondary);
}

.formula-box::before {
    content: '📐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.2;
}

.formula-box strong {
    color: var(--ml-primary);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
}

body.dark-mode .formula-box strong {
    color: var(--ml-secondary);
}

.formula-box em {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* ============================================
   💡 KEY TERM - AMÉLIORATIONS
   ============================================ */
.key-term {
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    padding: 3px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-block;
    transition: var(--transition-smooth);
}

.key-term:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

/* ============================================
   💡 TIP BOX - AMÉLIORATIONS
   ============================================ */
.tip-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 6px solid var(--ml-success);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 
        0 4px 16px rgba(67, 233, 123, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

body.dark-mode .tip-box {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #d1fae5;
}

.tip-box::before {
    content: '💡';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

.tip-box strong {
    color: #059669;
    font-weight: 800;
    font-size: 1.05rem;
}

body.dark-mode .tip-box strong {
    color: #34d399;
}

/* ============================================
   ⚠ WARNING BOX - AMÉLIORATIONS
   ============================================ */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 6px solid var(--ml-warning);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 
        0 4px 16px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

body.dark-mode .warning-box {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fef3c7;
}

.warning-box::before {
    content: '⚠';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

.warning-box strong {
    color: #d97706;
    font-weight: 800;
    font-size: 1.05rem;
}

body.dark-mode .warning-box strong {
    color: #fbbf24;
}

/* ============================================
   🎯 SUPPORT/RESISTANCE GRID
   ============================================ */
.sr-container {
    margin-top: 2rem;
}

.sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.sr-column {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sr-column h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sr-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-column li {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}

.sr-column li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(102, 126, 234, 0.1);
}

/* Résistance en rouge */
.sr-column:first-child li {
    border-left-color: var(--ml-danger);
    color: #dc3545;
}

body.dark-mode .sr-column:first-child li {
    color: #f87171;
}

/* Support en vert */
.sr-column:last-child li {
    border-left-color: var(--ml-success);
    color: #28a745;
}

body.dark-mode .sr-column:last-child li {
    color: #4ade80;
}

.distance {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

body.dark-mode .distance {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   🕯 CANDLESTICK PATTERNS CONTAINER
   ============================================ */
.patterns-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.patterns-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.patterns-container th,
.patterns-container td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.patterns-container th {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.patterns-container tbody tr {
    transition: var(--transition-smooth);
}

.patterns-container tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.01);
}

.patterns-container tbody tr:last-child td {
    border-bottom: none;
}

.strength-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.strength-badge.very-strong {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    color: white;
}

.strength-badge.strong {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.strength-badge.medium {
    background: linear-gradient(135deg, var(--ml-warning), #fda085);
    color: #333;
}

.strength-badge.weak {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

/* ============================================
   🔄 DIVERGENCES CONTAINER
   ============================================ */
.divergences-container {
    margin-top: 2rem;
}

.divergence-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    border-left: 6px solid var(--ml-primary);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.divergence-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.divergence-item:hover::before {
    left: 100%;
}

.divergence-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.divergence-item.bullish {
    border-left-color: var(--ml-success);
    background: linear-gradient(
        90deg,
        rgba(67, 233, 123, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.divergence-item.bearish {
    border-left-color: var(--ml-danger);
    background: linear-gradient(
        90deg,
        rgba(245, 87, 108, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.divergence-item strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.divergence-item.bullish strong {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divergence-item.bearish strong {
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divergence-item p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ============================================
   📊 MODAL IMPROVEMENTS - LISTES & TABLEAUX
   ============================================ */
.modal-body h4 {
    color: var(--ml-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--ml-primary);
    padding-left: 1rem;
}

body.dark-mode .modal-body h4 {
    color: #93c5fd;
}

.modal-body ul li,
.modal-body ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.modal-body ul li strong,
.modal-body ol li strong {
    color: var(--ml-primary);
    font-weight: 700;
}

body.dark-mode .modal-body ul li strong,
body.dark-mode .modal-body ol li strong {
    color: #60a5fa;
}

/* Code snippets dans les modals */
.modal-body code {
    background: rgba(102, 126, 234, 0.1);
    color: var(--ml-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

body.dark-mode .modal-body code {
    background: rgba(102, 126, 234, 0.2);
    color: var(--ml-secondary);
}

/* ============================================
   🎨 SCROLLBAR AMÉLIORÉ POUR NOUVEAUX ÉLÉMENTS
   ============================================ */
.patterns-container::-webkit-scrollbar,
.sr-grid::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.patterns-container::-webkit-scrollbar-track,
.sr-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.patterns-container::-webkit-scrollbar-thumb,
.sr-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    border-radius: 10px;
}

.patterns-container::-webkit-scrollbar-thumb:hover,
.sr-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--ml-secondary), var(--ml-accent));
}

/* ============================================
   📱 RESPONSIVE DESIGN - NOUVEAUX ÉLÉMENTS
   ============================================ */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
        padding: 1.25rem 1.5rem;
        margin: 2.5rem 0 1.5rem 0;
    }
    
    .category-title i {
        font-size: 1.8rem;
    }
    
    .sr-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sr-column {
        padding: 1.5rem;
    }
    
    .patterns-container th,
    .patterns-container td {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .divergence-item {
        padding: 1.25rem 1.5rem;
    }
    
    .divergence-item strong {
        font-size: 1.1rem;
    }
    
    .formula-box {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .tip-box,
    .warning-box {
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.3rem;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .sr-column h4 {
        font-size: 1.2rem;
    }
    
    .sr-column li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
    }
    
    .distance {
        width: 100%;
        text-align: right;
    }
    
    .patterns-container {
        font-size: 0.85rem;
    }
    
    .patterns-container th,
    .patterns-container td {
        padding: 0.875rem 0.75rem;
    }
    
    .strength-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    
    .divergence-item {
        padding: 1rem 1.25rem;
    }
    
    .divergence-item strong {
        font-size: 1rem;
    }
    
    .divergence-item p {
        font-size: 0.95rem;
    }
}

/* ============================================
   🌙 DARK MODE - NOUVEAUX ÉLÉMENTS
   ============================================ */
body.dark-mode .patterns-container table {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

body.dark-mode .sr-column {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

body.dark-mode .divergence-item {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(30, 41, 59, 0.4) 100%
    );
}

body.dark-mode .divergence-item.bullish {
    background: linear-gradient(
        90deg,
        rgba(67, 233, 123, 0.12) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

body.dark-mode .divergence-item.bearish {
    background: linear-gradient(
        90deg,
        rgba(245, 87, 108, 0.12) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

/* ============================================
   ✨ ANIMATIONS SUPPLÉMENTAIRES
   ============================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sr-column li {
    animation: slideInLeft 0.5s ease-out backwards;
}

.sr-column li:nth-child(1) { animation-delay: 0.05s; }
.sr-column li:nth-child(2) { animation-delay: 0.1s; }
.sr-column li:nth-child(3) { animation-delay: 0.15s; }
.sr-column li:nth-child(4) { animation-delay: 0.2s; }
.sr-column li:nth-child(5) { animation-delay: 0.25s; }

.divergence-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.divergence-item:nth-child(1) { animation-delay: 0.1s; }
.divergence-item:nth-child(2) { animation-delay: 0.2s; }
.divergence-item:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   🎯 PRINT STYLES (BONUS)
   ============================================ */
@media print {
    .category-title,
    .section-title {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
        page-break-after: avoid;
    }
    
    .formula-box {
        page-break-inside: avoid;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .tip-box,
    .warning-box {
        page-break-inside: avoid;
        border: 1px solid #dee2e6;
    }
    
    .patterns-container table,
    .fibonacci-table table {
        page-break-inside: avoid;
    }
    
    .sr-grid {
        page-break-inside: avoid;
    }
}

/* ============================================
   ✅ FIN DES NOUVEAUX STYLES - WALL STREET EDITION
   ============================================ */

/* ============================================
   🤖 ALPHY AI RECOMMENDATION ENGINE
   VERSION OPTIMISÉE - PERFORMANCE MAXIMALE
   ============================================ */

/* ============================================
   🌟 AI RECOMMENDATION SECTION - CONTAINER PRINCIPAL
   ============================================ */
.ai-recommendation-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(240, 147, 251, 0.04) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

/* ============================================
   🎯 AI HEADER - LOGO + TITRE
   ============================================ */
.ai-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.ai-logo-container {
    flex-shrink: 0;
}

.ai-logo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ai-logo-core {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-logo-core i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-header-text {
    flex: 1;
}

.ai-title {
    margin: 0 0 10px 0;
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--text-primary);
}

.ai-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    margin-left: 12px;
}

.ai-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ai-indicators-count {
    color: var(--ml-primary);
    font-weight: 700;
}

/* ============================================
   📊 AI SCORE CONTAINER
   ============================================ */
.ai-score-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    margin-bottom: 32px;
}

.ai-score-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-score-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ai-score-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ai-score-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1;
}

/* Score Colors
.ai-score-value.very-bullish,
.ai-score-fill.very-bullish,
.ai-confidence-fill.very-bullish {
    background: linear-gradient(90deg, var(--ml-success), #38f9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.bullish,
.ai-score-fill.bullish,
.ai-confidence-fill.bullish {
    background: linear-gradient(90deg, #20c997, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.moderately-bullish,
.ai-score-fill.moderately-bullish,
.ai-confidence-fill.moderately-bullish {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.neutral,
.ai-score-fill.neutral,
.ai-confidence-fill.neutral {
    background: linear-gradient(90deg, var(--ml-warning), #fda085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.moderately-bearish,
.ai-score-fill.moderately-bearish,
.ai-confidence-fill.moderately-bearish {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.bearish,
.ai-score-fill.bearish,
.ai-confidence-fill.bearish {
    background: linear-gradient(90deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-score-value.very-bearish,
.ai-score-fill.very-bearish,
.ai-confidence-fill.very-bearish {
    background: linear-gradient(90deg, var(--ml-danger), #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

/* ============================================
   🎯 CONFIDENCE BARS - SECTION COMPLÈTE
   ============================================ */

.ai-confidence-bar {
    width: 110px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.ai-confidence-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

/* Couleurs par type de recommandation */
.ai-confidence-fill.strong-buy {
    background: linear-gradient(90deg, #10b981, #38f9d7);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.ai-confidence-fill.buy {
    background: linear-gradient(90deg, #20c997, #4ade80);
    box-shadow: 0 0 8px rgba(32, 201, 151, 0.4);
}

.ai-confidence-fill.accumulate {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.ai-confidence-fill.hold {
    background: linear-gradient(90deg, #f6d365, #fda085);
    box-shadow: 0 0 8px rgba(246, 211, 101, 0.4);
}

.ai-confidence-fill.reduce {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.ai-confidence-fill.sell {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.ai-confidence-fill.strong-sell {
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

/* Dark mode */
body.dark-mode .ai-confidence-bar {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   🎨 AI SCORE FILL - COULEURS (AJOUT)
   ============================================ */

.ai-score-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

/* Couleurs identiques aux confidence bars */
.ai-score-fill.very-bullish {
    background: linear-gradient(90deg, #10b981, #38f9d7);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.ai-score-fill.bullish {
    background: linear-gradient(90deg, #20c997, #4ade80);
    box-shadow: 0 0 8px rgba(32, 201, 151, 0.4);
}

.ai-score-fill.moderately-bullish {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.ai-score-fill.neutral {
    background: linear-gradient(90deg, #f6d365, #fda085);
    box-shadow: 0 0 8px rgba(246, 211, 101, 0.4);
}

.ai-score-fill.moderately-bearish {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.ai-score-fill.bearish {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.ai-score-fill.very-bearish {
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

.ai-score-bar {
    height: 16px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ai-score-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

.ai-score-rating {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   📈 QUICK STATS
   ============================================ */
.ai-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ai-stat-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ai-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.ai-stat-icon.bullish {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
}

.ai-stat-icon.neutral {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
}

.ai-stat-icon.bearish {
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
}

.ai-stat-content {
    flex: 1;
}

.ai-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.ai-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* ============================================
   🎯 MULTI-HORIZON RECOMMENDATIONS GRID
   ============================================ */
.ai-horizons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.ai-horizon-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-horizon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ml-primary), var(--ml-secondary));
    border-radius: 20px 20px 0 0;
}

.ai-horizon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.2);
}

.ai-horizon-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-horizon-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
}

.ai-horizon-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-horizon-title p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ai-horizon-recommendation {
    margin-bottom: 22px;
}

.ai-rec-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-align: center;
    width: 100%;
}

/* Recommendation Badges */
.ai-rec-badge.strong-buy {
    background: linear-gradient(135deg, var(--ml-success), #38f9d7);
}

.ai-rec-badge.buy {
    background: linear-gradient(135deg, #20c997, #4ade80);
}

.ai-rec-badge.accumulate {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.ai-rec-badge.hold {
    background: linear-gradient(135deg, var(--ml-warning), #fda085);
}

.ai-rec-badge.reduce {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.ai-rec-badge.sell {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.ai-rec-badge.strong-sell {
    background: linear-gradient(135deg, var(--ml-danger), #fd7e14);
}

.ai-horizon-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--ml-primary);
}

.ai-detail-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-detail-value {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-confidence-bar {
    width: 110px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.ai-confidence-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease;
}

.ai-horizon-drivers {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-drivers-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ai-drivers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-driver-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 8px 10px;
    background: rgba(102, 126, 234, 0.04);
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.ai-driver-item:hover {
    transform: translateX(4px);
    background: rgba(102, 126, 234, 0.08);
}

.ai-driver-item i {
    color: var(--ml-success);
    font-size: 1rem;
}

/* ============================================
   ⚖ RISK/REWARD SECTION
   ============================================ */
.ai-risk-reward-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.ai-risk-card,
.ai-reward-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-risk-card:hover,
.ai-reward-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ai-risk-header,
.ai-reward-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-risk-header i {
    font-size: 1.8rem;
    color: var(--ml-danger);
}

.ai-reward-header i {
    font-size: 1.8rem;
    color: var(--ml-success);
}

.ai-risk-header h3,
.ai-reward-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-risk-level,
.ai-reward-level {
    margin-bottom: 20px;
}

.ai-risk-badge,
.ai-reward-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* Risk Badges */
.ai-risk-badge.very-high-risk { background: linear-gradient(135deg, #dc3545, #fd7e14); }
.ai-risk-badge.high-risk { background: linear-gradient(135deg, #ef4444, #f87171); }
.ai-risk-badge.elevated-risk { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.ai-risk-badge.moderate-risk { background: linear-gradient(135deg, #f6d365, #fda085); }
.ai-risk-badge.low-risk { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ai-risk-badge.very-low-risk { background: linear-gradient(135deg, #20c997, #4ade80); }

/* Reward Badges */
.ai-reward-badge.exceptional-reward { background: linear-gradient(135deg, var(--ml-success), #38f9d7); }
.ai-reward-badge.very-high-reward { background: linear-gradient(135deg, #20c997, #4ade80); }
.ai-reward-badge.high-reward { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ai-reward-badge.attractive-reward { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.ai-reward-badge.moderate-reward { background: linear-gradient(135deg, #f6d365, #fda085); }
.ai-reward-badge.low-reward { background: linear-gradient(135deg, #6c757d, #adb5bd); }
.ai-reward-badge.minimal-reward { background: linear-gradient(135deg, #475569, #64748b); }

.ai-risk-factors,
.ai-reward-factors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-factor-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(102, 126, 234, 0.04);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-factor-item:hover {
    transform: translateX(6px);
    background: rgba(102, 126, 234, 0.08);
}

.ai-factor-item i {
    margin-top: 2px;
    font-size: 1.1rem;
}

.ai-factor-item.high { border-left-color: var(--ml-danger); }
.ai-factor-item.medium { border-left-color: var(--ml-warning); }
.ai-factor-item.low { border-left-color: #3b82f6; }
.ai-factor-item.very-high { border-left-color: var(--ml-success); }

/* ============================================
   📝 PROFESSIONAL SUMMARY
   ============================================ */
.ai-professional-summary {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ml-primary);
    flex-wrap: wrap;
}

.ai-summary-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ai-summary-header i {
    font-size: 1.8rem;
}

.ai-summary-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-summary-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ai-summary-badge {
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-summary-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.ai-summary-content p {
    margin-bottom: 1.2rem;
}

.ai-summary-content strong {
    font-weight: 800;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-summary-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

/* ============================================
   ⚠ AI DISCLAIMER
   ============================================ */
.ai-disclaimer {
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ai-disclaimer i {
    font-size: 1.4rem;
    color: var(--ml-warning);
    margin-top: 2px;
    flex-shrink: 0;
}

.ai-disclaimer strong {
    color: var(--ml-warning);
    font-weight: 800;
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .ai-score-container {
        grid-template-columns: 1fr;
    }
    
    .ai-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .ai-horizons-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .ai-risk-reward-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ai-recommendation-section {
        padding: 28px 18px;
    }
    
    .ai-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-logo-ring {
        width: 75px;
        height: 75px;
    }
    
    .ai-logo-core {
        width: 54px;
        height: 54px;
    }
    
    .ai-title {
        font-size: 1.5rem;
    }
    
    .ai-score-value {
        font-size: 2.8rem;
    }
    
    .ai-horizons-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ai-recommendation-section {
        padding: 22px 14px;
    }
    
    .ai-score-card,
    .ai-risk-card,
    .ai-reward-card,
    .ai-professional-summary {
        padding: 20px 16px;
    }
    
    .ai-title {
        font-size: 1.3rem;
    }
    
    .ai-score-value {
        font-size: 2.4rem;
    }
    
    .ai-horizon-card {
        padding: 20px 16px;
    }
    
    .ai-rec-badge {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

/* ============================================
   🌙 DARK MODE
   ============================================ */
body.dark-mode .ai-recommendation-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.3) 100%);
}

body.dark-mode .ai-score-card,
body.dark-mode .ai-horizon-card,
body.dark-mode .ai-risk-card,
body.dark-mode .ai-reward-card,
body.dark-mode .ai-professional-summary {
    background: rgba(15, 23, 42, 0.5);
}

body.dark-mode .ai-logo-core {
    background: rgba(15, 23, 42, 0.7);
}

body.dark-mode .ai-stat-item,
body.dark-mode .ai-detail-row,
body.dark-mode .ai-driver-item,
body.dark-mode .ai-factor-item {
    background: rgba(255, 255, 255, 0.03);
}

/* ✅ FIN DU CSS OPTIMISÉ */